metaflow 2.8.1__py2.py3-none-any.whl → 2.8.3__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- metaflow/client/core.py +14 -4
- metaflow/cmd/configure_cmd.py +3 -3
- metaflow/cmd/main_cli.py +9 -14
- metaflow/current.py +15 -0
- metaflow/datastore/datastore_set.py +7 -7
- metaflow/datastore/flow_datastore.py +1 -2
- metaflow/extension_support/__init__.py +1 -0
- metaflow/extension_support/integrations.py +141 -0
- metaflow/integrations.py +29 -0
- metaflow/metaflow_config.py +21 -0
- metaflow/metaflow_environment.py +5 -4
- metaflow/package.py +1 -1
- metaflow/plugins/airflow/airflow.py +0 -1
- metaflow/plugins/argo/argo_workflows.py +2 -0
- metaflow/plugins/argo/argo_workflows_cli.py +11 -1
- metaflow/plugins/aws/aws_utils.py +6 -1
- metaflow/plugins/aws/batch/batch.py +30 -8
- metaflow/plugins/aws/batch/batch_cli.py +12 -0
- metaflow/plugins/aws/batch/batch_client.py +39 -2
- metaflow/plugins/aws/batch/batch_decorator.py +23 -0
- metaflow/plugins/aws/step_functions/step_functions.py +7 -4
- metaflow/plugins/aws/step_functions/step_functions_cli.py +11 -1
- metaflow/plugins/cards/card_modules/bundle.css +56 -56
- metaflow/plugins/cards/card_modules/convert_to_native_type.py +67 -5
- metaflow/plugins/cards/card_modules/main.js +14 -7
- metaflow/plugins/conda/conda_environment.py +2 -2
- metaflow/plugins/conda/conda_step_decorator.py +7 -1
- metaflow/plugins/datatools/s3/s3.py +2 -2
- metaflow/plugins/env_escape/communication/channel.py +1 -1
- metaflow/plugins/kubernetes/kubernetes.py +4 -0
- metaflow/plugins/kubernetes/kubernetes_decorator.py +6 -2
- metaflow/plugins/kubernetes/kubernetes_job.py +17 -2
- metaflow/plugins/metadata/service.py +3 -2
- metaflow/runtime.py +5 -3
- metaflow/tutorials/02-statistics/README.md +4 -9
- metaflow/tutorials/02-statistics/stats.py +38 -11
- metaflow/tutorials/03-playlist-redux/playlist.py +24 -16
- metaflow/tutorials/04-playlist-plus/playlist.py +14 -23
- metaflow/tutorials/05-hello-cloud/README.md +45 -0
- metaflow/tutorials/{05-helloaws/helloaws.ipynb → 05-hello-cloud/hello-cloud.ipynb} +10 -5
- metaflow/tutorials/{05-helloaws/helloaws.py → 05-hello-cloud/hello-cloud.py} +11 -13
- metaflow/tutorials/06-statistics-redux/README.md +6 -29
- metaflow/tutorials/06-statistics-redux/stats.ipynb +2 -2
- metaflow/tutorials/07-worldview/README.md +3 -11
- metaflow/tutorials/07-worldview/worldview.ipynb +3 -3
- metaflow/tutorials/08-autopilot/README.md +10 -17
- metaflow/tutorials/08-autopilot/autopilot.ipynb +12 -7
- {metaflow-2.8.1.dist-info → metaflow-2.8.3.dist-info}/METADATA +1 -6
- {metaflow-2.8.1.dist-info → metaflow-2.8.3.dist-info}/RECORD +53 -51
- metaflow/tutorials/05-helloaws/README.md +0 -27
- {metaflow-2.8.1.dist-info → metaflow-2.8.3.dist-info}/LICENSE +0 -0
- {metaflow-2.8.1.dist-info → metaflow-2.8.3.dist-info}/WHEEL +0 -0
- {metaflow-2.8.1.dist-info → metaflow-2.8.3.dist-info}/entry_points.txt +0 -0
- {metaflow-2.8.1.dist-info → metaflow-2.8.3.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,21 @@
|
|
1
|
-
var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function i(){return Object.create(null)}function s(t){t.forEach(n)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a,l;function c(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}function h(e,n,i){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function u(t,e,n,i){if(t){const s=d(t,e,n,i);return t[0](s)}}function d(t,n,i,s){return t[1]&&s?e(i.ctx.slice(),t[1](s(n))):i.ctx}function f(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],n=Math.max(e.dirty.length,s.length);for(let i=0;i<n;i+=1)t[i]=e.dirty[i]|s[i];return t}return e.dirty|s}return e.dirty}function p(t,e,n,i,s,o){if(s){const r=d(e,n,i,o);t.p(r,s)}}function g(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function m(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function b(t,e){const n={};e=new Set(e);for(const i in t)e.has(i)||"$"===i[0]||(n[i]=t[i]);return n}function x(t,e){t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function v(t){t.parentNode.removeChild(t)}function _(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function $(t){return document.createElement(t)}function w(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function k(t){return document.createTextNode(t)}function C(){return k(" ")}function M(){return k("")}function S(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function L(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function D(t,e){for(const n in e)L(t,n,e[n])}function O(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function P(t,e,n,i){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function A(t,e,n){t.classList[n?"add":"remove"](e)}class E{constructor(){this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.e=$(e.nodeName),this.t=e,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)y(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(v)}}function R(t){l=t}function T(){if(!l)throw new Error("Function called outside component initialization");return l}function z(t){T().$$.on_mount.push(t)}function I(){const t=T();return(e,n)=>{const i=t.$$.callbacks[e];if(i){const s=function(t,e,n=!1){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,!1,e),i}(e,n);i.slice().forEach((e=>{e.call(t,s)}))}}}function F(t,e){T().$$.context.set(t,e)}function j(t){return T().$$.context.get(t)}const N=[],B=[],V=[],H=[],W=Promise.resolve();let U=!1;function q(t){V.push(t)}function Y(t){H.push(t)}const Z=new Set;let X=0;function G(){const t=l;do{for(;X<N.length;){const t=N[X];X++,R(t),K(t.$$)}for(R(null),N.length=0,X=0;B.length;)B.pop()();for(let t=0;t<V.length;t+=1){const e=V[t];Z.has(e)||(Z.add(e),e())}V.length=0}while(N.length);for(;H.length;)H.pop()();U=!1,Z.clear(),R(t)}function K(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(q)}}const Q=new Set;let J;function tt(){J={r:0,c:[],p:J}}function et(){J.r||s(J.c),J=J.p}function nt(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function it(t,e,n,i){if(t&&t.o){if(Q.has(t))return;Q.add(t),J.c.push((()=>{Q.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}}const st="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ot(t,e){const n={},i={},s={$$scope:1};let o=t.length;for(;o--;){const r=t[o],a=e[o];if(a){for(const t in r)t in a||(i[t]=1);for(const t in a)s[t]||(n[t]=a[t],s[t]=1);t[o]=a}else for(const t in r)s[t]=1}for(const t in i)t in n||(n[t]=void 0);return n}function rt(t){return"object"==typeof t&&null!==t?t:{}}function at(t,e,n){const i=t.$$.props[e];void 0!==i&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function lt(t){t&&t.c()}function ct(t,e,i,r){const{fragment:a,on_mount:l,on_destroy:c,after_update:h}=t.$$;a&&a.m(e,i),r||q((()=>{const e=l.map(n).filter(o);c?c.push(...e):s(e),t.$$.on_mount=[]})),h.forEach(q)}function ht(t,e){const n=t.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ut(t,e){-1===t.$$.dirty[0]&&(N.push(t),U||(U=!0,W.then(G)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function dt(e,n,o,r,a,c,h,u=[-1]){const d=l;R(e);const f=e.$$={fragment:null,ctx:null,props:c,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};h&&h(f.root);let p=!1;if(f.ctx=o?o(e,n.props||{},((t,n,...i)=>{const s=i.length?i[0]:n;return f.ctx&&a(f.ctx[t],f.ctx[t]=s)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](s),p&&ut(e,t)),n})):[],f.update(),p=!0,s(f.before_update),f.fragment=!!r&&r(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(v)}else f.fragment&&f.fragment.c();n.intro&&nt(e.$$.fragment),ct(e,n.target,n.anchor,n.customElement),G()}R(d)}class ft{$destroy(){ht(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var pt,gt,mt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};pt={exports:{}},gt=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},s={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof o?new o(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var i,o;switch(n=n||{},s.util.type(e)){case"Object":if(o=s.util.objId(e),n[o])return n[o];for(var r in i={},n[o]=i,e)e.hasOwnProperty(r)&&(i[r]=t(e[r],n));return i;case"Array":return o=s.util.objId(e),n[o]?n[o]:(i=[],n[o]=i,e.forEach((function(e,s){i[s]=t(e,n)})),i);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var i="no-"+e;t;){var s=t.classList;if(s.contains(e))return!0;if(s.contains(i))return!1;t=t.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(t,e){var n=s.util.clone(s.languages[t]);for(var i in e)n[i]=e[i];return n},insertBefore:function(t,e,n,i){var o=(i=i||s.languages)[t],r={};for(var a in o)if(o.hasOwnProperty(a)){if(a==e)for(var l in n)n.hasOwnProperty(l)&&(r[l]=n[l]);n.hasOwnProperty(a)||(r[a]=o[a])}var c=i[t];return i[t]=r,s.languages.DFS(s.languages,(function(e,n){n===c&&e!=t&&(this[e]=r)})),r},DFS:function t(e,n,i,o){o=o||{};var r=s.util.objId;for(var a in e)if(e.hasOwnProperty(a)){n.call(e,a,e[a],i||a);var l=e[a],c=s.util.type(l);"Object"!==c||o[r(l)]?"Array"!==c||o[r(l)]||(o[r(l)]=!0,t(l,n,a,o)):(o[r(l)]=!0,t(l,n,null,o))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var i={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),s.hooks.run("before-all-elements-highlight",i);for(var o,r=0;o=i.elements[r++];)s.highlightElement(o,!0===e,i.callback)},highlightElement:function(e,n,i){var o=s.util.getLanguage(e),r=s.languages[o];s.util.setLanguage(e,o);var a=e.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&s.util.setLanguage(a,o);var l={element:e,language:o,grammar:r,code:e.textContent};function c(t){l.highlightedCode=t,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),i&&i.call(l.element)}if(s.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return s.hooks.run("complete",l),void(i&&i.call(l.element));if(s.hooks.run("before-highlight",l),l.grammar)if(n&&t.Worker){var h=new Worker(s.filename);h.onmessage=function(t){c(t.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(s.highlight(l.code,l.grammar,l.language));else c(s.util.encode(l.code))},highlight:function(t,e,n){var i={code:t,grammar:e,language:n};return s.hooks.run("before-tokenize",i),i.tokens=s.tokenize(i.code,i.grammar),s.hooks.run("after-tokenize",i),o.stringify(s.util.encode(i.tokens),i.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var i in n)e[i]=n[i];delete e.rest}var h=new a;return l(h,h.head,t),function t(e,n,i,a,h,u){for(var d in i)if(i.hasOwnProperty(d)&&i[d]){var f=i[d];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(u&&u.cause==d+","+p)return;var g=f[p],m=g.inside,b=!!g.lookbehind,x=!!g.greedy,y=g.alias;if(x&&!g.pattern.global){var v=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,v+"g")}for(var _=g.pattern||g,$=a.next,w=h;$!==n.tail&&!(u&&w>=u.reach);w+=$.value.length,$=$.next){var k=$.value;if(n.length>e.length)return;if(!(k instanceof o)){var C,M=1;if(x){if(!(C=r(_,w,e,b))||C.index>=e.length)break;var S=C.index,L=C.index+C[0].length,D=w;for(D+=$.value.length;D<=S;)D+=($=$.next).value.length;if(w=D-=$.value.length,$.value instanceof o)continue;for(var O=$;O!==n.tail&&(D<L||"string"==typeof O.value);O=O.next)M++,D+=O.value.length;M--,k=e.slice(w,D),C.index-=w}else if(!(C=r(_,0,k,b)))continue;S=C.index;var P=C[0],A=k.slice(0,S),E=k.slice(S+P.length),R=w+k.length;u&&R>u.reach&&(u.reach=R);var T=$.prev;if(A&&(T=l(n,T,A),w+=A.length),c(n,T,M),$=l(n,T,new o(d,m?s.tokenize(P,m):P,y,P)),E&&l(n,$,E),1<M){var z={cause:d+","+p,reach:R};t(e,n,i,$.prev,w,z),u&&z.reach>u.reach&&(u.reach=z.reach)}}}}}}(t,h,e,h.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(h)},hooks:{all:{},add:function(t,e){var n=s.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=s.hooks.all[t];if(n&&n.length)for(var i,o=0;i=n[o++];)i(e)}},Token:o};function o(t,e,n,i){this.type=t,this.content=e,this.alias=n,this.length=0|(i||"").length}function r(t,e,n,i){t.lastIndex=e;var s=t.exec(n);if(s&&i&&s[1]){var o=s[1].length;s.index+=o,s[0]=s[0].slice(o)}return s}function a(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function l(t,e,n){var i=e.next,s={value:n,prev:e,next:i};return e.next=s,i.prev=s,t.length++,s}function c(t,e,n){for(var i=e.next,s=0;s<n&&i!==t.tail;s++)i=i.next;(e.next=i).prev=e,t.length-=s}if(t.Prism=s,o.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var i="";return e.forEach((function(e){i+=t(e,n)})),i}var o={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},r=e.alias;r&&(Array.isArray(r)?Array.prototype.push.apply(o.classes,r):o.classes.push(r)),s.hooks.run("wrap",o);var a="";for(var l in o.attributes)a+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+a+">"+o.content+"</"+o.tag+">"},!t.document)return t.addEventListener&&(s.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),i=n.language,o=n.code,r=n.immediateClose;t.postMessage(s.highlight(o,s.languages[i],i)),r&&t.close()}),!1)),s;var h=s.util.currentScript();function u(){s.manual||s.highlightAll()}if(h&&(s.filename=h.src,h.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var d=document.readyState;"loading"===d||"interactive"===d&&h&&h.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}),pt.exports&&(pt.exports=gt),void 0!==mt&&(mt.Prism=gt),gt.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},gt.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:gt.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp("\\b\\d{4}[-/]\\d{2}[-/]\\d{2}(?:T(?=\\d{1,2}:)|(?=\\s\\d{1,2}:))|\\b\\d{1,4}[-/ ](?:\\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\\d{2,4}T?\\b|\\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\\s{1,2}\\d{1,2}\\b","i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/},gt.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},gt.languages.python["string-interpolation"].inside.interpolation.inside.rest=gt.languages.python,gt.languages.py=gt.languages.python;const bt=[];function xt(e,n=t){let i;const s=new Set;function o(t){if(r(e,t)&&(e=t,i)){const t=!bt.length;for(const t of s)t[1](),bt.push(t,e);if(t){for(let t=0;t<bt.length;t+=2)bt[t][0](bt[t+1]);bt.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(r,a=t){const l=[r,a];return s.add(l),1===s.size&&(i=n(o)||t),r(e),()=>{s.delete(l),0===s.size&&(i(),i=null)}}}}const yt=xt(void 0),vt=xt(void 0),_t=t=>{const e={};if(!t)return e;function n(t,i=[]){var s;if("page"===t.type){const i=[];e[t.title]=i,null===(s=null==t?void 0:t.contents)||void 0===s||s.forEach((t=>n(t,i)))}"section"===t.type&&t.title&&i.push(t.title)}return null==t||t.forEach((t=>n(t))),e},$t=(t,e)=>t/(e?parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px","")):16);function wt(t){let e,n,i,s,o,r,a,l;return{c(){e=w("svg"),n=w("title"),i=k("metaflow_logo_horizontal"),s=w("g"),o=w("g"),r=w("g"),a=w("path"),l=w("path"),L(a,"d","M223.990273,66.33 C223.515273,61.851 222.686273,57.512 221.505273,53.33 C220.325273,49.148 218.795273,45.122 216.916273,41.271 C212.845273,32.921 207.254273,25.587 200.268273,19.422 C199.270273,18.541 198.243273,17.684 197.189273,16.851 C191.255273,12.166 184.481273,8.355 177.253273,5.55 C174.156273,4.347 170.975273,3.33 167.741273,2.508 C161.273273,0.863 154.593273,0 147.943273,0 C141.755273,0 135.332273,0.576 128.687273,1.722 C127.025273,2.01 125.350273,2.332 123.661273,2.69 C120.283273,3.406 116.851273,4.265 113.365273,5.267 C104.650273,7.769 95.6022727,11.161 86.2442727,15.433 C78.7592727,18.851 71.0762727,22.832 63.2072727,27.373 C47.9762727,36.162 35.7372727,44.969 29.3592727,49.791 C29.0692727,50.01 28.7922727,50.221 28.5262727,50.423 C26.1382727,52.244 24.7522727,53.367 24.5662727,53.519 L0.549272727,73.065 C0.191272727,73.356 0.00727272727,73.773 0,74.194 C-0.00372727273,74.403 0.0362727273,74.614 0.120272727,74.811 C0.205272727,75.008 0.334272727,75.189 0.508272727,75.341 L11.7612727,85.195 C12.1692727,85.552 12.7252727,85.651 13.2162727,85.487 C13.3792727,85.432 13.5362727,85.348 13.6762727,85.234 L35.8492727,67.382 C36.0422727,67.224 37.6152727,65.949 40.3252727,63.903 C44.1192727,61.036 50.1422727,56.656 57.7292727,51.711 C62.0642727,48.884 66.9102727,45.873 72.1412727,42.854 C100.864273,26.278 126.367273,17.874 147.943273,17.874 C148.366273,17.874 148.790273,17.892 149.213273,17.902 C149.655273,17.911 150.096273,17.911 150.538273,17.93 C153.769273,18.068 156.995273,18.463 160.170273,19.097 C164.931273,20.049 169.577273,21.542 173.953273,23.524 C178.328273,25.505 182.433273,27.975 186.112273,30.88 C186.771273,31.4 187.406273,31.94 188.035273,32.485 C188.913273,33.245 189.771273,34.023 190.591273,34.83 C191.998273,36.217 193.317273,37.673 194.548273,39.195 C196.395273,41.479 198.042273,43.912 199.480273,46.485 C199.960273,47.342 200.417273,48.216 200.850273,49.105 C201.112273,49.642 201.343273,50.196 201.587273,50.743 C202.231273,52.185 202.834273,53.649 203.354273,55.158 C203.712273,56.198 204.041273,57.255 204.340273,58.326 C205.836273,63.683 206.590273,69.417 206.590273,75.469 C206.590273,81.221 205.892273,86.677 204.541273,91.804 C203.617273,95.308 202.397273,98.662 200.850273,101.833 C200.417273,102.722 199.960273,103.595 199.480273,104.453 C197.562273,107.884 195.275273,111.066 192.636273,113.976 C190.657273,116.159 188.480273,118.189 186.113273,120.058 C184.553273,121.29 182.909273,122.432 181.208273,123.503 C180.313273,124.067 179.400273,124.609 178.470273,125.126 C177.462273,125.688 176.442273,126.232 175.398273,126.737 C166.961273,130.823 157.423273,133.064 147.943273,133.064 C126.367273,133.064 100.864273,124.659 72.1412727,108.084 C70.5382727,107.159 68.4382727,105.886 66.3072727,104.575 C65.0292727,103.788 63.7402727,102.986 62.5412727,102.237 C59.3442727,100.238 56.7882727,98.61 56.7882727,98.61 C61.8362727,93.901 69.3232727,87.465 78.6472727,81.047 C80.0092727,80.11 81.4192727,79.174 82.8572727,78.243 C84.1052727,77.436 85.3712727,76.63 86.6732727,75.835 C88.2042727,74.9 89.7802727,73.981 91.3822727,73.074 C93.0482727,72.131 94.7512727,71.207 96.4902727,70.307 C111.473273,62.55 129.094273,56.602 147.943273,56.602 C151.750273,56.602 157.745273,57.825 162.114273,61.276 C162.300273,61.422 162.489273,61.578 162.677273,61.74 C163.337273,62.305 164.006273,62.966 164.634273,63.78 C164.957273,64.198 165.269273,64.657 165.564273,65.162 C166.006273,65.92 166.409273,66.782 166.750273,67.775 C166.891273,68.185 167.016273,68.627 167.134273,69.083 C167.586273,70.833 167.863273,72.924 167.863273,75.469 C167.863273,78.552 167.460273,80.974 166.824273,82.92 C166.578273,83.674 166.300273,84.363 165.992273,84.983 C165.855273,85.259 165.711273,85.524 165.564273,85.776 C165.376273,86.099 165.178273,86.396 164.977273,86.682 C164.631273,87.175 164.269273,87.618 163.900273,88.018 C163.730273,88.202 163.559273,88.379 163.387273,88.546 C162.962273,88.96 162.534273,89.331 162.114273,89.662 C157.745273,93.112 151.750273,94.337 147.943273,94.337 C144.485273,94.337 140.682273,93.926 136.589273,93.121 C133.860273,92.584 131.003273,91.871 128.033273,90.987 C123.579273,89.662 118.873273,87.952 113.970273,85.872 C113.768273,85.786 113.552273,85.747 113.336273,85.753 C113.122273,85.76 112.908273,85.813 112.713273,85.912 C106.990273,88.816 101.641273,91.995 96.7462727,95.223 C96.6232727,95.304 96.5182727,95.397 96.4302727,95.5 C95.8122727,96.22 96.0172727,97.397 96.9492727,97.822 L102.445273,100.328 C104.606273,101.314 106.737273,102.238 108.835273,103.102 C110.934273,103.966 113.001273,104.77 115.035273,105.511 C118.086273,106.624 121.064273,107.599 123.965273,108.436 C127.834273,109.551 131.567273,110.421 135.157273,111.043 C139.646273,111.82 143.912273,112.211 147.943273,112.211 C148.367273,112.211 148.923273,112.201 149.591273,112.169 C149.925273,112.153 150.287273,112.131 150.674273,112.102 C155.712273,111.724 165.055273,110.114 173.190273,103.691 C173.547273,103.41 173.869273,103.105 174.210273,102.813 C175.324273,101.86 176.381273,100.866 177.333273,99.8 C177.470273,99.648 177.590273,99.485 177.724273,99.331 C181.300273,95.167 183.699273,90.185 184.875273,84.406 C185.444273,81.609 185.737273,78.631 185.737273,75.469 C185.737273,63.315 181.516273,53.82 173.190273,47.247 C167.050273,42.399 160.228273,40.299 155.083273,39.395 C153.892273,39.186 152.790273,39.037 151.809273,38.938 C150.116273,38.766 148.774273,38.727 147.943273,38.727 C133.456273,38.727 118.519273,41.679 103.545273,47.5 C99.1222727,49.22 94.6912727,51.191 90.2702727,53.403 C88.7972727,54.141 87.3242727,54.905 85.8542727,55.696 C83.5092727,56.957 81.1722727,58.303 78.8382727,59.697 C77.3922727,60.562 75.9492727,61.451 74.5082727,62.366 C72.4422727,63.678 70.3802727,65.023 68.3302727,66.437 C63.8372727,69.535 59.7422727,72.63 56.0902727,75.567 C54.8732727,76.547 53.7052727,77.508 52.5882727,78.446 C48.1222727,82.2 44.4752727,85.581 41.7602727,88.226 C38.3032727,91.593 36.3592727,93.766 36.1632727,93.986 L35.8282727,94.362 L32.0332727,98.61 L30.6432727,100.164 C30.4962727,100.329 30.3932727,100.517 30.3312727,100.715 C30.1482727,101.307 30.3472727,101.981 30.8882727,102.368 L37.2812727,106.938 L37.4862727,107.083 L37.6922727,107.228 C39.8732727,108.766 42.0702727,110.277 44.2792727,111.758 C45.8422727,112.807 47.4102727,113.84 48.9832727,114.858 C51.5302727,116.508 54.0902727,118.103 56.6542727,119.665 C57.8412727,120.388 59.0282727,121.101 60.2162727,121.804 C61.2142727,122.394 62.2102727,122.989 63.2072727,123.565 C76.9772727,131.512 90.1802727,137.744 102.748273,142.242 C104.544273,142.884 106.326273,143.491 108.096273,144.063 C111.635273,145.206 115.121273,146.207 118.553273,147.067 C121.986273,147.925 125.364273,148.642 128.687273,149.215 C135.332273,150.362 141.755273,150.938 147.943273,150.938 C154.593273,150.938 161.273273,150.074 167.741273,148.43 C174.209273,146.786 180.465273,144.361 186.265273,141.238 C190.133273,139.156 193.798273,136.764 197.189273,134.087 C200.352273,131.589 203.264273,128.872 205.911273,125.949 C207.677273,124 209.325273,121.96 210.854273,119.831 C211.618273,118.766 212.353273,117.68 213.057273,116.571 C214.466273,114.356 215.753273,112.053 216.916273,109.667 C220.701273,101.906 223.073273,93.439 224.008273,84.406 C224.310273,81.485 224.465273,78.505 224.465273,75.469 C224.465273,72.364 224.306273,69.316 223.990273,66.33"),L(a,"id","Fill-1"),L(a,"fill","#146EE6"),L(l,"d","M758.389273,75.346 C752.632273,111.56 742.681273,122.23 712.102273,122.23 C710.847273,122.23 709.640273,122.207 708.464273,122.17 C708.321273,122.191 708.191273,122.23 708.028273,122.23 L637.994273,122.23 C636.795273,122.23 636.315273,121.632 636.435273,120.311 L650.585273,31.22 C650.704273,30.016 651.424273,29.417 652.623273,29.417 L667.852273,29.417 C669.050273,29.417 669.530273,30.016 669.410273,31.22 L657.659273,105.802 L714.249273,105.802 L714.249273,105.787 C714.410273,105.794 714.568273,105.802 714.741273,105.802 C718.878273,105.802 722.250273,105.351 725.040273,104.313 C726.434273,103.794 727.684273,103.129 728.810273,102.298 C729.373273,101.884 729.905273,101.426 730.410273,100.927 C734.951273,96.431 737.231273,88.43 739.322273,75.346 C739.328273,75.312 739.331273,75.282 739.337273,75.25 C739.642273,73.311 739.896273,71.474 740.130273,69.679 C740.203273,69.116 740.272273,68.557 740.338273,68.008 C740.412273,67.392 740.461273,66.821 740.525273,66.222 C742.136273,49.927 738.622273,44.525 724.454273,44.525 C723.419273,44.525 722.433273,44.554 721.490273,44.613 C708.297273,45.444 703.831273,52.303 700.461273,71.126 C700.220273,72.472 699.984273,73.877 699.752273,75.346 C699.483273,77.027 699.255273,78.6 699.052273,80.115 C698.993273,80.545 698.948273,80.946 698.895273,81.361 C698.757273,82.465 698.638273,83.528 698.540273,84.544 C698.502273,84.943 698.466273,85.334 698.434273,85.72 C698.344273,86.815 698.281273,87.856 698.246273,88.847 C698.238273,89.049 698.224273,89.269 698.219273,89.469 C698.161273,91.88 698.289273,93.972 698.621273,95.782 C698.649273,95.941 698.686273,96.089 698.717273,96.246 C698.874273,96.992 699.067273,97.689 699.301273,98.337 C699.346273,98.464 699.390273,98.594 699.439273,98.718 C700.039273,100.231 700.864273,101.478 701.963273,102.469 C702.263273,102.738 702.586273,102.987 702.925273,103.22 L679.436273,103.22 C679.393273,102.969 679.343273,102.727 679.305273,102.471 L679.304273,102.471 C679.304273,102.467 679.304273,102.462 679.303273,102.459 C679.259273,102.17 679.236273,101.854 679.198273,101.558 C679.083273,100.634 678.995273,99.671 678.934273,98.674 C678.908273,98.258 678.879273,97.845 678.862273,97.419 C678.816273,96.174 678.804273,94.876 678.832273,93.518 C678.840273,93.114 678.861273,92.69 678.876273,92.276 C678.920273,91.042 678.991273,89.765 679.092273,88.441 C679.117273,88.109 679.134273,87.79 679.162273,87.452 C679.299273,85.836 679.483273,84.137 679.698273,82.382 C679.750273,81.957 679.807273,81.518 679.863273,81.084 C680.104273,79.238 680.369273,77.344 680.687273,75.346 C681.046273,73.067 681.423273,70.889 681.819273,68.808 C687.040273,41.397 695.809273,30.748 717.267273,28.554 C720.250273,28.25 723.472273,28.103 726.971273,28.103 C726.972273,28.103 726.972273,28.103 726.972273,28.103 C747.994273,28.103 757.680273,33.202 759.811273,48.236 C760.779273,55.067 760.187273,63.953 758.389273,75.346 Z M894.023273,31.336 L866.923273,108.56 C863.472273,118.182 861.113273,121.41 854.499273,122.41 C852.379273,122.733 849.831273,122.828 846.659273,122.828 C831.670273,122.828 830.350273,121.267 829.392273,108.56 L825.794273,63.232 L825.794273,63.231 L807.928273,108.56 C804.255273,117.613 802.201273,120.996 795.961273,122.202 C793.442273,122.687 790.260273,122.829 785.985273,122.829 C772.914273,122.829 770.756273,121.267 770.396273,108.56 L767.638273,31.337 C767.638273,29.899 768.238273,29.417 769.557273,29.417 L785.385273,29.417 C786.464273,29.417 786.704273,29.899 786.824273,31.337 L788.895273,100.572 L788.895273,100.571 C789.054273,103.091 789.563273,103.641 791.021273,103.641 C792.939273,103.641 793.419273,103.042 794.618273,100.043 L820.758273,34.576 C821.358273,33.132 822.437273,32.657 823.516273,32.657 L837.665273,32.657 C838.519273,32.657 839.279273,32.977 839.626273,33.817 C839.718273,34.038 839.799273,34.274 839.824273,34.576 L845.220273,100.043 C845.460273,103.042 845.819273,103.641 847.738273,103.641 C849.297273,103.641 849.896273,103.042 850.976273,100.043 L874.838273,31.336 C875.317273,29.898 875.677273,29.417 876.756273,29.417 L892.584273,29.417 C893.903273,29.417 894.383273,29.898 894.023273,31.336 Z M362.708273,31.219 L357.192273,120.311 C357.192273,121.632 356.353273,122.23 355.154273,122.23 L339.926273,122.23 C338.726273,122.23 338.366273,121.632 338.366273,120.311 L342.324273,62.756 L311.986273,117.551 C311.386273,118.749 310.428273,119.348 309.229273,119.348 L297.837273,119.348 C296.758273,119.348 296.038273,118.749 295.560273,117.551 L282.851273,62.767 L282.848273,62.755 L268.339273,120.31 C268.212273,121.009 267.974273,121.492 267.612273,121.807 C267.288273,122.085 266.865273,122.23 266.301273,122.23 L251.073273,122.23 C249.874273,122.23 249.273273,121.632 249.514273,120.31 L272.296273,31.336 C272.537273,30.138 272.897273,29.417 274.095273,29.417 L288.605273,29.417 C291.236273,29.417 292.726273,29.895 293.682273,31.379 C294.120273,32.059 294.457273,32.928 294.720273,34.095 L307.790273,92.489 L339.326273,34.095 C341.485273,30.256 343.043273,29.299 346.880273,29.299 L361.389273,29.299 C362.376273,29.299 362.682273,30.684 362.682273,30.684 C362.682273,30.684 362.708273,31.029 362.708273,31.219 Z M501.706273,31.219 L499.667273,44.049 C499.547273,45.246 498.708273,45.845 497.509273,45.845 L472.448273,45.845 L460.696273,120.31 C460.457273,121.632 459.738273,122.23 458.538273,122.23 L443.309273,122.23 C442.111273,122.23 441.631273,121.632 441.870273,120.31 L453.622273,45.845 L394.820273,45.845 L391.224273,68.507 L391.224273,68.508 L430.555273,68.508 C431.754273,68.508 432.353273,69.106 432.234273,70.31 L430.196273,82.542 C430.076273,83.738 429.236273,84.338 428.038273,84.338 L388.706273,84.338 L385.349273,105.801 L428.397273,105.801 C429.596273,105.801 430.076273,106.4 429.955273,107.597 L427.797273,120.428 C427.676273,121.632 426.958273,122.23 425.759273,122.23 L365.683273,122.23 C364.484273,122.23 364.004273,121.632 364.124273,120.31 L378.273273,31.219 C378.393273,30.015 379.112273,29.417 380.313273,29.417 L500.147273,29.417 C501.346273,29.417 501.826273,30.015 501.706273,31.219 Z M629.471273,70.426 L627.433273,82.659 C627.313273,83.856 626.473273,84.454 625.275273,84.454 L588.223273,84.454 L582.466273,120.311 C582.347273,121.632 581.627273,122.23 580.428273,122.23 L565.200273,122.23 C564.001273,122.23 563.522273,121.632 563.640273,120.311 L577.790273,31.219 C577.910273,30.016 578.629273,29.417 579.828273,29.417 L643.004273,29.417 C644.202273,29.417 644.802273,30.016 644.682273,31.219 L642.644273,44.05 C642.403273,45.247 641.685273,45.846 640.486273,45.846 L594.337273,45.846 L590.741273,68.631 L627.793273,68.631 C628.991273,68.631 629.592273,69.23 629.471273,70.426 Z M388.706273,84.338 L388.712273,84.338 L388.309273,86.876 L388.706273,84.338 Z M510.726273,79.783 L524.396273,48.006 C525.036273,46.466 525.443273,45.589 525.990273,45.096 C526.465273,44.667 527.044273,44.525 527.993273,44.525 C530.391273,44.525 530.391273,45.124 530.751273,48.006 L534.348273,79.783 L510.726273,79.783 Z M542.334273,29.886 C539.756273,28.905 536.043273,28.702 530.511273,28.702 C516.601273,28.702 513.963273,30.016 508.208273,43.087 L474.633273,120.311 C474.154273,121.749 474.513273,122.23 475.832273,122.23 L491.060273,122.23 C492.259273,122.23 492.500273,121.749 493.099273,120.311 L504.011273,95.372 L536.026273,95.372 L539.024273,120.311 C539.144273,121.749 539.144273,122.23 540.344273,122.23 L555.572273,122.23 C556.891273,122.23 557.490273,121.749 557.490273,120.311 L548.617273,43.087 C547.658273,35.042 546.460273,31.458 542.334273,29.886 L542.334273,29.886 Z"),L(l,"id","Fill-2"),L(l,"fill","#333333"),L(r,"id","metaflow_logo_horizontal"),L(r,"transform","translate(92.930727, 93.190000)"),L(o,"id","Metaflow_Logo_Horizontal_TwoColor_Dark_RGB"),L(o,"transform","translate(-92.000000, -93.000000)"),L(s,"id","Page-1"),L(s,"stroke","none"),L(s,"stroke-width","1"),L(s,"fill","none"),L(s,"fill-rule","evenodd"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),L(e,"width","896px"),L(e,"height","152px"),L(e,"viewBox","0 0 896 152"),L(e,"version","1.1")},m(t,c){y(t,e,c),x(e,n),x(n,i),x(e,s),x(s,o),x(o,r),x(r,a),x(r,l)},d(t){t&&v(e)}}}function kt(t){let e,n,i;return{c(){e=w("svg"),n=w("path"),i=w("path"),L(n,"fill-rule","evenodd"),L(n,"clip-rule","evenodd"),L(n,"d","M223.991 66.33C223.516 61.851 222.687 57.512 221.506 53.33C220.326 49.148 218.796 45.122 216.917 41.271C212.846 32.921 207.255 25.587 200.269 19.422C199.271 18.541 198.244 17.684 197.19 16.851C191.256 12.166 184.482 8.355 177.254 5.55C174.157 4.347 170.976 3.33 167.742 2.508C161.274 0.863 154.594 0 147.944 0C141.756 0 135.333 0.576 128.688 1.722C127.026 2.01 125.351 2.332 123.662 2.69C120.284 3.406 116.852 4.265 113.366 5.267C104.651 7.769 95.6025 11.161 86.2445 15.433C78.7595 18.851 71.0765 22.832 63.2075 27.373C47.9765 36.162 35.7375 44.969 29.3595 49.791C29.0695 50.01 28.7925 50.221 28.5265 50.423C26.1385 52.244 24.7525 53.367 24.5665 53.519L0.549511 73.065C0.191511 73.356 0.00751099 73.773 0.000238261 74.194C-0.00348901 74.403 0.036511 74.614 0.120511 74.811C0.205511 75.008 0.334511 75.189 0.508511 75.341L11.7615 85.195C12.1695 85.552 12.7255 85.651 13.2165 85.487C13.3795 85.432 13.5365 85.348 13.6765 85.234L35.8495 67.382C36.0425 67.224 37.6155 65.949 40.3255 63.903C44.1195 61.036 50.1425 56.656 57.7295 51.711C62.0645 48.884 66.9105 45.873 72.1415 42.854C100.865 26.278 126.368 17.874 147.944 17.874C148.367 17.874 148.791 17.892 149.214 17.902C149.656 17.911 150.097 17.911 150.539 17.93C153.77 18.068 156.996 18.463 160.171 19.097C164.932 20.049 169.578 21.542 173.954 23.524C178.329 25.505 182.434 27.975 186.113 30.88C186.772 31.4 187.407 31.94 188.036 32.485C188.914 33.245 189.772 34.023 190.592 34.83C191.999 36.217 193.318 37.673 194.549 39.195C196.396 41.479 198.043 43.912 199.481 46.485C199.961 47.342 200.418 48.216 200.851 49.105C201.113 49.642 201.344 50.196 201.588 50.743C202.232 52.185 202.835 53.649 203.355 55.158C203.713 56.198 204.042 57.255 204.341 58.326C205.837 63.683 206.591 69.417 206.591 75.469C206.591 81.221 205.893 86.677 204.542 91.804C203.618 95.308 202.398 98.662 200.851 101.833C200.418 102.722 199.961 103.595 199.481 104.453C197.563 107.884 195.276 111.066 192.637 113.976C190.658 116.159 188.481 118.189 186.114 120.058C184.554 121.29 182.91 122.432 181.209 123.503C180.314 124.067 179.401 124.609 178.471 125.126C177.463 125.688 176.443 126.232 175.399 126.737C166.962 130.823 157.424 133.064 147.944 133.064C126.368 133.064 100.865 124.659 72.1415 108.084C70.5385 107.159 68.4385 105.886 66.3075 104.575C65.0295 103.788 63.7405 102.986 62.5415 102.237C59.3445 100.238 56.7885 98.61 56.7885 98.61C61.8365 93.901 69.3235 87.465 78.6475 81.047C80.0095 80.11 81.4195 79.174 82.8575 78.243C84.1055 77.436 85.3715 76.63 86.6735 75.835C88.2045 74.9 89.7805 73.981 91.3825 73.074C93.0485 72.131 94.7515 71.207 96.4905 70.307C111.474 62.55 129.095 56.602 147.944 56.602C151.751 56.602 157.746 57.825 162.115 61.276C162.301 61.422 162.49 61.578 162.678 61.74C163.338 62.305 164.007 62.966 164.635 63.78C164.958 64.198 165.27 64.657 165.565 65.162C166.007 65.92 166.41 66.782 166.751 67.775C166.892 68.185 167.017 68.627 167.135 69.083C167.587 70.833 167.864 72.924 167.864 75.469C167.864 78.552 167.461 80.974 166.825 82.92C166.579 83.674 166.301 84.363 165.993 84.983C165.856 85.259 165.712 85.524 165.565 85.776C165.377 86.099 165.179 86.396 164.978 86.682C164.632 87.175 164.27 87.618 163.901 88.018C163.731 88.202 163.56 88.379 163.388 88.546C162.963 88.96 162.535 89.331 162.115 89.662C157.746 93.112 151.751 94.337 147.944 94.337C144.486 94.337 140.683 93.926 136.59 93.121C133.861 92.584 131.004 91.871 128.034 90.987C123.58 89.662 118.874 87.952 113.971 85.872C113.769 85.786 113.553 85.747 113.337 85.753C113.123 85.76 112.909 85.813 112.714 85.912C106.991 88.816 101.642 91.995 96.7465 95.223C96.6235 95.304 96.5185 95.397 96.4305 95.5C95.8125 96.22 96.0175 97.397 96.9495 97.822L102.446 100.328C104.607 101.314 106.738 102.238 108.836 103.102C110.935 103.966 113.002 104.77 115.036 105.511C118.087 106.624 121.065 107.599 123.966 108.436C127.835 109.551 131.568 110.421 135.158 111.043C139.647 111.82 143.913 112.211 147.944 112.211C148.368 112.211 148.924 112.201 149.592 112.169C149.926 112.153 150.288 112.131 150.675 112.102C155.713 111.724 165.056 110.114 173.191 103.691C173.548 103.41 173.87 103.105 174.211 102.813C175.325 101.86 176.382 100.866 177.334 99.8C177.471 99.648 177.591 99.485 177.725 99.331C181.301 95.167 183.7 90.185 184.876 84.406C185.445 81.609 185.738 78.631 185.738 75.469C185.738 63.315 181.517 53.82 173.191 47.247C167.051 42.399 160.229 40.299 155.084 39.395C153.893 39.186 152.791 39.037 151.81 38.938C150.117 38.766 148.775 38.727 147.944 38.727C133.457 38.727 118.52 41.679 103.546 47.5C99.1225 49.22 94.6915 51.191 90.2705 53.403C88.7975 54.141 87.3245 54.905 85.8545 55.696C83.5095 56.957 81.1725 58.303 78.8385 59.697C77.3925 60.562 75.9495 61.451 74.5085 62.366C72.4425 63.678 70.3805 65.023 68.3305 66.437C63.8375 69.535 59.7425 72.63 56.0905 75.567C54.8735 76.547 53.7055 77.508 52.5885 78.446C48.1225 82.2 44.4755 85.581 41.7605 88.226C38.3035 91.593 36.3595 93.766 36.1635 93.986L35.8285 94.362L32.0335 98.61L30.6435 100.164C30.4965 100.329 30.3935 100.517 30.3315 100.715C30.1485 101.307 30.3475 101.981 30.8885 102.368L37.2815 106.938L37.4865 107.083L37.6925 107.228C39.8735 108.766 42.0705 110.277 44.2795 111.758C45.8425 112.807 47.4105 113.84 48.9835 114.858C51.5305 116.508 54.0905 118.103 56.6545 119.665C57.8415 120.388 59.0285 121.101 60.2165 121.804C61.2145 122.394 62.2105 122.989 63.2075 123.565C76.9775 131.512 90.1805 137.744 102.749 142.242C104.545 142.884 106.327 143.491 108.097 144.063C111.636 145.206 115.122 146.207 118.554 147.067C121.987 147.925 125.365 148.642 128.688 149.215C135.333 150.362 141.756 150.938 147.944 150.938C154.594 150.938 161.274 150.074 167.742 148.43C174.21 146.786 180.466 144.361 186.266 141.238C190.134 139.156 193.799 136.764 197.19 134.087C200.353 131.589 203.265 128.872 205.912 125.949C207.678 124 209.326 121.96 210.855 119.831C211.619 118.766 212.354 117.68 213.058 116.571C214.467 114.356 215.754 112.053 216.917 109.667C220.702 101.906 223.074 93.439 224.009 84.406C224.311 81.485 224.466 78.505 224.466 75.469C224.466 72.364 224.307 69.316 223.991 66.33Z"),L(n,"fill","#146EE6"),L(i,"fill-rule","evenodd"),L(i,"clip-rule","evenodd"),L(i,"d","M758.39 75.346C752.633 111.56 742.682 122.23 712.103 122.23C710.848 122.23 709.641 122.207 708.465 122.17C708.322 122.191 708.192 122.23 708.029 122.23H637.995C636.796 122.23 636.316 121.632 636.436 120.311L650.586 31.22C650.705 30.016 651.425 29.417 652.624 29.417H667.853C669.051 29.417 669.531 30.016 669.411 31.22L657.66 105.802H714.25V105.787C714.411 105.794 714.569 105.802 714.742 105.802C718.879 105.802 722.251 105.351 725.041 104.313C726.435 103.794 727.685 103.129 728.811 102.298C729.374 101.884 729.906 101.426 730.411 100.927C734.952 96.431 737.232 88.43 739.323 75.346C739.329 75.312 739.332 75.282 739.338 75.25C739.643 73.311 739.896 71.474 740.13 69.679C740.203 69.116 740.273 68.557 740.339 68.008C740.413 67.392 740.462 66.821 740.526 66.222C742.137 49.927 738.623 44.525 724.455 44.525C723.42 44.525 722.434 44.554 721.491 44.613C708.298 45.444 703.831 52.303 700.461 71.126C700.22 72.472 699.985 73.877 699.753 75.346C699.484 77.027 699.255 78.6 699.052 80.115C698.993 80.545 698.949 80.946 698.896 81.361C698.758 82.465 698.639 83.528 698.541 84.544C698.503 84.943 698.467 85.334 698.435 85.72C698.345 86.815 698.282 87.856 698.247 88.847C698.239 89.049 698.225 89.269 698.22 89.469C698.162 91.88 698.29 93.972 698.622 95.782C698.65 95.941 698.687 96.089 698.718 96.246C698.875 96.992 699.068 97.689 699.302 98.337C699.347 98.464 699.391 98.594 699.44 98.718C700.04 100.231 700.865 101.478 701.964 102.469C702.264 102.738 702.587 102.987 702.926 103.22H679.437C679.394 102.969 679.344 102.727 679.306 102.471H679.305C679.305 102.467 679.305 102.462 679.304 102.459C679.26 102.17 679.237 101.854 679.199 101.558C679.084 100.634 678.996 99.671 678.935 98.674C678.909 98.258 678.879 97.845 678.862 97.419C678.816 96.174 678.805 94.876 678.833 93.518C678.841 93.114 678.862 92.69 678.877 92.276C678.921 91.042 678.992 89.765 679.093 88.441C679.118 88.109 679.135 87.79 679.163 87.452C679.3 85.836 679.484 84.137 679.699 82.382C679.751 81.957 679.808 81.518 679.864 81.084C680.105 79.238 680.37 77.344 680.688 75.346C681.046 73.067 681.424 70.889 681.82 68.808C687.041 41.397 695.81 30.748 717.268 28.554C720.251 28.25 723.472 28.103 726.971 28.103C726.972 28.103 726.973 28.103 726.973 28.103C747.995 28.103 757.681 33.202 759.812 48.236C760.78 55.067 760.188 63.953 758.39 75.346ZM894.023 31.336L866.924 108.56C863.473 118.182 861.114 121.41 854.5 122.41C852.38 122.733 849.832 122.828 846.66 122.828C831.671 122.828 830.351 121.267 829.393 108.56L825.794 63.232V63.231L807.929 108.56C804.256 117.613 802.201 120.996 795.961 122.202C793.442 122.687 790.261 122.829 785.986 122.829C772.915 122.829 770.757 121.267 770.397 108.56L767.638 31.337C767.638 29.899 768.238 29.417 769.557 29.417H785.385C786.464 29.417 786.705 29.899 786.825 31.337L788.896 100.572V100.571C789.055 103.091 789.564 103.641 791.022 103.641C792.94 103.641 793.42 103.042 794.619 100.043L820.759 34.576C821.359 33.132 822.438 32.657 823.517 32.657H837.666C838.52 32.657 839.28 32.977 839.627 33.817C839.719 34.038 839.8 34.274 839.825 34.576L845.221 100.043C845.461 103.042 845.82 103.641 847.739 103.641C849.298 103.641 849.897 103.042 850.977 100.043L874.839 31.336C875.318 29.898 875.678 29.417 876.757 29.417H892.585C893.904 29.417 894.383 29.898 894.023 31.336ZM362.709 31.219L357.193 120.311C357.193 121.632 356.354 122.23 355.155 122.23H339.927C338.727 122.23 338.367 121.632 338.367 120.311L342.325 62.756L311.987 117.551C311.387 118.749 310.429 119.348 309.23 119.348H297.838C296.759 119.348 296.039 118.749 295.561 117.551L282.852 62.767L282.849 62.755L268.34 120.31C268.213 121.009 267.975 121.492 267.613 121.807C267.289 122.085 266.866 122.23 266.302 122.23H251.074C249.875 122.23 249.274 121.632 249.515 120.31L272.297 31.336C272.538 30.138 272.898 29.417 274.096 29.417H288.606C291.237 29.417 292.727 29.895 293.683 31.379C294.121 32.059 294.458 32.928 294.721 34.095L307.791 92.489L339.327 34.095C341.486 30.256 343.044 29.299 346.881 29.299H361.39C362.377 29.299 362.683 30.684 362.683 30.684C362.683 30.684 362.709 31.029 362.709 31.219ZM501.707 31.219L499.668 44.049C499.548 45.246 498.709 45.845 497.51 45.845H472.449L460.697 120.31C460.458 121.632 459.739 122.23 458.539 122.23H443.31C442.112 122.23 441.632 121.632 441.871 120.31L453.623 45.845H394.821L391.225 68.507V68.508H430.556C431.755 68.508 432.354 69.106 432.235 70.31L430.197 82.542C430.077 83.738 429.237 84.338 428.039 84.338H388.707L385.35 105.801H428.398C429.597 105.801 430.077 106.4 429.956 107.597L427.798 120.428C427.677 121.632 426.959 122.23 425.76 122.23H365.684C364.485 122.23 364.005 121.632 364.125 120.31L378.274 31.219C378.394 30.015 379.113 29.417 380.314 29.417H500.148C501.347 29.417 501.827 30.015 501.707 31.219ZM629.471 70.426L627.434 82.659C627.314 83.856 626.474 84.454 625.276 84.454H588.224L582.466 120.311C582.347 121.632 581.628 122.23 580.429 122.23H565.201C564.002 122.23 563.523 121.632 563.641 120.311L577.791 31.219C577.911 30.016 578.629 29.417 579.828 29.417H643.005C644.203 29.417 644.802 30.016 644.682 31.219L642.645 44.05C642.404 45.247 641.686 45.846 640.487 45.846H594.338L590.742 68.631H627.794C628.992 68.631 629.592 69.23 629.471 70.426ZM388.707 84.338H388.713L388.31 86.876L388.707 84.338ZM510.727 79.783L524.397 48.006C525.037 46.466 525.444 45.589 525.991 45.096C526.466 44.667 527.045 44.525 527.994 44.525C530.392 44.525 530.392 45.124 530.752 48.006L534.349 79.783H510.727ZM542.335 29.886C539.757 28.905 536.044 28.702 530.512 28.702C516.602 28.702 513.964 30.016 508.209 43.087L474.634 120.311C474.155 121.749 474.514 122.23 475.833 122.23H491.061C492.26 122.23 492.501 121.749 493.1 120.311L504.012 95.372H536.026L539.025 120.311C539.145 121.749 539.145 122.23 540.345 122.23H555.573C556.892 122.23 557.491 121.749 557.491 120.311L548.617 43.087C547.658 35.042 546.461 31.458 542.335 29.886Z"),L(i,"fill","white"),L(e,"width","895"),L(e,"height","151"),L(e,"viewBox","0 0 895 151"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){y(t,e,s),x(e,n),x(e,i)},d(t){t&&v(e)}}}function Ct(e){let n;function i(t,e){return t[0]?kt:wt}let s=i(e),o=s(e);return{c(){o.c(),n=M()},m(t,e){o.m(t,e),y(t,n,e)},p(t,[e]){s!==(s=i(t))&&(o.d(1),o=s(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o.d(t),t&&v(n)}}}function Mt(t,e,n){let{light:i=!1}=e;return t.$$set=t=>{"light"in t&&n(0,i=t.light)},[i]}class St extends ft{constructor(t){super(),dt(this,t,Mt,Ct,r,{light:0})}}function Lt(t){let e,n,i,s,o,r;s=new St({});const a=t[1].default,l=u(a,t,t[0],null);return{c(){e=$("aside"),n=$("div"),i=$("div"),lt(s.$$.fragment),o=C(),l&&l.c(),L(i,"class","logoContainer"),L(e,"class","svelte-1okdv0e")},m(t,a){y(t,e,a),x(e,n),x(n,i),ct(s,i,null),x(n,o),l&&l.m(n,null),r=!0},p(t,[e]){l&&l.p&&(!r||1&e)&&p(l,a,t,t[0],r?f(a,t[0],e,null):g(t[0]),null)},i(t){r||(nt(s.$$.fragment,t),nt(l,t),r=!0)},o(t){it(s.$$.fragment,t),it(l,t),r=!1},d(t){t&&v(e),ht(s),l&&l.d(t)}}}function Dt(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}class Ot extends ft{constructor(t){super(),dt(this,t,Dt,Lt,r,{})}}function Pt(t){let e,n;return{c(){e=$("td"),n=k(t[0]),L(e,"class","idCell svelte-pt8vzv"),L(e,"data-component","artifact-row")},m(t,i){y(t,e,i),x(e,n)},p(t,e){1&e&&O(n,t[0])},d(t){t&&v(e)}}}function At(e){let n,i,s,o,r,a,l=e[1].data+"",c=null!==e[0]&&Pt(e);return{c(){n=$("tr"),c&&c.c(),i=C(),s=$("td"),o=$("code"),r=k(l),L(o,"class","mono"),L(s,"class","codeCell svelte-pt8vzv"),L(s,"colspan",a=null===e[0]?2:1),L(s,"data-component","artifact-row")},m(t,a){y(t,n,a),c&&c.m(n,null),x(n,i),x(n,s),x(s,o),x(o,r),e[3](o)},p(t,[e]){null!==t[0]?c?c.p(t,e):(c=Pt(t),c.c(),c.m(n,i)):c&&(c.d(1),c=null),2&e&&l!==(l=t[1].data+"")&&O(r,l),1&e&&a!==(a=null===t[0]?2:1)&&L(s,"colspan",a)},i:t,o:t,d(t){t&&v(n),c&&c.d(),e[3](null)}}}function Et(t,e,n){let i,{id:s}=e,{artifact:o}=e;return t.$$set=t=>{"id"in t&&n(0,s=t.id),"artifact"in t&&n(1,o=t.artifact)},t.$$.update=()=>{4&t.$$.dirty&&i&&function(){var t,e;i&&!i.classList.contains("language-python")&&"undefined"!=typeof window&&(null===(e=null===(t=window)||void 0===t?void 0:t.Prism)||void 0===e||e.highlightElement(i))}()},[s,o,i,function(t){B[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}class Rt extends ft{constructor(t){super(),dt(this,t,Et,At,r,{id:0,artifact:1})}}function Tt(t,e,n){const i=t.slice();return i[3]=e[n],i}function zt(e){let n,i;return n=new Rt({props:{id:e[3].name,artifact:e[3]}}),{c(){lt(n.$$.fragment)},m(t,e){ct(n,t,e),i=!0},p:t,i(t){i||(nt(n.$$.fragment,t),i=!0)},o(t){it(n.$$.fragment,t),i=!1},d(t){ht(n,t)}}}function It(t){let e,n,i,s=t[0],o=[];for(let e=0;e<s.length;e+=1)o[e]=zt(Tt(t,s,e));const r=t=>it(o[t],1,1,(()=>{o[t]=null}));return{c(){e=$("div"),n=$("table");for(let t=0;t<o.length;t+=1)o[t].c();L(n,"class","language-python svelte-ubs992"),L(e,"class","container svelte-ubs992"),L(e,"data-component","artifacts")},m(t,s){y(t,e,s),x(e,n);for(let t=0;t<o.length;t+=1)o[t].m(n,null);i=!0},p(t,[e]){if(1&e){let i;for(s=t[0],i=0;i<s.length;i+=1){const r=Tt(t,s,i);o[i]?(o[i].p(r,e),nt(o[i],1)):(o[i]=zt(r),o[i].c(),nt(o[i],1),o[i].m(n,null))}for(tt(),i=s.length;i<o.length;i+=1)r(i);et()}},i(t){if(!i){for(let t=0;t<s.length;t+=1)nt(o[t]);i=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)it(o[t]);i=!1},d(t){t&&v(e),_(o,t)}}}function Ft(t,e,n){let{componentData:i}=e;const{data:s}=i,o=s.sort(((t,e)=>{if(t.name&&e.name){if(t.name>e.name)return 1;if(t.name<e.name)return-1}return 0}));return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},[o,i]}class jt extends ft{constructor(t){super(),dt(this,t,Ft,It,r,{componentData:1})}}
|
1
|
+
var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function i(){return Object.create(null)}function s(t){t.forEach(n)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a,l;function c(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}function h(e,n,i){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function u(t,e,n,i){if(t){const s=d(t,e,n,i);return t[0](s)}}function d(t,n,i,s){return t[1]&&s?e(i.ctx.slice(),t[1](s(n))):i.ctx}function f(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],n=Math.max(e.dirty.length,s.length);for(let i=0;i<n;i+=1)t[i]=e.dirty[i]|s[i];return t}return e.dirty|s}return e.dirty}function p(t,e,n,i,s,o){if(s){const r=d(e,n,i,o);t.p(r,s)}}function g(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function m(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function b(t,e){const n={};e=new Set(e);for(const i in t)e.has(i)||"$"===i[0]||(n[i]=t[i]);return n}function x(t,e){t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function _(t){t.parentNode&&t.parentNode.removeChild(t)}function v(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function $(t){return document.createElement(t)}function k(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function w(t){return document.createTextNode(t)}function C(){return w(" ")}function M(){return w("")}function S(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function L(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function D(t,e){for(const n in e)L(t,n,e[n])}function P(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function O(t,e,n,i){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function A(t,e,n){t.classList[n?"add":"remove"](e)}class E{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.is_svg?this.e=k(e.nodeName):this.e=$(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)y(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(_)}}function T(t,e){return new t(e)}function R(t){l=t}function z(){if(!l)throw new Error("Function called outside component initialization");return l}function I(t){z().$$.on_mount.push(t)}function F(){const t=z();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const o=function(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,n,i,e),s}(e,n,{cancelable:i});return s.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}function N(t,e){return z().$$.context.set(t,e),e}function j(t){return z().$$.context.get(t)}const B=[],V=[];let H=[];const W=[],U=Promise.resolve();let q=!1;function Y(t){H.push(t)}function Z(t){W.push(t)}const X=new Set;let G=0;function K(){if(0!==G)return;const t=l;do{try{for(;G<B.length;){const t=B[G];G++,R(t),J(t.$$)}}catch(t){throw B.length=0,G=0,t}for(R(null),B.length=0,G=0;V.length;)V.pop()();for(let t=0;t<H.length;t+=1){const e=H[t];X.has(e)||(X.add(e),e())}H.length=0}while(B.length);for(;W.length;)W.pop()();q=!1,X.clear(),R(t)}function J(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}const Q=new Set;let tt;function et(){tt={r:0,c:[],p:tt}}function nt(){tt.r||s(tt.c),tt=tt.p}function it(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function st(t,e,n,i){if(t&&t.o){if(Q.has(t))return;Q.add(t),tt.c.push((()=>{Q.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}else i&&i()}const ot="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function rt(t,e){const n={},i={},s={$$scope:1};let o=t.length;for(;o--;){const r=t[o],a=e[o];if(a){for(const t in r)t in a||(i[t]=1);for(const t in a)s[t]||(n[t]=a[t],s[t]=1);t[o]=a}else for(const t in r)s[t]=1}for(const t in i)t in n||(n[t]=void 0);return n}function at(t){return"object"==typeof t&&null!==t?t:{}}function lt(t,e,n){const i=t.$$.props[e];void 0!==i&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function ct(t){t&&t.c()}function ht(t,e,i,r){const{fragment:a,after_update:l}=t.$$;a&&a.m(e,i),r||Y((()=>{const e=t.$$.on_mount.map(n).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),l.forEach(Y)}function ut(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];H.forEach((i=>-1===t.indexOf(i)?e.push(i):n.push(i))),n.forEach((t=>t())),H=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function dt(t,e){-1===t.$$.dirty[0]&&(B.push(t),q||(q=!0,U.then(K)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ft(e,n,o,r,a,c,h,u=[-1]){const d=l;R(e);const f=e.$$={fragment:null,ctx:[],props:c,update:t,not_equal:a,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};h&&h(f.root);let p=!1;if(f.ctx=o?o(e,n.props||{},((t,n,...i)=>{const s=i.length?i[0]:n;return f.ctx&&a(f.ctx[t],f.ctx[t]=s)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](s),p&&dt(e,t)),n})):[],f.update(),p=!0,s(f.before_update),f.fragment=!!r&&r(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(_)}else f.fragment&&f.fragment.c();n.intro&&it(e.$$.fragment),ht(e,n.target,n.anchor,n.customElement),K()}R(d)}class pt{$destroy(){ut(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var gt,mt,bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};gt={exports:{}},mt=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},s={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof o?new o(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var i,o;switch(n=n||{},s.util.type(e)){case"Object":if(o=s.util.objId(e),n[o])return n[o];for(var r in i={},n[o]=i,e)e.hasOwnProperty(r)&&(i[r]=t(e[r],n));return i;case"Array":return o=s.util.objId(e),n[o]?n[o]:(i=[],n[o]=i,e.forEach((function(e,s){i[s]=t(e,n)})),i);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var i="no-"+e;t;){var s=t.classList;if(s.contains(e))return!0;if(s.contains(i))return!1;t=t.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(t,e){var n=s.util.clone(s.languages[t]);for(var i in e)n[i]=e[i];return n},insertBefore:function(t,e,n,i){var o=(i=i||s.languages)[t],r={};for(var a in o)if(o.hasOwnProperty(a)){if(a==e)for(var l in n)n.hasOwnProperty(l)&&(r[l]=n[l]);n.hasOwnProperty(a)||(r[a]=o[a])}var c=i[t];return i[t]=r,s.languages.DFS(s.languages,(function(e,n){n===c&&e!=t&&(this[e]=r)})),r},DFS:function t(e,n,i,o){o=o||{};var r=s.util.objId;for(var a in e)if(e.hasOwnProperty(a)){n.call(e,a,e[a],i||a);var l=e[a],c=s.util.type(l);"Object"!==c||o[r(l)]?"Array"!==c||o[r(l)]||(o[r(l)]=!0,t(l,n,a,o)):(o[r(l)]=!0,t(l,n,null,o))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var i={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),s.hooks.run("before-all-elements-highlight",i);for(var o,r=0;o=i.elements[r++];)s.highlightElement(o,!0===e,i.callback)},highlightElement:function(e,n,i){var o=s.util.getLanguage(e),r=s.languages[o];s.util.setLanguage(e,o);var a=e.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&s.util.setLanguage(a,o);var l={element:e,language:o,grammar:r,code:e.textContent};function c(t){l.highlightedCode=t,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),i&&i.call(l.element)}if(s.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return s.hooks.run("complete",l),void(i&&i.call(l.element));if(s.hooks.run("before-highlight",l),l.grammar)if(n&&t.Worker){var h=new Worker(s.filename);h.onmessage=function(t){c(t.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(s.highlight(l.code,l.grammar,l.language));else c(s.util.encode(l.code))},highlight:function(t,e,n){var i={code:t,grammar:e,language:n};return s.hooks.run("before-tokenize",i),i.tokens=s.tokenize(i.code,i.grammar),s.hooks.run("after-tokenize",i),o.stringify(s.util.encode(i.tokens),i.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var i in n)e[i]=n[i];delete e.rest}var h=new a;return l(h,h.head,t),function t(e,n,i,a,h,u){for(var d in i)if(i.hasOwnProperty(d)&&i[d]){var f=i[d];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(u&&u.cause==d+","+p)return;var g=f[p],m=g.inside,b=!!g.lookbehind,x=!!g.greedy,y=g.alias;if(x&&!g.pattern.global){var _=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,_+"g")}for(var v=g.pattern||g,$=a.next,k=h;$!==n.tail&&!(u&&k>=u.reach);k+=$.value.length,$=$.next){var w=$.value;if(n.length>e.length)return;if(!(w instanceof o)){var C,M=1;if(x){if(!(C=r(v,k,e,b))||C.index>=e.length)break;var S=C.index,L=C.index+C[0].length,D=k;for(D+=$.value.length;D<=S;)D+=($=$.next).value.length;if(k=D-=$.value.length,$.value instanceof o)continue;for(var P=$;P!==n.tail&&(D<L||"string"==typeof P.value);P=P.next)M++,D+=P.value.length;M--,w=e.slice(k,D),C.index-=k}else if(!(C=r(v,0,w,b)))continue;S=C.index;var O=C[0],A=w.slice(0,S),E=w.slice(S+O.length),T=k+w.length;u&&T>u.reach&&(u.reach=T);var R=$.prev;if(A&&(R=l(n,R,A),k+=A.length),c(n,R,M),$=l(n,R,new o(d,m?s.tokenize(O,m):O,y,O)),E&&l(n,$,E),1<M){var z={cause:d+","+p,reach:T};t(e,n,i,$.prev,k,z),u&&z.reach>u.reach&&(u.reach=z.reach)}}}}}}(t,h,e,h.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(h)},hooks:{all:{},add:function(t,e){var n=s.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=s.hooks.all[t];if(n&&n.length)for(var i,o=0;i=n[o++];)i(e)}},Token:o};function o(t,e,n,i){this.type=t,this.content=e,this.alias=n,this.length=0|(i||"").length}function r(t,e,n,i){t.lastIndex=e;var s=t.exec(n);if(s&&i&&s[1]){var o=s[1].length;s.index+=o,s[0]=s[0].slice(o)}return s}function a(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function l(t,e,n){var i=e.next,s={value:n,prev:e,next:i};return e.next=s,i.prev=s,t.length++,s}function c(t,e,n){for(var i=e.next,s=0;s<n&&i!==t.tail;s++)i=i.next;(e.next=i).prev=e,t.length-=s}if(t.Prism=s,o.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var i="";return e.forEach((function(e){i+=t(e,n)})),i}var o={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},r=e.alias;r&&(Array.isArray(r)?Array.prototype.push.apply(o.classes,r):o.classes.push(r)),s.hooks.run("wrap",o);var a="";for(var l in o.attributes)a+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+a+">"+o.content+"</"+o.tag+">"},!t.document)return t.addEventListener&&(s.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),i=n.language,o=n.code,r=n.immediateClose;t.postMessage(s.highlight(o,s.languages[i],i)),r&&t.close()}),!1)),s;var h=s.util.currentScript();function u(){s.manual||s.highlightAll()}if(h&&(s.filename=h.src,h.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var d=document.readyState;"loading"===d||"interactive"===d&&h&&h.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}),gt.exports&&(gt.exports=mt),void 0!==bt&&(bt.Prism=mt),mt.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},mt.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:mt.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp("\\b\\d{4}[-/]\\d{2}[-/]\\d{2}(?:T(?=\\d{1,2}:)|(?=\\s\\d{1,2}:))|\\b\\d{1,4}[-/ ](?:\\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\\d{2,4}T?\\b|\\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\\s{1,2}\\d{1,2}\\b","i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/},mt.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},mt.languages.python["string-interpolation"].inside.interpolation.inside.rest=mt.languages.python,mt.languages.py=mt.languages.python;const xt=[];function yt(e,n=t){let i;const s=new Set;function o(t){if(r(e,t)&&(e=t,i)){const t=!xt.length;for(const t of s)t[1](),xt.push(t,e);if(t){for(let t=0;t<xt.length;t+=2)xt[t][0](xt[t+1]);xt.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(r,a=t){const l=[r,a];return s.add(l),1===s.size&&(i=n(o)||t),r(e),()=>{s.delete(l),0===s.size&&i&&(i(),i=null)}}}}const _t=yt(void 0),vt=t=>{try{const e=JSON.parse(atob(window.__MF_DATA__[t]));_t.set(e)}catch(t){fetch("/card-example.json").then((t=>t.json())).then((t=>{_t.set(t)})).catch(console.error)}},$t=yt(void 0),kt=t=>{const e={};if(!t)return e;function n(t,i=[]){var s;if("page"===t.type){const i=[];e[t.title]=i,null===(s=null==t?void 0:t.contents)||void 0===s||s.forEach((t=>n(t,i)))}"section"===t.type&&t.title&&i.push(t.title)}return null==t||t.forEach((t=>n(t))),e},wt=(t,e)=>t/(e?parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px","")):16),Ct=(t,e)=>{var n;if(t&&e)return null===(n=(t=>{const e=t.split("/");return{flowname:e[0],runid:e[1],stepname:null==e?void 0:e[2],taskid:null==e?void 0:e[3]}})(t))||void 0===n?void 0:n[e]},Mt=t=>t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth;function St(t){let e,n,i,s,o,r,a,l;return{c(){e=k("svg"),n=k("title"),i=w("metaflow_logo_horizontal"),s=k("g"),o=k("g"),r=k("g"),a=k("path"),l=k("path"),L(a,"d","M223.990273,66.33 C223.515273,61.851 222.686273,57.512 221.505273,53.33 C220.325273,49.148 218.795273,45.122 216.916273,41.271 C212.845273,32.921 207.254273,25.587 200.268273,19.422 C199.270273,18.541 198.243273,17.684 197.189273,16.851 C191.255273,12.166 184.481273,8.355 177.253273,5.55 C174.156273,4.347 170.975273,3.33 167.741273,2.508 C161.273273,0.863 154.593273,0 147.943273,0 C141.755273,0 135.332273,0.576 128.687273,1.722 C127.025273,2.01 125.350273,2.332 123.661273,2.69 C120.283273,3.406 116.851273,4.265 113.365273,5.267 C104.650273,7.769 95.6022727,11.161 86.2442727,15.433 C78.7592727,18.851 71.0762727,22.832 63.2072727,27.373 C47.9762727,36.162 35.7372727,44.969 29.3592727,49.791 C29.0692727,50.01 28.7922727,50.221 28.5262727,50.423 C26.1382727,52.244 24.7522727,53.367 24.5662727,53.519 L0.549272727,73.065 C0.191272727,73.356 0.00727272727,73.773 0,74.194 C-0.00372727273,74.403 0.0362727273,74.614 0.120272727,74.811 C0.205272727,75.008 0.334272727,75.189 0.508272727,75.341 L11.7612727,85.195 C12.1692727,85.552 12.7252727,85.651 13.2162727,85.487 C13.3792727,85.432 13.5362727,85.348 13.6762727,85.234 L35.8492727,67.382 C36.0422727,67.224 37.6152727,65.949 40.3252727,63.903 C44.1192727,61.036 50.1422727,56.656 57.7292727,51.711 C62.0642727,48.884 66.9102727,45.873 72.1412727,42.854 C100.864273,26.278 126.367273,17.874 147.943273,17.874 C148.366273,17.874 148.790273,17.892 149.213273,17.902 C149.655273,17.911 150.096273,17.911 150.538273,17.93 C153.769273,18.068 156.995273,18.463 160.170273,19.097 C164.931273,20.049 169.577273,21.542 173.953273,23.524 C178.328273,25.505 182.433273,27.975 186.112273,30.88 C186.771273,31.4 187.406273,31.94 188.035273,32.485 C188.913273,33.245 189.771273,34.023 190.591273,34.83 C191.998273,36.217 193.317273,37.673 194.548273,39.195 C196.395273,41.479 198.042273,43.912 199.480273,46.485 C199.960273,47.342 200.417273,48.216 200.850273,49.105 C201.112273,49.642 201.343273,50.196 201.587273,50.743 C202.231273,52.185 202.834273,53.649 203.354273,55.158 C203.712273,56.198 204.041273,57.255 204.340273,58.326 C205.836273,63.683 206.590273,69.417 206.590273,75.469 C206.590273,81.221 205.892273,86.677 204.541273,91.804 C203.617273,95.308 202.397273,98.662 200.850273,101.833 C200.417273,102.722 199.960273,103.595 199.480273,104.453 C197.562273,107.884 195.275273,111.066 192.636273,113.976 C190.657273,116.159 188.480273,118.189 186.113273,120.058 C184.553273,121.29 182.909273,122.432 181.208273,123.503 C180.313273,124.067 179.400273,124.609 178.470273,125.126 C177.462273,125.688 176.442273,126.232 175.398273,126.737 C166.961273,130.823 157.423273,133.064 147.943273,133.064 C126.367273,133.064 100.864273,124.659 72.1412727,108.084 C70.5382727,107.159 68.4382727,105.886 66.3072727,104.575 C65.0292727,103.788 63.7402727,102.986 62.5412727,102.237 C59.3442727,100.238 56.7882727,98.61 56.7882727,98.61 C61.8362727,93.901 69.3232727,87.465 78.6472727,81.047 C80.0092727,80.11 81.4192727,79.174 82.8572727,78.243 C84.1052727,77.436 85.3712727,76.63 86.6732727,75.835 C88.2042727,74.9 89.7802727,73.981 91.3822727,73.074 C93.0482727,72.131 94.7512727,71.207 96.4902727,70.307 C111.473273,62.55 129.094273,56.602 147.943273,56.602 C151.750273,56.602 157.745273,57.825 162.114273,61.276 C162.300273,61.422 162.489273,61.578 162.677273,61.74 C163.337273,62.305 164.006273,62.966 164.634273,63.78 C164.957273,64.198 165.269273,64.657 165.564273,65.162 C166.006273,65.92 166.409273,66.782 166.750273,67.775 C166.891273,68.185 167.016273,68.627 167.134273,69.083 C167.586273,70.833 167.863273,72.924 167.863273,75.469 C167.863273,78.552 167.460273,80.974 166.824273,82.92 C166.578273,83.674 166.300273,84.363 165.992273,84.983 C165.855273,85.259 165.711273,85.524 165.564273,85.776 C165.376273,86.099 165.178273,86.396 164.977273,86.682 C164.631273,87.175 164.269273,87.618 163.900273,88.018 C163.730273,88.202 163.559273,88.379 163.387273,88.546 C162.962273,88.96 162.534273,89.331 162.114273,89.662 C157.745273,93.112 151.750273,94.337 147.943273,94.337 C144.485273,94.337 140.682273,93.926 136.589273,93.121 C133.860273,92.584 131.003273,91.871 128.033273,90.987 C123.579273,89.662 118.873273,87.952 113.970273,85.872 C113.768273,85.786 113.552273,85.747 113.336273,85.753 C113.122273,85.76 112.908273,85.813 112.713273,85.912 C106.990273,88.816 101.641273,91.995 96.7462727,95.223 C96.6232727,95.304 96.5182727,95.397 96.4302727,95.5 C95.8122727,96.22 96.0172727,97.397 96.9492727,97.822 L102.445273,100.328 C104.606273,101.314 106.737273,102.238 108.835273,103.102 C110.934273,103.966 113.001273,104.77 115.035273,105.511 C118.086273,106.624 121.064273,107.599 123.965273,108.436 C127.834273,109.551 131.567273,110.421 135.157273,111.043 C139.646273,111.82 143.912273,112.211 147.943273,112.211 C148.367273,112.211 148.923273,112.201 149.591273,112.169 C149.925273,112.153 150.287273,112.131 150.674273,112.102 C155.712273,111.724 165.055273,110.114 173.190273,103.691 C173.547273,103.41 173.869273,103.105 174.210273,102.813 C175.324273,101.86 176.381273,100.866 177.333273,99.8 C177.470273,99.648 177.590273,99.485 177.724273,99.331 C181.300273,95.167 183.699273,90.185 184.875273,84.406 C185.444273,81.609 185.737273,78.631 185.737273,75.469 C185.737273,63.315 181.516273,53.82 173.190273,47.247 C167.050273,42.399 160.228273,40.299 155.083273,39.395 C153.892273,39.186 152.790273,39.037 151.809273,38.938 C150.116273,38.766 148.774273,38.727 147.943273,38.727 C133.456273,38.727 118.519273,41.679 103.545273,47.5 C99.1222727,49.22 94.6912727,51.191 90.2702727,53.403 C88.7972727,54.141 87.3242727,54.905 85.8542727,55.696 C83.5092727,56.957 81.1722727,58.303 78.8382727,59.697 C77.3922727,60.562 75.9492727,61.451 74.5082727,62.366 C72.4422727,63.678 70.3802727,65.023 68.3302727,66.437 C63.8372727,69.535 59.7422727,72.63 56.0902727,75.567 C54.8732727,76.547 53.7052727,77.508 52.5882727,78.446 C48.1222727,82.2 44.4752727,85.581 41.7602727,88.226 C38.3032727,91.593 36.3592727,93.766 36.1632727,93.986 L35.8282727,94.362 L32.0332727,98.61 L30.6432727,100.164 C30.4962727,100.329 30.3932727,100.517 30.3312727,100.715 C30.1482727,101.307 30.3472727,101.981 30.8882727,102.368 L37.2812727,106.938 L37.4862727,107.083 L37.6922727,107.228 C39.8732727,108.766 42.0702727,110.277 44.2792727,111.758 C45.8422727,112.807 47.4102727,113.84 48.9832727,114.858 C51.5302727,116.508 54.0902727,118.103 56.6542727,119.665 C57.8412727,120.388 59.0282727,121.101 60.2162727,121.804 C61.2142727,122.394 62.2102727,122.989 63.2072727,123.565 C76.9772727,131.512 90.1802727,137.744 102.748273,142.242 C104.544273,142.884 106.326273,143.491 108.096273,144.063 C111.635273,145.206 115.121273,146.207 118.553273,147.067 C121.986273,147.925 125.364273,148.642 128.687273,149.215 C135.332273,150.362 141.755273,150.938 147.943273,150.938 C154.593273,150.938 161.273273,150.074 167.741273,148.43 C174.209273,146.786 180.465273,144.361 186.265273,141.238 C190.133273,139.156 193.798273,136.764 197.189273,134.087 C200.352273,131.589 203.264273,128.872 205.911273,125.949 C207.677273,124 209.325273,121.96 210.854273,119.831 C211.618273,118.766 212.353273,117.68 213.057273,116.571 C214.466273,114.356 215.753273,112.053 216.916273,109.667 C220.701273,101.906 223.073273,93.439 224.008273,84.406 C224.310273,81.485 224.465273,78.505 224.465273,75.469 C224.465273,72.364 224.306273,69.316 223.990273,66.33"),L(a,"id","Fill-1"),L(a,"fill","#146EE6"),L(l,"d","M758.389273,75.346 C752.632273,111.56 742.681273,122.23 712.102273,122.23 C710.847273,122.23 709.640273,122.207 708.464273,122.17 C708.321273,122.191 708.191273,122.23 708.028273,122.23 L637.994273,122.23 C636.795273,122.23 636.315273,121.632 636.435273,120.311 L650.585273,31.22 C650.704273,30.016 651.424273,29.417 652.623273,29.417 L667.852273,29.417 C669.050273,29.417 669.530273,30.016 669.410273,31.22 L657.659273,105.802 L714.249273,105.802 L714.249273,105.787 C714.410273,105.794 714.568273,105.802 714.741273,105.802 C718.878273,105.802 722.250273,105.351 725.040273,104.313 C726.434273,103.794 727.684273,103.129 728.810273,102.298 C729.373273,101.884 729.905273,101.426 730.410273,100.927 C734.951273,96.431 737.231273,88.43 739.322273,75.346 C739.328273,75.312 739.331273,75.282 739.337273,75.25 C739.642273,73.311 739.896273,71.474 740.130273,69.679 C740.203273,69.116 740.272273,68.557 740.338273,68.008 C740.412273,67.392 740.461273,66.821 740.525273,66.222 C742.136273,49.927 738.622273,44.525 724.454273,44.525 C723.419273,44.525 722.433273,44.554 721.490273,44.613 C708.297273,45.444 703.831273,52.303 700.461273,71.126 C700.220273,72.472 699.984273,73.877 699.752273,75.346 C699.483273,77.027 699.255273,78.6 699.052273,80.115 C698.993273,80.545 698.948273,80.946 698.895273,81.361 C698.757273,82.465 698.638273,83.528 698.540273,84.544 C698.502273,84.943 698.466273,85.334 698.434273,85.72 C698.344273,86.815 698.281273,87.856 698.246273,88.847 C698.238273,89.049 698.224273,89.269 698.219273,89.469 C698.161273,91.88 698.289273,93.972 698.621273,95.782 C698.649273,95.941 698.686273,96.089 698.717273,96.246 C698.874273,96.992 699.067273,97.689 699.301273,98.337 C699.346273,98.464 699.390273,98.594 699.439273,98.718 C700.039273,100.231 700.864273,101.478 701.963273,102.469 C702.263273,102.738 702.586273,102.987 702.925273,103.22 L679.436273,103.22 C679.393273,102.969 679.343273,102.727 679.305273,102.471 L679.304273,102.471 C679.304273,102.467 679.304273,102.462 679.303273,102.459 C679.259273,102.17 679.236273,101.854 679.198273,101.558 C679.083273,100.634 678.995273,99.671 678.934273,98.674 C678.908273,98.258 678.879273,97.845 678.862273,97.419 C678.816273,96.174 678.804273,94.876 678.832273,93.518 C678.840273,93.114 678.861273,92.69 678.876273,92.276 C678.920273,91.042 678.991273,89.765 679.092273,88.441 C679.117273,88.109 679.134273,87.79 679.162273,87.452 C679.299273,85.836 679.483273,84.137 679.698273,82.382 C679.750273,81.957 679.807273,81.518 679.863273,81.084 C680.104273,79.238 680.369273,77.344 680.687273,75.346 C681.046273,73.067 681.423273,70.889 681.819273,68.808 C687.040273,41.397 695.809273,30.748 717.267273,28.554 C720.250273,28.25 723.472273,28.103 726.971273,28.103 C726.972273,28.103 726.972273,28.103 726.972273,28.103 C747.994273,28.103 757.680273,33.202 759.811273,48.236 C760.779273,55.067 760.187273,63.953 758.389273,75.346 Z M894.023273,31.336 L866.923273,108.56 C863.472273,118.182 861.113273,121.41 854.499273,122.41 C852.379273,122.733 849.831273,122.828 846.659273,122.828 C831.670273,122.828 830.350273,121.267 829.392273,108.56 L825.794273,63.232 L825.794273,63.231 L807.928273,108.56 C804.255273,117.613 802.201273,120.996 795.961273,122.202 C793.442273,122.687 790.260273,122.829 785.985273,122.829 C772.914273,122.829 770.756273,121.267 770.396273,108.56 L767.638273,31.337 C767.638273,29.899 768.238273,29.417 769.557273,29.417 L785.385273,29.417 C786.464273,29.417 786.704273,29.899 786.824273,31.337 L788.895273,100.572 L788.895273,100.571 C789.054273,103.091 789.563273,103.641 791.021273,103.641 C792.939273,103.641 793.419273,103.042 794.618273,100.043 L820.758273,34.576 C821.358273,33.132 822.437273,32.657 823.516273,32.657 L837.665273,32.657 C838.519273,32.657 839.279273,32.977 839.626273,33.817 C839.718273,34.038 839.799273,34.274 839.824273,34.576 L845.220273,100.043 C845.460273,103.042 845.819273,103.641 847.738273,103.641 C849.297273,103.641 849.896273,103.042 850.976273,100.043 L874.838273,31.336 C875.317273,29.898 875.677273,29.417 876.756273,29.417 L892.584273,29.417 C893.903273,29.417 894.383273,29.898 894.023273,31.336 Z M362.708273,31.219 L357.192273,120.311 C357.192273,121.632 356.353273,122.23 355.154273,122.23 L339.926273,122.23 C338.726273,122.23 338.366273,121.632 338.366273,120.311 L342.324273,62.756 L311.986273,117.551 C311.386273,118.749 310.428273,119.348 309.229273,119.348 L297.837273,119.348 C296.758273,119.348 296.038273,118.749 295.560273,117.551 L282.851273,62.767 L282.848273,62.755 L268.339273,120.31 C268.212273,121.009 267.974273,121.492 267.612273,121.807 C267.288273,122.085 266.865273,122.23 266.301273,122.23 L251.073273,122.23 C249.874273,122.23 249.273273,121.632 249.514273,120.31 L272.296273,31.336 C272.537273,30.138 272.897273,29.417 274.095273,29.417 L288.605273,29.417 C291.236273,29.417 292.726273,29.895 293.682273,31.379 C294.120273,32.059 294.457273,32.928 294.720273,34.095 L307.790273,92.489 L339.326273,34.095 C341.485273,30.256 343.043273,29.299 346.880273,29.299 L361.389273,29.299 C362.376273,29.299 362.682273,30.684 362.682273,30.684 C362.682273,30.684 362.708273,31.029 362.708273,31.219 Z M501.706273,31.219 L499.667273,44.049 C499.547273,45.246 498.708273,45.845 497.509273,45.845 L472.448273,45.845 L460.696273,120.31 C460.457273,121.632 459.738273,122.23 458.538273,122.23 L443.309273,122.23 C442.111273,122.23 441.631273,121.632 441.870273,120.31 L453.622273,45.845 L394.820273,45.845 L391.224273,68.507 L391.224273,68.508 L430.555273,68.508 C431.754273,68.508 432.353273,69.106 432.234273,70.31 L430.196273,82.542 C430.076273,83.738 429.236273,84.338 428.038273,84.338 L388.706273,84.338 L385.349273,105.801 L428.397273,105.801 C429.596273,105.801 430.076273,106.4 429.955273,107.597 L427.797273,120.428 C427.676273,121.632 426.958273,122.23 425.759273,122.23 L365.683273,122.23 C364.484273,122.23 364.004273,121.632 364.124273,120.31 L378.273273,31.219 C378.393273,30.015 379.112273,29.417 380.313273,29.417 L500.147273,29.417 C501.346273,29.417 501.826273,30.015 501.706273,31.219 Z M629.471273,70.426 L627.433273,82.659 C627.313273,83.856 626.473273,84.454 625.275273,84.454 L588.223273,84.454 L582.466273,120.311 C582.347273,121.632 581.627273,122.23 580.428273,122.23 L565.200273,122.23 C564.001273,122.23 563.522273,121.632 563.640273,120.311 L577.790273,31.219 C577.910273,30.016 578.629273,29.417 579.828273,29.417 L643.004273,29.417 C644.202273,29.417 644.802273,30.016 644.682273,31.219 L642.644273,44.05 C642.403273,45.247 641.685273,45.846 640.486273,45.846 L594.337273,45.846 L590.741273,68.631 L627.793273,68.631 C628.991273,68.631 629.592273,69.23 629.471273,70.426 Z M388.706273,84.338 L388.712273,84.338 L388.309273,86.876 L388.706273,84.338 Z M510.726273,79.783 L524.396273,48.006 C525.036273,46.466 525.443273,45.589 525.990273,45.096 C526.465273,44.667 527.044273,44.525 527.993273,44.525 C530.391273,44.525 530.391273,45.124 530.751273,48.006 L534.348273,79.783 L510.726273,79.783 Z M542.334273,29.886 C539.756273,28.905 536.043273,28.702 530.511273,28.702 C516.601273,28.702 513.963273,30.016 508.208273,43.087 L474.633273,120.311 C474.154273,121.749 474.513273,122.23 475.832273,122.23 L491.060273,122.23 C492.259273,122.23 492.500273,121.749 493.099273,120.311 L504.011273,95.372 L536.026273,95.372 L539.024273,120.311 C539.144273,121.749 539.144273,122.23 540.344273,122.23 L555.572273,122.23 C556.891273,122.23 557.490273,121.749 557.490273,120.311 L548.617273,43.087 C547.658273,35.042 546.460273,31.458 542.334273,29.886 L542.334273,29.886 Z"),L(l,"id","Fill-2"),L(l,"fill","#333333"),L(r,"id","metaflow_logo_horizontal"),L(r,"transform","translate(92.930727, 93.190000)"),L(o,"id","Metaflow_Logo_Horizontal_TwoColor_Dark_RGB"),L(o,"transform","translate(-92.000000, -93.000000)"),L(s,"id","Page-1"),L(s,"stroke","none"),L(s,"stroke-width","1"),L(s,"fill","none"),L(s,"fill-rule","evenodd"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),L(e,"width","896px"),L(e,"height","152px"),L(e,"viewBox","0 0 896 152"),L(e,"version","1.1")},m(t,c){y(t,e,c),x(e,n),x(n,i),x(e,s),x(s,o),x(o,r),x(r,a),x(r,l)},d(t){t&&_(e)}}}function Lt(t){let e,n,i;return{c(){e=k("svg"),n=k("path"),i=k("path"),L(n,"fill-rule","evenodd"),L(n,"clip-rule","evenodd"),L(n,"d","M223.991 66.33C223.516 61.851 222.687 57.512 221.506 53.33C220.326 49.148 218.796 45.122 216.917 41.271C212.846 32.921 207.255 25.587 200.269 19.422C199.271 18.541 198.244 17.684 197.19 16.851C191.256 12.166 184.482 8.355 177.254 5.55C174.157 4.347 170.976 3.33 167.742 2.508C161.274 0.863 154.594 0 147.944 0C141.756 0 135.333 0.576 128.688 1.722C127.026 2.01 125.351 2.332 123.662 2.69C120.284 3.406 116.852 4.265 113.366 5.267C104.651 7.769 95.6025 11.161 86.2445 15.433C78.7595 18.851 71.0765 22.832 63.2075 27.373C47.9765 36.162 35.7375 44.969 29.3595 49.791C29.0695 50.01 28.7925 50.221 28.5265 50.423C26.1385 52.244 24.7525 53.367 24.5665 53.519L0.549511 73.065C0.191511 73.356 0.00751099 73.773 0.000238261 74.194C-0.00348901 74.403 0.036511 74.614 0.120511 74.811C0.205511 75.008 0.334511 75.189 0.508511 75.341L11.7615 85.195C12.1695 85.552 12.7255 85.651 13.2165 85.487C13.3795 85.432 13.5365 85.348 13.6765 85.234L35.8495 67.382C36.0425 67.224 37.6155 65.949 40.3255 63.903C44.1195 61.036 50.1425 56.656 57.7295 51.711C62.0645 48.884 66.9105 45.873 72.1415 42.854C100.865 26.278 126.368 17.874 147.944 17.874C148.367 17.874 148.791 17.892 149.214 17.902C149.656 17.911 150.097 17.911 150.539 17.93C153.77 18.068 156.996 18.463 160.171 19.097C164.932 20.049 169.578 21.542 173.954 23.524C178.329 25.505 182.434 27.975 186.113 30.88C186.772 31.4 187.407 31.94 188.036 32.485C188.914 33.245 189.772 34.023 190.592 34.83C191.999 36.217 193.318 37.673 194.549 39.195C196.396 41.479 198.043 43.912 199.481 46.485C199.961 47.342 200.418 48.216 200.851 49.105C201.113 49.642 201.344 50.196 201.588 50.743C202.232 52.185 202.835 53.649 203.355 55.158C203.713 56.198 204.042 57.255 204.341 58.326C205.837 63.683 206.591 69.417 206.591 75.469C206.591 81.221 205.893 86.677 204.542 91.804C203.618 95.308 202.398 98.662 200.851 101.833C200.418 102.722 199.961 103.595 199.481 104.453C197.563 107.884 195.276 111.066 192.637 113.976C190.658 116.159 188.481 118.189 186.114 120.058C184.554 121.29 182.91 122.432 181.209 123.503C180.314 124.067 179.401 124.609 178.471 125.126C177.463 125.688 176.443 126.232 175.399 126.737C166.962 130.823 157.424 133.064 147.944 133.064C126.368 133.064 100.865 124.659 72.1415 108.084C70.5385 107.159 68.4385 105.886 66.3075 104.575C65.0295 103.788 63.7405 102.986 62.5415 102.237C59.3445 100.238 56.7885 98.61 56.7885 98.61C61.8365 93.901 69.3235 87.465 78.6475 81.047C80.0095 80.11 81.4195 79.174 82.8575 78.243C84.1055 77.436 85.3715 76.63 86.6735 75.835C88.2045 74.9 89.7805 73.981 91.3825 73.074C93.0485 72.131 94.7515 71.207 96.4905 70.307C111.474 62.55 129.095 56.602 147.944 56.602C151.751 56.602 157.746 57.825 162.115 61.276C162.301 61.422 162.49 61.578 162.678 61.74C163.338 62.305 164.007 62.966 164.635 63.78C164.958 64.198 165.27 64.657 165.565 65.162C166.007 65.92 166.41 66.782 166.751 67.775C166.892 68.185 167.017 68.627 167.135 69.083C167.587 70.833 167.864 72.924 167.864 75.469C167.864 78.552 167.461 80.974 166.825 82.92C166.579 83.674 166.301 84.363 165.993 84.983C165.856 85.259 165.712 85.524 165.565 85.776C165.377 86.099 165.179 86.396 164.978 86.682C164.632 87.175 164.27 87.618 163.901 88.018C163.731 88.202 163.56 88.379 163.388 88.546C162.963 88.96 162.535 89.331 162.115 89.662C157.746 93.112 151.751 94.337 147.944 94.337C144.486 94.337 140.683 93.926 136.59 93.121C133.861 92.584 131.004 91.871 128.034 90.987C123.58 89.662 118.874 87.952 113.971 85.872C113.769 85.786 113.553 85.747 113.337 85.753C113.123 85.76 112.909 85.813 112.714 85.912C106.991 88.816 101.642 91.995 96.7465 95.223C96.6235 95.304 96.5185 95.397 96.4305 95.5C95.8125 96.22 96.0175 97.397 96.9495 97.822L102.446 100.328C104.607 101.314 106.738 102.238 108.836 103.102C110.935 103.966 113.002 104.77 115.036 105.511C118.087 106.624 121.065 107.599 123.966 108.436C127.835 109.551 131.568 110.421 135.158 111.043C139.647 111.82 143.913 112.211 147.944 112.211C148.368 112.211 148.924 112.201 149.592 112.169C149.926 112.153 150.288 112.131 150.675 112.102C155.713 111.724 165.056 110.114 173.191 103.691C173.548 103.41 173.87 103.105 174.211 102.813C175.325 101.86 176.382 100.866 177.334 99.8C177.471 99.648 177.591 99.485 177.725 99.331C181.301 95.167 183.7 90.185 184.876 84.406C185.445 81.609 185.738 78.631 185.738 75.469C185.738 63.315 181.517 53.82 173.191 47.247C167.051 42.399 160.229 40.299 155.084 39.395C153.893 39.186 152.791 39.037 151.81 38.938C150.117 38.766 148.775 38.727 147.944 38.727C133.457 38.727 118.52 41.679 103.546 47.5C99.1225 49.22 94.6915 51.191 90.2705 53.403C88.7975 54.141 87.3245 54.905 85.8545 55.696C83.5095 56.957 81.1725 58.303 78.8385 59.697C77.3925 60.562 75.9495 61.451 74.5085 62.366C72.4425 63.678 70.3805 65.023 68.3305 66.437C63.8375 69.535 59.7425 72.63 56.0905 75.567C54.8735 76.547 53.7055 77.508 52.5885 78.446C48.1225 82.2 44.4755 85.581 41.7605 88.226C38.3035 91.593 36.3595 93.766 36.1635 93.986L35.8285 94.362L32.0335 98.61L30.6435 100.164C30.4965 100.329 30.3935 100.517 30.3315 100.715C30.1485 101.307 30.3475 101.981 30.8885 102.368L37.2815 106.938L37.4865 107.083L37.6925 107.228C39.8735 108.766 42.0705 110.277 44.2795 111.758C45.8425 112.807 47.4105 113.84 48.9835 114.858C51.5305 116.508 54.0905 118.103 56.6545 119.665C57.8415 120.388 59.0285 121.101 60.2165 121.804C61.2145 122.394 62.2105 122.989 63.2075 123.565C76.9775 131.512 90.1805 137.744 102.749 142.242C104.545 142.884 106.327 143.491 108.097 144.063C111.636 145.206 115.122 146.207 118.554 147.067C121.987 147.925 125.365 148.642 128.688 149.215C135.333 150.362 141.756 150.938 147.944 150.938C154.594 150.938 161.274 150.074 167.742 148.43C174.21 146.786 180.466 144.361 186.266 141.238C190.134 139.156 193.799 136.764 197.19 134.087C200.353 131.589 203.265 128.872 205.912 125.949C207.678 124 209.326 121.96 210.855 119.831C211.619 118.766 212.354 117.68 213.058 116.571C214.467 114.356 215.754 112.053 216.917 109.667C220.702 101.906 223.074 93.439 224.009 84.406C224.311 81.485 224.466 78.505 224.466 75.469C224.466 72.364 224.307 69.316 223.991 66.33Z"),L(n,"fill","#146EE6"),L(i,"fill-rule","evenodd"),L(i,"clip-rule","evenodd"),L(i,"d","M758.39 75.346C752.633 111.56 742.682 122.23 712.103 122.23C710.848 122.23 709.641 122.207 708.465 122.17C708.322 122.191 708.192 122.23 708.029 122.23H637.995C636.796 122.23 636.316 121.632 636.436 120.311L650.586 31.22C650.705 30.016 651.425 29.417 652.624 29.417H667.853C669.051 29.417 669.531 30.016 669.411 31.22L657.66 105.802H714.25V105.787C714.411 105.794 714.569 105.802 714.742 105.802C718.879 105.802 722.251 105.351 725.041 104.313C726.435 103.794 727.685 103.129 728.811 102.298C729.374 101.884 729.906 101.426 730.411 100.927C734.952 96.431 737.232 88.43 739.323 75.346C739.329 75.312 739.332 75.282 739.338 75.25C739.643 73.311 739.896 71.474 740.13 69.679C740.203 69.116 740.273 68.557 740.339 68.008C740.413 67.392 740.462 66.821 740.526 66.222C742.137 49.927 738.623 44.525 724.455 44.525C723.42 44.525 722.434 44.554 721.491 44.613C708.298 45.444 703.831 52.303 700.461 71.126C700.22 72.472 699.985 73.877 699.753 75.346C699.484 77.027 699.255 78.6 699.052 80.115C698.993 80.545 698.949 80.946 698.896 81.361C698.758 82.465 698.639 83.528 698.541 84.544C698.503 84.943 698.467 85.334 698.435 85.72C698.345 86.815 698.282 87.856 698.247 88.847C698.239 89.049 698.225 89.269 698.22 89.469C698.162 91.88 698.29 93.972 698.622 95.782C698.65 95.941 698.687 96.089 698.718 96.246C698.875 96.992 699.068 97.689 699.302 98.337C699.347 98.464 699.391 98.594 699.44 98.718C700.04 100.231 700.865 101.478 701.964 102.469C702.264 102.738 702.587 102.987 702.926 103.22H679.437C679.394 102.969 679.344 102.727 679.306 102.471H679.305C679.305 102.467 679.305 102.462 679.304 102.459C679.26 102.17 679.237 101.854 679.199 101.558C679.084 100.634 678.996 99.671 678.935 98.674C678.909 98.258 678.879 97.845 678.862 97.419C678.816 96.174 678.805 94.876 678.833 93.518C678.841 93.114 678.862 92.69 678.877 92.276C678.921 91.042 678.992 89.765 679.093 88.441C679.118 88.109 679.135 87.79 679.163 87.452C679.3 85.836 679.484 84.137 679.699 82.382C679.751 81.957 679.808 81.518 679.864 81.084C680.105 79.238 680.37 77.344 680.688 75.346C681.046 73.067 681.424 70.889 681.82 68.808C687.041 41.397 695.81 30.748 717.268 28.554C720.251 28.25 723.472 28.103 726.971 28.103C726.972 28.103 726.973 28.103 726.973 28.103C747.995 28.103 757.681 33.202 759.812 48.236C760.78 55.067 760.188 63.953 758.39 75.346ZM894.023 31.336L866.924 108.56C863.473 118.182 861.114 121.41 854.5 122.41C852.38 122.733 849.832 122.828 846.66 122.828C831.671 122.828 830.351 121.267 829.393 108.56L825.794 63.232V63.231L807.929 108.56C804.256 117.613 802.201 120.996 795.961 122.202C793.442 122.687 790.261 122.829 785.986 122.829C772.915 122.829 770.757 121.267 770.397 108.56L767.638 31.337C767.638 29.899 768.238 29.417 769.557 29.417H785.385C786.464 29.417 786.705 29.899 786.825 31.337L788.896 100.572V100.571C789.055 103.091 789.564 103.641 791.022 103.641C792.94 103.641 793.42 103.042 794.619 100.043L820.759 34.576C821.359 33.132 822.438 32.657 823.517 32.657H837.666C838.52 32.657 839.28 32.977 839.627 33.817C839.719 34.038 839.8 34.274 839.825 34.576L845.221 100.043C845.461 103.042 845.82 103.641 847.739 103.641C849.298 103.641 849.897 103.042 850.977 100.043L874.839 31.336C875.318 29.898 875.678 29.417 876.757 29.417H892.585C893.904 29.417 894.383 29.898 894.023 31.336ZM362.709 31.219L357.193 120.311C357.193 121.632 356.354 122.23 355.155 122.23H339.927C338.727 122.23 338.367 121.632 338.367 120.311L342.325 62.756L311.987 117.551C311.387 118.749 310.429 119.348 309.23 119.348H297.838C296.759 119.348 296.039 118.749 295.561 117.551L282.852 62.767L282.849 62.755L268.34 120.31C268.213 121.009 267.975 121.492 267.613 121.807C267.289 122.085 266.866 122.23 266.302 122.23H251.074C249.875 122.23 249.274 121.632 249.515 120.31L272.297 31.336C272.538 30.138 272.898 29.417 274.096 29.417H288.606C291.237 29.417 292.727 29.895 293.683 31.379C294.121 32.059 294.458 32.928 294.721 34.095L307.791 92.489L339.327 34.095C341.486 30.256 343.044 29.299 346.881 29.299H361.39C362.377 29.299 362.683 30.684 362.683 30.684C362.683 30.684 362.709 31.029 362.709 31.219ZM501.707 31.219L499.668 44.049C499.548 45.246 498.709 45.845 497.51 45.845H472.449L460.697 120.31C460.458 121.632 459.739 122.23 458.539 122.23H443.31C442.112 122.23 441.632 121.632 441.871 120.31L453.623 45.845H394.821L391.225 68.507V68.508H430.556C431.755 68.508 432.354 69.106 432.235 70.31L430.197 82.542C430.077 83.738 429.237 84.338 428.039 84.338H388.707L385.35 105.801H428.398C429.597 105.801 430.077 106.4 429.956 107.597L427.798 120.428C427.677 121.632 426.959 122.23 425.76 122.23H365.684C364.485 122.23 364.005 121.632 364.125 120.31L378.274 31.219C378.394 30.015 379.113 29.417 380.314 29.417H500.148C501.347 29.417 501.827 30.015 501.707 31.219ZM629.471 70.426L627.434 82.659C627.314 83.856 626.474 84.454 625.276 84.454H588.224L582.466 120.311C582.347 121.632 581.628 122.23 580.429 122.23H565.201C564.002 122.23 563.523 121.632 563.641 120.311L577.791 31.219C577.911 30.016 578.629 29.417 579.828 29.417H643.005C644.203 29.417 644.802 30.016 644.682 31.219L642.645 44.05C642.404 45.247 641.686 45.846 640.487 45.846H594.338L590.742 68.631H627.794C628.992 68.631 629.592 69.23 629.471 70.426ZM388.707 84.338H388.713L388.31 86.876L388.707 84.338ZM510.727 79.783L524.397 48.006C525.037 46.466 525.444 45.589 525.991 45.096C526.466 44.667 527.045 44.525 527.994 44.525C530.392 44.525 530.392 45.124 530.752 48.006L534.349 79.783H510.727ZM542.335 29.886C539.757 28.905 536.044 28.702 530.512 28.702C516.602 28.702 513.964 30.016 508.209 43.087L474.634 120.311C474.155 121.749 474.514 122.23 475.833 122.23H491.061C492.26 122.23 492.501 121.749 493.1 120.311L504.012 95.372H536.026L539.025 120.311C539.145 121.749 539.145 122.23 540.345 122.23H555.573C556.892 122.23 557.491 121.749 557.491 120.311L548.617 43.087C547.658 35.042 546.461 31.458 542.335 29.886Z"),L(i,"fill","white"),L(e,"width","895"),L(e,"height","151"),L(e,"viewBox","0 0 895 151"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){y(t,e,s),x(e,n),x(e,i)},d(t){t&&_(e)}}}function Dt(e){let n;function i(t,e){return t[0]?Lt:St}let s=i(e),o=s(e);return{c(){o.c(),n=M()},m(t,e){o.m(t,e),y(t,n,e)},p(t,[e]){s!==(s=i(t))&&(o.d(1),o=s(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o.d(t),t&&_(n)}}}function Pt(t,e,n){let{light:i=!1}=e;return t.$$set=t=>{"light"in t&&n(0,i=t.light)},[i]}class Ot extends pt{constructor(t){super(),ft(this,t,Pt,Dt,r,{light:0})}}function At(t){let e,n,i,s,o,r;s=new Ot({});const a=t[1].default,l=u(a,t,t[0],null);return{c(){e=$("aside"),n=$("div"),i=$("div"),ct(s.$$.fragment),o=C(),l&&l.c(),L(i,"class","logoContainer"),L(e,"class","svelte-1okdv0e")},m(t,a){y(t,e,a),x(e,n),x(n,i),ht(s,i,null),x(n,o),l&&l.m(n,null),r=!0},p(t,[e]){l&&l.p&&(!r||1&e)&&p(l,a,t,t[0],r?f(a,t[0],e,null):g(t[0]),null)},i(t){r||(it(s.$$.fragment,t),it(l,t),r=!0)},o(t){st(s.$$.fragment,t),st(l,t),r=!1},d(t){t&&_(e),ut(s),l&&l.d(t)}}}function Et(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}class Tt extends pt{constructor(t){super(),ft(this,t,Et,At,r,{})}}function Rt(t){let e,n;return{c(){e=$("td"),n=w(t[0]),L(e,"class","idCell svelte-pt8vzv"),L(e,"data-component","artifact-row")},m(t,i){y(t,e,i),x(e,n)},p(t,e){1&e&&P(n,t[0])},d(t){t&&_(e)}}}function zt(e){let n,i,s,o,r,a,l=e[1].data+"",c=null!==e[0]&&Rt(e);return{c(){n=$("tr"),c&&c.c(),i=C(),s=$("td"),o=$("code"),r=w(l),L(o,"class","mono"),L(s,"class","codeCell svelte-pt8vzv"),L(s,"colspan",a=null===e[0]?2:1),L(s,"data-component","artifact-row")},m(t,a){y(t,n,a),c&&c.m(n,null),x(n,i),x(n,s),x(s,o),x(o,r),e[3](o)},p(t,[e]){null!==t[0]?c?c.p(t,e):(c=Rt(t),c.c(),c.m(n,i)):c&&(c.d(1),c=null),2&e&&l!==(l=t[1].data+"")&&P(r,l),1&e&&a!==(a=null===t[0]?2:1)&&L(s,"colspan",a)},i:t,o:t,d(t){t&&_(n),c&&c.d(),e[3](null)}}}function It(t,e,n){let i,{id:s}=e,{artifact:o}=e;return t.$$set=t=>{"id"in t&&n(0,s=t.id),"artifact"in t&&n(1,o=t.artifact)},t.$$.update=()=>{4&t.$$.dirty&&i&&function(){var t;i&&!i.classList.contains("language-python")&&"undefined"!=typeof window&&(null===(t=null===window||void 0===window?void 0:window.Prism)||void 0===t||t.highlightElement(i))}()},[s,o,i,function(t){V[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}class Ft extends pt{constructor(t){super(),ft(this,t,It,zt,r,{id:0,artifact:1})}}function Nt(t,e,n){const i=t.slice();return i[3]=e[n],i}function jt(e){let n,i;return n=new Ft({props:{id:e[3].name,artifact:e[3]}}),{c(){ct(n.$$.fragment)},m(t,e){ht(n,t,e),i=!0},p:t,i(t){i||(it(n.$$.fragment,t),i=!0)},o(t){st(n.$$.fragment,t),i=!1},d(t){ut(n,t)}}}function Bt(t){let e,n,i,s=t[0],o=[];for(let e=0;e<s.length;e+=1)o[e]=jt(Nt(t,s,e));const r=t=>st(o[t],1,1,(()=>{o[t]=null}));return{c(){e=$("div"),n=$("table");for(let t=0;t<o.length;t+=1)o[t].c();L(n,"class","language-python svelte-ubs992"),L(e,"class","container svelte-ubs992"),L(e,"data-component","artifacts")},m(t,s){y(t,e,s),x(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null);i=!0},p(t,[e]){if(1&e){let i;for(s=t[0],i=0;i<s.length;i+=1){const r=Nt(t,s,i);o[i]?(o[i].p(r,e),it(o[i],1)):(o[i]=jt(r),o[i].c(),it(o[i],1),o[i].m(n,null))}for(et(),i=s.length;i<o.length;i+=1)r(i);nt()}},i(t){if(!i){for(let t=0;t<s.length;t+=1)it(o[t]);i=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)st(o[t]);i=!1},d(t){t&&_(e),v(o,t)}}}function Vt(t,e,n){let{componentData:i}=e;const{data:s}=i,o=s.sort(((t,e)=>{if(t.name&&e.name){if(t.name>e.name)return 1;if(t.name<e.name)return-1}return 0}));return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},[o,i]}class Ht extends pt{constructor(t){super(),ft(this,t,Vt,Bt,r,{componentData:1})}}
|
2
2
|
/*!
|
3
|
-
* Chart.js v3.
|
3
|
+
* Chart.js v3.9.1
|
4
4
|
* https://www.chartjs.org
|
5
|
-
* (c)
|
5
|
+
* (c) 2022 Chart.js Contributors
|
6
6
|
* Released under the MIT License
|
7
|
-
*/const Nt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Bt(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let s=!1,o=[];return function(...n){o=i(n),s||(s=!0,Nt.call(window,(()=>{s=!1,t.apply(e,o)})))}}const Vt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,Ht=function(){let t=0;return function(){return t++}}();function Wt(t){return null==t}function Ut(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function qt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const Yt=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Zt(t,e){return Yt(t)?t:e}function Xt(t,e){return void 0===t?e:t}const Gt=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Kt(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Qt(t,e,n,i){let s,o,r;if(Ut(t))if(o=t.length,i)for(s=o-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<o;s++)e.call(n,t[s],s);else if(qt(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(n,t[r[s]],r[s])}function Jt(t,e){let n,i,s,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(s=t[n],o=e[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function te(t){if(Ut(t))return t.map(te);if(qt(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let s=0;for(;s<i;++s)e[n[s]]=te(t[n[s]]);return e}return t}function ee(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ne(t,e,n,i){if(!ee(t))return;const s=e[t],o=n[t];qt(s)&&qt(o)?ie(s,o,i):e[t]=te(o)}function ie(t,e,n){const i=Ut(e)?e:[e],s=i.length;if(!qt(t))return t;const o=(n=n||{}).merger||ne;for(let r=0;r<s;++r){if(!qt(e=i[r]))continue;const s=Object.keys(e);for(let i=0,r=s.length;i<r;++i)o(s[i],t,e,n)}return t}function se(t,e){return ie(t,e,{merger:oe})}function oe(t,e,n){if(!ee(t))return;const i=e[t],s=n[t];qt(i)&&qt(s)?se(i,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=te(s))}function re(t,e){const n=t.indexOf(".",e);return-1===n?t.length:n}function ae(t,e){if(""===e)return t;let n=0,i=re(e,n);for(;t&&i>n;)t=t[e.substr(n,i-n)],n=i+1,i=re(e,n);return t}function le(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ce=t=>void 0!==t,he=t=>"function"==typeof t,ue=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const de=Math.PI,fe=2*de,pe=fe+de,ge=Number.POSITIVE_INFINITY,me=de/180,be=de/2,xe=de/4,ye=2*de/3,ve=Math.log10,_e=Math.sign;function $e(t){const e=Math.round(t);t=ke(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ve(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function we(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ke(t,e,n){return Math.abs(t-e)<n}function Ce(t,e,n){let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Me(t){return t*(de/180)}function Se(t){return t*(180/de)}function Le(t){if(!Yt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function De(t,e){const n=e.x-t.x,i=e.y-t.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*de&&(o+=fe),{angle:o,distance:s}}function Oe(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Pe(t,e){return(t-e+pe)%fe-de}function Ae(t){return(t%fe+fe)%fe}function Ee(t,e,n,i){const s=Ae(t),o=Ae(e),r=Ae(n),a=Ae(o-s),l=Ae(r-s),c=Ae(s-o),h=Ae(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function Re(t,e,n){return Math.max(e,Math.min(n,t))}function Te(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}const ze=t=>0===t||1===t,Ie=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*fe/n),Fe=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*fe/n)+1,je={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*be),easeOutSine:t=>Math.sin(t*be),easeInOutSine:t=>-.5*(Math.cos(de*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ze(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ze(t)?t:Ie(t,.075,.3),easeOutElastic:t=>ze(t)?t:Fe(t,.075,.3),easeInOutElastic(t){const e=.1125;return ze(t)?t:t<.5?.5*Ie(2*t,e,.45):.5+.5*Fe(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-je.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*je.easeInBounce(2*t):.5*je.easeOutBounce(2*t-1)+.5},Ne={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Be="0123456789ABCDEF",Ve=t=>Be[15&t],He=t=>Be[(240&t)>>4]+Be[15&t],We=t=>(240&t)>>4==(15&t);function Ue(t){var e=function(t){return We(t.r)&&We(t.g)&&We(t.b)&&We(t.a)}(t)?Ve:He;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function qe(t){return t+.5|0}const Ye=(t,e,n)=>Math.max(Math.min(t,n),e);function Ze(t){return Ye(qe(2.55*t),0,255)}function Xe(t){return Ye(qe(255*t),0,255)}function Ge(t){return Ye(qe(t/2.55)/100,0,1)}function Ke(t){return Ye(qe(100*t),0,100)}const Qe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Je=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tn(t,e,n){const i=e*Math.min(n,1-n),s=(e,s=(e+t/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function en(t,e,n){const i=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function nn(t,e,n){const i=tn(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function sn(t){const e=t.r/255,n=t.g/255,i=t.b/255,s=Math.max(e,n,i),o=Math.min(e,n,i),r=(s+o)/2;let a,l,c;return s!==o&&(c=s-o,l=r>.5?c/(2-s-o):c/(s+o),a=s===e?(n-i)/c+(n<i?6:0):s===n?(i-e)/c+2:(e-n)/c+4,a=60*a+.5),[0|a,l||0,r]}function on(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Xe)}function rn(t,e,n){return on(tn,t,e,n)}function an(t){return(t%360+360)%360}function ln(t){const e=Je.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?Ze(+e[5]):Xe(+e[5]));const s=an(+e[2]),o=+e[3]/100,r=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return on(nn,t,e,n)}(s,o,r):"hsv"===e[1]?function(t,e,n){return on(en,t,e,n)}(s,o,r):rn(s,o,r),{r:n[0],g:n[1],b:n[2],a:i}}const cn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},hn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let un;function dn(t){un||(un=function(){const t={},e=Object.keys(hn),n=Object.keys(cn);let i,s,o,r,a;for(i=0;i<e.length;i++){for(r=a=e[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,cn[o]);o=parseInt(hn[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),un.transparent=[0,0,0,0]);const e=un[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function fn(t,e,n){if(t){let i=sn(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=rn(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function pn(t,e){return t?Object.assign(e||{},t):t}function gn(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Xe(t[3]))):(e=pn(t,{r:0,g:0,b:0,a:1})).a=Xe(e.a),e}function mn(t){return"r"===t.charAt(0)?function(t){const e=Qe.exec(t);let n,i,s,o=255;if(e){if(e[7]!==n){const t=+e[7];o=255&(e[8]?Ze(t):255*t)}return n=+e[1],i=+e[3],s=+e[5],n=255&(e[2]?Ze(n):n),i=255&(e[4]?Ze(i):i),s=255&(e[6]?Ze(s):s),{r:n,g:i,b:s,a:o}}}(t):ln(t)}class bn{constructor(t){if(t instanceof bn)return t;const e=typeof t;let n;var i,s,o;"object"===e?n=gn(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?s={r:255&17*Ne[i[1]],g:255&17*Ne[i[2]],b:255&17*Ne[i[3]],a:5===o?17*Ne[i[4]]:255}:7!==o&&9!==o||(s={r:Ne[i[1]]<<4|Ne[i[2]],g:Ne[i[3]]<<4|Ne[i[4]],b:Ne[i[5]]<<4|Ne[i[6]],a:9===o?Ne[i[7]]<<4|Ne[i[8]]:255})),n=s||dn(t)||mn(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=pn(this._rgb);return t&&(t.a=Ge(t.a)),t}set rgb(t){this._rgb=gn(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ge(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?Ue(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=sn(t),n=e[0],i=Ke(e[1]),s=Ke(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${Ge(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const i=n.rgb,s=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=i.a-s.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,n.rgb=i}return n}clone(){return new bn(this.rgb)}alpha(t){return this._rgb.a=Xe(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=qe(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return fn(this._rgb,2,t),this}darken(t){return fn(this._rgb,2,-t),this}saturate(t){return fn(this._rgb,1,t),this}desaturate(t){return fn(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=sn(t);n[0]=an(n[0]+e),n=rn(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function xn(t){return new bn(t)}const yn=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function vn(t){return yn(t)?t:xn(t)}function _n(t){return yn(t)?t:xn(t).saturate(.5).darken(.1).hexString()}const $n=Object.create(null),wn=Object.create(null);function kn(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Cn(t,e,n){return"string"==typeof e?ie(kn(t,e),n):ie(kn(t,""),e)}var Mn=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>_n(e.backgroundColor),this.hoverBorderColor=(t,e)=>_n(e.borderColor),this.hoverColor=(t,e)=>_n(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Cn(this,t,e)}get(t){return kn(this,t)}describe(t,e){return Cn(wn,t,e)}override(t,e){return Cn($n,t,e)}route(t,e,n,i){const s=kn(this,t),o=kn(this,n),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[i];return qt(t)?Object.assign({},e,t):Xt(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Sn(t,e,n,i,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,n.push(s)),o>i&&(i=o),i}function Ln(t,e,n,i){let s=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},o=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let r=0;const a=n.length;let l,c,h,u,d;for(l=0;l<a;l++)if(u=n[l],null!=u&&!0!==Ut(u))r=Sn(t,s,o,r,u);else if(Ut(u))for(c=0,h=u.length;c<h;c++)d=u[c],null==d||Ut(d)||(r=Sn(t,s,o,r,d));t.restore();const f=o.length/2;if(f>n.length){for(l=0;l<f;l++)delete s[o[l]];o.splice(0,f)}return r}function Dn(t,e,n){const i=t.currentDevicePixelRatio,s=0!==n?Math.max(n/2,.5):0;return Math.round((e-s)*i)/i+s}function On(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Pn(t,e,n,i){let s,o,r,a,l;const c=e.pointStyle,h=e.rotation,u=e.radius;let d=(h||0)*me;if(c&&"object"==typeof c&&(s=c.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(n,i),t.rotate(d),t.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void t.restore();if(!(isNaN(u)||u<=0)){switch(t.beginPath(),c){default:t.arc(n,i,u,0,fe),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(d)*u,i-Math.cos(d)*u),d+=ye,t.lineTo(n+Math.sin(d)*u,i-Math.cos(d)*u),d+=ye,t.lineTo(n+Math.sin(d)*u,i-Math.cos(d)*u),t.closePath();break;case"rectRounded":l=.516*u,a=u-l,o=Math.cos(d+xe)*a,r=Math.sin(d+xe)*a,t.arc(n-o,i-r,l,d-de,d-be),t.arc(n+r,i-o,l,d-be,d),t.arc(n+o,i+r,l,d,d+be),t.arc(n-r,i+o,l,d+be,d+de),t.closePath();break;case"rect":if(!h){a=Math.SQRT1_2*u,t.rect(n-a,i-a,2*a,2*a);break}d+=xe;case"rectRot":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+r,i-o),t.lineTo(n+o,i+r),t.lineTo(n-r,i+o),t.closePath();break;case"crossRot":d+=xe;case"cross":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o);break;case"star":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o),d+=xe,o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o);break;case"line":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(d)*u,i+Math.sin(d)*u)}t.fill(),e.borderWidth>0&&t.stroke()}}function An(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function En(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Rn(t){t.restore()}function Tn(t,e,n,i,s){if(!e)return t.lineTo(n.x,n.y);if("middle"===s){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===s!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function zn(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function In(t,e,n,i,s,o={}){const r=Ut(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Wt(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<r.length;++l)c=r[l],a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),Wt(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,i,o.maxWidth)),t.fillText(c,n,i,o.maxWidth),Fn(t,n,i,c,o),i+=s.lineHeight;t.restore()}function Fn(t,e,n,i,s){if(s.strikethrough||s.underline){const o=t.measureText(i),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function jn(t,e){const{x:n,y:i,w:s,h:o,radius:r}=e;t.arc(n+r.topLeft,i+r.topLeft,r.topLeft,-be,de,!0),t.lineTo(n,i+o-r.bottomLeft),t.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,de,be,!0),t.lineTo(n+s-r.bottomRight,i+o),t.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,be,0,!0),t.lineTo(n+s,i+r.topRight),t.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-be,!0),t.lineTo(n+r.topLeft,i)}const Nn=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Bn=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Vn(t,e){const n=(""+t).match(Nn);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Hn(t,e){const n={},i=qt(e),s=i?Object.keys(e):e,o=qt(t)?i?n=>Xt(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of s)n[t]=+o(t)||0;return n}function Wn(t){return Hn(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Un(t){return Hn(t,["topLeft","topRight","bottomLeft","bottomRight"])}function qn(t){const e=Wn(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Yn(t,e){t=t||{},e=e||Mn.font;let n=Xt(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=Xt(t.style,e.style);i&&!(""+i).match(Bn)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const s={family:Xt(t.family,e.family),lineHeight:Vn(Xt(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Xt(t.weight,e.weight),string:""};return s.string=function(t){return!t||Wt(t.size)||Wt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function Zn(t,e,n,i){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),a=!1),void 0!==n&&Ut(r)&&(r=r[n%r.length],a=!1),void 0!==r))return i&&!a&&(i.cacheable=!1),r}function Xn(t,e){return Object.assign(Object.create(t),e)}function Gn(t,e,n){n=n||(n=>t[n]<e);let i,s=t.length-1,o=0;for(;s-o>1;)i=o+s>>1,n(i)?o=i:s=i;return{lo:o,hi:s}}const Kn=(t,e,n)=>Gn(t,n,(i=>t[i][e]<n)),Qn=(t,e,n)=>Gn(t,n,(i=>t[i][e]>=n));const Jn=["push","pop","shift","splice","unshift"];function ti(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);-1!==s&&i.splice(s,1),i.length>0||(Jn.forEach((e=>{delete t[e]})),delete t._chartjs)}function ei(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}function ni(t,e=[""],n=t,i,s=(()=>t[0])){ce(i)||(i=fi("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:s,override:s=>ni([s,...t],e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>ai(n,i,(()=>function(t,e,n,i){let s;for(const o of e)if(s=fi(oi(o,t),n),ce(s))return ri(t,s)?ui(n,i,t,s):s}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>pi(t).includes(e),ownKeys:t=>pi(t),set(t,e,n){const i=t._storage||(t._storage=s());return t[e]=i[e]=n,delete t._keys,!0}})}function ii(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:si(t,i),setContext:e=>ii(t,e,n,i),override:s=>ii(t.override(s),e,n,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>ai(t,e,(()=>function(t,e,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=t;let a=i[e];he(a)&&r.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,r||i),a.delete(t),ri(t,e)&&(e=ui(s._scopes,s,t,e));return e}(e,a,t,n));Ut(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(ce(o.index)&&i(t))e=e[o.index%e.length];else if(qt(e[0])){const n=e,i=s._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=ui(i,s,t,l);e.push(ii(n,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable));ri(e,a)&&(a=ii(a,s,o&&o[e],r));return a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function si(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:he(n)?n:()=>n,isIndexable:he(i)?i:()=>i}}const oi=(t,e)=>t?t+le(e):e,ri=(t,e)=>qt(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function ai(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function li(t,e,n){return he(t)?t(e,n):t}const ci=(t,e)=>!0===t?e:"string"==typeof t?ae(e,t):void 0;function hi(t,e,n,i,s){for(const o of e){const e=ci(n,o);if(e){t.add(e);const o=li(e._fallback,n,s);if(ce(o)&&o!==n&&o!==i)return o}else if(!1===e&&ce(i)&&n!==i)return null}return!1}function ui(t,e,n,i){const s=e._rootScopes,o=li(e._fallback,n,i),r=[...t,...s],a=new Set;a.add(i);let l=di(a,r,n,o||n,i);return null!==l&&((!ce(o)||o===n||(l=di(a,r,o,l,i),null!==l))&&ni(Array.from(a),[""],s,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];if(Ut(s)&&qt(n))return n;return s}(e,n,i))))}function di(t,e,n,i,s){for(;n;)n=hi(t,e,n,i,s);return n}function fi(t,e){for(const n of e){if(!n)continue;const e=n[t];if(ce(e))return e}}function pi(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const gi=Number.EPSILON||1e-14,mi=(t,e)=>e<t.length&&!t[e].skip&&t[e],bi=t=>"x"===t?"y":"x";function xi(t,e,n,i){const s=t.skip?e:t,o=e,r=n.skip?e:n,a=Oe(o,s),l=Oe(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=i*c,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function yi(t,e="x"){const n=bi(e),i=t.length,s=Array(i).fill(0),o=Array(i);let r,a,l,c=mi(t,0);for(r=0;r<i;++r)if(a=l,l=c,c=mi(t,r+1),l){if(c){const t=c[e]-l[e];s[r]=0!==t?(c[n]-l[n])/t:0}o[r]=a?c?_e(s[r-1])!==_e(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,n){const i=t.length;let s,o,r,a,l,c=mi(t,0);for(let h=0;h<i-1;++h)l=c,c=mi(t,h+1),l&&c&&(ke(e[h],0,gi)?n[h]=n[h+1]=0:(s=n[h]/e[h],o=n[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),n[h]=s*r*e[h],n[h+1]=o*r*e[h])))}(t,s,o),function(t,e,n="x"){const i=bi(n),s=t.length;let o,r,a,l=mi(t,0);for(let c=0;c<s;++c){if(r=a,a=l,l=mi(t,c+1),!a)continue;const s=a[n],h=a[i];r&&(o=(s-r[n])/3,a[`cp1${n}`]=s-o,a[`cp1${i}`]=h-o*e[c]),l&&(o=(l[n]-s)/3,a[`cp2${n}`]=s+o,a[`cp2${i}`]=h+o*e[c])}}(t,o,e)}function vi(t,e,n){return Math.max(Math.min(t,n),e)}function _i(t,e,n,i,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)yi(t,s);else{let n=i?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=xi(n,a,t[Math.min(o+1,r-(i?0:1))%r],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}e.capBezierPoints&&function(t,e){let n,i,s,o,r,a=An(t[0],e);for(n=0,i=t.length;n<i;++n)r=o,o=a,a=n<i-1&&An(t[n+1],e),o&&(s=t[n],r&&(s.cp1x=vi(s.cp1x,e.left,e.right),s.cp1y=vi(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=vi(s.cp2x,e.left,e.right),s.cp2y=vi(s.cp2y,e.top,e.bottom)))}(t,n)}function $i(){return"undefined"!=typeof window&&"undefined"!=typeof document}function wi(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function ki(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Ci=t=>window.getComputedStyle(t,null);const Mi=["top","right","bottom","left"];function Si(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=Mi[s];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Li(t,e){const{canvas:n,currentDevicePixelRatio:i}=e,s=Ci(n),o="border-box"===s.boxSizing,r=Si(s,"padding"),a=Si(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const n=t.native||t,i=n.touches,s=i&&i.length?i[0]:n,{offsetX:o,offsetY:r}=s;let a,l,c=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,n.target))a=o,l=r;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,l=s.clientY-t.top,c=!0}return{x:a,y:l,box:c}}(t,n),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-u)/f*n.width/i),y:Math.round((c-d)/p*n.height/i)}}const Di=t=>Math.round(10*t)/10;function Oi(t,e,n,i){const s=Ci(t),o=Si(s,"margin"),r=ki(s.maxWidth,t,"clientWidth")||ge,a=ki(s.maxHeight,t,"clientHeight")||ge,l=function(t,e,n){let i,s;if(void 0===e||void 0===n){const o=wi(t);if(o){const t=o.getBoundingClientRect(),r=Ci(o),a=Si(r,"border","width"),l=Si(r,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=ki(r.maxWidth,o,"clientWidth"),s=ki(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||ge,maxHeight:s||ge}}(t,e,n);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=Si(s,"border","width"),e=Si(s,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-o.width),h=Math.max(0,i?Math.floor(c/i):h-o.height),c=Di(Math.min(c,r,l.maxWidth)),h=Di(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Di(c/2)),{width:c,height:h}}function Pi(t,e,n){const i=e||1,s=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=s/i,t.width=o/i;const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=i,r.height=s,r.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Ai=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Ei(t,e){const n=function(t,e){return Ci(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Ri(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Ti(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function zi(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Ri(t,s,n),a=Ri(s,o,n),l=Ri(o,e,n),c=Ri(r,a,n),h=Ri(a,l,n);return Ri(c,h,n)}const Ii=new Map;function Fi(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Ii.get(n);return i||(i=new Intl.NumberFormat(t,e),Ii.set(n,i)),i}(e,n).format(t)}function ji(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Ni(t){return"angle"===t?{between:Ee,compare:Pe,normalize:Ae}:{between:Te,compare:(t,e)=>t-e,normalize:t=>t}}function Bi({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:s}}function Vi(t,e,n){if(!n)return[t];const{property:i,start:s,end:o}=n,r=e.length,{compare:a,between:l,normalize:c}=Ni(i),{start:h,end:u,loop:d,style:f}=function(t,e,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=Ni(i),l=e.length;let c,h,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,c=0,h=l;c<h&&r(a(e[u%l][i]),s,o);++c)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,n),p=[];let g,m,b,x=!1,y=null;const v=()=>x||l(s,b,g)&&0!==a(s,b),_=()=>!x||0===a(o,g)||l(o,b,g);for(let t=h,n=h;t<=u;++t)m=e[t%r],m.skip||(g=c(m[i]),g!==b&&(x=l(g,s,o),null===y&&v()&&(y=0===a(g,s)?t:n),null!==y&&_()&&(p.push(Bi({start:y,end:t,loop:d,count:r,style:f})),y=null),n=t,b=g));return null!==y&&p.push(Bi({start:y,end:u,loop:d,count:r,style:f})),p}function Hi(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const s=t._chart.getContext(),o=Wi(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=n.length,c=[];let h=o,u=e[0].start,d=u;function f(t,e,i,s){const o=a?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:i,style:s}),h=s,u=e%l)}}for(const t of e){u=a?u:t.start;let e,o=n[u%l];for(d=u+1;d<=t.end;d++){const a=n[d%l];e=Wi(i.setContext(Xn(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),Ui(e,h)&&f(u,d-1,t.loop,h),o=a,h=e}u<d-1&&f(u,d-1,t.loop,h)}return c}(t,e,n,i):e}function Wi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ui(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
|
7
|
+
*/const Wt=function(){let t=0;return function(){return t++}}();function Ut(t){return null==t}function qt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Yt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const Zt=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Xt(t,e){return Zt(t)?t:e}function Gt(t,e){return void 0===t?e:t}const Kt=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Jt(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Qt(t,e,n,i){let s,o,r;if(qt(t))if(o=t.length,i)for(s=o-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<o;s++)e.call(n,t[s],s);else if(Yt(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(n,t[r[s]],r[s])}function te(t,e){let n,i,s,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(s=t[n],o=e[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function ee(t){if(qt(t))return t.map(ee);if(Yt(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let s=0;for(;s<i;++s)e[n[s]]=ee(t[n[s]]);return e}return t}function ne(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ie(t,e,n,i){if(!ne(t))return;const s=e[t],o=n[t];Yt(s)&&Yt(o)?se(s,o,i):e[t]=ee(o)}function se(t,e,n){const i=qt(e)?e:[e],s=i.length;if(!Yt(t))return t;const o=(n=n||{}).merger||ie;for(let r=0;r<s;++r){if(!Yt(e=i[r]))continue;const s=Object.keys(e);for(let i=0,r=s.length;i<r;++i)o(s[i],t,e,n)}return t}function oe(t,e){return se(t,e,{merger:re})}function re(t,e,n){if(!ne(t))return;const i=e[t],s=n[t];Yt(i)&&Yt(s)?oe(i,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ee(s))}const ae={"":t=>t,x:t=>t.x,y:t=>t.y};function le(t,e){const n=ae[e]||(ae[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function ce(t){return t.charAt(0).toUpperCase()+t.slice(1)}const he=t=>void 0!==t,ue=t=>"function"==typeof t,de=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const fe=Math.PI,pe=2*fe,ge=pe+fe,me=Number.POSITIVE_INFINITY,be=fe/180,xe=fe/2,ye=fe/4,_e=2*fe/3,ve=Math.log10,$e=Math.sign;function ke(t){const e=Math.round(t);t=Ce(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ve(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function we(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ce(t,e,n){return Math.abs(t-e)<n}function Me(t,e,n){let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Se(t){return t*(fe/180)}function Le(t){return t*(180/fe)}function De(t){if(!Zt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Pe(t,e){const n=e.x-t.x,i=e.y-t.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*fe&&(o+=pe),{angle:o,distance:s}}function Oe(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ae(t,e){return(t-e+ge)%pe-fe}function Ee(t){return(t%pe+pe)%pe}function Te(t,e,n,i){const s=Ee(t),o=Ee(e),r=Ee(n),a=Ee(o-s),l=Ee(r-s),c=Ee(s-o),h=Ee(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function Re(t,e,n){return Math.max(e,Math.min(n,t))}function ze(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Ie(t,e,n){n=n||(n=>t[n]<e);let i,s=t.length-1,o=0;for(;s-o>1;)i=o+s>>1,n(i)?o=i:s=i;return{lo:o,hi:s}}const Fe=(t,e,n,i)=>Ie(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),Ne=(t,e,n)=>Ie(t,n,(i=>t[i][e]>=n));const je=["push","pop","shift","splice","unshift"];function Be(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);-1!==s&&i.splice(s,1),i.length>0||(je.forEach((e=>{delete t[e]})),delete t._chartjs)}function Ve(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const He="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function We(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let s=!1,o=[];return function(...n){o=i(n),s||(s=!0,He.call(window,(()=>{s=!1,t.apply(e,o)})))}}const Ue=t=>"start"===t?"left":"end"===t?"right":"center",qe=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function Ye(t,e,n){const i=e.length;let s=0,o=i;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=Re(Math.min(Fe(a,r.axis,c).lo,n?i:Fe(e,l,r.getPixelForValue(c)).lo),0,i-1)),o=d?Re(Math.max(Fe(a,r.axis,h,!0).hi+1,n?0:Fe(e,l,r.getPixelForValue(h),!0).hi+1),s,i)-s:i-s}return{start:s,count:o}}function Ze(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}const Xe=t=>0===t||1===t,Ge=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*pe/n),Ke=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*pe/n)+1,Je={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*xe),easeOutSine:t=>Math.sin(t*xe),easeInOutSine:t=>-.5*(Math.cos(fe*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Xe(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Xe(t)?t:Ge(t,.075,.3),easeOutElastic:t=>Xe(t)?t:Ke(t,.075,.3),easeInOutElastic(t){const e=.1125;return Xe(t)?t:t<.5?.5*Ge(2*t,e,.45):.5+.5*Ke(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Je.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*Je.easeInBounce(2*t):.5*Je.easeOutBounce(2*t-1)+.5};
|
8
8
|
/*!
|
9
|
-
*
|
9
|
+
* @kurkle/color v0.2.1
|
10
|
+
* https://github.com/kurkle/color#readme
|
11
|
+
* (c) 2022 Jukka Kurkela
|
12
|
+
* Released under the MIT License
|
13
|
+
*/
|
14
|
+
function Qe(t){return t+.5|0}const tn=(t,e,n)=>Math.max(Math.min(t,n),e);function en(t){return tn(Qe(2.55*t),0,255)}function nn(t){return tn(Qe(255*t),0,255)}function sn(t){return tn(Qe(t/2.55)/100,0,1)}function on(t){return tn(Qe(100*t),0,100)}const rn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},an=[..."0123456789ABCDEF"],ln=t=>an[15&t],cn=t=>an[(240&t)>>4]+an[15&t],hn=t=>(240&t)>>4==(15&t),un=t=>hn(t.r)&&hn(t.g)&&hn(t.b)&&hn(t.a);const dn=(t,e)=>t<255?e(t):"";const fn=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function pn(t,e,n){const i=e*Math.min(n,1-n),s=(e,s=(e+t/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function gn(t,e,n){const i=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function mn(t,e,n){const i=pn(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function bn(t){const e=t.r/255,n=t.g/255,i=t.b/255,s=Math.max(e,n,i),o=Math.min(e,n,i),r=(s+o)/2;let a,l,c;return s!==o&&(c=s-o,l=r>.5?c/(2-s-o):c/(s+o),a=function(t,e,n,i,s){return t===s?(e-n)/i+(e<n?6:0):e===s?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,s),a=60*a+.5),[0|a,l||0,r]}function xn(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(nn)}function yn(t,e,n){return xn(pn,t,e,n)}function _n(t){return(t%360+360)%360}function vn(t){const e=fn.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?en(+e[5]):nn(+e[5]));const s=_n(+e[2]),o=+e[3]/100,r=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return xn(mn,t,e,n)}(s,o,r):"hsv"===e[1]?function(t,e,n){return xn(gn,t,e,n)}(s,o,r):yn(s,o,r),{r:n[0],g:n[1],b:n[2],a:i}}const $n={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},kn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let wn;function Cn(t){wn||(wn=function(){const t={},e=Object.keys(kn),n=Object.keys($n);let i,s,o,r,a;for(i=0;i<e.length;i++){for(r=a=e[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,$n[o]);o=parseInt(kn[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),wn.transparent=[0,0,0,0]);const e=wn[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Mn=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Sn=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ln=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Dn(t,e,n){if(t){let i=bn(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=yn(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Pn(t,e){return t?Object.assign(e||{},t):t}function On(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=nn(t[3]))):(e=Pn(t,{r:0,g:0,b:0,a:1})).a=nn(e.a),e}function An(t){return"r"===t.charAt(0)?function(t){const e=Mn.exec(t);let n,i,s,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?en(t):tn(255*t,0,255)}return n=+e[1],i=+e[3],s=+e[5],n=255&(e[2]?en(n):tn(n,0,255)),i=255&(e[4]?en(i):tn(i,0,255)),s=255&(e[6]?en(s):tn(s,0,255)),{r:n,g:i,b:s,a:o}}}(t):vn(t)}class En{constructor(t){if(t instanceof En)return t;const e=typeof t;let n;var i,s,o;"object"===e?n=On(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?s={r:255&17*rn[i[1]],g:255&17*rn[i[2]],b:255&17*rn[i[3]],a:5===o?17*rn[i[4]]:255}:7!==o&&9!==o||(s={r:rn[i[1]]<<4|rn[i[2]],g:rn[i[3]]<<4|rn[i[4]],b:rn[i[5]]<<4|rn[i[6]],a:9===o?rn[i[7]]<<4|rn[i[8]]:255})),n=s||Cn(t)||An(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Pn(this._rgb);return t&&(t.a=sn(t.a)),t}set rgb(t){this._rgb=On(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${sn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=un(t)?ln:cn,t?"#"+e(t.r)+e(t.g)+e(t.b)+dn(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=bn(t),n=e[0],i=on(e[1]),s=on(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${sn(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let s;const o=e===s?.5:e,r=2*o-1,a=n.a-i.a,l=((r*a==-1?r:(r+a)/(1+r*a))+1)/2;s=1-l,n.r=255&l*n.r+s*i.r+.5,n.g=255&l*n.g+s*i.g+.5,n.b=255&l*n.b+s*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Ln(sn(t.r)),s=Ln(sn(t.g)),o=Ln(sn(t.b));return{r:nn(Sn(i+n*(Ln(sn(e.r))-i))),g:nn(Sn(s+n*(Ln(sn(e.g))-s))),b:nn(Sn(o+n*(Ln(sn(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new En(this.rgb)}alpha(t){return this._rgb.a=nn(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Qe(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Dn(this._rgb,2,t),this}darken(t){return Dn(this._rgb,2,-t),this}saturate(t){return Dn(this._rgb,1,t),this}desaturate(t){return Dn(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=bn(t);n[0]=_n(n[0]+e),n=yn(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Tn(t){return new En(t)}function Rn(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function zn(t){return Rn(t)?t:Tn(t)}function In(t){return Rn(t)?t:Tn(t).saturate(.5).darken(.1).hexString()}const Fn=Object.create(null),Nn=Object.create(null);function jn(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Bn(t,e,n){return"string"==typeof e?se(jn(t,e),n):se(jn(t,""),e)}var Vn=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>In(e.backgroundColor),this.hoverBorderColor=(t,e)=>In(e.borderColor),this.hoverColor=(t,e)=>In(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Bn(this,t,e)}get(t){return jn(this,t)}describe(t,e){return Bn(Nn,t,e)}override(t,e){return Bn(Fn,t,e)}route(t,e,n,i){const s=jn(this,t),o=jn(this,n),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[i];return Yt(t)?Object.assign({},e,t):Gt(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Hn(t,e,n,i,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,n.push(s)),o>i&&(i=o),i}function Wn(t,e,n,i){let s=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},o=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let r=0;const a=n.length;let l,c,h,u,d;for(l=0;l<a;l++)if(u=n[l],null!=u&&!0!==qt(u))r=Hn(t,s,o,r,u);else if(qt(u))for(c=0,h=u.length;c<h;c++)d=u[c],null==d||qt(d)||(r=Hn(t,s,o,r,d));t.restore();const f=o.length/2;if(f>n.length){for(l=0;l<f;l++)delete s[o[l]];o.splice(0,f)}return r}function Un(t,e,n){const i=t.currentDevicePixelRatio,s=0!==n?Math.max(n/2,.5):0;return Math.round((e-s)*i)/i+s}function qn(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Yn(t,e,n,i){!function(t,e,n,i,s){let o,r,a,l,c,h;const u=e.pointStyle,d=e.rotation,f=e.radius;let p=(d||0)*be;if(u&&"object"==typeof u&&(o=u.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,i),t.rotate(p),t.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void t.restore();if(isNaN(f)||f<=0)return;switch(t.beginPath(),u){default:s?t.ellipse(n,i,s/2,f,0,0,pe):t.arc(n,i,f,0,pe),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(p)*f,i-Math.cos(p)*f),p+=_e,t.lineTo(n+Math.sin(p)*f,i-Math.cos(p)*f),p+=_e,t.lineTo(n+Math.sin(p)*f,i-Math.cos(p)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,r=Math.cos(p+ye)*l,a=Math.sin(p+ye)*l,t.arc(n-r,i-a,c,p-fe,p-xe),t.arc(n+a,i-r,c,p-xe,p),t.arc(n+r,i+a,c,p,p+xe),t.arc(n-a,i+r,c,p+xe,p+fe),t.closePath();break;case"rect":if(!d){l=Math.SQRT1_2*f,h=s?s/2:l,t.rect(n-h,i-l,2*h,2*l);break}p+=ye;case"rectRot":r=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(n-r,i-a),t.lineTo(n+a,i-r),t.lineTo(n+r,i+a),t.lineTo(n-a,i+r),t.closePath();break;case"crossRot":p+=ye;case"cross":r=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r);break;case"star":r=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r),p+=ye,r=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r);break;case"line":r=s?s/2:Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(p)*f,i+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}(t,e,n,i,null)}function Zn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Xn(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gn(t){t.restore()}function Kn(t,e,n,i,s){if(!e)return t.lineTo(n.x,n.y);if("middle"===s){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===s!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Jn(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Qn(t,e,n,i,s,o={}){const r=qt(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Ut(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<r.length;++l)c=r[l],a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),Ut(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,i,o.maxWidth)),t.fillText(c,n,i,o.maxWidth),ti(t,n,i,c,o),i+=s.lineHeight;t.restore()}function ti(t,e,n,i,s){if(s.strikethrough||s.underline){const o=t.measureText(i),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function ei(t,e){const{x:n,y:i,w:s,h:o,radius:r}=e;t.arc(n+r.topLeft,i+r.topLeft,r.topLeft,-xe,fe,!0),t.lineTo(n,i+o-r.bottomLeft),t.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,fe,xe,!0),t.lineTo(n+s-r.bottomRight,i+o),t.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,xe,0,!0),t.lineTo(n+s,i+r.topRight),t.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-xe,!0),t.lineTo(n+r.topLeft,i)}const ni=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ii=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function si(t,e){const n=(""+t).match(ni);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const oi=t=>+t||0;function ri(t,e){const n={},i=Yt(e),s=i?Object.keys(e):e,o=Yt(t)?i?n=>Gt(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of s)n[t]=oi(o(t));return n}function ai(t){return ri(t,{top:"y",right:"x",bottom:"y",left:"x"})}function li(t){return ri(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ci(t){const e=ai(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function hi(t,e){t=t||{},e=e||Vn.font;let n=Gt(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=Gt(t.style,e.style);i&&!(""+i).match(ii)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const s={family:Gt(t.family,e.family),lineHeight:si(Gt(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Gt(t.weight,e.weight),string:""};return s.string=function(t){return!t||Ut(t.size)||Ut(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function ui(t,e,n,i){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),a=!1),void 0!==n&&qt(r)&&(r=r[n%r.length],a=!1),void 0!==r))return i&&!a&&(i.cacheable=!1),r}function di(t,e){return Object.assign(Object.create(t),e)}function fi(t,e=[""],n=t,i,s=(()=>t[0])){he(i)||(i=wi("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:s,override:s=>fi([s,...t],e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>xi(n,i,(()=>function(t,e,n,i){let s;for(const o of e)if(s=wi(mi(o,t),n),he(s))return bi(t,s)?$i(n,i,t,s):s}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ci(t).includes(e),ownKeys:t=>Ci(t),set(t,e,n){const i=t._storage||(t._storage=s());return t[e]=i[e]=n,delete t._keys,!0}})}function pi(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:gi(t,i),setContext:e=>pi(t,e,n,i),override:s=>pi(t.override(s),e,n,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>xi(t,e,(()=>function(t,e,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=t;let a=i[e];ue(a)&&r.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,r||i),a.delete(t),bi(t,e)&&(e=$i(s._scopes,s,t,e));return e}(e,a,t,n));qt(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(he(o.index)&&i(t))e=e[o.index%e.length];else if(Yt(e[0])){const n=e,i=s._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=$i(i,s,t,l);e.push(pi(n,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable));bi(e,a)&&(a=pi(a,s,o&&o[e],r));return a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function gi(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:ue(n)?n:()=>n,isIndexable:ue(i)?i:()=>i}}const mi=(t,e)=>t?t+ce(e):e,bi=(t,e)=>Yt(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function xi(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function yi(t,e,n){return ue(t)?t(e,n):t}const _i=(t,e)=>!0===t?e:"string"==typeof t?le(e,t):void 0;function vi(t,e,n,i,s){for(const o of e){const e=_i(n,o);if(e){t.add(e);const o=yi(e._fallback,n,s);if(he(o)&&o!==n&&o!==i)return o}else if(!1===e&&he(i)&&n!==i)return null}return!1}function $i(t,e,n,i){const s=e._rootScopes,o=yi(e._fallback,n,i),r=[...t,...s],a=new Set;a.add(i);let l=ki(a,r,n,o||n,i);return null!==l&&((!he(o)||o===n||(l=ki(a,r,o,l,i),null!==l))&&fi(Array.from(a),[""],s,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];if(qt(s)&&Yt(n))return n;return s}(e,n,i))))}function ki(t,e,n,i,s){for(;n;)n=vi(t,e,n,i,s);return n}function wi(t,e){for(const n of e){if(!n)continue;const e=n[t];if(he(e))return e}}function Ci(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Mi(t,e,n,i){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(i);let a,l,c,h;for(a=0,l=i;a<l;++a)c=a+n,h=e[c],r[a]={r:s.parse(le(h,o),c)};return r}const Si=Number.EPSILON||1e-14,Li=(t,e)=>e<t.length&&!t[e].skip&&t[e],Di=t=>"x"===t?"y":"x";function Pi(t,e,n,i){const s=t.skip?e:t,o=e,r=n.skip?e:n,a=Oe(o,s),l=Oe(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=i*c,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function Oi(t,e="x"){const n=Di(e),i=t.length,s=Array(i).fill(0),o=Array(i);let r,a,l,c=Li(t,0);for(r=0;r<i;++r)if(a=l,l=c,c=Li(t,r+1),l){if(c){const t=c[e]-l[e];s[r]=0!==t?(c[n]-l[n])/t:0}o[r]=a?c?$e(s[r-1])!==$e(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,n){const i=t.length;let s,o,r,a,l,c=Li(t,0);for(let h=0;h<i-1;++h)l=c,c=Li(t,h+1),l&&c&&(Ce(e[h],0,Si)?n[h]=n[h+1]=0:(s=n[h]/e[h],o=n[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),n[h]=s*r*e[h],n[h+1]=o*r*e[h])))}(t,s,o),function(t,e,n="x"){const i=Di(n),s=t.length;let o,r,a,l=Li(t,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Li(t,c+1),!a)continue;const s=a[n],h=a[i];r&&(o=(s-r[n])/3,a[`cp1${n}`]=s-o,a[`cp1${i}`]=h-o*e[c]),l&&(o=(l[n]-s)/3,a[`cp2${n}`]=s+o,a[`cp2${i}`]=h+o*e[c])}}(t,o,e)}function Ai(t,e,n){return Math.max(Math.min(t,n),e)}function Ei(t,e,n,i,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Oi(t,s);else{let n=i?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=Pi(n,a,t[Math.min(o+1,r-(i?0:1))%r],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}e.capBezierPoints&&function(t,e){let n,i,s,o,r,a=Zn(t[0],e);for(n=0,i=t.length;n<i;++n)r=o,o=a,a=n<i-1&&Zn(t[n+1],e),o&&(s=t[n],r&&(s.cp1x=Ai(s.cp1x,e.left,e.right),s.cp1y=Ai(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=Ai(s.cp2x,e.left,e.right),s.cp2y=Ai(s.cp2y,e.top,e.bottom)))}(t,n)}function Ti(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ri(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function zi(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Ii=t=>window.getComputedStyle(t,null);const Fi=["top","right","bottom","left"];function Ni(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=Fi[s];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const ji=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Bi(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,s=Ii(n),o="border-box"===s.boxSizing,r=Ni(s,"padding"),a=Ni(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:s,offsetY:o}=i;let r,a,l=!1;if(ji(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:r,y:a,box:l}}(t,n),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-u)/f*n.width/i),y:Math.round((c-d)/p*n.height/i)}}const Vi=t=>Math.round(10*t)/10;function Hi(t,e,n,i){const s=Ii(t),o=Ni(s,"margin"),r=zi(s.maxWidth,t,"clientWidth")||me,a=zi(s.maxHeight,t,"clientHeight")||me,l=function(t,e,n){let i,s;if(void 0===e||void 0===n){const o=Ri(t);if(o){const t=o.getBoundingClientRect(),r=Ii(o),a=Ni(r,"border","width"),l=Ni(r,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=zi(r.maxWidth,o,"clientWidth"),s=zi(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||me,maxHeight:s||me}}(t,e,n);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=Ni(s,"border","width"),e=Ni(s,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-o.width),h=Math.max(0,i?Math.floor(c/i):h-o.height),c=Vi(Math.min(c,r,l.maxWidth)),h=Vi(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Vi(c/2)),{width:c,height:h}}function Wi(t,e,n){const i=e||1,s=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=s/i,t.width=o/i;const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=i,r.height=s,r.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Ui=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function qi(t,e){const n=function(t,e){return Ii(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Yi(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Zi(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function Xi(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Yi(t,s,n),a=Yi(s,o,n),l=Yi(o,e,n),c=Yi(r,a,n),h=Yi(a,l,n);return Yi(c,h,n)}const Gi=new Map;function Ki(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Gi.get(n);return i||(i=new Intl.NumberFormat(t,e),Gi.set(n,i)),i}(e,n).format(t)}const Ji=function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},Qi=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function ts(t,e,n){return t?Ji(e,n):Qi()}function es(t){return"angle"===t?{between:Te,compare:Ae,normalize:Ee}:{between:ze,compare:(t,e)=>t-e,normalize:t=>t}}function ns({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:s}}function is(t,e,n){if(!n)return[t];const{property:i,start:s,end:o}=n,r=e.length,{compare:a,between:l,normalize:c}=es(i),{start:h,end:u,loop:d,style:f}=function(t,e,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=es(i),l=e.length;let c,h,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,c=0,h=l;c<h&&r(a(e[u%l][i]),s,o);++c)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,n),p=[];let g,m,b,x=!1,y=null;const _=()=>x||l(s,b,g)&&0!==a(s,b),v=()=>!x||0===a(o,g)||l(o,b,g);for(let t=h,n=h;t<=u;++t)m=e[t%r],m.skip||(g=c(m[i]),g!==b&&(x=l(g,s,o),null===y&&_()&&(y=0===a(g,s)?t:n),null!==y&&v()&&(p.push(ns({start:y,end:t,loop:d,count:r,style:f})),y=null),n=t,b=g));return null!==y&&p.push(ns({start:y,end:u,loop:d,count:r,style:f})),p}function ss(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const s=t._chart.getContext(),o=os(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=n.length,c=[];let h=o,u=e[0].start,d=u;function f(t,e,i,s){const o=a?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:i,style:s}),h=s,u=e%l)}}for(const t of e){u=a?u:t.start;let e,o=n[u%l];for(d=u+1;d<=t.end;d++){const a=n[d%l];e=os(i.setContext(di(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),rs(e,h)&&f(u,d-1,t.loop,h),o=a,h=e}u<d-1&&f(u,d-1,t.loop,h)}return c}(t,e,n,i):e}function os(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function rs(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
|
15
|
+
/*!
|
16
|
+
* Chart.js v3.9.1
|
10
17
|
* https://www.chartjs.org
|
11
|
-
* (c)
|
18
|
+
* (c) 2022 Chart.js Contributors
|
12
19
|
* Released under the MIT License
|
13
|
-
*/var qi=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const s=e.listeners[i],o=e.duration;s.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Nt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const s=n.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),s.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const 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;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const Yi="transparent",Zi={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=vn(t||Yi),s=i.valid&&vn(e||Yi);return s&&s.valid?s.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Xi{constructor(t,e,n,i){const s=e[n];i=Zn([t.to,i,s,t.from]);const o=Zn([t.from,s,i]);this._active=!0,this._fn=t.fn||Zi[t.type||typeof o],this._easing=je[t.easing]||je.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=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],s=n-this._start,o=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Zn([t.to,e,i,t.from]),this._from=Zn([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=s:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}Mn.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Gi=Object.keys(Mn.animation);Mn.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Mn.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Mn.describe("animations",{_fallback:"animation"}),Mn.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class Ki{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!qt(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const i=t[n];if(!qt(i))return;const s={};for(const t of Gi)s[t]=i[t];(Ut(i.properties)&&i.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,s)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const s=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const s=t[i[e]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),s}_createAnimations(t,e){const n=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const u=n.get(l);if(h){if(u&&h.active()){h.update(u,c,r);continue}h.cancel()}u&&u.duration?(s[l]=h=new Xi(u,t,l,c),i.push(h)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(qi.add(this._chart,n),!0):void 0}}function Qi(t,e){const n=t&&t.options||{},i=n.reverse,s=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:s,end:i?s:o}}function Ji(t,e){const n=[],i=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function ts(t,e,n,i={}){const s=t.keys,o="single"===i.mode;let r,a,l,c;if(null!==e){for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(i.all)continue;break}c=t.values[l],Yt(c)&&(o||0===e||_e(e)===_e(c))&&(e+=c)}return e}}function es(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function ns(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function is(t,e,n,i){for(const s of e.getMatchingVisibleMetas(i).reverse()){const e=t[s.index];if(n&&e>0||!n&&e<0)return s.index}return null}function ss(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,r,i),u=e.length;let d;for(let t=0;t<u;++t){const n=e[t],{[l]:o,[c]:u}=n;d=(n._stacks||(n._stacks={}))[c]=ns(s,h,o),d[a]=u,d._top=is(d,r,!0,i.type),d._bottom=is(d,r,!1,i.type)}}function os(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function rs(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const as=t=>"reset"===t||"none"===t,ls=(t,e)=>e?t:Object.assign({},t);class cs{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.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=es(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&rs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,s=e.xAxisID=Xt(n.xAxisID,os(t,"x")),o=e.yAxisID=Xt(n.yAxisID,os(t,"y")),r=e.rAxisID=Xt(n.rAxisID,os(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,s,o,r),c=e.vAxisID=i(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ti(this._data,this),t._stacked&&rs(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(qt(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,s,o;for(i=0,s=e.length;i<s;++i)o=e[i],n[i]={x:o,y:t[o]};return n}(e);else if(n!==e){if(n){ti(n,this);const t=this._cachedMeta;rs(t),t._parsed=[]}e&&Object.isExtensible(e)&&(s=this,(i=e)._chartjs?i._chartjs.listeners.push(s):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),Jn.forEach((t=>{const e="_onData"+le(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const s=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),s}})})))),this._syncList=[],this._data=e}var i,s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const s=e._stacked;e._stacked=es(e.vScale,e),e.stack!==n.stack&&(i=!0,rs(e),e.stack=n.stack),this._resyncElements(t),(i||s!==e._stacked)&&ss(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:s,_stacked:o}=n,r=s.axis;let a,l,c,h=0===t&&e===i.length||n._sorted,u=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Ut(i[t])?this.parseArrayData(n,i,t,e):qt(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const s=()=>null===l[r]||u&&l[r]<u[r];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],h&&(s()&&(h=!1),u=l);n._sorted=h}o&&ss(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),c=s===o,h=new Array(i);let u,d,f;for(u=0,d=i;u<d;++u)f=u+n,h[u]={[r]:c||s.parse(l[f],f),[a]:o.parse(e[f],f)};return h}parseArrayData(t,e,n,i){const{xScale:s,yScale:o}=t,r=new Array(i);let a,l,c,h;for(a=0,l=i;a<l;++a)c=a+n,h=e[c],r[a]={x:s.parse(h[0],c),y:o.parse(h[1],c)};return r}parseObjectData(t,e,n,i){const{xScale:s,yScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,h,u,d;for(c=0,h=i;c<h;++c)u=c+n,d=e[u],l[c]={x:s.parse(ae(d,r),u),y:o.parse(ae(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,s=this._cachedMeta,o=e[t.axis];return ts({keys:Ji(i,!0),values:e._stacks[t.axis]},o,s.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const s=n[e.axis];let o=null===s?NaN:s;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,o=ts(i,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,s=n._sorted&&t===n.iScale,o=i.length,r=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ji(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:n,minDefined:i,maxDefined:s}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}(r);let u,d;function f(){d=i[u];const e=d[r.axis];return!Yt(d[t.axis])||c>e||h<e}for(u=0;u<o&&(f()||(this.updateRangeFromParsed(l,t,d,a),!s));++u);if(s)for(u=o-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,s,o;for(i=0,s=e.length;i<s;++i)o=e[i][t.axis],Yt(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,s=this.getParsed(t);return{label:n?""+n.getLabelForValue(s[n.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,s;return qt(t)?(e=t.top,n=t.right,i=t.bottom,s=t.left):e=n=i=s=t,{top:e,right:n,bottom:i,left:s,disabled:!1===t}}(Xt(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Qi(t,n),s=Qi(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||i.length-r,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,s,r,a),c=r;c<r+a;++c){const e=i[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,s))}for(c=0;c<o.length;++c)o[c].draw(t,s)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,n){return Xn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=i.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return Xn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=n,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,s=this._cachedDataOpts,o=t+"-"+e,r=s[o],a=this.enableOptionSharing&&ce(n);if(r)return ls(r,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),d=Object.keys(Mn.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(n,i)),h);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(ls(f,a))),f}_resolveAnimations(t,e,n){const i=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==i.options.animation){const i=this.chart.config,s=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),s);a=i.createResolver(o,this.getContext(t,n,e))}const l=new Ki(i,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||as(t)||this.chart._animationsDisabled}updateElement(t,e,n,i){as(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!as(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const s=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,s=e.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s<i&&this._removeElements(s,i-s)}_insertElements(t,e,n=!0){const i=this._cachedMeta,s=i.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(s,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&rs(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function hs(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,s=n.length;e<s;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=ei(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(ce(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(i=0,s=n.length;i<s;++i)o=e.getPixelForValue(n[i]),l();for(r=void 0,i=0,s=e.ticks.length;i<s;++i)o=e.getPixelForTick(i),l();return a}function us(t,e,n,i){return Ut(t)?function(t,e,n,i){const s=n.parse(t[0],i),o=n.parse(t[1],i),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function ds(t,e,n,i){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=n,h=n+i;c<h;++c)d=e[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(us(d,u,o,c));return l}function fs(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function ps(t,e,n,i){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);const{start:r,end:a,reverse:l,top:c,bottom:h}=function(t){let e,n,i,s,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:e,top:s,bottom:o}}(t);"middle"===s&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=h:(o[gs(h,r,a,l)]=!0,s=c)),o[gs(s,r,a,l)]=!0,t.borderSkipped=o}function gs(t,e,n,i){var s,o,r;return i?(r=n,t=ms(t=(s=t)===(o=e)?r:s===r?o:s,n,e)):t=ms(t,e,n),t}function ms(t,e,n){return"start"===t?e:"end"===t?n:t}function bs(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}cs.defaults={},cs.prototype.datasetElementType=null,cs.prototype.dataElementType=null;class xs extends cs{parsePrimitiveData(t,e,n,i){return ds(t,e,n,i)}parseArrayData(t,e,n,i){return ds(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,c="x"===o.axis?r:a,h=[];let u,d,f,p;for(u=n,d=n+i;u<d;++u)p=e[u],f={},f[s.axis]=s.parse(ae(p,l),u),h.push(us(ae(p,c),f,o,u));return h}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const s=n._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,s=this.getParsed(t),o=s._custom,r=fs(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(s[i.axis]);return{label:""+n.getLabelForValue(s[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const s="reset"===i,{index:o,_cachedMeta:{vScale:r}}=this,a=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),h=this.resolveDataElementOptions(e,i),u=this.getSharedOptions(h),d=this.includeOptions(i,u);this.updateSharedOptions(u,i,h);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=s||Wt(e[r.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),f=this._calculateBarIndexPixels(h,c),p=(e._stacks||{})[r.axis],g={horizontal:l,base:n.base,enableBorderRadius:!p||fs(e._custom)||o===p._top||o===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(g.options=u||this.resolveDataElementOptions(h,t[h].active?"active":i));const m=g.options||t[h].options;ps(g,m,p,o),bs(g,m,c.ratio),this.updateElement(t[h],h,g,i)}}_getStacks(t,e){const n=this._cachedMeta.iScale,i=n.getMatchingVisibleMetas(this._type),s=n.options.stacked,o=i.length,r=[];let a,l;for(a=0;a<o;++a)if(l=i[a],l.controller.options.grouped){if(void 0!==e){const t=l.controller.getParsed(e)[l.controller._cachedMeta.vScale.axis];if(Wt(t)||isNaN(t))continue}if((!1===s||-1===r.indexOf(l.stack)||void 0===s&&void 0===l.stack)&&r.push(l.stack),l.index===t)break}return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),s=void 0!==e?i.indexOf(e):-1;return-1===s?i.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let s,o;for(s=0,o=e.data.length;s<o;++s)i.push(n.getPixelForValue(this.getParsed(s)[n.axis],s));const r=t.barThickness;return{min:r||hs(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:s}}=this,o=i||0,r=this.getParsed(t),a=r._custom,l=fs(a);let c,h,u=r[e.axis],d=0,f=n?this.applyStack(e,r,n):u;f!==u&&(d=f-u,f=u),l&&(u=a.barStart,f=a.barEnd-a.barStart,0!==u&&_e(u)!==_e(a.barEnd)&&(d=0),d+=u);const p=Wt(i)||l?d:i;let g=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(d+f):g,h=c-g,Math.abs(h)<s&&(h=function(t,e,n){return 0!==t?_e(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(h,e,o)*s,u===o&&(g-=h/2),c=g+h),g===e.getPixelForValue(o)){const t=_e(h)*e.getLineWidthForValue(o)/2;g+=t,h-=t}return{size:h,base:g,head:c,center:c+h/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,s=i.skipNull,o=Xt(i.maxBarThickness,1/0);let r,a;if(e.grouped){const n=s?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=n.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const s=n.barThickness;let o,r;return Wt(s)?(o=e.min*n.categoryPercentage,r=n.barPercentage):(o=s*i,r=1),{chunk:o/i,ratio:r,start:e.pixels[t]-o/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);r=l.start+l.chunk*c+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else r=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(o,e.min*e.ratio);return{base:r-a/2,head:r+a/2,center:r,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let s=0;for(;s<i;++s)null!==this.getParsed(s)[e.axis]&&n[s].draw(this._ctx)}}xs.id="bar",xs.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},xs.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class ys extends cs{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const s=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+n).radius;return s}parseArrayData(t,e,n,i){const s=super.parseArrayData(t,e,n,i);for(let t=0;t<s.length;t++){const i=e[n+t];s[t]._custom=Xt(i[2],this.resolveDataElementOptions(t+n).radius)}return s}parseObjectData(t,e,n,i){const s=super.parseObjectData(t,e,n,i);for(let t=0;t<s.length;t++){const i=e[n+t];s[t]._custom=Xt(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,s=this.getParsed(t),o=n.getLabelForValue(s.x),r=i.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const s="reset"===i,{iScale:o,vScale:r}=this._cachedMeta,a=this.resolveDataElementOptions(e,i),l=this.getSharedOptions(a),c=this.includeOptions(i,l),h=o.axis,u=r.axis;for(let a=e;a<e+n;a++){const e=t[a],n=!s&&this.getParsed(a),l={},d=l[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(n[h]),f=l[u]=s?r.getBasePixel():r.getPixelForValue(n[u]);l.skip=isNaN(d)||isNaN(f),c&&(l.options=this.resolveDataElementOptions(a,e.active?"active":i),s&&(l.options.radius=0)),this.updateElement(e,a,l,i)}this.updateSharedOptions(l,i,a)}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const s=i.radius;return"active"!==e&&(i.radius=0),i.radius+=Xt(n&&n._custom,s),i}}ys.id="bubble",ys.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ys.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class vs extends cs{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){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let s,o,r=t=>+n[t];if(qt(n[t])){const{key:t="value"}=this._parsing;r=e=>+ae(n[e],t)}for(s=t,o=t+e;s<o;++s)i._parsed[s]=r(s)}}_getRotation(){return Me(this.options.rotation-90)}_getCircumference(){return Me(this.options.circumference)}_getRotationExtents(){let t=fe,e=-fe;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,s=i._getRotation(),o=i._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,s=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(n.width,n.height)-o)/2,0),a=Math.min((l=this.options.cutout,c=r,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const h=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,n){let i=1,s=1,o=0,r=0;if(e<fe){const a=t,l=a+e,c=Math.cos(a),h=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,i)=>Ee(t,a,l,!0)?1:Math.max(e,e*n,i,i*n),p=(t,e,i)=>Ee(t,a,l,!0)?-1:Math.min(e,e*n,i,i*n),g=f(0,c,u),m=f(be,h,d),b=p(de,c,u),x=p(de+be,h,d);i=(g-b)/2,s=(m-x)/2,o=-(g+b)/2,r=-(m+x)/2}return{ratioX:i,ratioY:s,offsetX:o,offsetY:r}}(d,u,a),b=(n.width-o)/f,x=(n.height-o)/p,y=Math.max(Math.min(b,x)/2,0),v=Gt(this.options.radius,y),_=(v-Math.max(v*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=m*v,i.total=this.calculateTotal(),this.outerRadius=v-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,s=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*s/fe)}updateElements(t,e,n,i){const s="reset"===i,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=s&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,f=this.resolveDataElementOptions(e,i),p=this.getSharedOptions(f),g=this.includeOptions(i,p);let m,b=this._getRotation();for(m=0;m<e;++m)b+=this._circumference(m,s);for(m=e;m<e+n;++m){const e=this._circumference(m,s),n=t[m],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:b,endAngle:b+e,circumference:e,outerRadius:d,innerRadius:u};g&&(o.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),b+=e,this.updateElement(n,m,o,i)}this.updateSharedOptions(p,i,f)}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const s=t._parsed[n];null===s||isNaN(s)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(s))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?fe*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],s=Fi(e._parsed[t],n.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,s,o,r,a;if(!t)for(i=0,s=n.data.datasets.length;i<s;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,r=o.controller;break}if(!t)return 0;for(i=0,s=t.length;i<s;++i)a=r.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(Xt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}vs.id="doughnut",vs.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},vs.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},vs.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Ut(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class _s extends cs{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:r,count:a}=function(t,e,n){const i=e.length;let s=0,o=i;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=Re(Math.min(Kn(a,r.axis,c).lo,n?i:Kn(e,l,r.getPixelForValue(c)).lo),0,i-1)),o=d?Re(Math.max(Kn(a,r.axis,h).hi+1,n?0:Kn(e,l,r.getPixelForValue(h)).hi+1),s,i)-s:i-s}return{start:s,count:o}}(e,i,o);this._drawStart=r,this._drawCount=a,function(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}(e)&&(r=0,a=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!s._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:l},t),this.updateElements(i,r,a,t)}updateElements(t,e,n,i){const s="reset"===i,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(c),u=this.includeOptions(i,h),d=o.axis,f=r.axis,{spanGaps:p,segment:g}=this.options,m=we(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),p=b?e:{},y=Wt(n[f]),v=p[d]=o.getPixelForValue(n[d],c),_=p[f]=s||y?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,n,a):n[f],c);p.skip=isNaN(v)||isNaN(_)||y,p.stop=c>0&&n[d]-x[d]>m,g&&(p.parsed=n,p.raw=l.data[c]),u&&(p.options=h||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,p,i),x=n}this.updateSharedOptions(h,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}_s.id="line",_s.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},_s.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class $s extends cs{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],s=Fi(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:s}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(i/2,0),o=(s-Math.max(n.cutoutPercentage?s/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,i){const s="reset"===i,o=this.chart,r=this.getDataset(),a=o.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,h=l.yCenter,u=l.getIndexAngle(0)-.5*de;let d,f=u;const p=360/this.countVisibleElements();for(d=0;d<e;++d)f+=this._computeAngle(d,i,p);for(d=e;d<e+n;d++){const e=t[d];let n=f,g=f+this._computeAngle(d,i,p),m=o.getDataVisibility(d)?l.getDistanceFromCenterForValue(r.data[d]):0;f=g,s&&(a.animateScale&&(m=0),a.animateRotate&&(n=g=u));const b={x:c,y:h,innerRadius:0,outerRadius:m,startAngle:n,endAngle:g,options:this.resolveDataElementOptions(d,e.active?"active":i)};this.updateElement(e,d,b,i)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let n=0;return e.data.forEach(((e,i)=>{!isNaN(t.data[i])&&this.chart.getDataVisibility(i)&&n++})),n}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Me(this.resolveDataElementOptions(t,e).angle||n):0}}$s.id="polarArea",$s.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},$s.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class ws extends vs{}ws.id="pie",ws.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class ks extends cs{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],s=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const s=this.getDataset(),o=this._cachedMeta.rScale,r="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),l=o.getPointPositionForValue(a,s.data[a]),c=r?o.xCenter:l.x,h=r?o.yCenter:l.y,u={x:c,y:h,angle:l.angle,skip:isNaN(c)||isNaN(h),options:n};this.updateElement(e,a,u,i)}}}ks.id="radar",ks.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},ks.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Cs extends _s{}function Ms(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Cs.id="scatter",Cs.defaults={showLine:!1,fill:!1},Cs.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class Ss{constructor(t){this.options=t||{}}formats(){return Ms()}parse(t,e){return Ms()}format(t,e){return Ms()}add(t,e,n){return Ms()}diff(t,e,n){return Ms()}startOf(t,e,n){return Ms()}endOf(t,e){return Ms()}}Ss.override=function(t){Object.assign(Ss.prototype,t)};var Ls={_date:Ss};function Ds(t,e){return"native"in t?{x:t.x,y:t.y}:Li(t,e)}function Os(t,e,n,i){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&r&&o.length){const t=a._reversePixels?Qn:Kn;if(!i)return t(o,e,n);if(s._sharedOptions){const i=o[0],s="function"==typeof i.getRange&&i.getRange(e);if(s){const i=t(o,e,n-s),r=t(o,e,n+s);return{lo:i.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function Ps(t,e,n,i,s){const o=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:l,hi:c}=Os(o[t],e,r,s);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function As(t,e,n,i){const s=[];if(!An(e,t.chartArea,t._minPadding))return s;return Ps(t,n,e,(function(t,n,o){t.inRange(e.x,e.y,i)&&s.push({element:t,datasetIndex:n,index:o})}),!0),s}function Es(t,e,n,i,s){let o=[];const r=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const s=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(n);let a=Number.POSITIVE_INFINITY;return Ps(t,n,e,(function(n,l,c){const h=n.inRange(e.x,e.y,s);if(i&&!h)return;const u=n.getCenterPoint(s);if(!An(u,t.chartArea,t._minPadding)&&!h)return;const d=r(e,u);d<a?(o=[{element:n,datasetIndex:l,index:c}],a=d):d===a&&o.push({element:n,datasetIndex:l,index:c})})),o}function Rs(t,e,n,i,s){return An(e,t.chartArea,t._minPadding)?"r"!==n||i?Es(t,e,n,i,s):function(t,e,n,i){let s=[];return Ps(t,n,e,(function(t,n,o){const{startAngle:r,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=De(t,{x:e.x,y:e.y});Ee(l,r,a)&&s.push({element:t,datasetIndex:n,index:o})})),s}(t,e,n,s):[]}function Ts(t,e,n,i){const s=Ds(e,t),o=[],r=n.axis,a="x"===r?"inXRange":"inYRange";let l=!1;return function(t,e){const n=t.getSortedVisibleDatasetMetas();let i,s,o;for(let t=0,r=n.length;t<r;++t){({index:i,data:s}=n[t]);for(let t=0,n=s.length;t<n;++t)o=s[t],o.skip||e(o,i,t)}}(t,((t,e,n)=>{t[a](s[r],i)&&o.push({element:t,datasetIndex:e,index:n}),t.inRange(s.x,s.y,i)&&(l=!0)})),n.intersect&&!l?[]:o}var zs={modes:{index(t,e,n,i){const s=Ds(e,t),o=n.axis||"x",r=n.intersect?As(t,s,o,i):Rs(t,s,o,!1,i),a=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,n=t.data[e];n&&!n.skip&&a.push({element:n,datasetIndex:t.index,index:e})})),a):[]},dataset(t,e,n,i){const s=Ds(e,t),o=n.axis||"xy";let r=n.intersect?As(t,s,o,i):Rs(t,s,o,!1,i);if(r.length>0){const e=r[0].datasetIndex,n=t.getDatasetMeta(e).data;r=[];for(let t=0;t<n.length;++t)r.push({element:n[t],datasetIndex:e,index:t})}return r},point:(t,e,n,i)=>As(t,Ds(e,t),n.axis||"xy",i),nearest:(t,e,n,i)=>Rs(t,Ds(e,t),n.axis||"xy",n.intersect,i),x:(t,e,n,i)=>Ts(t,e,{axis:"x",intersect:n.intersect},i),y:(t,e,n,i)=>Ts(t,e,{axis:"y",intersect:n.intersect},i)}};const Is=["left","top","right","bottom"];function Fs(t,e){return t.filter((t=>t.pos===e))}function js(t,e){return t.filter((t=>-1===Is.indexOf(t.pos)&&t.box.axis===e))}function Ns(t,e){return t.sort(((t,n)=>{const i=e?n:t,s=e?t:n;return i.weight===s.weight?i.index-s.index:i.weight-s.weight}))}function Bs(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:s}=n;if(!t||!Is.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:r&&e.availableWidth,a.height=s):(a.width=i,a.height=c?c*s:r&&e.availableHeight)}return n}function Vs(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Hs(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 Ws(t,e,n,i){const{pos:s,box:o}=n,r=t.maxPadding;if(!qt(s)){n.size&&(t[s]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[s]+=n.size}o.getPadding&&Hs(r,o.getPadding());const a=Math.max(0,e.outerWidth-Vs(r,t,"left","right")),l=Math.max(0,e.outerHeight-Vs(r,t,"top","bottom")),c=a!==t.w,h=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function Us(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function qs(t,e,n,i){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,Us(a.horizontal,e));const{same:r,other:u}=Ws(e,n,a,i);c|=r&&s.length,h=h||u,l.fullSize||s.push(a)}return c&&qs(s,e,n,i)||h}function Ys(t,e,n,i,s){t.top=n,t.left=e,t.right=e+i,t.bottom=n+s,t.width=i,t.height=s}function Zs(t,e,n,i){const s=n.padding;let{x:o,y:r}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,o=l.size||t.height;ce(l.start)&&(r=l.start),t.fullSize?Ys(t,s.left,r,n.outerWidth-s.right-s.left,o):Ys(t,e.left+l.placed,r,i,o),l.start=r,l.placed+=i,r=t.bottom}else{const i=e.h*c,r=l.size||t.width;ce(l.start)&&(o=l.start),t.fullSize?Ys(t,o,s.top,r,n.outerHeight-s.bottom-s.top):Ys(t,o,e.top+l.placed,r,i),l.start=o,l.placed+=i,o=t.right}}e.x=o,e.y=r}Mn.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Xs={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){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const s=qn(t.options.layout.padding),o=Math.max(e-s.width,0),r=Math.max(n-s.height,0),a=function(t){const e=function(t){const e=[];let n,i,s,o,r,a;for(n=0,i=(t||[]).length;n<i;++n)s=t[n],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),n=Ns(e.filter((t=>t.box.fullSize)),!0),i=Ns(Fs(e,"left"),!0),s=Ns(Fs(e,"right")),o=Ns(Fs(e,"top"),!0),r=Ns(Fs(e,"bottom")),a=js(e,"x"),l=js(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Fs(e,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Qt(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const h=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);Hs(d,qn(i));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),p=Bs(l.concat(c),u);qs(a.fullSize,f,u,p),qs(l,f,u,p),qs(c,f,u,p)&&qs(l,f,u,p),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),Zs(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,Zs(a.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Qt(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Gs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Ks extends Gs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Qs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Js=t=>null===t||""===t;const to=!!Ai&&{passive:!0};function eo(t,e,n){t.canvas.removeEventListener(e,n,to)}function no(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function io(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||no(n.addedNodes,i),e=e&&!no(n.removedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}function so(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||no(n.removedNodes,i),e=e&&!no(n.addedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}const oo=new Map;let ro=0;function ao(){const t=window.devicePixelRatio;t!==ro&&(ro=t,oo.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function lo(t,e,n){const i=t.canvas,s=i&&wi(i);if(!s)return;const o=Bt(((t,e)=>{const i=s.clientWidth;n(t,e),i<s.clientWidth&&n()}),window),r=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)}));return r.observe(s),function(t,e){oo.size||window.addEventListener("resize",ao),oo.set(t,e)}(t,o),r}function co(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){oo.delete(t),oo.size||window.removeEventListener("resize",ao)}(t)}function ho(t,e,n){const i=t.canvas,s=Bt((e=>{null!==t.ctx&&n(function(t,e){const n=Qs[t.type]||t.type,{x:i,y:s}=Li(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==s?s:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,to)}(i,e,s),s}class uo extends Gs{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t.$chartjs={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Js(s)){const e=Ei(t,"width");void 0!==e&&(t.width=e)}if(Js(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Ei(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const n=e.$chartjs.initial;["height","width"].forEach((t=>{const i=n[t];Wt(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),s={attach:io,detach:so,resize:lo}[e]||ho;i[e]=s(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:co,detach:co,resize:co}[e]||eo)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Oi(t,e,n,i)}isAttached(t){const e=wi(t);return!(!e||!e.isConnected)}}class fo{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return we(this.x)&&we(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}fo.defaults={},fo.defaultRoutes=void 0;const po={values:t=>Ut(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let s,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const r=ve(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Fi(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(ve(t)));return 1===i||2===i||5===i?po.numeric.call(this,t,e,n):""}};var go={formatters:po};function mo(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(i,s))}(t),s=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],o=s.length,r=s[0],a=s[o-1],l=[];if(o>i)return function(t,e,n,i){let s,o=0,r=n[0];for(i=Math.ceil(i),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=n[o*i])}(e,l,s,o/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),s=e.length/n;if(!i)return Math.max(s,1);const o=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(s,e,i);if(o>0){let t,n;const i=o>1?Math.round((a-r)/(o-1)):null;for(bo(e,l,c,Wt(i)?0:r-i,r),t=0,n=o-1;t<n;t++)bo(e,l,c,s[t],s[t+1]);return bo(e,l,c,a,Wt(i)?e.length:a+i),l}return bo(e,l,c),l}function bo(t,e,n,i,s){const o=Xt(i,0),r=Math.min(Xt(s,t.length),t.length);let a,l,c,h=0;for(n=Math.ceil(n),s&&(a=s-i,n=a/Math.floor(a/n)),c=o;c<0;)h++,c=Math.round(o+h*n);for(l=Math.max(o,0);l<r;l++)l===c&&(e.push(t[l]),h++,c=Math.round(o+h*n))}Mn.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:go.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Mn.route("scale.ticks","color","","color"),Mn.route("scale.grid","color","","borderColor"),Mn.route("scale.grid","borderColor","","borderColor"),Mn.route("scale.title","color","","color"),Mn.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Mn.describe("scales",{_fallback:"scale"}),Mn.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const xo=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function yo(t,e){const n=[],i=t.length/e,s=t.length;let o=0;for(;o<s;o+=i)n.push(t[Math.floor(o)]);return n}function vo(t,e,n){const i=t.ticks.length,s=Math.min(e,i-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(s);if(!(n&&(l=1===i?Math.max(c-o,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(s-1))/2,c+=s<e?l:-l,c<o-a||c>r+a)))return c}function _o(t){return t.drawTicks?t.tickLength:0}function $o(t,e){if(!t.display)return 0;const n=Yn(t.font,e),i=qn(t.padding);return(Ut(t.text)?t.text.length:1)*n.lineHeight+i.height}function wo(t,e,n){let i=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class ko extends fo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Zt(t,Number.POSITIVE_INFINITY),e=Zt(e,Number.NEGATIVE_INFINITY),n=Zt(n,Number.POSITIVE_INFINITY),i=Zt(i,Number.NEGATIVE_INFINITY),{min:Zt(t,n),max:Zt(e,i),minDefined:Yt(t),maxDefined:Yt(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),s||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=s&&n>i?n:i,{min:Zt(n,Zt(i,n)),max:Zt(i,Zt(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Kt(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:s,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:s}=t,o=Gt(e,(s-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(o)),max:r(s,o)}}(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r<this.ticks.length;this._convertTicksToLabels(a?yo(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=mo(this,this.ticks),this._labelSizes=null),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Kt(this.options.afterUpdate,[this])}beforeSetDimensions(){Kt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Kt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Kt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Kt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,s;for(n=0,i=t.length;n<i;n++)s=t[n],s.label=Kt(e.callback,[s.value,n,t],this)}afterTickToLabelConversion(){Kt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Kt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,s=e.maxRotation;let o,r,a,l=i;if(!this._isVisible()||!e.display||i>=s||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),h=c.widest.width,u=c.highest.height,d=Re(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/n:d/(n-1),h+6>o&&(o=d/(n-(t.offset?.5:1)),r=this.maxHeight-_o(t.grid)-e.padding-$o(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),l=Se(Math.min(Math.asin(Re((c.highest.height+6)/o,-1,1)),Math.asin(Re(r/a,-1,1))-Math.asin(Re(u/a,-1,1)))),l=Math.max(i,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){Kt(this.options.afterCalculateLabelRotation,[this])}beforeFit(){Kt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=$o(i,e.options.font);if(r?(t.width=this.maxWidth,t.height=_o(s)+o):(t.height=this.maxHeight,t.width=_o(s)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:s,highest:o}=this._getLabelSizes(),a=2*n.padding,l=Me(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=n.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,h,c)}}this._handleMargins(),r?(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,n,i){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=i*t.width,u=n*e.height):(h=n*t.height,u=i*e.width):"start"===s?u=e.width:"end"===s?h=t.width:(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===s?(n=0,i=t.height):"end"===s&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_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(){Kt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Wt(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=yo(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,s=[],o=[];let r,a,l,c,h,u,d,f,p,g,m,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,h=this._resolveTickFontOptions(r),n.font=u=h.string,d=i[u]=i[u]||{data:{},gc:[]},f=h.lineHeight,p=g=0,Wt(c)||Ut(c)){if(Ut(c))for(a=0,l=c.length;a<l;++a)m=c[a],Wt(m)||Ut(m)||(p=Sn(n,d.data,d.gc,p,m),g+=f)}else p=Sn(n,d.data,d.gc,p,c),g=f;s.push(p),o.push(g),b=Math.max(p,b),x=Math.max(g,x)}!function(t,e){Qt(t,(t=>{const n=t.gc,i=n.length/2;let s;if(i>e){for(s=0;s<i;++s)delete t.data[n[s]];n.splice(0,i)}}))}(i,e);const y=s.indexOf(b),v=o.indexOf(x),_=t=>({width:s[t]||0,height:o[t]||0});return{first:_(0),last:_(e-1),widest:_(y),highest:_(v),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Re(this._alignToPixels?Dn(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return Xn(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Xn(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Me(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,r=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*n>r*i?r/n:a/i:a*i<r*n?a/n:r/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:s,position:o}=i,r=s.offset,a=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=_o(s),h=[],u=s.setContext(this.getContext()),d=u.drawBorder?u.borderWidth:0,f=d/2,p=function(t){return Dn(n,t,d)};let g,m,b,x,y,v,_,$,w,k,C,M;if("top"===o)g=p(this.bottom),v=this.bottom-c,$=g-f,k=p(t.top)+f,M=t.bottom;else if("bottom"===o)g=p(this.top),k=t.top,M=p(t.bottom)-f,v=g+f,$=this.top+c;else if("left"===o)g=p(this.right),y=this.right-c,_=g-f,w=p(t.left)+f,C=t.right;else if("right"===o)g=p(this.left),w=t.left,C=p(t.right)-f,y=g+f,_=this.left+c;else if("x"===e){if("center"===o)g=p((t.top+t.bottom)/2+.5);else if(qt(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}k=t.top,M=t.bottom,v=g+f,$=v+c}else if("y"===e){if("center"===o)g=p((t.left+t.right)/2);else if(qt(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}y=g-f,_=y-c,w=t.left,C=t.right}const S=Xt(i.ticks.maxTicksLimit,l),L=Math.max(1,Math.ceil(l/S));for(m=0;m<l;m+=L){const t=s.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,o=s.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,u=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;b=vo(this,m,r),void 0!==b&&(x=Dn(n,b,e),a?y=_=w=C=x:v=$=k=M=x,h.push({tx1:y,ty1:v,tx2:_,ty2:$,x1:w,y1:k,x2:C,y2:M,width:e,color:i,borderDash:o,borderDashOffset:l,tickWidth:c,tickColor:u,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=g,h}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:s}=n,o=this.isHorizontal(),r=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=s,u=_o(n.grid),d=u+c,f=h?-c:d,p=-Me(this.labelRotation),g=[];let m,b,x,y,v,_,$,w,k,C,M,S,L="middle";if("top"===i)_=this.bottom-f,$=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+f,$=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(u);$=t.textAlign,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(u);$=t.textAlign,v=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+d;else if(qt(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+d}$=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)v=(t.left+t.right)/2-d;else if(qt(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}$=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?L="top":"end"===a&&(L="bottom"));const D=this._getLabelSizes();for(m=0,b=r.length;m<b;++m){x=r[m],y=x.label;const t=s.setContext(this.getContext(m));w=this.getPixelForTick(m)+s.labelOffset,k=this._resolveTickFontOptions(m),C=k.lineHeight,M=Ut(y)?y.length:1;const e=M/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let u;if(o?(v=w,S="top"===i?"near"===l||0!==p?-M*C+C/2:"center"===l?-D.highest.height/2-e*C+C:-D.highest.height+C/2:"near"===l||0!==p?C/2:"center"===l?D.highest.height/2-e*C:D.highest.height-M*C,h&&(S*=-1)):(_=w,S=(1-M)*C/2),t.showLabelBackdrop){const e=qn(t.backdropPadding),n=D.heights[m],i=D.widths[m];let s=_+S-e.top,o=v-e.left;switch(L){case"middle":s-=n/2;break;case"bottom":s-=n}switch($){case"center":o-=i/2;break;case"right":o-=i}u={left:o,top:s,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:p,label:y,font:k,color:n,strokeColor:a,strokeWidth:c,textOffset:S,textAlign:$,textBaseline:L,translation:[v,_],backdrop:u})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Me(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align&&(n="right"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+s,"near"===n?a="left":"center"===n?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===n?a="right":"center"===n?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+s,"near"===n?a="right":"center"===n?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===n?a="left":"center"===n?(a="center",l+=r/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const 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(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(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(e.display)for(s=0,o=i.length;s<o;++s){const t=i[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),s=n.drawBorder?i.borderWidth:0;if(!s)return;const o=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let a,l,c,h;this.isHorizontal()?(a=Dn(t,this.left,s)-s/2,l=Dn(t,this.right,o)+o/2,c=h=r):(c=Dn(t,this.top,s)-s/2,h=Dn(t,this.bottom,o)+o/2,a=l=r),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(a,c),e.lineTo(l,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&En(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let s,o;for(s=0,o=i.length;s<o;++s){const t=i[s],n=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),In(e,o,0,t.textOffset,n,t)}n&&Rn(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const s=Yn(n.font),o=qn(n.padding),r=n.align;let a=s.lineHeight/2;"bottom"===e||"center"===e||qt(e)?(a+=o.bottom,Ut(n.text)&&(a+=s.lineHeight*(n.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:h,rotation:u}=function(t,e,n,i){const{top:s,left:o,bottom:r,right:a,chart:l}=t,{chartArea:c,scales:h}=l;let u,d,f,p=0;const g=r-s,m=a-o;if(t.isHorizontal()){if(d=Vt(i,o,a),qt(n)){const t=Object.keys(n)[0],i=n[t];f=h[t].getPixelForValue(i)+g-e}else f="center"===n?(c.bottom+c.top)/2+g-e:xo(t,n,e);u=a-o}else{if(qt(n)){const t=Object.keys(n)[0],i=n[t];d=h[t].getPixelForValue(i)-m+e}else d="center"===n?(c.left+c.right)/2-m+e:xo(t,n,e);f=Vt(i,r,s),p="left"===n?-be:be}return{titleX:d,titleY:f,maxWidth:u,rotation:p}}(this,a,e,r);In(t,n.text,0,0,s,{color:n.color,maxWidth:h,rotation:u,textAlign:wo(r,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Xt(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===ko.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return Yn(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Co{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in i||(i[s]=t,function(t,e,n){const i=ie(Object.create(null),[n?Mn.get(n):{},Mn.get(e),t.defaults]);Mn.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),s=i.pop(),o=[t].concat(i).join("."),r=e[n].split("."),a=r.pop(),l=r.join(".");Mn.route(o,s,l,a)}))}(e,t.defaultRoutes);t.descriptors&&Mn.describe(e,t.descriptors)}(t,o,n),this.override&&Mn.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Mn[i]&&(delete Mn[i][n],this.override&&delete $n[n])}}var Mo=new class{constructor(){this.controllers=new Co(cs,"datasets",!0),this.elements=new Co(fo,"elements"),this.plugins=new Co(Object,"plugins"),this.scales=new Co(ko,"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,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):Qt(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=le(t);Kt(n["before"+i],[],n),e[t](n),Kt(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class So{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(s,t,e,n);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const s of t){const t=s.plugin;if(!1===Kt(t[n],[e,i,s.options],t)&&i.cancelable)return!1}return!0}invalidate(){Wt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=Xt(n.options&&n.options.plugins,{}),s=function(t){const e=[],n=Object.keys(Mo.plugins.items);for(let t=0;t<n.length;t++)e.push(Mo.getPlugin(n[t]));const i=t.plugins||[];for(let t=0;t<i.length;t++){const n=i[t];-1===e.indexOf(n)&&e.push(n)}return e}(n);return!1!==i||e?function(t,e,n,i){const s=[],o=t.getContext();for(let r=0;r<e.length;r++){const a=e[r],l=Lo(n[a.id],i);null!==l&&s.push({plugin:a,options:Do(t.config,a,l,o)})}return s}(t,s,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Lo(t,e){return e||!1!==t?!0===t?{}:t:null}function Do(t,e,n,i){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(n,s);return t.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Oo(t,e){const n=Mn.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Po(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Ao(t){const e=t.options||(t.options={});e.plugins=Xt(e.plugins,{}),e.scales=function(t,e){const n=$n[t.type]||{scales:{}},i=e.scales||{},s=Oo(t.type,e),o=Object.create(null),r=Object.create(null);return Object.keys(i).forEach((t=>{const e=i[t];if(!qt(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=Po(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(a,s),c=n.scales||{};o[a]=o[a]||t,r[t]=se(Object.create(null),[{axis:a},e,c[a],c[l]])})),t.data.datasets.forEach((n=>{const s=n.type||t.type,a=n.indexAxis||Oo(s,e),l=($n[s]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),s=n[e+"AxisID"]||o[e]||e;r[s]=r[s]||Object.create(null),se(r[s],[{axis:e},i[s],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];se(e,[Mn.scales[e.type],Mn.scale])})),r}(t,e)}function Eo(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ro=new Map,To=new Set;function zo(t,e){let n=Ro.get(t);return n||(n=e(),Ro.set(t,n),To.add(n)),n}const Io=(t,e,n)=>{const i=ae(e,n);void 0!==i&&t.add(i)};class Fo{constructor(t){this._config=function(t){return(t=t||{}).data=Eo(t.data),Ao(t),t}(t),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=Eo(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ao(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return zo(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return zo(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return zo(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return zo(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:s}=this,o=this._cachedScopes(t,n),r=o.get(e);if(r)return r;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>Io(a,t,e)))),e.forEach((t=>Io(a,i,t))),e.forEach((t=>Io(a,$n[s]||{},t))),e.forEach((t=>Io(a,Mn,t))),e.forEach((t=>Io(a,wn,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),To.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,$n[e]||{},Mn.datasets[e]||{},{type:e},Mn,wn]}resolveNamedOptions(t,e,n,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=jo(this._resolverCache,t,i);let a=o;if(function(t,e){const{isScriptable:n,isIndexable:i}=si(t);for(const s of e){const e=n(s),o=i(s),r=(o||e)&&t[s];if(e&&(he(r)||No(r))||o&&Ut(r))return!0}return!1}(o,e)){s.$shared=!1;a=ii(o,n=he(n)?n():n,this.createResolver(t,n,r))}for(const t of e)s[t]=a[t];return s}createResolver(t,e,n=[""],i){const{resolver:s}=jo(this._resolverCache,t,n);return qt(e)?ii(s,e,void 0,i):s}}function jo(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let o=i.get(s);if(!o){o={resolver:ni(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(s,o)}return o}const No=t=>qt(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||he(t[n])),!1);const Bo=["top","bottom","left","right","chartArea"];function Vo(t,e){return"top"===t||"bottom"===t||-1===Bo.indexOf(t)&&"x"===e}function Ho(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Wo(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Kt(n&&n.onComplete,[t],e)}function Uo(t){const e=t.chart,n=e.options.animation;Kt(n&&n.onProgress,[t],e)}function qo(t){return $i()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Yo={},Zo=t=>{const e=qo(t);return Object.values(Yo).filter((t=>t.canvas===e)).pop()};function Xo(t,e,n){const i=Object.keys(t);for(const s of i){const i=+s;if(i>=e){const o=t[s];delete t[s],(n>0||i>e)&&(t[i+n]=o)}}}class Go{constructor(t,e){const n=this.config=new Fo(e),i=qo(t),s=Zo(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!$i()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ks:uo}(i)),this.platform.updateConfig(n);const r=this.platform.acquireContext(i,o.aspectRatio),a=r&&r.canvas,l=a&&a.height,c=a&&a.width;this.id=Ht(),this.ctx=r,this.canvas=a,this.width=c,this.height=l,this._options=o,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 So,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Yo[this.id]=this,r&&a?(qi.listen(this,"complete",Wo),qi.listen(this,"progress",Uo),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:s}=this;return Wt(t)?e&&s?s:i?n/i: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}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Pi(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return On(this.canvas,this.ctx),this}stop(){return qi.stop(this),this}resize(t,e){qi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,s=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,s),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Pi(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),Kt(n.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Qt(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const n=e[t],i=Po(t,n),s="r"===i,o="x"===i;return{options:n,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),Qt(s,(e=>{const s=e.options,o=s.id,r=Po(o,s),a=Xt(s.type,e.dtype);void 0!==s.position&&Vo(s.position,r)===Vo(e.dposition)||(s.position=e.dposition),i[o]=!0;let l=null;if(o in n&&n[o].type===a)l=n[o];else{l=new(Mo.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(s,t)})),Qt(i,((t,e)=>{t||delete n[e]})),Qt(n,(t=>{Xs.configure(this,t,t.options),Xs.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Ho("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let s=this.getDatasetMeta(n);const o=i.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=o,s.indexAxis=i.indexAxis||Oo(o,this.options),s.order=i.order||0,s.index=n,s.label=""+i.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const e=Mo.getController(o),{datasetElementType:i,dataElementType:r}=Mn.datasets[o];Object.assign(e.prototype,{dataElementType:Mo.getElement(r),datasetElementType:i&&Mo.getElement(i)}),s.controller=new e(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Qt(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===s.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Qt(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ho("z","_idx"));const{_active:r,_lastEvent:a}=this;a?this._eventHandler(a,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){Qt(this.scales,(t=>{Xs.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);ue(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:s}of e){Xo(t,i,"_removeElements"===n?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!ue(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Xs.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Qt(this.boxes,(t=>{n&&"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<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,he(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(qi.has(this)?this.attached&&!qi.running(this)&&qi.start(this):(this.draw(),Wo({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,s;for(i=0,s=e.length;i<s;++i){const s=e[i];t&&!s.visible||n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,s=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&En(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),t.controller.draw(),i&&Rn(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}getElementsAtEventForMode(t,e,n,i){const s=zs.modes[e];return"function"==typeof s?s(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=Xn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);ce(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(s,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),qi.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),On(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Yo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Qt(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",s),n("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){Qt(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Qt(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Jt(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=n?t:s(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:An(t,this.chartArea,this._minPadding)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const s=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(s||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:s}=this,o=e,r=this._getActiveElements(t,i,n,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,Kt(s.onHover,[t,r,this],this),a&&Kt(s.onClick,[t,r,this],this));const c=!Jt(r,i);return(c||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}const Ko=()=>Qt(Go.instances,(t=>t._plugins.invalidate())),Qo=!0;function Jo(t,e,n){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=e;let c=s/a;t.beginPath(),t.arc(o,r,a,i-c,n+c),l>s?(c=s/l,t.arc(o,r,l,n+c,i-c,!0)):t.arc(o,r,s,n+be,i-be),t.closePath(),t.clip()}function tr(t,e,n,i){const s=Hn(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(n-e)/2,r=Math.min(o,i*e/2),a=t=>{const e=(n-Math.min(o,t))*i/2;return Re(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Re(s.innerStart,0,r),innerEnd:Re(s.innerEnd,0,r)}}function er(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function nr(t,e,n,i,s){const{x:o,y:r,startAngle:a,pixelMargin:l,innerRadius:c}=e,h=Math.max(e.outerRadius+i+n-l,0),u=c>0?c+i+n+l:0;let d=0;const f=s-a;if(i){const t=((c>0?c-i:0)+(h>0?h-i:0))/2;d=(f-(0!==t?f*t/(t+i):f))/2}const p=(f-Math.max(.001,f*h-n/de)/h)/2,g=a+p+d,m=s-p-d,{outerStart:b,outerEnd:x,innerStart:y,innerEnd:v}=tr(e,u,h,m-g),_=h-b,$=h-x,w=g+b/_,k=m-x/$,C=u+y,M=u+v,S=g+y/C,L=m-v/M;if(t.beginPath(),t.arc(o,r,h,w,k),x>0){const e=er($,k,o,r);t.arc(e.x,e.y,x,k,m+be)}const D=er(M,m,o,r);if(t.lineTo(D.x,D.y),v>0){const e=er(M,L,o,r);t.arc(e.x,e.y,v,m+be,L+Math.PI)}if(t.arc(o,r,u,m-v/u,g+y/u,!0),y>0){const e=er(C,S,o,r);t.arc(e.x,e.y,y,S+Math.PI,g-be)}const O=er(_,g,o,r);if(t.lineTo(O.x,O.y),b>0){const e=er(_,w,o,r);t.arc(e.x,e.y,b,g-be,w)}t.closePath()}function ir(t,e,n,i,s){const{options:o}=e,{borderWidth:r,borderJoinStyle:a}=o,l="inner"===o.borderAlign;r&&(l?(t.lineWidth=2*r,t.lineJoin=a||"round"):(t.lineWidth=r,t.lineJoin=a||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:s,startAngle:o,pixelMargin:r,fullCircles:a}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let h;for(n&&Jo(t,e,o+fe),t.beginPath(),t.arc(i,s,c,o+fe,o,!0),h=0;h<a;++h)t.stroke();for(t.beginPath(),t.arc(i,s,l,o,o+fe),h=0;h<a;++h)t.stroke()}(t,e,l),l&&Jo(t,e,s),nr(t,e,n,i,s),t.stroke())}Object.defineProperties(Go,{defaults:{enumerable:Qo,value:Mn},instances:{enumerable:Qo,value:Yo},overrides:{enumerable:Qo,value:$n},registry:{enumerable:Qo,value:Mo},version:{enumerable:Qo,value:"3.7.0"},getChart:{enumerable:Qo,value:Zo},register:{enumerable:Qo,value:(...t)=>{Mo.add(...t),Ko()}},unregister:{enumerable:Qo,value:(...t)=>{Mo.remove(...t),Ko()}}});class sr extends fo{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,n){const i=this.getProps(["x","y"],n),{angle:s,distance:o}=De(i,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=this.options.spacing/2,d=Xt(h,a-r)>=fe||Ee(s,r,a),f=Te(o,l+u,c+u);return d&&f}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(i+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:n+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,s=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>fe?Math.floor(n/fe):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(i){o=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*o,Math.sin(e)*o),this.circumference>=de&&(o=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,n,i){const{fullCircles:s,startAngle:o,circumference:r}=e;let a=e.endAngle;if(s){nr(t,e,n,i,o+fe);for(let e=0;e<s;++e)t.fill();isNaN(r)||(a=o+r%fe,r%fe==0&&(a+=fe))}return nr(t,e,n,i,a),t.fill(),a}(t,this,o,s);ir(t,this,o,s,r),t.restore()}}function or(t,e,n=e){t.lineCap=Xt(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Xt(n.borderDash,e.borderDash)),t.lineDashOffset=Xt(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Xt(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Xt(n.borderWidth,e.borderWidth),t.strokeStyle=Xt(n.borderColor,e.borderColor)}function rr(t,e,n){t.lineTo(n.x,n.y)}function ar(t,e,n={}){const i=t.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:l,loop:e.loop,ilen:c<l&&!h?i+c-l:c-l}}function lr(t,e,n,i){const{points:s,options:o}=e,{count:r,start:a,loop:l,ilen:c}=ar(s,n,i),h=function(t){return t.stepped?Tn:t.tension||"monotone"===t.cubicInterpolationMode?zn:rr}(o);let u,d,f,{move:p=!0,reverse:g}=i||{};for(u=0;u<=c;++u)d=s[(a+(g?c-u:u))%r],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):h(t,f,d,g,o.stepped),f=d);return l&&(d=s[(a+(g?c:0))%r],h(t,f,d,g,o.stepped)),!!l}function cr(t,e,n,i){const s=e.points,{count:o,start:r,ilen:a}=ar(s,n,i),{move:l=!0,reverse:c}=i||{};let h,u,d,f,p,g,m=0,b=0;const x=t=>(r+(c?a-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(u=s[x(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=s[x(h)],u.skip)continue;const e=u.x,n=u.y,i=0|e;i===d?(n<f?f=n:n>p&&(p=n),m=(b*m+e)/++b):(y(),t.lineTo(e,n),d=i,b=0,f=p=n),g=n}y()}function hr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?cr:lr}sr.id="arc",sr.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},sr.defaultRoutes={backgroundColor:"backgroundColor"};const ur="function"==typeof Path2D;function dr(t,e,n,i){ur&&!e.options.segment?function(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),or(t,e.options),t.stroke(s)}(t,e,n,i):function(t,e,n,i){const{segments:s,options:o}=e,r=hr(e);for(const a of s)or(t,o,a.style),t.beginPath(),r(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class fr extends fo{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){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;_i(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,n,i){let s=0,o=e-1;if(n&&!i)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,n&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(n,s,o,i);return Hi(t,!0===i?[{start:r,end:a,loop:o}]:function(t,e,n,i){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=n;++r){const n=t[r%s];n.skip||n.stop?l.skip||(i=!1,o.push({start:e%s,end:(r-1)%s,loop:i}),e=a=n.stop?r:null):(a=r,l.skip&&(e=r)),l=n}return null!==a&&o.push({start:e%s,end:a%s,loop:i}),o}(n,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],s=this.points,o=function(t,e){const n=[],i=t.segments;for(let s=0;s<i.length;s++){const o=Vi(i[s],t.points,e);o.length&&n.push(...o)}return n}(this,{property:e,start:i,end:i});if(!o.length)return;const r=[],a=function(t){return t.stepped?Ti:t.tension||"monotone"===t.cubicInterpolationMode?zi:Ri}(n);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:h}=o[l],u=s[c],d=s[h];if(u===d){r.push(u);continue}const f=a(u,d,Math.abs((i-u[e])/(d[e]-u[e])),n.stepped);f[e]=t[e],r.push(f)}return 1===r.length?r[0]:r}pathSegment(t,e,n){return hr(this)(t,this,e,n)}path(t,e,n){const i=this.segments,s=hr(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)o&=s(t,this,r,{start:e,end:e+n-1});return!!o}draw(t,e,n,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),dr(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function pr(t,e,n,i){const s=t.options,{[n]:o}=t.getProps([n],i);return Math.abs(e-o)<s.radius+s.hitRadius}fr.id="line",fr.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},fr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},fr.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class gr extends fo{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:s,y:o}=this.getProps(["x","y"],n);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return pr(this,t,"x",e)}inYRange(t,e){return pr(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!An(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Pn(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function mr(t,e){const{x:n,y:i,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=r/2,a=Math.min(n,s),l=Math.max(n,s),c=i-u,h=i+u):(u=o/2,a=n-u,l=n+u,c=Math.min(i,s),h=Math.max(i,s)),{left:a,top:c,right:l,bottom:h}}function br(t,e,n,i){return t?0:Re(e,n,i)}function xr(t){const e=mr(t),n=e.right-e.left,i=e.bottom-e.top,s=function(t,e,n){const i=t.options.borderWidth,s=t.borderSkipped,o=Wn(i);return{t:br(s.top,o.top,0,n),r:br(s.right,o.right,0,e),b:br(s.bottom,o.bottom,0,n),l:br(s.left,o.left,0,e)}}(t,n/2,i/2),o=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=Un(s),r=Math.min(e,n),a=t.borderSkipped,l=i||qt(s);return{topLeft:br(!l||a.top||a.left,o.topLeft,0,r),topRight:br(!l||a.top||a.right,o.topRight,0,r),bottomLeft:br(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:br(!l||a.bottom||a.right,o.bottomRight,0,r)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function yr(t,e,n,i){const s=null===e,o=null===n,r=t&&!(s&&o)&&mr(t,i);return r&&(s||Te(e,r.left,r.right))&&(o||Te(n,r.top,r.bottom))}function vr(t,e){t.rect(e.x,e.y,e.w,e.h)}function _r(t,e,n={}){const i=t.x!==n.x?-e:0,s=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-s;return{x:t.x+i,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}gr.id="point",gr.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},gr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class $r extends fo{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){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:s,outer:o}=xr(this),r=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?jn:vr;var a;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),r(t,_r(o,e,s)),t.clip(),r(t,_r(s,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),r(t,_r(s,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return yr(this,t,e,n)}inXRange(t,e){return yr(this,t,null,e)}inYRange(t,e){return yr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+i)/2:e,y:s?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}$r.id="bar",$r.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},$r.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const wr={average(t){if(!t.length)return!1;let e,n,i=0,s=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,s+=t.y,++o}}return{x:i/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let n,i,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Oe(e,i.getCenterPoint());t<a&&(a=t,s=i)}}if(s){const t=s.tooltipPosition();o=t.x,r=t.y}return{x:o,y:r}}};function kr(t,e){return e&&(Ut(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Cr(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Mr(t,e){const{element:n,datasetIndex:i,index:s}=e,o=t.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Sr(t,e){const n=t.chart.ctx,{body:i,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=Yn(e.bodyFont),c=Yn(e.titleFont),h=Yn(e.footerFont),u=o.length,d=s.length,f=i.length,p=qn(e.padding);let g=p.height,m=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){g+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,Qt(t.title,y),n.font=l.string,Qt(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,Qt(i,(t=>{Qt(t.before,y),Qt(t.lines,y),Qt(t.after,y)})),x=0,n.font=h.string,Qt(t.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function Lr(t,e,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===i?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),function(t,e,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(c,t,e,n)&&(c="center"),c}function Dr(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Lr(t,e,n,i),yAlign:i}}function Or(t,e,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Un(r);let p=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,a);const g=function(t,e,n){let{y:i,height:s}=t;return"top"===e?i+=n:i-="bottom"===e?s+n:s/2,i}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,d)+s:"right"===a&&(p+=Math.max(u,f)+s),{x:Re(p,0,i.width-e.width),y:Re(g,0,i.height-e.height)}}function Pr(t,e,n){const i=qn(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Ar(t){return kr([],Cr(t))}function Er(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}(class extends fo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,s=new Ki(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,Xn(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),s=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]);let r=[];return r=kr(r,Cr(i)),r=kr(r,Cr(s)),r=kr(r,Cr(o)),r}getBeforeBody(t,e){return Ar(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return Qt(t,(t=>{const e={before:[],lines:[],after:[]},s=Er(n,t);kr(e.before,Cr(s.beforeLabel.call(this,t))),kr(e.lines,s.label.call(this,t)),kr(e.after,Cr(s.afterLabel.call(this,t))),i.push(e)})),i}getAfterBody(t,e){return Ar(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),s=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]);let r=[];return r=kr(r,Cr(i)),r=kr(r,Cr(s)),r=kr(r,Cr(o)),r}_createItems(t){const e=this._active,n=this.chart.data,i=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;r<a;++r)l.push(Mr(this.chart,e[r]));return t.filter&&(l=l.filter(((e,i,s)=>t.filter(e,i,s,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),Qt(l,(e=>{const n=Er(t.callbacks,e);i.push(n.labelColor.call(this,e)),s.push(n.labelPointStyle.call(this,e)),o.push(n.labelTextColor.call(this,e))})),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(i.length){const t=wr[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=Sr(this,n),r=Object.assign({},t,e),a=Dr(this.chart,n,r),l=Or(n,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const s=this.getCaretPosition(t,n,i);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:r}=n,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=Un(r),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,b,x,y,v;return"center"===s?(y=d+p/2,"left"===i?(g=u,m=g-o,x=y+o,v=y-o):(g=u+f,m=g+o,x=y-o,v=y+o),b=g):(m="left"===i?u+Math.max(a,c)+o:"right"===i?u+f-Math.max(l,h)-o:this.caretX,"top"===s?(x=d,y=x-o,g=m-o,b=m+o):(x=d+p,y=x+o,g=m+o,b=m-o),v=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,s=i.length;let o,r,a;if(s){const l=ji(n.rtl,this.x,this.width);for(t.x=Pr(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",o=Yn(n.titleFont),r=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,a=0;a<s;++a)e.fillText(i[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,a+1===s&&(t.y+=n.titleMarginBottom-r)}}_drawColorBox(t,e,n,i,s){const o=this.labelColors[n],r=this.labelPointStyles[n],{boxHeight:a,boxWidth:l,boxPadding:c}=s,h=Yn(s.bodyFont),u=Pr(this,"left",s),d=i.x(u),f=a<h.lineHeight?(h.lineHeight-a)/2:0,p=e.y+f;if(s.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},n=i.leftForLtr(d,l)+l/2,c=p+a/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Pn(t,e,n,c),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Pn(t,e,n,c)}else{t.lineWidth=o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=i.leftForLtr(d,l-c),n=i.leftForLtr(i.xPlus(d,1),l-c-2),r=Un(o.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,jn(t,{x:e,y:p,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),jn(t,{x:n,y:p+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,p,l,a),t.strokeRect(e,p,l,a),t.fillStyle=o.backgroundColor,t.fillRect(n,p+1,l-2,a-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:c}=n,h=Yn(n.bodyFont);let u=h.lineHeight,d=0;const f=ji(n.rtl,this.x,this.width),p=function(n){e.fillText(n,f.x(t.x+d),t.y+u/2),t.y+=u+s},g=f.textAlign(o);let m,b,x,y,v,_,$;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=Pr(this,g,n),e.fillStyle=n.bodyColor,Qt(this.beforeBody,p),d=r&&"right"!==g?"center"===o?l/2+c:l+2+c:0,y=0,_=i.length;y<_;++y){for(m=i[y],b=this.labelTextColors[y],e.fillStyle=b,Qt(m.before,p),x=m.lines,r&&x.length&&(this._drawColorBox(e,t,y,f,n),u=Math.max(h.lineHeight,a)),v=0,$=x.length;v<$;++v)p(x[v]),u=h.lineHeight;Qt(m.after,p)}d=0,u=h.lineHeight,Qt(this.afterBody,p),t.y-=s}drawFooter(t,e,n){const i=this.footer,s=i.length;let o,r;if(s){const a=ji(n.rtl,this.x,this.width);for(t.x=Pr(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=a.textAlign(n.footerAlign),e.textBaseline="middle",o=Yn(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,r=0;r<s;++r)e.fillText(i[r],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:s,yAlign:o}=this,{x:r,y:a}=t,{width:l,height:c}=n,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Un(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(r+h,a),"top"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+l-u,a),e.quadraticCurveTo(r+l,a,r+l,a+u),"center"===o&&"right"===s&&this.drawCaret(t,e,n,i),e.lineTo(r+l,a+c-f),e.quadraticCurveTo(r+l,a+c,r+l-f,a+c),"bottom"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+d,a+c),e.quadraticCurveTo(r,a+c,r,a+c-d),"center"===o&&"left"===s&&this.drawCaret(t,e,n,i),e.lineTo(r,a+h),e.quadraticCurveTo(r,a,r+h,a),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,s=n&&n.y;if(i||s){const n=wr[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=Sr(this,t),r=Object.assign({},n,this._size),a=Dr(e,t,r),l=Or(t,r,a,e);i._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=qn(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=n,this.drawBackground(s,t,i,e),function(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),function(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),s=!Jt(n,i),o=this._positionChanged(i,e);(s||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,n),r=this._positionChanged(o,t),a=e||!Jt(o,s)||r;return a&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,n,i){const s=this.options;if("mouseout"===t.type)return[];if(!i)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,n);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:s}=this,o=wr[s.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}).positioners=wr;function Rr(t,e,n,i){const s=t.indexOf(e);if(-1===s)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return s!==t.lastIndexOf(e)?n:s}class Tr extends ko{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Wt(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Re(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Rr(n,t,Xt(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]: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){const 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}}function zr(t,e){const n=[],{bounds:i,step:s,min:o,max:r,precision:a,count:l,maxTicks:c,maxDigits:h,includeBounds:u}=t,d=s||1,f=c-1,{min:p,max:g}=e,m=!Wt(o),b=!Wt(r),x=!Wt(l),y=(g-p)/(h+1);let v,_,$,w,k=$e((g-p)/f/d)*d;if(k<1e-14&&!m&&!b)return[{value:p},{value:g}];w=Math.ceil(g/k)-Math.floor(p/k),w>f&&(k=$e(w*k/f/d)*d),Wt(a)||(v=Math.pow(10,a),k=Math.ceil(k*v)/v),"ticks"===i?(_=Math.floor(p/k)*k,$=Math.ceil(g/k)*k):(_=p,$=g),m&&b&&s&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((r-o)/s,k/1e3)?(w=Math.round(Math.min((r-o)/k,c)),k=(r-o)/w,_=o,$=r):x?(_=m?o:_,$=b?r:$,w=l-1,k=($-_)/w):(w=($-_)/k,w=ke(w,Math.round(w),k/1e3)?Math.round(w):Math.ceil(w));const C=Math.max(Le(k),Le(_));v=Math.pow(10,Wt(a)?C:a),_=Math.round(_*v)/v,$=Math.round($*v)/v;let M=0;for(m&&(u&&_!==o?(n.push({value:o}),_<o&&M++,ke(Math.round((_+M*k)*v)/v,o,Ir(o,y,t))&&M++):_<o&&M++);M<w;++M)n.push({value:Math.round((_+M*k)*v)/v});return b&&u&&$!==r?n.length&&ke(n[n.length-1].value,r,Ir(r,y,t))?n[n.length-1].value=r:n.push({value:r}):b&&$!==r||n.push({value:$}),n}function Ir(t,e,{horizontal:n,minRotation:i}){const s=Me(i),o=(n?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}Tr.id="category",Tr.defaults={ticks:{callback:Tr.prototype.getLabelForValue}};class Fr extends ko{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Wt(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this;const o=t=>i=e?i:t,r=t=>s=n?s:t;if(t){const t=_e(i),e=_e(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(i===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),r(s+e),t||o(i-e)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=zr({maxTicks:n,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},this._range||this);return"ticks"===t.bounds&&Ce(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Fi(t,this.chart.options.locale,this.options.ticks.format)}}class jr extends Fr{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Yt(t)?t:0,this.max=Yt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Me(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Nr(t){return 1===t/Math.pow(10,Math.floor(ve(t)))}jr.id="linear",jr.defaults={ticks:{callback:go.formatters.numeric}};class Br extends ko{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Fr.prototype.parse.apply(this,[t,e]);if(0!==n)return Yt(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Yt(t)?Math.max(0,t):null,this.max=Yt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const s=e=>n=t?n:e,o=t=>i=e?i:t,r=(t,e)=>Math.pow(10,Math.floor(ve(t))+e);n===i&&(n<=0?(s(1),o(10)):(s(r(n,-1)),o(r(i,1)))),n<=0&&s(r(i,-1)),i<=0&&o(r(n,1)),this._zero&&this.min!==this._suggestedMin&&n===r(this.min,0)&&s(r(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(ve(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),s=[];let o=Zt(t.min,Math.pow(10,Math.floor(ve(e.min)))),r=Math.floor(ve(o)),a=Math.floor(o/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{s.push({value:o,major:Nr(o)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),o=Math.round(a*Math.pow(10,r)*l)/l}while(r<n||r===n&&a<i);const c=Zt(t.max,o);return s.push({value:c,major:Nr(o)}),s}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ce(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Fi(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ve(t),this._valueRange=ve(this.max)-ve(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ve(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Vr(t){const e=t.ticks;if(e.display&&t.display){const t=qn(e.backdropPadding);return Xt(e.font&&e.font.size,Mn.font.size)+t.height}return 0}function Hr(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function Wr(t){const 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},n=Object.assign({},e),i=[],s=[],o=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?de/o:0;for(let u=0;u<o;u++){const o=r.setContext(t.getPointLabelContext(u));s[u]=o.padding;const d=t.getPointPosition(u,t.drawingArea+s[u],a),f=Yn(o.font),p=(l=t.ctx,c=f,h=Ut(h=t._pointLabels[u])?h:[h],{w:Ln(l,c.string,h),h:h.length*c.lineHeight});i[u]=p;const g=Ae(t.getIndexAngle(u)+a),m=Math.round(Se(g));Ur(n,e,g,Hr(m,d.x,p.w,0,180),Hr(m,d.y,p.h,90,270))}var l,c,h;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],s=t._pointLabels.length,o=t.options,r=Vr(o)/2,a=t.drawingArea,l=o.pointLabels.centerPointLabels?de/s:0;for(let o=0;o<s;o++){const s=t.getPointPosition(o,a+r+n[o],l),c=Math.round(Se(Ae(s.angle+be))),h=e[o],u=Zr(s.y,h.h,c),d=qr(c),f=Yr(s.x,h.w,d);i.push({x:s.x,y:u,textAlign:d,left:f,top:u,right:f+h.w,bottom:u+h.h})}return i}(t,i,s)}function Ur(t,e,n,i,s){const o=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let a=0,l=0;i.start<e.l?(a=(e.l-i.start)/o,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(l=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function qr(t){return 0===t||180===t?"center":t<180?"left":"right"}function Yr(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Zr(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Xr(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,fe);else{let n=t.getPointPosition(0,e);s.moveTo(n.x,n.y);for(let o=1;o<i;o++)n=t.getPointPosition(o,e),s.lineTo(n.x,n.y)}}Br.id="logarithmic",Br.defaults={ticks:{callback:go.formatters.logarithmic,major:{enabled:!0}}};class Gr extends Fr{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=qn(Vr(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Yt(t)&&!isNaN(t)?t:0,this.max=Yt(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Vr(this.options))}generateTickLabels(t){Fr.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=Kt(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Wr(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Ae(t*(fe/(this._pointLabels.length||1))+Me(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Wt(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Wt(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return Xn(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-be+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:s}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Xr(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,s=this._pointLabels.length;let o,r,a;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const e=i.setContext(t.getPointLabelContext(s)),o=Yn(e.font),{x:r,y:a,textAlign:l,left:c,top:h,right:u,bottom:d}=t._pointLabelItems[s],{backdropColor:f}=e;if(!Wt(f)){const t=qn(e.backdropPadding);n.fillStyle=f,n.fillRect(c-t.left,h-t.top,u-c+t.width,d-h+t.height)}In(n,t._pointLabels[s],r,a+o.lineHeight/2,o,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,s),i.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const s=t.ctx,o=e.circular,{color:r,lineWidth:a}=e;!o&&!i||!r||!a||n<0||(s.save(),s.strokeStyle=r,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),Xr(t,n,o,i),s.closePath(),s.stroke(),s.restore())}(this,i.setContext(this.getContext(e-1)),r,s)}})),n.display){for(t.save(),o=s-1;o>=0;o--){const i=n.setContext(this.getPointLabelContext(o)),{color:s,lineWidth:l}=i;l&&s&&(t.lineWidth=l,t.strokeStyle=s,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,r)=>{if(0===r&&!e.reverse)return;const a=n.setContext(this.getContext(r)),l=Yn(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(i.label).width,t.fillStyle=a.backdropColor;const e=qn(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}In(t,i.label,0,-s,l,{color:a.color})})),t.restore()}drawTitle(){}}Gr.id="radialLinear",Gr.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:go.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Gr.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Gr.descriptors={angleLines:{_fallback:"grid"}};const Kr={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}},Qr=Object.keys(Kr);function Jr(t,e){return t-e}function ta(t,e){if(Wt(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof i&&(r=i(r)),Yt(r)||(r="string"==typeof i?n.parse(r,i):n.parse(r)),null===r?null:(s&&(r="week"!==s||!we(o)&&!0!==o?n.startOf(r,s):n.startOf(r,"isoWeek",o)),+r)}function ea(t,e,n,i){const s=Qr.length;for(let o=Qr.indexOf(t);o<s-1;++o){const t=Kr[Qr[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(s*t.size))<=i)return Qr[o]}return Qr[s-1]}function na(t,e,n){if(n){if(n.length){const{lo:i,hi:s}=Gn(n,e);t[n[i]>=e?n[i]:n[s]]=!0}}else t[e]=!0}function ia(t,e,n){const i=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,i.push({value:a,major:!1});return 0!==o&&n?function(t,e,n,i){const s=t._adapter,o=+s.startOf(e[0].value,i),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}(t,i,s,n):i}class sa extends ko{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){const n=t.time||(t.time={}),i=this._adapter=new Ls._date(t.adapters.date);se(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ta(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(i=Math.min(i,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),i=Yt(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),s=Yt(s)&&!isNaN(s)?s:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,o=function(t,e,n){let i=0,s=t.length;for(;i<s&&t[i]<e;)i++;for(;s>i&&t[s-1]>n;)s--;return i>0||s<t.length?t.slice(i,s):t}(i,s,this.max);return this._unit=e.unit||(n.autoSkip?ea(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,n,i,s){for(let o=Qr.length-1;o>=Qr.indexOf(n);o--){const n=Qr[o];if(Kr[n].common&&t._adapter.diff(s,i,n)>=e-1)return n}return Qr[n?Qr.indexOf(n):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Qr.indexOf(t)+1,n=Qr.length;e<n;++e)if(Kr[Qr[e]].common)return Qr[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&o.reverse(),ia(this,o,this._majorUnit)}initOffsets(t){let e,n,i=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),s=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;i=Re(i,0,o),s=Re(s,0,o),this._offsets={start:i,end:s,factor:1/(i+1+s)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,s=i.time,o=s.unit||ea(s.minUnit,e,n,this._getLabelCapacity(e)),r=Xt(s.stepSize,1),a="week"===o&&s.isoWeekday,l=we(a)||!0===a,c={};let h,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":o),t.diff(n,e,o)>1e5*r)throw new Error(e+" and "+n+" are too far apart with stepSize of "+r+" "+o);const f="data"===i.ticks.source&&this.getDataTimestamps();for(h=d,u=0;h<n;h=+t.add(h,r,o),u++)na(c,h,f);return h!==n&&"ticks"!==i.bounds&&1!==u||na(c,h,f),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const s=this.options,o=s.time.displayFormats,r=this._unit,a=this._majorUnit,l=r&&o[r],c=a&&o[a],h=n[e],u=a&&c&&h&&h.major,d=this._adapter.format(t,i||(u?c:l)),f=s.ticks.callback;return f?Kt(f,[d,e,n],this):d}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Me(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(i),o=Math.sin(i),r=this._resolveTickFontOptions(0).size;return{w:n*s+r*o,h:n*o+r*s}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,s=this._tickFormatFunction(t,0,ia(this,[t],this._majorUnit),i),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(ta(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ei(t.sort(Jr))}}function oa(t,e,n){let i,s,o,r,a=0,l=t.length-1;n?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=Kn(t,"pos",e)),({pos:i,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=Kn(t,"time",e)),({time:i,pos:o}=t[a]),({time:s,pos:r}=t[l]));const c=s-i;return c?o+(r-o)*(e-i)/c:o}sa.id="time",sa.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ra extends sa{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=oa(e,this.min),this._tableRange=oa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,r=i.length;o<r;++o)c=i[o+1],a=i[o-1],l=i[o],Math.round((c+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(oa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return oa(this._table,n*this._tableRange+this._minPos,!0)}}ra.id="timeseries",ra.defaults=sa.defaults;const aa=["#faab4a","#2e3454","#2a679d","#f8d9d8"];function la(e){let n,i;return{c(){n=$("div"),i=$("canvas"),L(n,"data-component","bar-chart")},m(t,s){y(t,n,s),x(n,i),e[2](i)},p:t,i:t,o:t,d(t){t&&v(n),e[2](null)}}}function ca(t,e,n){Go.register($r,xs,jr,Tr,gr);let{componentData:i}=e;const{config:s,data:o,labels:r}=i;let a;const l=s||{type:"bar",data:{labels:r,datasets:[{backgroundColor:aa[2],borderColor:aa[2],data:o||[]}]},options:{plugins:{legend:{display:!1}}}};return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},t.$$.update=()=>{1&t.$$.dirty&&a&&new Go(a,l)},[a,i,function(t){B[t?"unshift":"push"]((()=>{a=t,n(0,a)}))}]}class ha extends ft{constructor(t){super(),dt(this,t,ca,la,r,{componentData:1})}}function ua(t){let e,n,i;return{c(){e=$("div"),n=C(),i=$("div"),L(e,"class","path topLeft svelte-1hyaq5f"),L(i,"class","path bottomRight svelte-1hyaq5f")},m(t,s){y(t,e,s),y(t,n,s),y(t,i,s)},d(t){t&&v(e),t&&v(n),t&&v(i)}}}function da(t){let e;return{c(){e=$("div"),L(e,"class","path straightLine svelte-1hyaq5f")},m(t,n){y(t,e,n)},d(t){t&&v(e)}}}function fa(e){let n;function i(t,e){return t[5]?da:ua}let s=i(e),o=s(e);return{c(){n=$("div"),o.c(),L(n,"class","connectorwrapper svelte-1hyaq5f"),P(n,"top",e[1]+"rem"),P(n,"left",e[0]+"rem"),P(n,"width",e[3]+"rem"),P(n,"height",e[4]+"rem"),A(n,"flip",e[2])},m(t,e){y(t,n,e),o.m(n,null)},p(t,[e]){s!==(s=i(t))&&(o.d(1),o=s(t),o&&(o.c(),o.m(n,null))),2&e&&P(n,"top",t[1]+"rem"),1&e&&P(n,"left",t[0]+"rem"),8&e&&P(n,"width",t[3]+"rem"),16&e&&P(n,"height",t[4]+"rem"),4&e&&A(n,"flip",t[2])},i:t,o:t,d(t){t&&v(n),o.d()}}}const pa=.5;function ga(t,e,n){let i,s,o,{top:r=0}=e,{left:a=0}=e,{bottom:l=0}=e,{right:c=0}=e,h=!1;return t.$$set=t=>{"top"in t&&n(1,r=t.top),"left"in t&&n(0,a=t.left),"bottom"in t&&n(7,l=t.bottom),"right"in t&&n(6,c=t.right)},t.$$.update=()=>{207&t.$$.dirty&&(n(2,i=c-a<0),n(3,s=Math.abs(c-a)),s<=pa?(n(3,s=pa),n(5,h=!0),n(0,a-=.25)):(i?(n(0,a+=.25),n(6,c-=.25)):(n(0,a-=.25),n(6,c+=.25)),n(3,s=Math.abs(c-a))),n(4,o=l-r))},[a,r,i,s,o,h,c,l]}class ma extends ft{constructor(t){super(),dt(this,t,ga,fa,r,{top:1,left:0,bottom:7,right:6})}}function ba(t,e,n){const i=t.slice();return i[4]=e[n],i}function xa(t){let e,n;return e=new ma({props:{top:$t(t[4].top),left:$t(t[4].left),bottom:$t(t[4].bottom),right:$t(t[4].right)}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.top=$t(t[4].top)),1&n&&(i.left=$t(t[4].left)),1&n&&(i.bottom=$t(t[4].bottom)),1&n&&(i.right=$t(t[4].right)),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function ya(t){let e,n,i=t[0],s=[];for(let e=0;e<i.length;e+=1)s[e]=xa(ba(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,[n]){if(1&n){let r;for(i=t[0],r=0;r<i.length;r+=1){const o=ba(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=xa(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function va(t,e,n){let{steps:i}=e,{boxes:s}=e,{container:o}=e,r=[];return t.$$set=t=>{"steps"in t&&n(1,i=t.steps),"boxes"in t&&n(2,s=t.boxes),"container"in t&&n(3,o=t.container)},t.$$.update=()=>{if(15&t.$$.dirty){n(0,r=[]);const t=o.getBoundingClientRect(),e=t.top,a=t.left;s&&Object.keys(i).forEach((t=>{var o;const l=i[t],c=s[t].getBoundingClientRect();null===(o=l.next)||void 0===o||o.forEach((t=>{const i=s[t].getBoundingClientRect(),o={top:c.bottom-e,left:c.left-a+c.width/2,bottom:i.top-e,right:i.left-a+i.width/2};n(0,r=[...r,o])}))}))}},[r,i,s,o]}class _a extends ft{constructor(t){super(),dt(this,t,va,ya,r,{steps:1,boxes:2,container:3})}}const $a="currentStep";function wa(t,e,n){const i=t.slice();return i[18]=e[n],i[20]=n,i}function ka(t){let e,n,i;return{c(){e=$("div"),n=k("x"),i=k(t[6]),L(e,"class","levelstoshow svelte-117ceti")},m(t,s){y(t,e,s),x(e,n),x(e,i)},p(t,e){64&e&&O(i,t[6])},d(t){t&&v(e)}}}function Ca(t){let e,n;return{c(){e=$("div"),L(e,"class",n="level rectangle "+t[18]+" svelte-117ceti"),P(e,"z-index",-1*(t[20]+1)),P(e,"top",(t[20]+1)*Sa+"px"),P(e,"left",(t[20]+1)*Sa+"px")},m(t,n){y(t,e,n)},p(t,i){128&i&&n!==(n="level rectangle "+t[18]+" svelte-117ceti")&&L(e,"class",n)},d(t){t&&v(e)}}}function Ma(e){let n,i,s,o,r,a,l,c,h,u,d,f=e[2].doc+"",p=e[6]&&ka(e),g=e[7],m=[];for(let t=0;t<g.length;t+=1)m[t]=Ca(wa(e,g,t));return{c(){n=$("div"),p&&p.c(),i=C(),s=$("div"),o=$("div"),r=$("span"),a=k(e[1]),l=C(),c=$("div"),h=k(f),d=C();for(let t=0;t<m.length;t+=1)m[t].c();L(r,"class","name svelte-117ceti"),L(c,"class","description svelte-117ceti"),L(c,"title",u=e[9]?e[2].doc:void 0),A(c,"overflown",e[9]),L(o,"class","inner svelte-117ceti"),L(s,"class","step rectangle svelte-117ceti"),A(s,"success",e[3]),A(s,"running",e[5]),A(s,"error",e[4]),L(n,"class","wrapper svelte-117ceti"),A(n,"current",e[10])},m(t,u){y(t,n,u),p&&p.m(n,null),x(n,i),x(n,s),x(s,o),x(o,r),x(r,a),x(o,l),x(o,c),x(c,h),e[12](c),e[13](s),x(n,d);for(let t=0;t<m.length;t+=1)m[t].m(n,null)},p(t,[e]){if(t[6]?p?p.p(t,e):(p=ka(t),p.c(),p.m(n,i)):p&&(p.d(1),p=null),2&e&&O(a,t[1]),4&e&&f!==(f=t[2].doc+"")&&O(h,f),516&e&&u!==(u=t[9]?t[2].doc:void 0)&&L(c,"title",u),512&e&&A(c,"overflown",t[9]),8&e&&A(s,"success",t[3]),32&e&&A(s,"running",t[5]),16&e&&A(s,"error",t[4]),128&e){let i;for(g=t[7],i=0;i<g.length;i+=1){const s=wa(t,g,i);m[i]?m[i].p(s,e):(m[i]=Ca(s),m[i].c(),m[i].m(n,null))}for(;i<m.length;i+=1)m[i].d(1);m.length=g.length}},i:t,o:t,d(t){t&&v(n),p&&p.d(),e[12](null),e[13](null),_(m,t)}}}const Sa=4;function La(t,e,n){var i,s;let o,{name:r}=e,{step:a}=e,{numLevels:l=0}=e,{el:c}=e,h=!1,u=!1,d=!1;const f={3:3,100:4,1e3:5,1e4:6};let p=[];a.num_possible_tasks?(a.num_possible_tasks>1&&(o=(new Intl.NumberFormat).format(a.num_possible_tasks)),l=a.num_possible_tasks-1,Object.keys(f).forEach((t=>{const e=Number.parseInt(t);a.num_possible_tasks&&a.num_possible_tasks>e&&n(11,l=f[e])}))):l*=3,l>0&&(p=new Array(l).fill("")),p=p.map(((t,e)=>{var n,i;if(a.num_possible_tasks){const t=null!==(n=a.num_failed)&&void 0!==n?n:0,s=null!==(i=a.successful_tasks)&&void 0!==i?i:0;return(t-1)/a.num_possible_tasks>=(e+1)/p.length?"error":(t+s)/a.num_possible_tasks>=(e+1)/p.length?"success":"running"}return""}));const g=j($a),m=r===g;let b;a.failed||a.num_failed?u=!0:(null!==(i=a.num_possible_tasks)&&void 0!==i?i:0)>(null!==(s=a.successful_tasks)&&void 0!==s?s:0)?d=!0:a.num_possible_tasks&&a.num_possible_tasks===a.successful_tasks&&(h=!0);let x=!1;return z((()=>{n(9,x=(t=>t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)(b))})),t.$$set=t=>{"name"in t&&n(1,r=t.name),"step"in t&&n(2,a=t.step),"numLevels"in t&&n(11,l=t.numLevels),"el"in t&&n(0,c=t.el)},[c,r,a,h,u,d,o,p,b,x,m,l,function(t){B[t?"unshift":"push"]((()=>{b=t,n(8,b)}))},function(t){B[t?"unshift":"push"]((()=>{c=t,n(0,c)}))}]}class Da extends ft{constructor(t){super(),dt(this,t,La,Ma,r,{name:1,step:2,numLevels:11,el:0})}}function Oa(t,e,n){const i=t.slice();return i[11]=e[n],i}function Pa(t){let e,n,i,s,o,r;function a(e){t[8](e)}let l={name:t[2],numLevels:t[3],step:t[5]};void 0!==t[4]&&(l.el=t[4]),n=new Da({props:l}),B.push((()=>at(n,"el",a)));let c=t[7]&&function(t){let e,n,i,s,o=t[5].next,r=[];for(let e=0;e<o.length;e+=1)r[e]=Aa(Oa(t,o,e));const a=t=>it(r[t],1,1,(()=>{r[t]=null}));return{c(){e=$("div"),n=C(),i=$("div");for(let t=0;t<r.length;t+=1)r[t].c();L(e,"class","gap svelte-18aex7a"),L(i,"class","childwrapper svelte-18aex7a")},m(t,o){y(t,e,o),y(t,n,o),y(t,i,o);for(let t=0;t<r.length;t+=1)r[t].m(i,null);s=!0},p(t,e){if(99&e){let n;for(o=t[5].next,n=0;n<o.length;n+=1){const s=Oa(t,o,n);r[n]?(r[n].p(s,e),nt(r[n],1)):(r[n]=Aa(s),r[n].c(),nt(r[n],1),r[n].m(i,null))}for(tt(),n=o.length;n<r.length;n+=1)a(n);et()}},i(t){if(!s){for(let t=0;t<o.length;t+=1)nt(r[t]);s=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)it(r[t]);s=!1},d(t){t&&v(e),t&&v(n),t&&v(i),_(r,t)}}}(t),h=t[5].box_ends&&function(t){let e,n,i,s;return i=new Ta({props:{steps:t[1],stepName:t[5].box_ends,levels:t[3],boxes:t[0]}}),{c(){e=$("div"),n=C(),lt(i.$$.fragment),L(e,"class","gap svelte-18aex7a")},m(t,o){y(t,e,o),y(t,n,o),ct(i,t,o),s=!0},p(t,e){const n={};2&e&&(n.steps=t[1]),8&e&&(n.levels=t[3]),1&e&&(n.boxes=t[0]),i.$set(n)},i(t){s||(nt(i.$$.fragment,t),s=!0)},o(t){it(i.$$.fragment,t),s=!1},d(t){t&&v(e),t&&v(n),ht(i,t)}}}(t);return{c(){e=$("div"),lt(n.$$.fragment),s=C(),c&&c.c(),o=C(),h&&h.c(),L(e,"class","stepwrapper svelte-18aex7a")},m(t,i){y(t,e,i),ct(n,e,null),x(e,s),c&&c.m(e,null),x(e,o),h&&h.m(e,null),r=!0},p(t,e){const s={};4&e&&(s.name=t[2]),8&e&&(s.numLevels=t[3]),!i&&16&e&&(i=!0,s.el=t[4],Y((()=>i=!1))),n.$set(s),t[7]&&c.p(t,e),t[5].box_ends&&h.p(t,e)},i(t){r||(nt(n.$$.fragment,t),nt(c),nt(h),r=!0)},o(t){it(n.$$.fragment,t),it(c),it(h),r=!1},d(t){t&&v(e),ht(n),c&&c.d(),h&&h.d()}}}function Aa(t){let e,n;return e=new Ta({props:{steps:t[1],stepName:t[11],levels:t[6],boxes:t[0]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};2&n&&(i.steps=t[1]),1&n&&(i.boxes=t[0]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function Ea(t){let e,n,i=t[5]&&Pa(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[5]&&i.p(t,e)},i(t){n||(nt(i),n=!0)},o(t){it(i),n=!1},d(t){i&&i.d(t),t&&v(e)}}}function Ra(t,e,n){var i;let{steps:s}=e,{stepName:o}=e,{levels:r=0}=e,{boxes:a={}}=e,l=null;z((()=>{l&&n(0,a[o]=l,a)}));let c=s[o];c||console.warn("step ",o," not found");const h="foreach"===(null==c?void 0:c.type)?r+1:"join"===(null==c?void 0:c.type)?r-1:r;let u=null===(i=null==c?void 0:c.next)||void 0===i?void 0:i.find((t=>{var e;return"join"!==(null===(e=s[t])||void 0===e?void 0:e.type)}));return t.$$set=t=>{"steps"in t&&n(1,s=t.steps),"stepName"in t&&n(2,o=t.stepName),"levels"in t&&n(3,r=t.levels),"boxes"in t&&n(0,a=t.boxes)},[a,s,o,r,l,c,h,u,function(t){l=t,n(4,l)}]}class Ta extends ft{constructor(t){super(),dt(this,t,Ra,Ea,r,{steps:1,stepName:2,levels:3,boxes:0})}}function za(e){let n;return{c(){n=$("p"),n.textContent="No start step"},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&v(n)}}}function Ia(t){let e,n,i;function s(e){t[6](e)}let o={steps:t[3],stepName:"start"};return void 0!==t[0]&&(o.boxes=t[0]),e=new Ta({props:o}),B.push((()=>at(e,"boxes",s))),{c(){lt(e.$$.fragment)},m(t,n){ct(e,t,n),i=!0},p(t,i){const s={};!n&&1&i&&(n=!0,s.boxes=t[0],Y((()=>n=!1))),e.$set(s)},i(t){i||(nt(e.$$.fragment,t),i=!0)},o(t){it(e.$$.fragment,t),i=!1},d(t){ht(e,t)}}}function Fa(t){let e,n;return e=new _a({props:{boxes:t[0],steps:t[3],container:t[1]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.boxes=t[0]),2&n&&(i.container=t[1]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function ja(t){let e,n,i,s,o,r,a,l=!t[2]&&Object.keys(t[0]).length;const c=[Ia,za],h=[];n=function(t,e){return t[3]?.start?0:1}(t),i=h[n]=c[n](t);let u=l&&Fa(t);return{c(){e=$("div"),i.c(),s=C(),u&&u.c(),P(e,"position","relative"),P(e,"line-height","1"),L(e,"data-component","dag")},m(i,l){y(i,e,l),h[n].m(e,null),x(e,s),u&&u.m(e,null),t[7](e),o=!0,r||(a=S(window,"resize",t[4]),r=!0)},p(t,[n]){i.p(t,n),5&n&&(l=!t[2]&&Object.keys(t[0]).length),l?u?(u.p(t,n),5&n&&nt(u,1)):(u=Fa(t),u.c(),nt(u,1),u.m(e,null)):u&&(tt(),it(u,1,1,(()=>{u=null})),et())},i(t){o||(nt(i),nt(u),o=!0)},o(t){it(i),it(u),o=!1},d(i){i&&v(e),h[n].d(),u&&u.d(),t[7](null),r=!1,a()}}}function Na(t,e,n){let i;var s;h(t,yt,(t=>n(10,i=t)));let{componentData:o}=e;const{data:r}=o;let a,l,c={};F($a,((t,e)=>{var n;if(t&&e)return null===(n=(t=>{const e=t.split("/");return{flowname:e[0],runid:e[1],stepname:null==e?void 0:e[2],taskid:null==e?void 0:e[3]}})(t))||void 0===n?void 0:n[e]})(null===(s=null==i?void 0:i.metadata)||void 0===s?void 0:s.pathspec,"stepname"));let u=!1;return t.$$set=t=>{"componentData"in t&&n(5,o=t.componentData)},[c,a,u,r,()=>{n(2,u=!0),clearTimeout(l),l=setTimeout((()=>{n(2,u=!1)}),100)},o,function(t){c=t,n(0,c)},function(t){B[t?"unshift":"push"]((()=>{a=t,n(1,a)}))}]}class Ba extends ft{constructor(t){super(),dt(this,t,Na,ja,r,{componentData:5})}}function Va(e){let n;return{c(){n=$("h2"),n.textContent=`${e[0]}`,L(n,"class","title svelte-117s0ws"),L(n,"data-component","title")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&v(n)}}}function Ha(t,e,n){let{componentData:i}=e;const{text:s}=i;return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},[s,i]}class Wa extends ft{constructor(t){super(),dt(this,t,Ha,Va,r,{componentData:1})}}function Ua(e){let n,i,s=e[0].text+"";return{c(){n=$("p"),i=k(s),L(n,"class","subtitle svelte-lu9pnn"),L(n,"data-component","subtitle")},m(t,e){y(t,n,e),x(n,i)},p(t,[e]){1&e&&s!==(s=t[0].text+"")&&O(i,s)},i:t,o:t,d(t){t&&v(n)}}}function qa(t,e,n){let{componentData:i}=e;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i]}class Ya extends ft{constructor(t){super(),dt(this,t,qa,Ua,r,{componentData:0})}}function Za(e){let n,i,s,o=e[0]&&function(e){let n,i;return n=new Wa({props:{componentData:{type:"title",text:e[0]}}}),{c(){lt(n.$$.fragment)},m(t,e){ct(n,t,e),i=!0},p:t,i(t){i||(nt(n.$$.fragment,t),i=!0)},o(t){it(n.$$.fragment,t),i=!1},d(t){ht(n,t)}}}(e),r=e[1]&&function(e){let n,i;return n=new Ya({props:{componentData:{type:"subtitle",text:e[1]}}}),{c(){lt(n.$$.fragment)},m(t,e){ct(n,t,e),i=!0},p:t,i(t){i||(nt(n.$$.fragment,t),i=!0)},o(t){it(n.$$.fragment,t),i=!1},d(t){ht(n,t)}}}(e);return{c(){n=$("header"),o&&o.c(),i=C(),r&&r.c(),L(n,"class","container svelte-1ugmt5d"),L(n,"data-component","heading")},m(t,e){y(t,n,e),o&&o.m(n,null),x(n,i),r&&r.m(n,null),s=!0},p(t,[e]){t[0]&&o.p(t,e),t[1]&&r.p(t,e)},i(t){s||(nt(o),nt(r),s=!0)},o(t){it(o),it(r),s=!1},d(t){t&&v(n),o&&o.d(),r&&r.d()}}}function Xa(t,e,n){let{componentData:i}=e;const{title:s,subtitle:o}=i;return t.$$set=t=>{"componentData"in t&&n(2,i=t.componentData)},[s,o,i]}class Ga extends ft{constructor(t){super(),dt(this,t,Xa,Za,r,{componentData:2})}}function Ka(e){let n,i,s,o,r,a,l,h,u=e[2]&&function(e){let n;return{c(){n=$("div"),n.textContent=`${e[2]}`,L(n,"class","label svelte-1x96yvr")},m(t,e){y(t,n,e)},p:t,d(t){t&&v(n)}}}(e),d=e[3]&&function(e){let n;return{c(){n=$("figcaption"),n.textContent=`${e[3]}`,L(n,"class","description svelte-1x96yvr")},m(t,e){y(t,n,e)},p:t,d(t){t&&v(n)}}}(e);return{c(){n=$("figure"),i=$("div"),s=$("img"),r=C(),u&&u.c(),a=C(),d&&d.c(),c(s.src,o=e[1])||L(s,"src",o),L(s,"alt",e[2]||"image"),L(s,"class","svelte-1x96yvr"),L(i,"class","imageContainer"),L(n,"data-component","image"),L(n,"class","svelte-1x96yvr")},m(t,o){y(t,n,o),x(n,i),x(i,s),x(n,r),u&&u.m(n,null),x(n,a),d&&d.m(n,null),l||(h=S(n,"click",e[4]),l=!0)},p(t,[e]){t[2]&&u.p(t,e),t[3]&&d.p(t,e)},i:t,o:t,d(t){t&&v(n),u&&u.d(),d&&d.d(),l=!1,h()}}}function Qa(t,e,n){let{componentData:i}=e;const{src:s,label:o,description:r}=i;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i,s,o,r,()=>vt.set(i)]}class Ja extends ft{constructor(t){super(),dt(this,t,Qa,Ka,r,{componentData:0})}}function tl(e){let n,i;return{c(){n=$("div"),i=$("canvas"),L(n,"data-component","line-chart")},m(t,s){y(t,n,s),x(n,i),e[2](i)},p:t,i:t,o:t,d(t){t&&v(n),e[2](null)}}}function el(t,e,n){Go.register(fr,jr,_s,Tr,gr);let{componentData:i}=e;const{config:s,data:o,labels:r}=i;let a;const l=s||{type:"line",data:{labels:r,datasets:[{backgroundColor:aa[2],borderColor:aa[2],data:o||[]}]},options:{plugins:{legend:{display:!1}}}};return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},t.$$.update=()=>{1&t.$$.dirty&&a&&new Go(a,l)},[a,i,function(t){B[t?"unshift":"push"]((()=>{a=t,n(0,a)}))}]}class nl extends ft{constructor(t){super(),dt(this,t,el,tl,r,{componentData:1})}}function il(e){let n,i,s,o=e[0].data+"";return{c(){n=$("pre"),i=$("code"),s=k(o),L(i,"class","mono language-log"),L(n,"class","log svelte-1jhmsu"),L(n,"data-component","log")},m(t,o){y(t,n,o),x(n,i),x(i,s),e[2](i)},p(t,[e]){1&e&&o!==(o=t[0].data+"")&&O(s,o)},i:t,o:t,d(t){t&&v(n),e[2](null)}}}function sl(t,e,n){let i,{componentData:s}=e;return t.$$set=t=>{"componentData"in t&&n(0,s=t.componentData)},t.$$.update=()=>{2&t.$$.dirty&&i&&function(){var t,e;i&&(null===(e=null===(t=window)||void 0===t?void 0:t.Prism)||void 0===e||e.highlightElement(i))}()},[s,i,function(t){B[t?"unshift":"push"]((()=>{i=t,n(1,i)}))}]}class ol extends ft{constructor(t){super(),dt(this,t,sl,il,r,{componentData:0})}}function rl(t,e,n){const i=t.slice();return i[18]=e[n],i}function al(t,e,n){const i=t.slice();return i[18]=e[n],i}function ll(t,e,n){const i=t.slice();return i[10]=e[n],i}function cl(t,e,n){const i=t.slice();return i[13]=e[n],i[15]=n,i}function hl(t,e,n){const i=t.slice();return i[16]=e[n],i[15]=n,i}function ul(t,e,n){const i=t.slice();return i[7]=e[n],i}function dl(t){let e,n,i,s;const o=[ml,gl,pl],r=[];function a(t,e){return"table"===t[0]?0:"list"===t[0]?1:2}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}function fl(t){let e,n,i=t[1],s=[];for(let e=0;e<i.length;e+=1)s[e]=Fl(ul(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(34&n){let r;for(i=t[1],r=0;r<i.length;r+=1){const o=ul(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=Fl(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function pl(t){let n,i,s;const o=[t[6]];var r=t[5][t[0]];function a(t){let n={$$slots:{default:[yl]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=new r(a(t))),{c(){n&<(n.$$.fragment),i=M()},m(t,e){n&&ct(n,t,e),y(t,i,e),s=!0},p(t,e){const s=64&e?ot(o,[rt(t[6])]):{};if(8388706&e&&(s.$$scope={dirty:e,ctx:t}),r!==(r=t[5][t[0]])){if(n){tt();const t=n;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}r?(n=new r(a(t)),lt(n.$$.fragment),nt(n.$$.fragment,1),ct(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&nt(n.$$.fragment,t),s=!0)},o(t){n&&it(n.$$.fragment,t),s=!1},d(t){t&&v(i),n&&ht(n,t)}}}function gl(t){let e,n,i,s;const o=[_l,vl],r=[];function a(t,e){return t[4]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}function ml(t){let e,n,i;var s=t[5].table;function o(t){return{props:{$$slots:{default:[Il]},$$scope:{ctx:t}}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(8388716&i&&(r.$$scope={dirty:i,ctx:t}),s!==(s=t[5].table)){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function bl(e){let n,i=e[6].raw+"";return{c(){n=k(i)},m(t,e){y(t,n,e)},p(t,e){64&e&&i!==(i=t[6].raw+"")&&O(n,i)},i:t,o:t,d(t){t&&v(n)}}}function xl(t){let e,n;return e=new Bl({props:{tokens:t[1],renderers:t[5]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};2&n&&(i.tokens=t[1]),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function yl(t){let e,n,i,s;const o=[xl,bl],r=[];function a(t,e){return t[1]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}function vl(t){let n,i,s;const o=[{ordered:t[4]},t[6]];var r=t[5].list;function a(t){let n={$$slots:{default:[kl]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=new r(a(t))),{c(){n&<(n.$$.fragment),i=M()},m(t,e){n&&ct(n,t,e),y(t,i,e),s=!0},p(t,e){const s=80&e?ot(o,[16&e&&{ordered:t[4]},64&e&&rt(t[6])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),r!==(r=t[5].list)){if(n){tt();const t=n;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}r?(n=new r(a(t)),lt(n.$$.fragment),nt(n.$$.fragment,1),ct(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&nt(n.$$.fragment,t),s=!0)},o(t){n&&it(n.$$.fragment,t),s=!1},d(t){t&&v(i),n&&ht(n,t)}}}function _l(t){let n,i,s;const o=[{ordered:t[4]},t[6]];var r=t[5].list;function a(t){let n={$$slots:{default:[Sl]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=new r(a(t))),{c(){n&<(n.$$.fragment),i=M()},m(t,e){n&&ct(n,t,e),y(t,i,e),s=!0},p(t,e){const s=80&e?ot(o,[16&e&&{ordered:t[4]},64&e&&rt(t[6])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),r!==(r=t[5].list)){if(n){tt();const t=n;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}r?(n=new r(a(t)),lt(n.$$.fragment),nt(n.$$.fragment,1),ct(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&nt(n.$$.fragment,t),s=!0)},o(t){n&&it(n.$$.fragment,t),s=!1},d(t){t&&v(i),n&&ht(n,t)}}}function $l(t){let e,n,i;return e=new Bl({props:{tokens:t[18].tokens,renderers:t[5]}}),{c(){lt(e.$$.fragment),n=C()},m(t,s){ct(e,t,s),y(t,n,s),i=!0},p(t,n){const i={};64&n&&(i.tokens=t[18].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){i||(nt(e.$$.fragment,t),i=!0)},o(t){it(e.$$.fragment,t),i=!1},d(t){ht(e,t),t&&v(n)}}}function wl(t){let n,i,s;const o=[t[18]];var r=t[5].unorderedlistitem||t[5].listitem;function a(t){let n={$$slots:{default:[$l]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=new r(a(t))),{c(){n&<(n.$$.fragment),i=M()},m(t,e){n&&ct(n,t,e),y(t,i,e),s=!0},p(t,e){const s=64&e?ot(o,[rt(t[18])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),r!==(r=t[5].unorderedlistitem||t[5].listitem)){if(n){tt();const t=n;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}r?(n=new r(a(t)),lt(n.$$.fragment),nt(n.$$.fragment,1),ct(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&nt(n.$$.fragment,t),s=!0)},o(t){n&&it(n.$$.fragment,t),s=!1},d(t){t&&v(i),n&&ht(n,t)}}}function kl(t){let e,n,i=t[6].items,s=[];for(let e=0;e<i.length;e+=1)s[e]=wl(rl(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(96&n){let r;for(i=t[6].items,r=0;r<i.length;r+=1){const o=rl(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=wl(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function Cl(t){let e,n,i;return e=new Bl({props:{tokens:t[18].tokens,renderers:t[5]}}),{c(){lt(e.$$.fragment),n=C()},m(t,s){ct(e,t,s),y(t,n,s),i=!0},p(t,n){const i={};64&n&&(i.tokens=t[18].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){i||(nt(e.$$.fragment,t),i=!0)},o(t){it(e.$$.fragment,t),i=!1},d(t){ht(e,t),t&&v(n)}}}function Ml(t){let n,i,s;const o=[t[18]];var r=t[5].orderedlistitem||t[5].listitem;function a(t){let n={$$slots:{default:[Cl]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=new r(a(t))),{c(){n&<(n.$$.fragment),i=M()},m(t,e){n&&ct(n,t,e),y(t,i,e),s=!0},p(t,e){const s=64&e?ot(o,[rt(t[18])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),r!==(r=t[5].orderedlistitem||t[5].listitem)){if(n){tt();const t=n;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}r?(n=new r(a(t)),lt(n.$$.fragment),nt(n.$$.fragment,1),ct(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&nt(n.$$.fragment,t),s=!0)},o(t){n&&it(n.$$.fragment,t),s=!1},d(t){t&&v(i),n&&ht(n,t)}}}function Sl(t){let e,n,i=t[6].items,s=[];for(let e=0;e<i.length;e+=1)s[e]=Ml(al(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(96&n){let r;for(i=t[6].items,r=0;r<i.length;r+=1){const o=al(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=Ml(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function Ll(t){let e,n,i;return e=new Bl({props:{tokens:t[16].tokens,renderers:t[5]}}),{c(){lt(e.$$.fragment),n=C()},m(t,s){ct(e,t,s),y(t,n,s),i=!0},p(t,n){const i={};4&n&&(i.tokens=t[16].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){i||(nt(e.$$.fragment,t),i=!0)},o(t){it(e.$$.fragment,t),i=!1},d(t){ht(e,t),t&&v(n)}}}function Dl(t){let e,n,i;var s=t[5].tablecell;function o(t){return{props:{header:!0,align:t[6].align[t[15]]||"center",$$slots:{default:[Ll]},$$scope:{ctx:t}}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(64&i&&(r.align=t[6].align[t[15]]||"center"),8388644&i&&(r.$$scope={dirty:i,ctx:t}),s!==(s=t[5].tablecell)){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function Ol(t){let e,n,i=t[2],s=[];for(let e=0;e<i.length;e+=1)s[e]=Dl(hl(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(100&n){let r;for(i=t[2],r=0;r<i.length;r+=1){const o=hl(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=Dl(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function Pl(t){let e,n,i;var s=t[5].tablerow;function o(t){return{props:{$$slots:{default:[Ol]},$$scope:{ctx:t}}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(8388708&i&&(r.$$scope={dirty:i,ctx:t}),s!==(s=t[5].tablerow)){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function Al(t){let e,n;return e=new Bl({props:{tokens:t[13].tokens,renderers:t[5]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};8&n&&(i.tokens=t[13].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function El(t){let e,n,i;var s=t[5].tablecell;function o(t){return{props:{header:!1,align:t[6].align[t[15]]||"center",$$slots:{default:[Al]},$$scope:{ctx:t}}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(64&i&&(r.align=t[6].align[t[15]]||"center"),8388648&i&&(r.$$scope={dirty:i,ctx:t}),s!==(s=t[5].tablecell)){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function Rl(t){let e,n,i=t[10],s=[];for(let e=0;e<i.length;e+=1)s[e]=El(cl(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=C()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(104&n){let r;for(i=t[10],r=0;r<i.length;r+=1){const o=cl(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=El(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function Tl(t){let e,n,i;var s=t[5].tablerow;function o(t){return{props:{$$slots:{default:[Rl]},$$scope:{ctx:t}}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(8388712&i&&(r.$$scope={dirty:i,ctx:t}),s!==(s=t[5].tablerow)){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function zl(t){let e,n,i=t[3],s=[];for(let e=0;e<i.length;e+=1)s[e]=Tl(ll(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(104&n){let r;for(i=t[3],r=0;r<i.length;r+=1){const o=ll(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=Tl(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function Il(t){let e,n,i,s,o;var r=t[5].tablehead;function a(t){return{props:{$$slots:{default:[Pl]},$$scope:{ctx:t}}}}r&&(e=new r(a(t)));var l=t[5].tablebody;function c(t){return{props:{$$slots:{default:[zl]},$$scope:{ctx:t}}}}return l&&(i=new l(c(t))),{c(){e&<(e.$$.fragment),n=C(),i&<(i.$$.fragment),s=M()},m(t,r){e&&ct(e,t,r),y(t,n,r),i&&ct(i,t,r),y(t,s,r),o=!0},p(t,o){const h={};if(8388708&o&&(h.$$scope={dirty:o,ctx:t}),r!==(r=t[5].tablehead)){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}r?(e=new r(a(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else r&&e.$set(h);const u={};if(8388712&o&&(u.$$scope={dirty:o,ctx:t}),l!==(l=t[5].tablebody)){if(i){tt();const t=i;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}l?(i=new l(c(t)),lt(i.$$.fragment),nt(i.$$.fragment,1),ct(i,s.parentNode,s)):i=null}else l&&i.$set(u)},i(t){o||(e&&nt(e.$$.fragment,t),i&&nt(i.$$.fragment,t),o=!0)},o(t){e&&it(e.$$.fragment,t),i&&it(i.$$.fragment,t),o=!1},d(t){e&&ht(e,t),t&&v(n),t&&v(s),i&&ht(i,t)}}}function Fl(t){let n,i;const s=[t[7],{renderers:t[5]}];let o={};for(let t=0;t<s.length;t+=1)o=e(o,s[t]);return n=new Bl({props:o}),{c(){lt(n.$$.fragment)},m(t,e){ct(n,t,e),i=!0},p(t,e){const i=34&e?ot(s,[2&e&&rt(t[7]),32&e&&{renderers:t[5]}]):{};n.$set(i)},i(t){i||(nt(n.$$.fragment,t),i=!0)},o(t){it(n.$$.fragment,t),i=!1},d(t){ht(n,t)}}}function jl(t){let e,n,i,s;const o=[fl,dl],r=[];function a(t,e){return t[0]?t[5][t[0]]?1:-1:0}return~(e=a(t))&&(n=r[e]=o[e](t)),{c(){n&&n.c(),i=M()},m(t,n){~e&&r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?~e&&r[e].p(t,s):(n&&(tt(),it(r[l],1,1,(()=>{r[l]=null})),et()),~e?(n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i)):n=null)},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){~e&&r[e].d(t),t&&v(i)}}}function Nl(t,n,i){const s=["type","tokens","header","rows","ordered","renderers"];let o=b(n,s),{type:r}=n,{tokens:a}=n,{header:l}=n,{rows:c}=n,{ordered:h=!1}=n,{renderers:u}=n;return t.$$set=t=>{n=e(e({},n),m(t)),i(6,o=b(n,s)),"type"in t&&i(0,r=t.type),"tokens"in t&&i(1,a=t.tokens),"header"in t&&i(2,l=t.header),"rows"in t&&i(3,c=t.rows),"ordered"in t&&i(4,h=t.ordered),"renderers"in t&&i(5,u=t.renderers)},[r,a,l,c,h,u,o]}class Bl extends ft{constructor(t){super(),dt(this,t,Nl,jl,r,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}}let Vl={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Hl=/[&<>"']/,Wl=/[&<>"']/g,Ul=/[<>"']|&(?!#?\w+;)/,ql=/[<>"']|&(?!#?\w+;)/g,Yl={"&":"&","<":"<",">":">",'"':""","'":"'"},Zl=t=>Yl[t];function Xl(t,e){if(e){if(Hl.test(t))return t.replace(Wl,Zl)}else if(Ul.test(t))return t.replace(ql,Zl);return t}const Gl=/(^|[^\[])\^/g;function Kl(t,e){t=t.source||t,e=e||"";const n={replace:(e,i)=>(i=(i=i.source||i).replace(Gl,"$1"),t=t.replace(e,i),n),getRegex:()=>new RegExp(t,e)};return n}const Ql={exec:function(){}};function Jl(t){let e,n,i=1;for(;i<arguments.length;i++)for(n in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function tc(t,e){const n=t.replace(/\|/g,((t,e,n)=>{let i=!1,s=e;for(;--s>=0&&"\\"===n[s];)i=!i;return i?"|":" |"})),i=n.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i[i.length-1].trim()||i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function ec(t,e,n){const i=t.length;if(0===i)return"";let s=0;for(;s<i;){const o=t.charAt(i-s-1);if(o!==e||n){if(o===e||!n)break;s++}else s++}return t.substr(0,i-s)}function nc(t,e){if(e<1)return"";let n="";for(;e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function ic(t,e,n,i){const s=e.href,o=e.title?Xl(e.title):null,r=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const t={type:"link",raw:n,href:s,title:o,text:r,tokens:i.inlineTokens(r,[])};return i.state.inLink=!1,t}return{type:"image",raw:n,href:s,title:o,text:Xl(r)}}class sc{constructor(t){this.options=t||Vl}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:ec(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e){const n=t.match(/^(\s+)(?:```)/);if(null===n)return e;const i=n[1];return e.split("\n").map((t=>{const e=t.match(/^\s+/);if(null===e)return t;const[n]=e;return n.length>=i.length?t.slice(i.length):t})).join("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim():e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(/#$/.test(t)){const e=ec(t,"#");this.options.pedantic?t=e.trim():e&&!/ $/.test(e)||(t=e.trim())}const n={type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const t=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(t,[]),text:t}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n,i,s,o,r,a,l,c,h,u,d,f,p=e[1].trim();const g=p.length>1,m={type:"list",raw:"",ordered:g,start:g?+p.slice(0,-1):"",loose:!1,items:[]};p=g?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=g?p:"[*+-]");const b=new RegExp(`^( {0,3}${p})((?: [^\\n]*)?(?:\\n|$))`);for(;t&&(f=!1,e=b.exec(t))&&!this.rules.block.hr.test(t);){if(n=e[0],t=t.substring(n.length),c=e[2].split("\n",1)[0],h=t.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=e[1].length),a=!1,!c&&/^ *$/.test(h)&&(n+=h+"\n",t=t.substring(h.length+1),f=!0),!f){const e=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;t&&(u=t.split("\n",1)[0],c=u,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!e.test(c));){if(c.search(/[^ ]/)>=o||!c.trim())d+="\n"+c.slice(o);else{if(a)break;d+="\n"+c}a||c.trim()||(a=!0),n+=u+"\n",t=t.substring(u.length+1)}}m.loose||(l?m.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(d),i&&(s="[ ] "!==i[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!i,checked:s,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const x=m.items.length;for(r=0;r<x;r++){this.lexer.state.top=!1,m.items[r].tokens=this.lexer.blockTokens(m.items[r].text,[]);const t=m.items[r].tokens.filter((t=>"space"===t.type)),e=t.every((t=>{const e=t.raw.split("");let n=0;for(const t of e)if("\n"===t&&(n+=1),n>1)return!0;return!1}));!m.loose&&t.length&&e&&(m.loose=!0,m.items[r].loose=!0)}return m}}html(t){const e=this.rules.block.html.exec(t);if(e){const t={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(t.type="paragraph",t.text=this.options.sanitizer?this.options.sanitizer(e[0]):Xl(e[0]),t.tokens=[],this.lexer.inline(t.text,t.tokens)),t}}def(t){const e=this.rules.block.def.exec(t);if(e){e[3]&&(e[3]=e[3].substring(1,e[3].length-1));return{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}}table(t){const e=this.rules.block.table.exec(t);if(e){const t={type:"table",header:tc(e[1]).map((t=>({text:t}))),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];let n,i,s,o,r=t.align.length;for(n=0;n<r;n++)/^ *-+: *$/.test(t.align[n])?t.align[n]="right":/^ *:-+: *$/.test(t.align[n])?t.align[n]="center":/^ *:-+ *$/.test(t.align[n])?t.align[n]="left":t.align[n]=null;for(r=t.rows.length,n=0;n<r;n++)t.rows[n]=tc(t.rows[n],t.header.length).map((t=>({text:t})));for(r=t.header.length,i=0;i<r;i++)t.header[i].tokens=[],this.lexer.inlineTokens(t.header[i].text,t.header[i].tokens);for(r=t.rows.length,i=0;i<r;i++)for(o=t.rows[i],s=0;s<o.length;s++)o[s].tokens=[],this.lexer.inlineTokens(o[s].text,o[s].tokens);return t}}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e){const t={type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const t={type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}}text(t){const e=this.rules.block.text.exec(t);if(e){const t={type:"text",raw:e[0],text:e[0],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:Xl(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Xl(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const e=ec(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;const n=t.length;let i=0,s=0;for(;s<n;s++)if("\\"===t[s])s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return-1}(e[2],"()");if(t>-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){const t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);t&&(n=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(t)?n.slice(1):n.slice(1,-1)),ic(e,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:i?i.replace(this.rules.inline._escapes,"$1"):i},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=(n[2]||n[1]).replace(/\s+/g," ");if(t=e[t.toLowerCase()],!t||!t.href){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return ic(n,t,n[0],this.lexer)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=i[1]||i[2]||"";if(!s||s&&(""===n||this.rules.inline.punctuation.exec(n))){const n=i[0].length-1;let s,o,r=n,a=0;const l="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);null!=(i=l.exec(e));){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=s.length,i[3]||i[4]){r+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(r-=o,r>0)continue;if(o=Math.min(o,o+r+a),Math.min(n,o)%2){const e=t.slice(1,n+i.index+o);return{type:"em",raw:t.slice(0,n+i.index+o+1),text:e,tokens:this.lexer.inlineTokens(e,[])}}const e=t.slice(2,n+i.index+o-1);return{type:"strong",raw:t.slice(0,n+i.index+o+1),text:e,tokens:this.lexer.inlineTokens(e,[])}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(/\n/g," ");const n=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return n&&i&&(t=t.substring(1,t.length-1)),t=Xl(t,!0),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}autolink(t,e){const n=this.rules.inline.autolink.exec(t);if(n){let t,i;return"@"===n[2]?(t=Xl(this.options.mangle?e(n[1]):n[1]),i="mailto:"+t):(t=Xl(n[1]),i=t),{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}url(t,e){let n;if(n=this.rules.inline.url.exec(t)){let t,i;if("@"===n[2])t=Xl(this.options.mangle?e(n[0]):n[0]),i="mailto:"+t;else{let e;do{e=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(e!==n[0]);t=Xl(n[0]),i="www."===n[1]?"http://"+t:t}return{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t,e){const n=this.rules.inline.text.exec(t);if(n){let t;return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Xl(n[0]):n[0]:Xl(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:t}}}}const oc={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ql,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};oc.def=Kl(oc.def).replace("label",oc._label).replace("title",oc._title).getRegex(),oc.bullet=/(?:[*+-]|\d{1,9}[.)])/,oc.listItemStart=Kl(/^( *)(bull) */).replace("bull",oc.bullet).getRegex(),oc.list=Kl(oc.list).replace(/bull/g,oc.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+oc.def.source+")").getRegex(),oc._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",oc._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,oc.html=Kl(oc.html,"i").replace("comment",oc._comment).replace("tag",oc._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oc.paragraph=Kl(oc._paragraph).replace("hr",oc.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oc._tag).getRegex(),oc.blockquote=Kl(oc.blockquote).replace("paragraph",oc.paragraph).getRegex(),oc.normal=Jl({},oc),oc.gfm=Jl({},oc.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),oc.gfm.table=Kl(oc.gfm.table).replace("hr",oc.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oc._tag).getRegex(),oc.gfm.paragraph=Kl(oc._paragraph).replace("hr",oc.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",oc.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",oc._tag).getRegex(),oc.pedantic=Jl({},oc.normal,{html:Kl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",oc._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ql,paragraph:Kl(oc.normal._paragraph).replace("hr",oc.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",oc.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const rc={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ql,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ql,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function ac(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function lc(t){let e,n,i="";const s=t.length;for(e=0;e<s;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}rc._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",rc.punctuation=Kl(rc.punctuation).replace(/punctuation/g,rc._punctuation).getRegex(),rc.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,rc.escapedEmSt=/\\\*|\\_/g,rc._comment=Kl(oc._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),rc.emStrong.lDelim=Kl(rc.emStrong.lDelim).replace(/punct/g,rc._punctuation).getRegex(),rc.emStrong.rDelimAst=Kl(rc.emStrong.rDelimAst,"g").replace(/punct/g,rc._punctuation).getRegex(),rc.emStrong.rDelimUnd=Kl(rc.emStrong.rDelimUnd,"g").replace(/punct/g,rc._punctuation).getRegex(),rc._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,rc._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,rc._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,rc.autolink=Kl(rc.autolink).replace("scheme",rc._scheme).replace("email",rc._email).getRegex(),rc._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,rc.tag=Kl(rc.tag).replace("comment",rc._comment).replace("attribute",rc._attribute).getRegex(),rc._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rc._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,rc._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,rc.link=Kl(rc.link).replace("label",rc._label).replace("href",rc._href).replace("title",rc._title).getRegex(),rc.reflink=Kl(rc.reflink).replace("label",rc._label).replace("ref",oc._label).getRegex(),rc.nolink=Kl(rc.nolink).replace("ref",oc._label).getRegex(),rc.reflinkSearch=Kl(rc.reflinkSearch,"g").replace("reflink",rc.reflink).replace("nolink",rc.nolink).getRegex(),rc.normal=Jl({},rc),rc.pedantic=Jl({},rc.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Kl(/^!?\[(label)\]\((.*?)\)/).replace("label",rc._label).getRegex(),reflink:Kl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rc._label).getRegex()}),rc.gfm=Jl({},rc.normal,{escape:Kl(rc.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),rc.gfm.url=Kl(rc.gfm.url,"i").replace("email",rc.gfm._extended_email).getRegex(),rc.breaks=Jl({},rc.gfm,{br:Kl(rc.br).replace("{2,}","*").getRegex(),text:Kl(rc.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class cc{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Vl,this.options.tokenizer=this.options.tokenizer||new sc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:oc.normal,inline:rc.normal};this.options.pedantic?(e.block=oc.pedantic,e.inline=rc.pedantic):this.options.gfm&&(e.block=oc.gfm,this.options.breaks?e.inline=rc.breaks:e.inline=rc.gfm),this.tokenizer.rules=e}static get rules(){return{block:oc,inline:rc}}static lex(t,e){return new cc(e).lex(t)}static lexInline(t,e){return new cc(e).inlineTokens(t)}lex(t){let e;for(t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens);e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens}blockTokens(t,e=[]){let n,i,s,o;for(this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else{if(s=t,this.options.extensions&&this.options.extensions.startBlock){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(s=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=s.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e){this.inlineQueue.push({src:t,tokens:e})}inlineTokens(t,e=[]){let n,i,s,o,r,a,l=t;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)t.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+nc("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+nc("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(r||(a=""),r=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,l,a))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,lc))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,lc))){if(s=t,this.options.extensions&&this.options.extensions.startInline){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(s=t.substring(0,e+1))}if(n=this.tokenizer.inlineText(s,ac))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),r=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}else t=t.substring(n.raw.length),e.push(n);return e}}class hc{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n}slug(t,e={}){const n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}const uc={};function dc(e){let n;return{c(){n=k(e[1])},m(t,e){y(t,n,e)},p(t,e){2&e&&O(n,t[1])},i:t,o:t,d(t){t&&v(n)}}}function fc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h6"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function pc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h5"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function gc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h4"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function mc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h3"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function bc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h2"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function xc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h1"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function yc(t){let e,n,i,s;const o=[xc,bc,mc,gc,pc,fc,dc],r=[];function a(t,e){return 1===t[0]?0:2===t[0]?1:3===t[0]?2:4===t[0]?3:5===t[0]?4:6===t[0]?5:6}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}function vc(t,e,n){let i,{$$slots:s={},$$scope:o}=e,{depth:r}=e,{raw:a}=e,{text:l}=e;const{slug:c,getOptions:h}=j(uc),u=h();return t.$$set=t=>{"depth"in t&&n(0,r=t.depth),"raw"in t&&n(1,a=t.raw),"text"in t&&n(3,l=t.text),"$$scope"in t&&n(4,o=t.$$scope)},t.$$.update=()=>{8&t.$$.dirty&&n(2,i=u.headerIds?u.headerPrefix+c(l):void 0)},[r,a,i,l,o,s]}function _c(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("p"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function $c(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function wc(t){let e;const n=t[3].default,i=u(n,t,t[2],null);return{c(){i&&i.c()},m(t,n){i&&i.m(t,n),e=!0},p(t,[s]){i&&i.p&&(!e||4&s)&&p(i,n,t,t[2],e?f(n,t[2],s,null):g(t[2]),null)},i(t){e||(nt(i,t),e=!0)},o(t){it(i,t),e=!1},d(t){i&&i.d(t)}}}function kc(t,e,n){let{$$slots:i={},$$scope:s}=e,{text:o}=e,{raw:r}=e;return t.$$set=t=>{"text"in t&&n(0,o=t.text),"raw"in t&&n(1,r=t.raw),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function Cc(e){let n,i;return{c(){n=$("img"),c(n.src,i=e[0])||L(n,"src",i),L(n,"title",e[1]),L(n,"alt",e[2])},m(t,e){y(t,n,e)},p(t,[e]){1&e&&!c(n.src,i=t[0])&&L(n,"src",i),2&e&&L(n,"title",t[1]),4&e&&L(n,"alt",t[2])},i:t,o:t,d(t){t&&v(n)}}}function Mc(t,e,n){let{href:i=""}=e,{title:s}=e,{text:o=""}=e;return t.$$set=t=>{"href"in t&&n(0,i=t.href),"title"in t&&n(1,s=t.title),"text"in t&&n(2,o=t.text)},[i,s,o]}function Sc(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("a"),s&&s.c(),L(e,"href",t[0]),L(e,"title",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[o]){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||1&o)&&L(e,"href",t[0]),(!n||2&o)&&L(e,"title",t[1])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Lc(t,e,n){let{$$slots:i={},$$scope:s}=e,{href:o=""}=e,{title:r}=e;return t.$$set=t=>{"href"in t&&n(0,o=t.href),"title"in t&&n(1,r=t.title),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function Dc(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("em"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Oc(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Pc(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("del"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Ac(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Ec(e){let n,i,s=e[0].replace(/`/g,"")+"";return{c(){n=$("code"),i=k(s)},m(t,e){y(t,n,e),x(n,i)},p(t,[e]){1&e&&s!==(s=t[0].replace(/`/g,"")+"")&&O(i,s)},i:t,o:t,d(t){t&&v(n)}}}function Rc(t,e,n){let{raw:i}=e;return t.$$set=t=>{"raw"in t&&n(0,i=t.raw)},[i]}function Tc(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("strong"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function zc(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Ic(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("table"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Fc(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function jc(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("thead"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Nc(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Bc(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("tbody"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Vc(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Hc(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("tr"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Wc(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Uc(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("td"),s&&s.c(),L(e,"align",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||2&o)&&L(e,"align",t[1])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function qc(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("th"),s&&s.c(),L(e,"align",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||2&o)&&L(e,"align",t[1])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Yc(t){let e,n,i,s;const o=[qc,Uc],r=[];function a(t,e){return t[0]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}function Zc(t,e,n){let{$$slots:i={},$$scope:s}=e,{header:o}=e,{align:r}=e;return t.$$set=t=>{"header"in t&&n(0,o=t.header),"align"in t&&n(1,r=t.align),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function Xc(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("ul"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,e){s&&s.p&&(!n||4&e)&&p(s,i,t,t[2],n?f(i,t[2],e,null):g(t[2]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Gc(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("ol"),s&&s.c(),L(e,"start",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||2&o)&&L(e,"start",t[1])},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function Kc(t){let e,n,i,s;const o=[Gc,Xc],r=[];function a(t,e){return t[0]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}function Qc(t,e,n){let{$$slots:i={},$$scope:s}=e,{ordered:o}=e,{start:r}=e;return t.$$set=t=>{"ordered"in t&&n(0,o=t.ordered),"start"in t&&n(1,r=t.start),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function Jc(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("li"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function th(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function eh(e){let n;return{c(){n=$("hr")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&v(n)}}}function nh(e){let n,i;return{c(){n=new E,i=M(),n.a=i},m(t,s){n.m(e[0],t,s),y(t,i,s)},p(t,[e]){1&e&&n.p(t[0])},i:t,o:t,d(t){t&&v(i),t&&n.d()}}}function ih(t,e,n){let{text:i}=e;return t.$$set=t=>{"text"in t&&n(0,i=t.text)},[i]}function sh(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("blockquote"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function oh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function rh(e){let n,i,s;return{c(){n=$("pre"),i=$("code"),s=k(e[1]),L(n,"class",e[0])},m(t,e){y(t,n,e),x(n,i),x(i,s)},p(t,[e]){2&e&&O(s,t[1]),1&e&&L(n,"class",t[0])},i:t,o:t,d(t){t&&v(n)}}}function ah(t,e,n){let{lang:i}=e,{text:s}=e;return t.$$set=t=>{"lang"in t&&n(0,i=t.lang),"text"in t&&n(1,s=t.text)},[i,s]}function lh(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("br"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(t,i),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function ch(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}const hh={heading:class extends ft{constructor(t){super(),dt(this,t,vc,yc,r,{depth:0,raw:1,text:3})}},paragraph:class extends ft{constructor(t){super(),dt(this,t,$c,_c,r,{})}},text:class extends ft{constructor(t){super(),dt(this,t,kc,wc,r,{text:0,raw:1})}},image:class extends ft{constructor(t){super(),dt(this,t,Mc,Cc,r,{href:0,title:1,text:2})}},link:class extends ft{constructor(t){super(),dt(this,t,Lc,Sc,r,{href:0,title:1})}},em:class extends ft{constructor(t){super(),dt(this,t,Oc,Dc,r,{})}},strong:class extends ft{constructor(t){super(),dt(this,t,zc,Tc,r,{})}},codespan:class extends ft{constructor(t){super(),dt(this,t,Rc,Ec,r,{raw:0})}},del:class extends ft{constructor(t){super(),dt(this,t,Ac,Pc,r,{})}},table:class extends ft{constructor(t){super(),dt(this,t,Fc,Ic,r,{})}},tablehead:class extends ft{constructor(t){super(),dt(this,t,Nc,jc,r,{})}},tablebody:class extends ft{constructor(t){super(),dt(this,t,Vc,Bc,r,{})}},tablerow:class extends ft{constructor(t){super(),dt(this,t,Wc,Hc,r,{})}},tablecell:class extends ft{constructor(t){super(),dt(this,t,Zc,Yc,r,{header:0,align:1})}},list:class extends ft{constructor(t){super(),dt(this,t,Qc,Kc,r,{ordered:0,start:1})}},orderedlistitem:null,unorderedlistitem:null,listitem:class extends ft{constructor(t){super(),dt(this,t,th,Jc,r,{})}},hr:class extends ft{constructor(t){super(),dt(this,t,null,eh,r,{})}},html:class extends ft{constructor(t){super(),dt(this,t,ih,nh,r,{text:0})}},blockquote:class extends ft{constructor(t){super(),dt(this,t,oh,sh,r,{})}},code:class extends ft{constructor(t){super(),dt(this,t,ah,rh,r,{lang:0,text:1})}},br:class extends ft{constructor(t){super(),dt(this,t,ch,lh,r,{})}}},uh={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function dh(t){let e,n;return e=new Bl({props:{tokens:t[0],renderers:t[1]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,[n]){const i={};1&n&&(i.tokens=t[0]),2&n&&(i.renderers=t[1]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function fh(t,e,n){let i,s,o,{source:r=""}=e,{renderers:a={}}=e,{options:l={}}=e,{isInline:c=!1}=e;const h=I();let u,d,f;return F(uc,{slug:t=>i?i.slug(t):"",getOptions:()=>s}),z((()=>{n(7,f=!0)})),t.$$set=t=>{"source"in t&&n(2,r=t.source),"renderers"in t&&n(3,a=t.renderers),"options"in t&&n(4,l=t.options),"isInline"in t&&n(5,c=t.isInline)},t.$$.update=()=>{4&t.$$.dirty&&(i=r?new hc:void 0),16&t.$$.dirty&&n(8,s={...uh,...l}),357&t.$$.dirty&&(n(6,d=new cc(s)),n(0,u=c?d.inlineTokens(r):d.lex(r)),h("parsed",{tokens:u})),8&t.$$.dirty&&n(1,o={...hh,...a}),129&t.$$.dirty&&f&&h("parsed",{tokens:u})},[u,o,r,a,l,c,d,f,s]}class ph extends ft{constructor(t){super(),dt(this,t,fh,dh,r,{source:2,renderers:3,options:4,isInline:5})}}function gh(t){let e,n;return e=new ph({props:{source:t[0].source}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,[n]){const i={};1&n&&(i.source=t[0].source),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function mh(t,e,n){let{componentData:i}=e;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i]}class bh extends ft{constructor(t){super(),dt(this,t,mh,gh,r,{componentData:0})}}function xh(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("div"),s&&s.c(),L(e,"id",`page-${t[0]||"No Title"}`),L(e,"class","page svelte-v7ihqd"),L(e,"data-component","page")},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||4&e)&&p(s,i,t,t[2],n?f(i,t[2],e,null):g(t[2]),null)},i(t){n||(nt(s,t),n=!0)},o(t){it(s,t),n=!1},d(t){t&&v(e),s&&s.d(t)}}}function yh(t,e,n){let{$$slots:i={},$$scope:s}=e,{componentData:o}=e;const{title:r}=o;return t.$$set=t=>{"componentData"in t&&n(1,o=t.componentData),"$$scope"in t&&n(2,s=t.$$scope)},[r,o,s,i]}class vh extends ft{constructor(t){super(),dt(this,t,yh,xh,r,{componentData:1})}}function _h(e){let n,i,s,o,r,a,l,c,h=e[1]&&function(e){let n;return{c(){n=$("h3"),n.textContent=`${e[1]}`},m(t,e){y(t,n,e)},p:t,d(t){t&&v(n)}}}(e),d=e[2]&&function(e){let n;return{c(){n=$("p"),n.textContent=`${e[2]}`,L(n,"class","description")},m(t,e){y(t,n,e)},p:t,d(t){t&&v(n)}}}(e);const m=e[6].default,b=u(m,e,e[5],null);return{c(){n=$("section"),i=$("div"),h&&h.c(),s=C(),d&&d.c(),o=C(),r=$("div"),b&&b.c(),a=C(),l=$("hr"),L(i,"class","heading svelte-17n0qr8"),L(r,"class","sectionItems svelte-17n0qr8"),L(r,"style",e[0]),L(l,"class","svelte-17n0qr8"),L(n,"class","container svelte-17n0qr8"),L(n,"data-component","section"),L(n,"data-section-id",e[1]),A(n,"columns",e[3])},m(t,e){y(t,n,e),x(n,i),h&&h.m(i,null),x(i,s),d&&d.m(i,null),x(n,o),x(n,r),b&&b.m(r,null),x(n,a),x(n,l),c=!0},p(t,[e]){t[1]&&h.p(t,e),t[2]&&d.p(t,e),b&&b.p&&(!c||32&e)&&p(b,m,t,t[5],c?f(m,t[5],e,null):g(t[5]),null),(!c||1&e)&&L(r,"style",t[0])},i(t){c||(nt(b,t),c=!0)},o(t){it(b,t),c=!1},d(t){t&&v(n),h&&h.d(),d&&d.d(),b&&b.d(t)}}}function $h(t,e,n){let{$$slots:i={},$$scope:s}=e,{componentData:o}=e;const{title:r,subtitle:a,columns:l}=o;let c;return l&&(c=`grid-template-columns: repeat(${l||1}, 1fr);`),t.$$set=t=>{"componentData"in t&&n(4,o=t.componentData),"$$scope"in t&&n(5,s=t.$$scope)},[c,r,a,l,o,s,i]}class wh extends ft{constructor(t){super(),dt(this,t,$h,_h,r,{componentData:4})}}function kh(e){let n;return{c(){n=$("p"),n.textContent=`${e[0]}`,L(n,"data-component","text")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&v(n)}}}function Ch(t,e,n){let{componentData:i}=e;const{text:s}=i;return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},[s,i]}class Mh extends ft{constructor(t){super(),dt(this,t,Ch,kh,r,{componentData:1})}}function Sh(e){let n;return{c(){n=k(e[0])},m(t,e){y(t,n,e)},p(t,e){1&e&&O(n,t[0])},i:t,o:t,d(t){t&&v(n)}}}function Lh(t){let e,n,i;var s=t[1];function o(t){return{props:{componentData:t[0]}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),s!==(s=t[1])){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function Dh(t){let e,n,i,s;const o=[Lh,Sh],r=[];function a(t,e){return t[1]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}function Oh(t,e,n){var i;let s,{componentData:o}=e;const r={artifacts:jt,barChart:ha,dag:Ba,heading:Ga,image:Ja,lineChart:nl,log:ol,markdown:bh,text:Mh},a=null===(i=o)||void 0===i?void 0:i.type;return a&&(s=null==r?void 0:r[a],s||console.error("Unknown component type: ",a)),t.$$set=t=>{"componentData"in t&&n(0,o=t.componentData)},[o,s]}class Ph extends ft{constructor(t){super(),dt(this,t,Oh,Dh,r,{componentData:0})}}function Ah(t,e,n){const i=t.slice();return i[3]=e[n],i[5]=n,i}function Eh(t,e,n){const i=t.slice();return i[6]=e[n],i}function Rh(e){let n,i,s;return i=new Ph({props:{componentData:e[6][e[5]]}}),{c(){n=$("td"),lt(i.$$.fragment),L(n,"class","svelte-gl9h79")},m(t,e){y(t,n,e),ct(i,n,null),s=!0},p:t,i(t){s||(nt(i.$$.fragment,t),s=!0)},o(t){it(i.$$.fragment,t),s=!1},d(t){t&&v(n),ht(i)}}}function Th(t){let e,n,i,s,o,r,a=t[3]+"",l=t[1],c=[];for(let e=0;e<l.length;e+=1)c[e]=Rh(Eh(t,l,e));const h=t=>it(c[t],1,1,(()=>{c[t]=null}));return{c(){e=$("tr"),n=$("td"),i=k(a),s=C();for(let t=0;t<c.length;t+=1)c[t].c();o=C(),L(n,"class","labelColumn svelte-gl9h79")},m(t,a){y(t,e,a),x(e,n),x(n,i),x(e,s);for(let t=0;t<c.length;t+=1)c[t].m(e,null);x(e,o),r=!0},p(t,n){if(2&n){let i;for(l=t[1],i=0;i<l.length;i+=1){const s=Eh(t,l,i);c[i]?(c[i].p(s,n),nt(c[i],1)):(c[i]=Rh(s),c[i].c(),nt(c[i],1),c[i].m(e,o))}for(tt(),i=l.length;i<c.length;i+=1)h(i);et()}},i(t){if(!r){for(let t=0;t<l.length;t+=1)nt(c[t]);r=!0}},o(t){c=c.filter(Boolean);for(let t=0;t<c.length;t+=1)it(c[t]);r=!1},d(t){t&&v(e),_(c,t)}}}function zh(t){let e,n,i=t[0]&&t[1]&&function(t){let e,n,i,s,o=t[0],r=[];for(let e=0;e<o.length;e+=1)r[e]=Th(Ah(t,o,e));const a=t=>it(r[t],1,1,(()=>{r[t]=null}));return{c(){e=$("div"),n=$("table"),i=$("tbody");for(let t=0;t<r.length;t+=1)r[t].c();L(e,"class","tableContainer"),L(e,"data-component","table-vertical")},m(t,o){y(t,e,o),x(e,n),x(n,i);for(let t=0;t<r.length;t+=1)r[t].m(i,null);s=!0},p(t,e){if(3&e){let n;for(o=t[0],n=0;n<o.length;n+=1){const s=Ah(t,o,n);r[n]?(r[n].p(s,e),nt(r[n],1)):(r[n]=Th(s),r[n].c(),nt(r[n],1),r[n].m(i,null))}for(tt(),n=o.length;n<r.length;n+=1)a(n);et()}},i(t){if(!s){for(let t=0;t<o.length;t+=1)nt(r[t]);s=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)it(r[t]);s=!1},d(t){t&&v(e),_(r,t)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[0]&&t[1]&&i.p(t,e)},i(t){n||(nt(i),n=!0)},o(t){it(i),n=!1},d(t){i&&i.d(t),t&&v(e)}}}function Ih(t,e,n){let{componentData:i}=e;const{columns:s,data:o}=i;return t.$$set=t=>{"componentData"in t&&n(2,i=t.componentData)},[s,o,i]}class Fh extends ft{constructor(t){super(),dt(this,t,Ih,zh,r,{componentData:2})}}function jh(t,e,n){const i=t.slice();return i[3]=e[n],i}function Nh(t,e,n){const i=t.slice();return i[6]=e[n],i}function Bh(t,e,n){const i=t.slice();return i[9]=e[n],i}function Vh(e){let n,i,s=e[9]+"";return{c(){n=$("th"),i=k(s),L(n,"class","svelte-q3hq57")},m(t,e){y(t,n,e),x(n,i)},p:t,d(t){t&&v(n)}}}function Hh(e){let n,i,s;return i=new Ph({props:{componentData:e[6]}}),{c(){n=$("td"),lt(i.$$.fragment)},m(t,e){y(t,n,e),ct(i,n,null),s=!0},p:t,i(t){s||(nt(i.$$.fragment,t),s=!0)},o(t){it(i.$$.fragment,t),s=!1},d(t){t&&v(n),ht(i)}}}function Wh(t){let e,n,i,s=t[3],o=[];for(let e=0;e<s.length;e+=1)o[e]=Hh(Nh(t,s,e));const r=t=>it(o[t],1,1,(()=>{o[t]=null}));return{c(){e=$("tr");for(let t=0;t<o.length;t+=1)o[t].c();n=C()},m(t,s){y(t,e,s);for(let t=0;t<o.length;t+=1)o[t].m(e,null);x(e,n),i=!0},p(t,i){if(2&i){let a;for(s=t[3],a=0;a<s.length;a+=1){const r=Nh(t,s,a);o[a]?(o[a].p(r,i),nt(o[a],1)):(o[a]=Hh(r),o[a].c(),nt(o[a],1),o[a].m(e,n))}for(tt(),a=s.length;a<o.length;a+=1)r(a);et()}},i(t){if(!i){for(let t=0;t<s.length;t+=1)nt(o[t]);i=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)it(o[t]);i=!1},d(t){t&&v(e),_(o,t)}}}function Uh(t){let e,n,i=t[0]&&t[1]&&function(t){let e,n,i,s,o,r,a,l=t[0],c=[];for(let e=0;e<l.length;e+=1)c[e]=Vh(Bh(t,l,e));let h=t[1],u=[];for(let e=0;e<h.length;e+=1)u[e]=Wh(jh(t,h,e));const d=t=>it(u[t],1,1,(()=>{u[t]=null}));return{c(){e=$("div"),n=$("table"),i=$("thead"),s=$("tr");for(let t=0;t<c.length;t+=1)c[t].c();o=C(),r=$("tbody");for(let t=0;t<u.length;t+=1)u[t].c();L(e,"class","tableContainer svelte-q3hq57"),L(e,"data-component","table-horizontal")},m(t,l){y(t,e,l),x(e,n),x(n,i),x(i,s);for(let t=0;t<c.length;t+=1)c[t].m(s,null);x(n,o),x(n,r);for(let t=0;t<u.length;t+=1)u[t].m(r,null);a=!0},p(t,e){if(1&e){let n;for(l=t[0],n=0;n<l.length;n+=1){const i=Bh(t,l,n);c[n]?c[n].p(i,e):(c[n]=Vh(i),c[n].c(),c[n].m(s,null))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}if(2&e){let n;for(h=t[1],n=0;n<h.length;n+=1){const i=jh(t,h,n);u[n]?(u[n].p(i,e),nt(u[n],1)):(u[n]=Wh(i),u[n].c(),nt(u[n],1),u[n].m(r,null))}for(tt(),n=h.length;n<u.length;n+=1)d(n);et()}},i(t){if(!a){for(let t=0;t<h.length;t+=1)nt(u[t]);a=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)it(u[t]);a=!1},d(t){t&&v(e),_(c,t),_(u,t)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[0]&&t[1]&&i.p(t,e)},i(t){n||(nt(i),n=!0)},o(t){it(i),n=!1},d(t){i&&i.d(t),t&&v(e)}}}function qh(t,e,n){let{componentData:i}=e;const{columns:s,data:o}=i;return t.$$set=t=>{"componentData"in t&&n(2,i=t.componentData)},[s,o,i]}class Yh extends ft{constructor(t){super(),dt(this,t,qh,Uh,r,{componentData:2})}}function Zh(t){let e,n,i=t[1]&&t[2]&&function(t){let e,n,i;var s=t[3];function o(t){return{props:{componentData:t[0]}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),s!==(s=t[3])){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[1]&&t[2]&&i.p(t,e)},i(t){n||(nt(i),n=!0)},o(t){it(i),n=!1},d(t){i&&i.d(t),t&&v(e)}}}function Xh(t,e,n){let{componentData:i}=e;const{columns:s,data:o,vertical:r}=i,a=r?Fh:Yh;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i,s,o,a]}class Gh extends ft{constructor(t){super(),dt(this,t,Xh,Zh,r,{componentData:0})}}function Kh(t,e,n){const i=t.slice();return i[3]=e[n],i}function Qh(t){let e,n,i;var s=t[1];function o(t){return{props:{componentData:t[0]}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),s!==(s=t[1])){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function Jh(t){let e,n,i;var s=t[1];function o(t){return{props:{componentData:t[0],$$slots:{default:[eu]},$$scope:{ctx:t}}}}return s&&(e=new s(o(t))),{c(){e&<(e.$$.fragment),n=M()},m(t,s){e&&ct(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),65&i&&(r.$$scope={dirty:i,ctx:t}),s!==(s=t[1])){if(e){tt();const t=e;it(t.$$.fragment,1,0,(()=>{ht(t,1)})),et()}s?(e=new s(o(t)),lt(e.$$.fragment),nt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&nt(e.$$.fragment,t),i=!0)},o(t){e&&it(e.$$.fragment,t),i=!1},d(t){t&&v(n),e&&ht(e,t)}}}function tu(t){let e,n;return e=new su({props:{componentData:t[3]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.componentData=t[3]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function eu(t){let e,n,i=t[0].contents,s=[];for(let e=0;e<i.length;e+=1)s[e]=tu(Kh(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(1&n){let r;for(i=t[0].contents,r=0;r<i.length;r+=1){const o=Kh(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=tu(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function nu(t){let e,n,i=t[1]&&function(t){let e,n,i,s;const o=[Jh,Qh],r=[];function a(t,e){return"page"!==t[0].type&&"section"!==t[0].type||!t[0]?.contents?1:0}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(tt(),it(r[l],1,1,(()=>{r[l]=null})),et(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),nt(n,1),n.m(i.parentNode,i))},i(t){s||(nt(n),s=!0)},o(t){it(n),s=!1},d(t){r[e].d(t),t&&v(i)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[1]&&i.p(t,e)},i(t){n||(nt(i),n=!0)},o(t){it(i),n=!1},d(t){i&&i.d(t),t&&v(e)}}}function iu(t,e,n){let{componentData:i}=e;const s={artifacts:jt,barChart:ha,dag:Ba,heading:Ga,image:Ja,lineChart:nl,log:ol,markdown:bh,page:vh,section:wh,subtitle:Ya,table:Gh,text:Mh,title:Wa};let o=null==s?void 0:s[i.type];return o||console.error("Unknown component type: ",i.type),t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i,o]}class su extends ft{constructor(t){super(),dt(this,t,iu,nu,r,{componentData:0})}}function ou(t){let e,n,i;const s=t[1].default,o=u(s,t,t[0],null);return{c(){e=$("main"),n=$("div"),o&&o.c(),L(n,"class","mainContainer svelte-13ho8jo"),L(e,"class","svelte-13ho8jo")},m(t,s){y(t,e,s),x(e,n),o&&o.m(n,null),i=!0},p(t,[e]){o&&o.p&&(!i||1&e)&&p(o,s,t,t[0],i?f(s,t[0],e,null):g(t[0]),null)},i(t){i||(nt(o,t),i=!0)},o(t){it(o,t),i=!1},d(t){t&&v(e),o&&o.d(t)}}}function ru(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}class au extends ft{constructor(t){super(),dt(this,t,ru,ou,r,{})}}var lu=/^[a-z0-9]+(-[a-z0-9]+)*$/,cu=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1});function hu(t){return{...cu,...t}}var uu=(t,e,n,i="")=>{const s=t.split(":");if("@"===t.slice(0,1)){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const t=s.pop(),n=s.pop(),o={provider:s.length>0?s[0]:i,prefix:n,name:t};return e&&!du(o)?null:o}const o=s[0],r=o.split("-");if(r.length>1){const t={provider:i,prefix:r.shift(),name:r.join("-")};return e&&!du(t)?null:t}if(n&&""===i){const t={provider:i,prefix:"",name:o};return e&&!du(t,n)?null:t}return null},du=(t,e)=>!!t&&!(""!==t.provider&&!t.provider.match(lu)||!(e&&""===t.prefix||t.prefix.match(lu))||!t.name.match(lu));function fu(t,e,n=!1){const i=function e(n,i){var s,o,r,a;if(void 0!==t.icons[n])return Object.assign({},t.icons[n]);if(i>5)return null;if(void 0!==(null==(s=t.aliases)?void 0:s[n])){const s=null==(o=t.aliases)?void 0:o[n],r=e(s.parent,i+1);return r?function(t,e){const n={...t};for(const t in cu){const i=t;if(void 0!==e[i]){const t=e[i];if(void 0===n[i]){n[i]=t;continue}switch(i){case"rotate":n[i]=(n[i]+t)%4;break;case"hFlip":case"vFlip":n[i]=t!==n[i];break;default:n[i]=t}}}return n}(r,s):r}return 0===i&&void 0!==(null==(r=t.chars)?void 0:r[n])?e(null==(a=t.chars)?void 0:a[n],i+1):null}(e,0);if(i)for(const e in cu)void 0===i[e]&&void 0!==t[e]&&(i[e]=t[e]);return i&&n?hu(i):i}var pu=/^[a-f0-9]+(-[a-f0-9]+)*$/;function gu(t,e){for(const n in t){const i=n,s=typeof t[i];if("undefined"!==s)switch(n){case"body":case"parent":if("string"!==s)return n;break;case"hFlip":case"vFlip":case"hidden":if("boolean"!==s){if(!e)return n;delete t[i]}break;case"width":case"height":case"left":case"top":case"rotate":case"inlineHeight":case"inlineTop":case"verticalAlign":if("number"!==s){if(!e)return n;delete t[i]}break;default:if("object"===s){if(!e)return n;delete t[i]}}else delete t[i]}return null}function mu(t,e,n){n=n||{};const i=[];if("object"!=typeof t||"object"!=typeof t.icons)return i;const s=n.validate;if(!1!==s)try{!function(t,e){const n=!!(null==e?void 0:e.fix);if("object"!=typeof t||null===t||"object"!=typeof t.icons||!t.icons)throw new Error("Bad icon set");const i=t;if("string"==typeof(null==e?void 0:e.prefix))i.prefix=e.prefix;else if("string"!=typeof i.prefix||!i.prefix.match(lu))throw new Error("Invalid prefix");if("string"==typeof(null==e?void 0:e.provider))i.provider=e.provider;else if(void 0!==i.provider){const t=i.provider;if("string"!=typeof t||""!==t&&!t.match(lu)){if(!n)throw new Error("Invalid provider");delete i.provider}}const s=i.icons;if(Object.keys(s).forEach((t=>{if(!t.match(lu)){if(n)return void delete s[t];throw new Error(`Invalid icon name: "${t}"`)}const e=s[t];if("object"!=typeof e||null===e||"string"!=typeof e.body){if(n)return void delete s[t];throw new Error(`Invalid icon: "${t}"`)}const i="string"==typeof e.parent?"parent":gu(e,n);if(null!==i){if(n)return void delete s[t];throw new Error(`Invalid property "${i}" in icon "${t}"`)}})),!Object.keys(i.icons).length)throw new Error("Icon set is empty");if(void 0!==i.aliases&&("object"!=typeof i.aliases||null===i.aliases)){if(!n)throw new Error("Invalid aliases list");delete i.aliases}if("object"==typeof i.aliases){let t=function(r,a){if(s.has(r))return!o.has(r);const l=e[r];if(a>5||"object"!=typeof l||null===l||"string"!=typeof l.parent||!r.match(lu)){if(n)return delete e[r],o.add(r),!1;throw new Error(`Invalid icon alias: "${r}"`)}const c=l.parent;if(void 0===i.icons[c]&&(void 0===e[c]||!t(c,a+1))){if(n)return delete e[r],o.add(r),!1;throw new Error(`Missing parent icon for alias "${r}`)}n&&void 0!==l.body&&delete l.body;const h=void 0!==l.body?"body":gu(l,n);if(null!==h){if(n)return delete e[r],o.add(r),!1;throw new Error(`Invalid property "${h}" in alias "${r}"`)}return s.add(r),!0};const e=i.aliases,s=new Set,o=new Set;Object.keys(e).forEach((e=>{t(e,0)})),n&&!Object.keys(i.aliases).length&&delete i.aliases}if(Object.keys(cu).forEach((t=>{const e=typeof cu[t],n=typeof i[t];if("undefined"!==n&&n!==e)throw new Error(`Invalid value type for "${t}"`)})),void 0!==i.chars&&("object"!=typeof i.chars||null===i.chars)){if(!n)throw new Error("Invalid characters map");delete i.chars}if("object"==typeof i.chars){const t=i.chars;Object.keys(t).forEach((e=>{var s;if(!e.match(pu)||"string"!=typeof t[e]){if(n)return void delete t[e];throw new Error(`Invalid character "${e}"`)}const o=t[e];if(void 0===i.icons[o]&&void 0===(null==(s=i.aliases)?void 0:s[o])){if(n)return void delete t[e];throw new Error(`Character "${e}" points to missing icon "${o}"`)}})),n&&!Object.keys(i.chars).length&&delete i.chars}}(t,"object"==typeof s?s:{fix:!0})}catch(t){return i}t.not_found instanceof Array&&t.not_found.forEach((t=>{e(t,null),i.push(t)}));const o=t.icons;Object.keys(o).forEach((n=>{const s=fu(t,n,!0);s&&(e(n,s),i.push(n))}));const r=n.aliases||"all";if("none"!==r&&"object"==typeof t.aliases){const n=t.aliases;Object.keys(n).forEach((s=>{if("variations"===r&&function(t){for(const e in cu)if(void 0!==t[e])return!0;return!1}(n[s]))return;const o=fu(t,s,!0);o&&(e(s,o),i.push(s))}))}return i}var bu=Object.create(null);try{const t=window||self;1===(null==t?void 0:t._iconifyStorage.version)&&(bu=t._iconifyStorage.storage)}catch(t){}function xu(t,e){void 0===bu[t]&&(bu[t]=Object.create(null));const n=bu[t];return void 0===n[e]&&(n[e]=function(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:Object.create(null)}}(t,e)),n[e]}function yu(t,e){const n=Date.now();return mu(e,((e,i)=>{i?t.icons[e]=i:t.missing[e]=n}))}var vu=!1;function _u(t){return"boolean"==typeof t&&(vu=t),vu}function $u(t,e){const n=uu(t,!0,vu);if(!n)return!1;return function(t,e,n){try{if("string"==typeof n.body)return t.icons[e]=Object.freeze(hu(n)),!0}catch(t){}return!1}(xu(n.provider,n.prefix),n.name,e)}var wu=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0});var ku=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Cu=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Mu(t,e,n){if(1===e)return t;if(n=void 0===n?100:n,"number"==typeof t)return Math.ceil(t*e*n)/n;if("string"!=typeof t)return t;const i=t.split(ku);if(null===i||!i.length)return t;const s=[];let o=i.shift(),r=Cu.test(o);for(;;){if(r){const t=parseFloat(o);isNaN(t)?s.push(o):s.push(Math.ceil(t*e*n)/n)}else s.push(o);if(o=i.shift(),void 0===o)return s.join("");r=!r}}function Su(t){let e="";switch(t.hAlign){case"left":e+="xMin";break;case"right":e+="xMax";break;default:e+="xMid"}switch(t.vAlign){case"top":e+="YMin";break;case"bottom":e+="YMax";break;default:e+="YMid"}return e+=t.slice?" slice":" meet",e}var Lu=/\sid="(\S+)"/g,Du="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),Ou=0;function Pu(t,e=Du){const n=[];let i;for(;i=Lu.exec(t);)n.push(i[1]);return n.length?(n.forEach((n=>{const i="function"==typeof e?e(n):e+Ou++,s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+i+"$3")})),t):t}var Au=Object.create(null);function Eu(t){return Au[t]||Au[""]}function Ru(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:void 0===t.path?"/":t.path,maxURL:t.maxURL?t.maxURL:500,rotate:t.rotate?t.rotate:750,timeout:t.timeout?t.timeout:5e3,random:!0===t.random,index:t.index?t.index:0,dataAfterTimeout:!1!==t.dataAfterTimeout}}for(var Tu=Object.create(null),zu=["https://api.simplesvg.com","https://api.unisvg.com"],Iu=[];zu.length>0;)1===zu.length||Math.random()>.5?Iu.push(zu.shift()):Iu.push(zu.pop());function Fu(t,e){const n=Ru(e);return null!==n&&(Tu[t]=n,!0)}function ju(t){return Tu[t]}Tu[""]=Ru({resources:["https://api.iconify.design"].concat(Iu)});var Nu=(t,e)=>{let n=t,i=-1!==n.indexOf("?");return Object.keys(e).forEach((t=>{let s;try{s=function(t){switch(typeof t){case"boolean":return t?"true":"false";case"number":case"string":return encodeURIComponent(t);default:throw new Error("Invalid parameter")}}(e[t])}catch(t){return}n+=(i?"&":"?")+encodeURIComponent(t)+"="+s,i=!0})),n},Bu=Object.create(null),Vu=Object.create(null),Hu=(()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch(t){}try{const e=String.fromCharCode(114)+String.fromCharCode(101);if(t=(0,global[e+"qui"+e])("cross-fetch"),"function"==typeof t)return t}catch(t){}return null})();var Wu={prepare:(t,e,n)=>{const i=[];let s=Bu[e];void 0===s&&(s=function(t,e){const n=ju(t);if(!n)return 0;let i;if(n.maxURL){let t=0;n.resources.forEach((e=>{const n=e;t=Math.max(t,n.length)}));const s=Nu(e+".json",{icons:""});i=n.maxURL-t-n.path.length-s.length}else i=0;const s=t+":"+e;return Vu[t]=n.path,Bu[s]=i,i}(t,e));const o="icons";let r={type:o,provider:t,prefix:e,icons:[]},a=0;return n.forEach(((n,l)=>{a+=n.length+1,a>=s&&l>0&&(i.push(r),r={type:o,provider:t,prefix:e,icons:[]},a=n.length),r.icons.push(n)})),i.push(r),i},send:(t,e,n)=>{if(!Hu)return void n.done(void 0,424);let i=function(t){if("string"==typeof t){if(void 0===Vu[t]){const e=ju(t);if(!e)return"/";Vu[t]=e.path}return Vu[t]}return"/"}(e.provider);switch(e.type){case"icons":{const t=e.prefix,n=e.icons.join(",");i+=Nu(t+".json",{icons:n});break}case"custom":{const t=e.uri;i+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void n.done(void 0,400)}let s=503;Hu(t+i).then((t=>{if(200===t.status)return s=501,t.json();setTimeout((()=>{n.done(void 0,t.status)}))})).then((t=>{"object"==typeof t&&null!==t?setTimeout((()=>{n.done(t)})):setTimeout((()=>{n.done(void 0,s)}))})).catch((()=>{n.done(void 0,s)}))}};var Uu=Object.create(null),qu=Object.create(null);function Yu(t,e){t.forEach((t=>{const n=t.provider;if(void 0===Uu[n])return;const i=Uu[n],s=t.prefix,o=i[s];o&&(i[s]=o.filter((t=>t.id!==e)))}))}var Zu=0;var Xu={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Gu(t,e,n,i,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let a;if(t.random){let e=t.resources.slice(0);for(a=[];e.length>1;){const t=Math.floor(Math.random()*e.length);a.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}a=a.concat(e)}else a=t.resources.slice(r).concat(t.resources.slice(0,r));const l=Date.now();let c,h="pending",u=0,d=null,f=[],p=[];function g(){d&&(clearTimeout(d),d=null)}function m(){"pending"===h&&(h="aborted"),g(),f.forEach((t=>{t.abort&&t.abort(),"pending"===t.status&&(t.status="aborted")})),f=[]}function b(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function x(){return{startTime:l,payload:e,status:h,queriesSent:u,queriesPending:f.length,subscribe:b,abort:m}}function y(){h="failed",p.forEach((t=>{t(void 0,c)}))}function v(){f=f.filter((t=>("pending"===t.status&&(t.status="aborted"),t.abort&&t.abort(),!1)))}function _(){if("pending"!==h)return;g();const i=a.shift();if(void 0===i){if(f.length){const e="function"==typeof t.timeout?t.timeout(l):t.timeout;if(e)return void(d=setTimeout((()=>{g(),"pending"===h&&(v(),y())}),e))}return void y()}const o={getQueryStatus:x,status:"pending",resource:i,done:(e,n)=>{!function(e,n,i){const o=void 0===n;switch(f=f.filter((t=>t!==e)),h){case"pending":break;case"failed":if(o||!t.dataAfterTimeout)return;break;default:return}if(o)return void 0!==i&&(c=i),void(f.length||(a.length?_():y()));if(g(),v(),s&&!t.random){const n=t.resources.indexOf(e.resource);-1!==n&&n!==t.index&&s(n)}h="completed",p.forEach((t=>{t(n)}))}(o,e,n)}};f.push(o),u++;const r="function"==typeof t.rotate?t.rotate(u,l):t.rotate;d=setTimeout(_,r),n(i,e,o)}return"function"==typeof i&&p.push(i),setTimeout(_),x}function Ku(t){const e=function(t){if(!("object"==typeof t&&"object"==typeof t.resources&&t.resources instanceof Array&&t.resources.length))throw new Error("Invalid Reduncancy configuration");const e=Object.create(null);let n;for(n in Xu)void 0!==t[n]?e[n]=t[n]:e[n]=Xu[n];return e}(t);let n=[];function i(){n=n.filter((t=>"pending"===t().status))}const s={query:function(t,s,o){const r=Gu(e,t,s,((t,e)=>{i(),o&&o(t,e)}),(t=>{e.index=t}));return n.push(r),r},find:function(t){const e=n.find((e=>t(e)));return void 0!==e?e:null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:i};return s}function Qu(){}var Ju=Object.create(null);function td(t,e,n){let i,s;if("string"==typeof t){const e=Eu(t);if(!e)return n(void 0,424),Qu;s=e.send;const o=function(t){if(void 0===Ju[t]){const e=ju(t);if(!e)return;const n={config:e,redundancy:Ku(e)};Ju[t]=n}return Ju[t]}(t);o&&(i=o.redundancy)}else{const e=Ru(t);if(e){i=Ku(e);const n=Eu(t.resources?t.resources[0]:"");n&&(s=n.send)}}return i&&s?i.query(e,s,n)().abort:(n(void 0,424),Qu)}var ed={};function nd(){}var id=Object.create(null),sd=Object.create(null),od=Object.create(null),rd=Object.create(null);function ad(t,e){void 0===od[t]&&(od[t]=Object.create(null));const n=od[t];n[e]||(n[e]=!0,setTimeout((()=>{n[e]=!1,function(t,e){void 0===qu[t]&&(qu[t]=Object.create(null));const n=qu[t];n[e]||(n[e]=!0,setTimeout((()=>{if(n[e]=!1,void 0===Uu[t]||void 0===Uu[t][e])return;const i=Uu[t][e].slice(0);if(!i.length)return;const s=xu(t,e);let o=!1;i.forEach((n=>{const i=n.icons,r=i.pending.length;i.pending=i.pending.filter((n=>{if(n.prefix!==e)return!0;const r=n.name;if(void 0!==s.icons[r])i.loaded.push({provider:t,prefix:e,name:r});else{if(void 0===s.missing[r])return o=!0,!0;i.missing.push({provider:t,prefix:e,name:r})}return!1})),i.pending.length!==r&&(o||Yu([{provider:t,prefix:e}],n.id),n.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),n.abort))}))})))}(t,e)})))}var ld=Object.create(null);function cd(t,e,n){void 0===sd[t]&&(sd[t]=Object.create(null));const i=sd[t];void 0===rd[t]&&(rd[t]=Object.create(null));const s=rd[t];void 0===id[t]&&(id[t]=Object.create(null));const o=id[t];void 0===i[e]?i[e]=n:i[e]=i[e].concat(n).sort(),s[e]||(s[e]=!0,setTimeout((()=>{s[e]=!1;const n=i[e];delete i[e];const r=Eu(t);if(!r)return void function(){const n=(""===t?"":"@"+t+":")+e,i=Math.floor(Date.now()/6e4);ld[n]<i&&(ld[n]=i,console.error('Unable to retrieve icons for "'+n+'" because API is not configured properly.'))}();r.prepare(t,e,n).forEach((n=>{td(t,n,((i,s)=>{const r=xu(t,e);if("object"!=typeof i){if(404!==s)return;const t=Date.now();n.icons.forEach((e=>{r.missing[e]=t}))}else try{const n=yu(r,i);if(!n.length)return;const s=o[e];n.forEach((t=>{delete s[t]})),ed.store&&ed.store(t,i)}catch(t){console.error(t)}ad(t,e)}))}))})))}var hd=(t,e)=>{const n=function(t,e=!0,n=!1){const i=[];return t.forEach((t=>{const s="string"==typeof t?uu(t,!1,n):t;e&&!du(s,n)||i.push({provider:s.provider,prefix:s.prefix,name:s.name})})),i}(t,!0,_u()),i=function(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort(((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name)));let i={provider:"",prefix:"",name:""};return t.forEach((t=>{if(i.name===t.name&&i.prefix===t.prefix&&i.provider===t.provider)return;i=t;const s=t.provider,o=t.prefix,r=t.name;void 0===n[s]&&(n[s]=Object.create(null));const a=n[s];void 0===a[o]&&(a[o]=xu(s,o));const l=a[o];let c;c=void 0!==l.icons[r]?e.loaded:""===o||void 0!==l.missing[r]?e.missing:e.pending;const h={provider:s,prefix:o,name:r};c.push(h)})),e}(n);if(!i.pending.length){let t=!0;return e&&setTimeout((()=>{t&&e(i.loaded,i.missing,i.pending,nd)})),()=>{t=!1}}const s=Object.create(null),o=[];let r,a;i.pending.forEach((t=>{const e=t.provider,n=t.prefix;if(n===a&&e===r)return;r=e,a=n,o.push({provider:e,prefix:n}),void 0===id[e]&&(id[e]=Object.create(null));const i=id[e];void 0===i[n]&&(i[n]=Object.create(null)),void 0===s[e]&&(s[e]=Object.create(null));const l=s[e];void 0===l[n]&&(l[n]=[])}));const l=Date.now();return i.pending.forEach((t=>{const e=t.provider,n=t.prefix,i=t.name,o=id[e][n];void 0===o[i]&&(o[i]=l,s[e][n].push(i))})),o.forEach((t=>{const e=t.provider,n=t.prefix;s[e][n].length&&cd(e,n,s[e][n])})),e?function(t,e,n){const i=Zu++,s=Yu.bind(null,n,i);if(!e.pending.length)return s;const o={id:i,icons:e,callback:t,abort:s};return n.forEach((t=>{const e=t.provider,n=t.prefix;void 0===Uu[e]&&(Uu[e]=Object.create(null));const i=Uu[e];void 0===i[n]&&(i[n]=[]),i[n].push(o)})),s}(e,i,o):nd},ud="iconify2",dd="iconify",fd="iconify-count",pd="iconify-version",gd=36e5,md={local:!0,session:!0},bd=!1,xd={local:0,session:0},yd={local:[],session:[]},vd="undefined"==typeof window?{}:window;function _d(t){const e=t+"Storage";try{if(vd&&vd[e]&&"number"==typeof vd[e].length)return vd[e]}catch(t){}return md[t]=!1,null}function $d(t,e,n){try{return t.setItem(fd,n+""),xd[e]=n,!0}catch(t){return!1}}function wd(t){const e=t.getItem(fd);if(e){const t=parseInt(e);return t||0}return 0}var kd=()=>{if(bd)return;bd=!0;const t=Math.floor(Date.now()/gd)-168;function e(e){const n=_d(e);if(!n)return;const i=e=>{const i=dd+e,s=n.getItem(i);if("string"!=typeof s)return!1;let o=!0;try{const e=JSON.parse(s);if("object"!=typeof e||"number"!=typeof e.cached||e.cached<t||"string"!=typeof e.provider||"object"!=typeof e.data||"string"!=typeof e.data.prefix)o=!1;else{const t=e.provider,n=e.data.prefix;o=yu(xu(t,n),e.data).length>0}}catch(t){o=!1}return o||n.removeItem(i),o};try{const t=n.getItem(pd);if(t!==ud)return t&&function(t){try{const e=wd(t);for(let n=0;n<e;n++)t.removeItem(dd+n)}catch(t){}}(n),void function(t,e){try{t.setItem(pd,ud)}catch(t){}$d(t,e,0)}(n,e);let s=wd(n);for(let t=s-1;t>=0;t--)i(t)||(t===s-1?s--:yd[e].push(t));$d(n,e,s)}catch(t){}}for(const t in md)e(t)},Cd=/[\s,]+/;function Md(t,e){e.split(Cd).forEach((e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}}))}function Sd(t,e){e.split(Cd).forEach((e=>{const n=e.trim();switch(n){case"left":case"center":case"right":t.hAlign=n;break;case"top":case"middle":case"bottom":t.vAlign=n;break;case"slice":case"crop":t.slice=!0;break;case"meet":t.slice=!1}}))}function Ld(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function i(t){for(;t<0;)t+=4;return t%4}if(""===n){const e=parseInt(t);return isNaN(e)?0:i(e)}if(n!==t){let e=0;switch(n){case"%":e=25;break;case"deg":e=90}if(e){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s/=e,s%1==0?i(s):0)}}return e}const Dd={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"};function Od(t,e){const n=function(t,e){const n={};for(const i in t){const s=i;if(n[s]=t[s],void 0===e[s])continue;const o=e[s];switch(s){case"inline":case"slice":"boolean"==typeof o&&(n[s]=o);break;case"hFlip":case"vFlip":!0===o&&(n[s]=!n[s]);break;case"hAlign":case"vAlign":"string"==typeof o&&""!==o&&(n[s]=o);break;case"width":case"height":("string"==typeof o&&""!==o||"number"==typeof o&&o||null===o)&&(n[s]=o);break;case"rotate":"number"==typeof o&&(n[s]+=o)}}return n}(wu,e),i={...Dd};let s="string"==typeof e.style?e.style:"";for(let t in e){const o=e[t];if(void 0!==o)switch(t){case"icon":case"style":case"onLoad":break;case"inline":case"hFlip":case"vFlip":n[t]=!0===o||"true"===o||1===o;break;case"flip":"string"==typeof o&&Md(n,o);break;case"align":"string"==typeof o&&Sd(n,o);break;case"color":s=s+(s.length>0&&";"!==s.trim().slice(-1)?";":"")+"color: "+o+"; ";break;case"rotate":"string"==typeof o?n[t]=Ld(o):"number"==typeof o&&(n[t]=o);break;case"ariaHidden":case"aria-hidden":!0!==o&&"true"!==o&&delete i["aria-hidden"];break;default:if("on:"===t.slice(0,3))break;void 0===wu[t]&&(i[t]=o)}}const o=function(t,e){const n={left:t.left,top:t.top,width:t.width,height:t.height};let i,s,o=t.body;[t,e].forEach((t=>{const e=[],i=t.hFlip,s=t.vFlip;let r,a=t.rotate;switch(i?s?a+=2:(e.push("translate("+(n.width+n.left)+" "+(0-n.top)+")"),e.push("scale(-1 1)"),n.top=n.left=0):s&&(e.push("translate("+(0-n.left)+" "+(n.height+n.top)+")"),e.push("scale(1 -1)"),n.top=n.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:r=n.height/2+n.top,e.unshift("rotate(90 "+r+" "+r+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left)+" "+(n.height/2+n.top)+")");break;case 3:r=n.width/2+n.left,e.unshift("rotate(-90 "+r+" "+r+")")}a%2==1&&(0===n.left&&0===n.top||(r=n.left,n.left=n.top,n.top=r),n.width!==n.height&&(r=n.width,n.width=n.height,n.height=r)),e.length&&(o='<g transform="'+e.join(" ")+'">'+o+"</g>")})),null===e.width&&null===e.height?(s="1em",i=Mu(s,n.width/n.height)):null!==e.width&&null!==e.height?(i=e.width,s=e.height):null!==e.height?(s=e.height,i=Mu(s,n.width/n.height)):(i=e.width,s=Mu(i,n.height/n.width)),"auto"===i&&(i=n.width),"auto"===s&&(s=n.height),i="string"==typeof i?i:i+"",s="string"==typeof s?s:s+"";const r={attributes:{width:i,height:s,preserveAspectRatio:Su(e),viewBox:n.left+" "+n.top+" "+n.width+" "+n.height},body:o};return e.inline&&(r.inline=!0),r}(t,n);for(let t in o.attributes)i[t]=o.attributes[t];o.inline&&(s="vertical-align: -0.125em; "+s),""!==s&&(i.style=s);let r=0;const a=e.id;return{attributes:i,body:Pu(o.body,a?()=>a+"ID"+r++:"iconifySvelte")}}var Pd;if(_u(!0),Pd=Wu,Au[""]=Pd,"undefined"!=typeof document&&"undefined"!=typeof window){ed.store=(t,e)=>{function n(n){if(!md[n])return!1;const i=_d(n);if(!i)return!1;let s=yd[n].shift();if(void 0===s&&(s=xd[n],!$d(i,n,s+1)))return!1;try{const n={cached:Math.floor(Date.now()/gd),provider:t,data:e};i.setItem(dd+s,JSON.stringify(n))}catch(t){return!1}return!0}bd||kd(),n("local")||n("session")},kd();const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach((t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!function(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e="string"==typeof t.provider?t.provider:""),vu&&""===e&&("string"!=typeof t.prefix||""===t.prefix)){let e=!1;return mu(t,((t,n)=>{n&&$u(t,n)&&(e=!0)}),{validate:{fix:!0,prefix:""}}),e}return!("string"!=typeof t.prefix||!du({provider:e,prefix:t.prefix,name:"a"}))&&!!yu(xu(e,t.prefix),t)}(t))&&console.error(n)}catch(t){console.error(n)}}))}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const n="IconifyProviders["+t+"] is invalid.";try{const i=e[t];if("object"!=typeof i||!i||void 0===i.resources)continue;Fu(t,i)||console.error(n)}catch(t){console.error(n)}}}}function Ad(t,e,n,i,s){function o(){e.loading&&(e.loading.abort(),e.loading=null)}if("object"==typeof t&&null!==t&&"string"==typeof t.body)return e.name="",o(),{data:hu(t)};let r;if("string"!=typeof t||null===(r=uu(t,!1,!0)))return o(),null;const a=function(t){const e="string"==typeof t?uu(t,!0,vu):t;return e?function(t,e){const n=t.icons[e];return void 0===n?null:n}(xu(e.provider,e.prefix),e.name):null}(r);if(null===a)return!n||e.loading&&e.loading.name===t||(o(),e.name="",e.loading={name:t,abort:hd([r],i)}),null;o(),e.name!==t&&(e.name=t,s&&!e.destroyed&&s(t));const l=["iconify"];return""!==r.prefix&&l.push("iconify--"+r.prefix),""!==r.provider&&l.push("iconify--"+r.provider),{data:a,classes:l}}function Ed(t){let n,i=t[0].body+"",s=[t[0].attributes],o={};for(let t=0;t<s.length;t+=1)o=e(o,s[t]);return{c(){n=w("svg"),D(n,o)},m(t,e){y(t,n,e),n.innerHTML=i},p(t,e){1&e&&i!==(i=t[0].body+"")&&(n.innerHTML=i),D(n,o=ot(s,[1&e&&t[0].attributes]))},d(t){t&&v(n)}}}function Rd(e){let n,i=null!==e[0]&&Ed(e);return{c(){i&&i.c(),n=M()},m(t,e){i&&i.m(t,e),y(t,n,e)},p(t,[e]){null!==t[0]?i?i.p(t,e):(i=Ed(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:t,o:t,d(t){i&&i.d(t),t&&v(n)}}}function Td(t,n,i){const s={name:"",loading:null,destroyed:!1};let o,r=!1,a=0;const l=t=>{"function"==typeof n.onLoad&&n.onLoad(t);I()("load",{icon:t})};function c(){i(3,a++,a)}var h;return z((()=>{i(2,r=!0)})),h=()=>{i(1,s.destroyed=!0,s),s.loading&&(s.loading.abort(),i(1,s.loading=null,s))},T().$$.on_destroy.push(h),t.$$set=t=>{i(6,n=e(e({},n),m(t)))},t.$$.update=()=>{{const a=Ad(n.icon,s,r,c,l);i(0,o=a?(t=a.data,e=n,t?Od(t,e):null):null),o&&a.classes&&i(0,o.attributes.class=("string"==typeof n.class?n.class+" ":"")+a.classes.join(" "),o)}var t,e},n=m(n),[o,s,r,a]}class zd extends ft{constructor(t){super(),dt(this,t,Td,Rd,r,{})}}function Id(t){let e,n,i,o,r,a,l,c,h;return i=new zd({props:{icon:"mdi:close"}}),a=new su({props:{componentData:t[1]}}),{c(){e=$("div"),n=$("span"),lt(i.$$.fragment),o=C(),r=$("div"),lt(a.$$.fragment),L(n,"class","cancelButton svelte-1hhf5ym"),L(r,"class","modalContainer"),L(e,"class","modal svelte-1hhf5ym"),L(e,"data-component","modal")},m(s,u){y(s,e,u),x(e,n),ct(i,n,null),x(e,o),x(e,r),ct(a,r,null),l=!0,c||(h=[S(r,"click",jd),S(e,"click",t[3])],c=!0)},p(t,e){const n={};2&e&&(n.componentData=t[1]),a.$set(n)},i(t){l||(nt(i.$$.fragment,t),nt(a.$$.fragment,t),l=!0)},o(t){it(i.$$.fragment,t),it(a.$$.fragment,t),l=!1},d(t){t&&v(e),ht(i),ht(a),c=!1,s(h)}}}function Fd(t){let e,n,i,s,o=t[0]&&t[1]&&Id(t);return{c(){o&&o.c(),e=M()},m(r,a){o&&o.m(r,a),y(r,e,a),n=!0,i||(s=S(window,"keyup",t[2]),i=!0)},p(t,[n]){t[0]&&t[1]?o?(o.p(t,n),3&n&&nt(o,1)):(o=Id(t),o.c(),nt(o,1),o.m(e.parentNode,e)):o&&(tt(),it(o,1,1,(()=>{o=null})),et())},i(t){n||(nt(o),n=!0)},o(t){it(o),n=!1},d(t){o&&o.d(t),t&&v(e),i=!1,s()}}}const jd=t=>{t?.stopImmediatePropagation()};function Nd(t,e,n){let i;h(t,vt,(t=>n(1,i=t)));let{componentData:s}=e;return t.$$set=t=>{"componentData"in t&&n(0,s=t.componentData)},[s,i,function(t){"Escape"===t.code&&vt.set(void 0)},function(t){t.stopImmediatePropagation(),vt.set(void 0)}]}class Bd extends ft{constructor(t){super(),dt(this,t,Nd,Fd,r,{componentData:0})}}function Vd(t,e,n){const i=t.slice();return i[2]=e[n][0],i[3]=e[n][1],i}function Hd(t,e,n){const i=t.slice();return i[6]=e[n],i}function Wd(t){let e,n,i=t[2]+"";return{c(){e=$("span"),n=k(i),L(e,"class","pageId svelte-1kdpgko")},m(t,i){y(t,e,i),x(e,n)},p(t,e){1&e&&i!==(i=t[2]+"")&&O(n,i)},d(t){t&&v(e)}}}function Ud(t){let e,n,i,s,o,r,a=t[6]+"";function l(){return t[1](t[6])}return{c(){e=$("li"),n=$("button"),i=k(a),s=C(),L(n,"class","textButton"),L(e,"class","sectionLink svelte-1kdpgko")},m(t,a){y(t,e,a),x(e,n),x(n,i),x(e,s),o||(r=S(n,"click",l),o=!0)},p(e,n){t=e,1&n&&a!==(a=t[6]+"")&&O(i,a)},d(t){t&&v(e),o=!1,r()}}}function qd(t){let e,n,i,s,o=t[2]&&Wd(t),r=t[3]||[],a=[];for(let e=0;e<r.length;e+=1)a[e]=Ud(Hd(t,r,e));return{c(){e=$("li"),o&&o.c(),n=C(),i=$("ul");for(let t=0;t<a.length;t+=1)a[t].c();s=C(),L(i,"class","navItem svelte-1kdpgko"),L(e,"class","svelte-1kdpgko")},m(t,r){y(t,e,r),o&&o.m(e,null),x(e,n),x(e,i);for(let t=0;t<a.length;t+=1)a[t].m(i,null);x(e,s)},p(t,s){if(t[2]?o?o.p(t,s):(o=Wd(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),1&s){let e;for(r=t[3]||[],e=0;e<r.length;e+=1){const n=Hd(t,r,e);a[e]?a[e].p(n,s):(a[e]=Ud(n),a[e].c(),a[e].m(i,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=r.length}},d(t){t&&v(e),o&&o.d(),_(a,t)}}}function Yd(e){let n,i,s=Object.entries(e[0]),o=[];for(let t=0;t<s.length;t+=1)o[t]=qd(Vd(e,s,t));return{c(){n=$("nav"),i=$("ul");for(let t=0;t<o.length;t+=1)o[t].c();L(i,"class","navList svelte-1kdpgko"),L(n,"class","nav svelte-1kdpgko")},m(t,e){y(t,n,e),x(n,i);for(let t=0;t<o.length;t+=1)o[t].m(i,null)},p(t,[e]){if(1&e){let n;for(s=Object.entries(t[0]),n=0;n<s.length;n+=1){const r=Vd(t,s,n);o[n]?o[n].p(r,e):(o[n]=qd(r),o[n].c(),o[n].m(i,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=s.length}},i:t,o:t,d(t){t&&v(n),_(o,t)}}}function Zd(t,e,n){let{pageHierarchy:i={}}=e;return t.$$set=t=>{"pageHierarchy"in t&&n(0,i=t.pageHierarchy)},[i,t=>function(t){const e=document.querySelector(`[data-section-id="${t}"]`);null==e||e.scrollIntoView({behavior:"smooth"})}(t)]}class Xd extends ft{constructor(t){super(),dt(this,t,Zd,Yd,r,{pageHierarchy:0})}}const{Boolean:Gd}=st;function Kd(t,e,n){const i=t.slice();return i[5]=e[n],i}function Qd(t){let e,n;return e=new Xd({props:{pageHierarchy:_t(t[0]?.components)}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.pageHierarchy=_t(t[0]?.components)),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function Jd(t){let e,n;return e=new su({props:{componentData:t[5]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.componentData=t[5]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function tf(t){let e,n,i=t[0]?.components||[],s=[];for(let e=0;e<i.length;e+=1)s[e]=Jd(Kd(t,i,e));const o=t=>it(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(1&n){let r;for(i=t[0]?.components||[],r=0;r<i.length;r+=1){const o=Kd(t,i,r);s[r]?(s[r].p(o,n),nt(s[r],1)):(s[r]=Jd(o),s[r].c(),nt(s[r],1),s[r].m(e.parentNode,e))}for(tt(),r=i.length;r<s.length;r+=1)o(r);et()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)nt(s[t]);n=!0}},o(t){s=s.filter(Gd);for(let t=0;t<s.length;t+=1)it(s[t]);n=!1},d(t){_(s,t),t&&v(e)}}}function ef(t){let e,n;return e=new Bd({props:{componentData:t[1]}}),{c(){lt(e.$$.fragment)},m(t,i){ct(e,t,i),n=!0},p(t,n){const i={};2&n&&(i.componentData=t[1]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(t){ht(e,t)}}}function nf(t){let e,n,i,s,o,r,a;n=new Ot({props:{$$slots:{default:[Qd]},$$scope:{ctx:t}}}),s=new au({props:{$$slots:{default:[tf]},$$scope:{ctx:t}}});let l=t[1]&&ef(t);return{c(){e=$("div"),lt(n.$$.fragment),i=C(),lt(s.$$.fragment),o=C(),l&&l.c(),r=M(),L(e,"class","container mf-card svelte-teyund"),A(e,"embed",t[2])},m(t,c){y(t,e,c),ct(n,e,null),x(e,i),ct(s,e,null),y(t,o,c),l&&l.m(t,c),y(t,r,c),a=!0},p(t,[e]){const i={};257&e&&(i.$$scope={dirty:e,ctx:t}),n.$set(i);const o={};257&e&&(o.$$scope={dirty:e,ctx:t}),s.$set(o),t[1]?l?(l.p(t,e),2&e&&nt(l,1)):(l=ef(t),l.c(),nt(l,1),l.m(r.parentNode,r)):l&&(tt(),it(l,1,1,(()=>{l=null})),et())},i(t){a||(nt(n.$$.fragment,t),nt(s.$$.fragment,t),nt(l),a=!0)},o(t){it(n.$$.fragment,t),it(s.$$.fragment,t),it(l),a=!1},d(t){t&&v(e),ht(n),ht(s),t&&v(o),l&&l.d(t),t&&v(r)}}}function sf(t,e,n){let i,s;h(t,yt,(t=>n(0,i=t))),h(t,vt,(t=>n(1,s=t)));let{cardDataId:o}=e;(t=>{try{const e=JSON.parse(atob(window.__MF_DATA__[t]));yt.set(e)}catch(t){fetch("/card-example.json").then((t=>t.json())).then((t=>{yt.set(t)})).catch(console.error)}})(o);const r=new URLSearchParams(null===window||void 0===window?void 0:window.location.search);let a=Boolean(r.get("embed"));return t.$$set=t=>{"cardDataId"in t&&n(3,o=t.cardDataId)},[i,s,a,o]}class of extends ft{constructor(t){super(),dt(this,t,sf,nf,r,{cardDataId:3})}}var rf;let af;try{const t=window.mfCardDataId,e=window.mfContainerId,n=null===(rf=document.querySelector(`[data-container="${e}"]`))||void 0===rf?void 0:rf.querySelector(".card_app");af=new of({target:null!=n?n:document.querySelector(".card_app"),props:{cardDataId:t}})}catch(t){throw new Error(t)}return af}();
|
20
|
+
*/var as=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const s=e.listeners[i],o=e.duration;s.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=He.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const s=n.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),s.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const 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;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const ls="transparent",cs={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=zn(t||ls),s=i.valid&&zn(e||ls);return s&&s.valid?s.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class hs{constructor(t,e,n,i){const s=e[n];i=ui([t.to,i,s,t.from]);const o=ui([t.from,s,i]);this._active=!0,this._fn=t.fn||cs[t.type||typeof o],this._easing=Je[t.easing]||Je.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=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],s=n-this._start,o=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=ui([t.to,e,i,t.from]),this._from=ui([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=s:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}Vn.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const us=Object.keys(Vn.animation);Vn.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Vn.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Vn.describe("animations",{_fallback:"animation"}),Vn.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class ds{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Yt(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const i=t[n];if(!Yt(i))return;const s={};for(const t of us)s[t]=i[t];(qt(i.properties)&&i.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,s)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const s=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const s=t[i[e]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),s}_createAnimations(t,e){const n=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const u=n.get(l);if(h){if(u&&h.active()){h.update(u,c,r);continue}h.cancel()}u&&u.duration?(s[l]=h=new hs(u,t,l,c),i.push(h)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(as.add(this._chart,n),!0):void 0}}function fs(t,e){const n=t&&t.options||{},i=n.reverse,s=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:s,end:i?s:o}}function ps(t,e){const n=[],i=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function gs(t,e,n,i={}){const s=t.keys,o="single"===i.mode;let r,a,l,c;if(null!==e){for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(i.all)continue;break}c=t.values[l],Zt(c)&&(o||0===e||$e(e)===$e(c))&&(e+=c)}return e}}function ms(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function bs(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function xs(t,e,n,i){for(const s of e.getMatchingVisibleMetas(i).reverse()){const e=t[s.index];if(n&&e>0||!n&&e<0)return s.index}return null}function ys(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,r,i),u=e.length;let d;for(let t=0;t<u;++t){const n=e[t],{[l]:o,[c]:u}=n;d=(n._stacks||(n._stacks={}))[c]=bs(s,h,o),d[a]=u,d._top=xs(d,r,!0,i.type),d._bottom=xs(d,r,!1,i.type)}}function _s(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function vs(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const $s=t=>"reset"===t||"none"===t,ks=(t,e)=>e?t:Object.assign({},t);class ws{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.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ms(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&vs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,s=e.xAxisID=Gt(n.xAxisID,_s(t,"x")),o=e.yAxisID=Gt(n.yAxisID,_s(t,"y")),r=e.rAxisID=Gt(n.rAxisID,_s(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,s,o,r),c=e.vAxisID=i(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Be(this._data,this),t._stacked&&vs(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Yt(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,s,o;for(i=0,s=e.length;i<s;++i)o=e[i],n[i]={x:o,y:t[o]};return n}(e);else if(n!==e){if(n){Be(n,this);const t=this._cachedMeta;vs(t),t._parsed=[]}e&&Object.isExtensible(e)&&(s=this,(i=e)._chartjs?i._chartjs.listeners.push(s):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),je.forEach((t=>{const e="_onData"+ce(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const s=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),s}})})))),this._syncList=[],this._data=e}var i,s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const s=e._stacked;e._stacked=ms(e.vScale,e),e.stack!==n.stack&&(i=!0,vs(e),e.stack=n.stack),this._resyncElements(t),(i||s!==e._stacked)&&ys(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:s,_stacked:o}=n,r=s.axis;let a,l,c,h=0===t&&e===i.length||n._sorted,u=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=qt(i[t])?this.parseArrayData(n,i,t,e):Yt(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const s=()=>null===l[r]||u&&l[r]<u[r];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],h&&(s()&&(h=!1),u=l);n._sorted=h}o&&ys(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),c=s===o,h=new Array(i);let u,d,f;for(u=0,d=i;u<d;++u)f=u+n,h[u]={[r]:c||s.parse(l[f],f),[a]:o.parse(e[f],f)};return h}parseArrayData(t,e,n,i){const{xScale:s,yScale:o}=t,r=new Array(i);let a,l,c,h;for(a=0,l=i;a<l;++a)c=a+n,h=e[c],r[a]={x:s.parse(h[0],c),y:o.parse(h[1],c)};return r}parseObjectData(t,e,n,i){const{xScale:s,yScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,h,u,d;for(c=0,h=i;c<h;++c)u=c+n,d=e[u],l[c]={x:s.parse(le(d,r),u),y:o.parse(le(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,s=this._cachedMeta,o=e[t.axis];return gs({keys:ps(i,!0),values:e._stacks[t.axis]},o,s.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const s=n[e.axis];let o=null===s?NaN:s;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,o=gs(i,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,s=n._sorted&&t===n.iScale,o=i.length,r=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ps(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:n,minDefined:i,maxDefined:s}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}(r);let u,d;function f(){d=i[u];const e=d[r.axis];return!Zt(d[t.axis])||c>e||h<e}for(u=0;u<o&&(f()||(this.updateRangeFromParsed(l,t,d,a),!s));++u);if(s)for(u=o-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,s,o;for(i=0,s=e.length;i<s;++i)o=e[i][t.axis],Zt(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,s=this.getParsed(t);return{label:n?""+n.getLabelForValue(s[n.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,s;return Yt(t)?(e=t.top,n=t.right,i=t.bottom,s=t.left):e=n=i=s=t,{top:e,right:n,bottom:i,left:s,disabled:!1===t}}(Gt(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=fs(t,n),s=fs(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||i.length-r,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,s,r,a),c=r;c<r+a;++c){const e=i[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,s))}for(c=0;c<o.length;++c)o[c].draw(t,s)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,n){return di(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=i.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return di(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=n,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,s=this._cachedDataOpts,o=t+"-"+e,r=s[o],a=this.enableOptionSharing&&he(n);if(r)return ks(r,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),d=Object.keys(Vn.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(n,i)),h);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(ks(f,a))),f}_resolveAnimations(t,e,n){const i=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==i.options.animation){const i=this.chart.config,s=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),s);a=i.createResolver(o,this.getContext(t,n,e))}const l=new ds(i,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||$s(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,s=this.getSharedOptions(n),o=this.includeOptions(e,s)||s!==i;return this.updateSharedOptions(s,e,n),{sharedOptions:s,includeOptions:o}}updateElement(t,e,n,i){$s(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!$s(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const s=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,s=e.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s<i&&this._removeElements(s,i-s)}_insertElements(t,e,n=!0){const i=this._cachedMeta,s=i.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(s,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&vs(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Cs(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,s=n.length;e<s;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Ve(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(he(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(i=0,s=n.length;i<s;++i)o=e.getPixelForValue(n[i]),l();for(r=void 0,i=0,s=e.ticks.length;i<s;++i)o=e.getPixelForTick(i),l();return a}function Ms(t,e,n,i){return qt(t)?function(t,e,n,i){const s=n.parse(t[0],i),o=n.parse(t[1],i),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Ss(t,e,n,i){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=n,h=n+i;c<h;++c)d=e[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(Ms(d,u,o,c));return l}function Ls(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ds(t,e,n,i){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:a,reverse:l,top:c,bottom:h}=function(t){let e,n,i,s,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:e,top:s,bottom:o}}(t);"middle"===s&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=h:(o[Ps(h,r,a,l)]=!0,s=c)),o[Ps(s,r,a,l)]=!0,t.borderSkipped=o}function Ps(t,e,n,i){var s,o,r;return i?(r=n,t=Os(t=(s=t)===(o=e)?r:s===r?o:s,n,e)):t=Os(t,e,n),t}function Os(t,e,n){return"start"===t?e:"end"===t?n:t}function As(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}ws.defaults={},ws.prototype.datasetElementType=null,ws.prototype.dataElementType=null;class Es extends ws{parsePrimitiveData(t,e,n,i){return Ss(t,e,n,i)}parseArrayData(t,e,n,i){return Ss(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,c="x"===o.axis?r:a,h=[];let u,d,f,p;for(u=n,d=n+i;u<d;++u)p=e[u],f={},f[s.axis]=s.parse(le(p,l),u),h.push(Ms(le(p,c),f,o,u));return h}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const s=n._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,s=this.getParsed(t),o=s._custom,r=Ls(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(s[i.axis]);return{label:""+n.getLabelForValue(s[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const s="reset"===i,{index:o,_cachedMeta:{vScale:r}}=this,a=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:u}=this._getSharedOptions(e,i);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=s||Ut(e[r.axis])?{base:a,head:a}:this._calculateBarValuePixels(d),f=this._calculateBarIndexPixels(d,c),p=(e._stacks||{})[r.axis],g={horizontal:l,base:n.base,enableBorderRadius:!p||Ls(e._custom)||o===p._top||o===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};u&&(g.options=h||this.resolveDataElementOptions(d,t[d].active?"active":i));const m=g.options||t[d].options;Ds(g,m,p,o),As(g,m,c.ratio),this.updateElement(t[d],d,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),s=n.options.stacked,o=[],r=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Ut(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!r(n))&&((!1===s||-1===o.indexOf(n.stack)||void 0===s&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),s=void 0!==e?i.indexOf(e):-1;return-1===s?i.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let s,o;for(s=0,o=e.data.length;s<o;++s)i.push(n.getPixelForValue(this.getParsed(s)[n.axis],s));const r=t.barThickness;return{min:r||Cs(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:s}}=this,o=i||0,r=this.getParsed(t),a=r._custom,l=Ls(a);let c,h,u=r[e.axis],d=0,f=n?this.applyStack(e,r,n):u;f!==u&&(d=f-u,f=u),l&&(u=a.barStart,f=a.barEnd-a.barStart,0!==u&&$e(u)!==$e(a.barEnd)&&(d=0),d+=u);const p=Ut(i)||l?d:i;let g=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(d+f):g,h=c-g,Math.abs(h)<s){h=function(t,e,n){return 0!==t?$e(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(h,e,o)*s,u===o&&(g-=h/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);g=Math.max(Math.min(g,r),i),c=g+h}if(g===e.getPixelForValue(o)){const t=$e(h)*e.getLineWidthForValue(o)/2;g+=t,h-=t}return{size:h,base:g,head:c,center:c+h/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,s=i.skipNull,o=Gt(i.maxBarThickness,1/0);let r,a;if(e.grouped){const n=s?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=n.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const s=n.barThickness;let o,r;return Ut(s)?(o=e.min*n.categoryPercentage,r=n.barPercentage):(o=s*i,r=1),{chunk:o/i,ratio:r,start:e.pixels[t]-o/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);r=l.start+l.chunk*c+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else r=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(o,e.min*e.ratio);return{base:r-a/2,head:r+a/2,center:r,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let s=0;for(;s<i;++s)null!==this.getParsed(s)[e.axis]&&n[s].draw(this._ctx)}}Es.id="bar",Es.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Es.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Ts extends ws{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const s=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+n).radius;return s}parseArrayData(t,e,n,i){const s=super.parseArrayData(t,e,n,i);for(let t=0;t<s.length;t++){const i=e[n+t];s[t]._custom=Gt(i[2],this.resolveDataElementOptions(t+n).radius)}return s}parseObjectData(t,e,n,i){const s=super.parseObjectData(t,e,n,i);for(let t=0;t<s.length;t++){const i=e[n+t];s[t]._custom=Gt(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,s=this.getParsed(t),o=n.getLabelForValue(s.x),r=i.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const s="reset"===i,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,i),c=o.axis,h=r.axis;for(let u=e;u<e+n;u++){const e=t[u],n=!s&&this.getParsed(u),d={},f=d[c]=s?o.getPixelForDecimal(.5):o.getPixelForValue(n[c]),p=d[h]=s?r.getBasePixel():r.getPixelForValue(n[h]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":i),s&&(d.options.radius=0)),this.updateElement(e,u,d,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const s=i.radius;return"active"!==e&&(i.radius=0),i.radius+=Gt(n&&n._custom,s),i}}Ts.id="bubble",Ts.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Ts.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Rs extends ws{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){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let s,o,r=t=>+n[t];if(Yt(n[t])){const{key:t="value"}=this._parsing;r=e=>+le(n[e],t)}for(s=t,o=t+e;s<o;++s)i._parsed[s]=r(s)}}_getRotation(){return Se(this.options.rotation-90)}_getCircumference(){return Se(this.options.circumference)}_getRotationExtents(){let t=pe,e=-pe;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,s=i._getRotation(),o=i._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,s=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(n.width,n.height)-o)/2,0),a=Math.min((l=this.options.cutout,c=r,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const h=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,n){let i=1,s=1,o=0,r=0;if(e<pe){const a=t,l=a+e,c=Math.cos(a),h=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,i)=>Te(t,a,l,!0)?1:Math.max(e,e*n,i,i*n),p=(t,e,i)=>Te(t,a,l,!0)?-1:Math.min(e,e*n,i,i*n),g=f(0,c,u),m=f(xe,h,d),b=p(fe,c,u),x=p(fe+xe,h,d);i=(g-b)/2,s=(m-x)/2,o=-(g+b)/2,r=-(m+x)/2}return{ratioX:i,ratioY:s,offsetX:o,offsetY:r}}(d,u,a),b=(n.width-o)/f,x=(n.height-o)/p,y=Math.max(Math.min(b,x)/2,0),_=Kt(this.options.radius,y),v=(_-Math.max(_*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=m*_,i.total=this.calculateTotal(),this.outerRadius=_-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*h,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,s=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*s/pe)}updateElements(t,e,n,i){const s="reset"===i,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=s&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,s);for(g=e;g<e+n;++g){const e=this._circumference(g,s),n=t[g],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:u};p&&(o.options=f||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,o,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const s=t._parsed[n];null===s||isNaN(s)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(s))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?pe*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],s=Ki(e._parsed[t],n.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,s,o,r,a;if(!t)for(i=0,s=n.data.datasets.length;i<s;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,r=o.controller;break}if(!t)return 0;for(i=0,s=t.length;i<s;++i)a=r.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(Gt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Rs.id="doughnut",Rs.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Rs.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Rs.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return qt(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class zs extends ws{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:r,count:a}=Ye(e,i,o);this._drawStart=r,this._drawCount=a,Ze(e)&&(r=0,a=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!s._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:l},t),this.updateElements(i,r,a,t)}updateElements(t,e,n,i){const s="reset"===i,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,i),u=o.axis,d=r.axis,{spanGaps:f,segment:p}=this.options,g=we(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||s||"none"===i;let b=e>0&&this.getParsed(e-1);for(let f=e;f<e+n;++f){const e=t[f],n=this.getParsed(f),x=m?e:{},y=Ut(n[d]),_=x[u]=o.getPixelForValue(n[u],f),v=x[d]=s||y?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,n,a):n[d],f);x.skip=isNaN(_)||isNaN(v)||y,x.stop=f>0&&Math.abs(n[u]-b[u])>g,p&&(x.parsed=n,x.raw=l.data[f]),h&&(x.options=c||this.resolveDataElementOptions(f,e.active?"active":i)),m||this.updateElement(e,f,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}zs.id="line",zs.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},zs.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Is extends ws{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],s=Ki(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,e,n,i){return Mi.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(i/2,0),o=(s-Math.max(n.cutoutPercentage?s/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,i){const s="reset"===i,o=this.chart,r=o.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,h=a.getIndexAngle(0)-.5*fe;let u,d=h;const f=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,i,f);for(u=e;u<e+n;u++){const e=t[u];let n=d,p=d+this._computeAngle(u,i,f),g=o.getDataVisibility(u)?a.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=p,s&&(r.animateScale&&(g=0),r.animateRotate&&(n=p=h));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(u,e.active?"active":i)};this.updateElement(e,u,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Se(this.resolveDataElementOptions(t,e).angle||n):0}}Is.id="polarArea",Is.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Is.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Fs extends Rs{}Fs.id="pie",Fs.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ns extends ws{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Mi.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],s=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const s=this._cachedMeta.rScale,o="reset"===i;for(let r=e;r<e+n;r++){const e=t[r],n=this.resolveDataElementOptions(r,e.active?"active":i),a=s.getPointPositionForValue(r,this.getParsed(r).r),l=o?s.xCenter:a.x,c=o?s.yCenter:a.y,h={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,r,h,i)}}}Ns.id="radar",Ns.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ns.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class js{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return we(this.x)&&we(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}js.defaults={},js.defaultRoutes=void 0;const Bs={values:t=>qt(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let s,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const r=ve(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ki(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(ve(t)));return 1===i||2===i||5===i?Bs.numeric.call(this,t,e,n):""}};var Vs={formatters:Bs};function Hs(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(i,s))}(t),s=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],o=s.length,r=s[0],a=s[o-1],l=[];if(o>i)return function(t,e,n,i){let s,o=0,r=n[0];for(i=Math.ceil(i),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=n[o*i])}(e,l,s,o/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),s=e.length/n;if(!i)return Math.max(s,1);const o=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(s,e,i);if(o>0){let t,n;const i=o>1?Math.round((a-r)/(o-1)):null;for(Ws(e,l,c,Ut(i)?0:r-i,r),t=0,n=o-1;t<n;t++)Ws(e,l,c,s[t],s[t+1]);return Ws(e,l,c,a,Ut(i)?e.length:a+i),l}return Ws(e,l,c),l}function Ws(t,e,n,i,s){const o=Gt(i,0),r=Math.min(Gt(s,t.length),t.length);let a,l,c,h=0;for(n=Math.ceil(n),s&&(a=s-i,n=a/Math.floor(a/n)),c=o;c<0;)h++,c=Math.round(o+h*n);for(l=Math.max(o,0);l<r;l++)l===c&&(e.push(t[l]),h++,c=Math.round(o+h*n))}Vn.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Vs.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Vn.route("scale.ticks","color","","color"),Vn.route("scale.grid","color","","borderColor"),Vn.route("scale.grid","borderColor","","borderColor"),Vn.route("scale.title","color","","color"),Vn.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Vn.describe("scales",{_fallback:"scale"}),Vn.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Us=t=>"left"===t?"right":"right"===t?"left":t,qs=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Ys(t,e){const n=[],i=t.length/e,s=t.length;let o=0;for(;o<s;o+=i)n.push(t[Math.floor(o)]);return n}function Zs(t,e,n){const i=t.ticks.length,s=Math.min(e,i-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(s);if(!(n&&(l=1===i?Math.max(c-o,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(s-1))/2,c+=s<e?l:-l,c<o-a||c>r+a)))return c}function Xs(t){return t.drawTicks?t.tickLength:0}function Gs(t,e){if(!t.display)return 0;const n=hi(t.font,e),i=ci(t.padding);return(qt(t.text)?t.text.length:1)*n.lineHeight+i.height}function Ks(t,e,n){let i=Ue(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=Us(i)),i}class Js extends js{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Xt(t,Number.POSITIVE_INFINITY),e=Xt(e,Number.NEGATIVE_INFINITY),n=Xt(n,Number.POSITIVE_INFINITY),i=Xt(i,Number.NEGATIVE_INFINITY),{min:Xt(t,n),max:Xt(e,i),minDefined:Zt(t),maxDefined:Zt(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),s||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=s&&n>i?n:i,{min:Xt(n,Xt(i,n)),max:Xt(i,Xt(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Jt(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:s,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:s}=t,o=Kt(e,(s-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(o)),max:r(s,o)}}(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r<this.ticks.length;this._convertTicksToLabels(a?Ys(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Hs(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Jt(this.options.afterUpdate,[this])}beforeSetDimensions(){Jt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Jt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Jt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Jt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,s;for(n=0,i=t.length;n<i;n++)s=t[n],s.label=Jt(e.callback,[s.value,n,t],this)}afterTickToLabelConversion(){Jt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Jt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,s=e.maxRotation;let o,r,a,l=i;if(!this._isVisible()||!e.display||i>=s||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),h=c.widest.width,u=c.highest.height,d=Re(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/n:d/(n-1),h+6>o&&(o=d/(n-(t.offset?.5:1)),r=this.maxHeight-Xs(t.grid)-e.padding-Gs(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),l=Le(Math.min(Math.asin(Re((c.highest.height+6)/o,-1,1)),Math.asin(Re(r/a,-1,1))-Math.asin(Re(u/a,-1,1)))),l=Math.max(i,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){Jt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Jt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=Gs(i,e.options.font);if(r?(t.width=this.maxWidth,t.height=Xs(s)+o):(t.height=this.maxHeight,t.width=Xs(s)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:s,highest:o}=this._getLabelSizes(),a=2*n.padding,l=Se(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=n.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,h,c)}}this._handleMargins(),r?(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,n,i){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=i*t.width,u=n*e.height):(h=n*t.height,u=i*e.width):"start"===s?u=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===s?(n=0,i=t.height):"end"===s&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_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(){Jt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Ut(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ys(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,s=[],o=[];let r,a,l,c,h,u,d,f,p,g,m,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,h=this._resolveTickFontOptions(r),n.font=u=h.string,d=i[u]=i[u]||{data:{},gc:[]},f=h.lineHeight,p=g=0,Ut(c)||qt(c)){if(qt(c))for(a=0,l=c.length;a<l;++a)m=c[a],Ut(m)||qt(m)||(p=Hn(n,d.data,d.gc,p,m),g+=f)}else p=Hn(n,d.data,d.gc,p,c),g=f;s.push(p),o.push(g),b=Math.max(p,b),x=Math.max(g,x)}!function(t,e){Qt(t,(t=>{const n=t.gc,i=n.length/2;let s;if(i>e){for(s=0;s<i;++s)delete t.data[n[s]];n.splice(0,i)}}))}(i,e);const y=s.indexOf(b),_=o.indexOf(x),v=t=>({width:s[t]||0,height:o[t]||0});return{first:v(0),last:v(e-1),widest:v(y),highest:v(_),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Re(this._alignToPixels?Un(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return di(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=di(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Se(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,r=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*n>r*i?r/n:a/i:a*i<r*n?a/n:r/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:s,position:o}=i,r=s.offset,a=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=Xs(s),h=[],u=s.setContext(this.getContext()),d=u.drawBorder?u.borderWidth:0,f=d/2,p=function(t){return Un(n,t,d)};let g,m,b,x,y,_,v,$,k,w,C,M;if("top"===o)g=p(this.bottom),_=this.bottom-c,$=g-f,w=p(t.top)+f,M=t.bottom;else if("bottom"===o)g=p(this.top),w=t.top,M=p(t.bottom)-f,_=g+f,$=this.top+c;else if("left"===o)g=p(this.right),y=this.right-c,v=g-f,k=p(t.left)+f,C=t.right;else if("right"===o)g=p(this.left),k=t.left,C=p(t.right)-f,y=g+f,v=this.left+c;else if("x"===e){if("center"===o)g=p((t.top+t.bottom)/2+.5);else if(Yt(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}w=t.top,M=t.bottom,_=g+f,$=_+c}else if("y"===e){if("center"===o)g=p((t.left+t.right)/2);else if(Yt(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}y=g-f,v=y-c,k=t.left,C=t.right}const S=Gt(i.ticks.maxTicksLimit,l),L=Math.max(1,Math.ceil(l/S));for(m=0;m<l;m+=L){const t=s.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,o=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,u=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;b=Zs(this,m,r),void 0!==b&&(x=Un(n,b,e),a?y=v=k=C=x:_=$=w=M=x,h.push({tx1:y,ty1:_,tx2:v,ty2:$,x1:k,y1:w,x2:C,y2:M,width:e,color:i,borderDash:o,borderDashOffset:l,tickWidth:c,tickColor:u,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=g,h}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:s}=n,o=this.isHorizontal(),r=this.ticks,{align:a,crossAlign:l,padding:c,mirror:h}=s,u=Xs(n.grid),d=u+c,f=h?-c:d,p=-Se(this.labelRotation),g=[];let m,b,x,y,_,v,$,k,w,C,M,S,L="middle";if("top"===i)v=this.bottom-f,$=this._getXAxisLabelAlignment();else if("bottom"===i)v=this.top+f,$=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(u);$=t.textAlign,_=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(u);$=t.textAlign,_=t.x}else if("x"===e){if("center"===i)v=(t.top+t.bottom)/2+d;else if(Yt(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)+d}$=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)_=(t.left+t.right)/2-d;else if(Yt(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)}$=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?L="top":"end"===a&&(L="bottom"));const D=this._getLabelSizes();for(m=0,b=r.length;m<b;++m){x=r[m],y=x.label;const t=s.setContext(this.getContext(m));k=this.getPixelForTick(m)+s.labelOffset,w=this._resolveTickFontOptions(m),C=w.lineHeight,M=qt(y)?y.length:1;const e=M/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let u,d=$;if(o?(_=k,"inner"===$&&(d=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),S="top"===i?"near"===l||0!==p?-M*C+C/2:"center"===l?-D.highest.height/2-e*C+C:-D.highest.height+C/2:"near"===l||0!==p?C/2:"center"===l?D.highest.height/2-e*C:D.highest.height-M*C,h&&(S*=-1)):(v=k,S=(1-M)*C/2),t.showLabelBackdrop){const e=ci(t.backdropPadding),n=D.heights[m],i=D.widths[m];let s=v+S-e.top,o=_-e.left;switch(L){case"middle":s-=n/2;break;case"bottom":s-=n}switch($){case"center":o-=i/2;break;case"right":o-=i}u={left:o,top:s,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:p,label:y,font:w,color:n,strokeColor:a,strokeWidth:c,textOffset:S,textAlign:d,textBaseline:L,translation:[_,v],backdrop:u})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Se(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+s,"near"===n?a="left":"center"===n?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===n?a="right":"center"===n?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+s,"near"===n?a="right":"center"===n?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===n?a="left":"center"===n?(a="center",l+=r/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const 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(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(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(e.display)for(s=0,o=i.length;s<o;++s){const t=i[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),s=n.drawBorder?i.borderWidth:0;if(!s)return;const o=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let a,l,c,h;this.isHorizontal()?(a=Un(t,this.left,s)-s/2,l=Un(t,this.right,o)+o/2,c=h=r):(c=Un(t,this.top,s)-s/2,h=Un(t,this.bottom,o)+o/2,a=l=r),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(a,c),e.lineTo(l,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Xn(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let s,o;for(s=0,o=i.length;s<o;++s){const t=i[s],n=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),Qn(e,o,0,t.textOffset,n,t)}n&&Gn(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const s=hi(n.font),o=ci(n.padding),r=n.align;let a=s.lineHeight/2;"bottom"===e||"center"===e||Yt(e)?(a+=o.bottom,qt(n.text)&&(a+=s.lineHeight*(n.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:h,rotation:u}=function(t,e,n,i){const{top:s,left:o,bottom:r,right:a,chart:l}=t,{chartArea:c,scales:h}=l;let u,d,f,p=0;const g=r-s,m=a-o;if(t.isHorizontal()){if(d=qe(i,o,a),Yt(n)){const t=Object.keys(n)[0],i=n[t];f=h[t].getPixelForValue(i)+g-e}else f="center"===n?(c.bottom+c.top)/2+g-e:qs(t,n,e);u=a-o}else{if(Yt(n)){const t=Object.keys(n)[0],i=n[t];d=h[t].getPixelForValue(i)-m+e}else d="center"===n?(c.left+c.right)/2-m+e:qs(t,n,e);f=qe(i,r,s),p="left"===n?-xe:xe}return{titleX:d,titleY:f,maxWidth:u,rotation:p}}(this,a,e,r);Qn(t,n.text,0,0,s,{color:n.color,maxWidth:h,rotation:u,textAlign:Ks(r,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Gt(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Js.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return hi(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Qs{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in i||(i[s]=t,function(t,e,n){const i=se(Object.create(null),[n?Vn.get(n):{},Vn.get(e),t.defaults]);Vn.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),s=i.pop(),o=[t].concat(i).join("."),r=e[n].split("."),a=r.pop(),l=r.join(".");Vn.route(o,s,l,a)}))}(e,t.defaultRoutes);t.descriptors&&Vn.describe(e,t.descriptors)}(t,o,n),this.override&&Vn.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Vn[i]&&(delete Vn[i][n],this.override&&delete Fn[n])}}var to=new class{constructor(){this.controllers=new Qs(ws,"datasets",!0),this.elements=new Qs(js,"elements"),this.plugins=new Qs(Object,"plugins"),this.scales=new Qs(Js,"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,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):Qt(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=ce(t);Jt(n["before"+i],[],n),e[t](n),Jt(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class eo extends ws{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:s,count:o}=Ye(e,n,i);if(this._drawStart=s,this._drawCount=o,Ze(e)&&(s=0,o=n.length),this.options.showLine){const{dataset:s,_dataset:o}=e;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=n;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(s,void 0,{animated:!i,options:r},t)}this.updateElements(n,s,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=to.getElement("line")),super.addElements()}updateElements(t,e,n,i){const s="reset"===i,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(c),u=this.includeOptions(i,h),d=o.axis,f=r.axis,{spanGaps:p,segment:g}=this.options,m=we(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),p=b?e:{},y=Ut(n[f]),_=p[d]=o.getPixelForValue(n[d],c),v=p[f]=s||y?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,n,a):n[f],c);p.skip=isNaN(_)||isNaN(v)||y,p.stop=c>0&&Math.abs(n[d]-x[d])>m,g&&(p.parsed=n,p.raw=l.data[c]),u&&(p.options=h||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,p,i),x=n}this.updateSharedOptions(h,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,s,o)/2}}function no(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}eo.id="scatter",eo.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},eo.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class io{constructor(t){this.options=t||{}}init(t){}formats(){return no()}parse(t,e){return no()}format(t,e){return no()}add(t,e,n){return no()}diff(t,e,n){return no()}startOf(t,e,n){return no()}endOf(t,e){return no()}}io.override=function(t){Object.assign(io.prototype,t)};var so={_date:io};function oo(t,e,n,i){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&r&&o.length){const t=a._reversePixels?Ne:Fe;if(!i)return t(o,e,n);if(s._sharedOptions){const i=o[0],s="function"==typeof i.getRange&&i.getRange(e);if(s){const i=t(o,e,n-s),r=t(o,e,n+s);return{lo:i.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function ro(t,e,n,i,s){const o=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:l,hi:c}=oo(o[t],e,r,s);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function ao(t,e,n,i,s){const o=[];if(!s&&!t.isPointInArea(e))return o;return ro(t,n,e,(function(n,r,a){(s||Zn(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&o.push({element:n,datasetIndex:r,index:a})}),!0),o}function lo(t,e,n,i,s,o){let r=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const s=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return ro(t,n,e,(function(n,c,h){const u=n.inRange(e.x,e.y,s);if(i&&!u)return;const d=n.getCenterPoint(s);if(!(!!o||t.isPointInArea(d))&&!u)return;const f=a(e,d);f<l?(r=[{element:n,datasetIndex:c,index:h}],l=f):f===l&&r.push({element:n,datasetIndex:c,index:h})})),r}function co(t,e,n,i,s,o){return o||t.isPointInArea(e)?"r"!==n||i?lo(t,e,n,i,s,o):function(t,e,n,i){let s=[];return ro(t,n,e,(function(t,n,o){const{startAngle:r,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Pe(t,{x:e.x,y:e.y});Te(l,r,a)&&s.push({element:t,datasetIndex:n,index:o})})),s}(t,e,n,s):[]}function ho(t,e,n,i,s){const o=[],r="x"===n?"inXRange":"inYRange";let a=!1;return ro(t,n,e,((t,i,l)=>{t[r](e[n],s)&&(o.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,s))})),i&&!a?[]:o}var uo={evaluateInteractionItems:ro,modes:{index(t,e,n,i){const s=Bi(e,t),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?ao(t,s,o,i,r):co(t,s,o,!1,i,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const s=Bi(e,t),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?ao(t,s,o,i,r):co(t,s,o,!1,i,r);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>ao(t,Bi(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const s=Bi(e,t),o=n.axis||"xy",r=n.includeInvisible||!1;return co(t,s,o,n.intersect,i,r)},x:(t,e,n,i)=>ho(t,Bi(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ho(t,Bi(e,t),"y",n.intersect,i)}};const fo=["left","top","right","bottom"];function po(t,e){return t.filter((t=>t.pos===e))}function go(t,e){return t.filter((t=>-1===fo.indexOf(t.pos)&&t.box.axis===e))}function mo(t,e){return t.sort(((t,n)=>{const i=e?n:t,s=e?t:n;return i.weight===s.weight?i.index-s.index:i.weight-s.weight}))}function bo(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:s}=n;if(!t||!fo.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:r&&e.availableWidth,a.height=s):(a.width=i,a.height=c?c*s:r&&e.availableHeight)}return n}function xo(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function yo(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 _o(t,e,n,i){const{pos:s,box:o}=n,r=t.maxPadding;if(!Yt(s)){n.size&&(t[s]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[s]+=n.size}o.getPadding&&yo(r,o.getPadding());const a=Math.max(0,e.outerWidth-xo(r,t,"left","right")),l=Math.max(0,e.outerHeight-xo(r,t,"top","bottom")),c=a!==t.w,h=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function vo(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function $o(t,e,n,i){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,vo(a.horizontal,e));const{same:r,other:u}=_o(e,n,a,i);c|=r&&s.length,h=h||u,l.fullSize||s.push(a)}return c&&$o(s,e,n,i)||h}function ko(t,e,n,i,s){t.top=n,t.left=e,t.right=e+i,t.bottom=n+s,t.width=i,t.height=s}function wo(t,e,n,i){const s=n.padding;let{x:o,y:r}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,o=l.size||t.height;he(l.start)&&(r=l.start),t.fullSize?ko(t,s.left,r,n.outerWidth-s.right-s.left,o):ko(t,e.left+l.placed,r,i,o),l.start=r,l.placed+=i,r=t.bottom}else{const i=e.h*c,r=l.size||t.width;he(l.start)&&(o=l.start),t.fullSize?ko(t,o,s.top,r,n.outerHeight-s.bottom-s.top):ko(t,o,e.top+l.placed,r,i),l.start=o,l.placed+=i,o=t.right}}e.x=o,e.y=r}Vn.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Co={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){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const s=ci(t.options.layout.padding),o=Math.max(e-s.width,0),r=Math.max(n-s.height,0),a=function(t){const e=function(t){const e=[];let n,i,s,o,r,a;for(n=0,i=(t||[]).length;n<i;++n)s=t[n],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),n=mo(e.filter((t=>t.box.fullSize)),!0),i=mo(po(e,"left"),!0),s=mo(po(e,"right")),o=mo(po(e,"top"),!0),r=mo(po(e,"bottom")),a=go(e,"x"),l=go(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:po(e,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Qt(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const h=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);yo(d,ci(i));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),p=bo(l.concat(c),u);$o(a.fullSize,f,u,p),$o(l,f,u,p),$o(c,f,u,p)&&$o(l,f,u,p),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),wo(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,wo(a.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Qt(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Mo{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class So extends Mo{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Lo="$chartjs",Do={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Po=t=>null===t||""===t;const Oo=!!Ui&&{passive:!0};function Ao(t,e,n){t.canvas.removeEventListener(e,n,Oo)}function Eo(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function To(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Eo(n.addedNodes,i),e=e&&!Eo(n.removedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}function Ro(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Eo(n.removedNodes,i),e=e&&!Eo(n.addedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}const zo=new Map;let Io=0;function Fo(){const t=window.devicePixelRatio;t!==Io&&(Io=t,zo.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function No(t,e,n){const i=t.canvas,s=i&&Ri(i);if(!s)return;const o=We(((t,e)=>{const i=s.clientWidth;n(t,e),i<s.clientWidth&&n()}),window),r=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)}));return r.observe(s),function(t,e){zo.size||window.addEventListener("resize",Fo),zo.set(t,e)}(t,o),r}function jo(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){zo.delete(t),zo.size||window.removeEventListener("resize",Fo)}(t)}function Bo(t,e,n){const i=t.canvas,s=We((e=>{null!==t.ctx&&n(function(t,e){const n=Do[t.type]||t.type,{x:i,y:s}=Bi(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==s?s:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,Oo)}(i,e,s),s}class Vo extends Mo{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t[Lo]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Po(s)){const e=qi(t,"width");void 0!==e&&(t.width=e)}if(Po(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=qi(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Lo])return!1;const n=e[Lo].initial;["height","width"].forEach((t=>{const i=n[t];Ut(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Lo],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),s={attach:To,detach:Ro,resize:No}[e]||Bo;i[e]=s(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:jo,detach:jo,resize:jo}[e]||Ao)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Hi(t,e,n,i)}isAttached(t){const e=Ri(t);return!(!e||!e.isConnected)}}class Ho{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(s,t,e,n);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const s of t){const t=s.plugin;if(!1===Jt(t[n],[e,i,s.options],t)&&i.cancelable)return!1}return!0}invalidate(){Ut(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=Gt(n.options&&n.options.plugins,{}),s=function(t){const e={},n=[],i=Object.keys(to.plugins.items);for(let t=0;t<i.length;t++)n.push(to.getPlugin(i[t]));const s=t.plugins||[];for(let t=0;t<s.length;t++){const i=s[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,s){const o=[],r=t.getContext();for(const a of e){const e=a.id,l=Wo(i[e],s);null!==l&&o.push({plugin:a,options:Uo(t.config,{plugin:a,local:n[e]},l,r)})}return o}(t,s,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Wo(t,e){return e||!1!==t?!0===t?{}:t:null}function Uo(t,{plugin:e,local:n},i,s){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(i,o);return n&&e.defaults&&r.push(e.defaults),t.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function qo(t,e){const n=Vn.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Yo(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Zo(t){const e=t.options||(t.options={});e.plugins=Gt(e.plugins,{}),e.scales=function(t,e){const n=Fn[t.type]||{scales:{}},i=e.scales||{},s=qo(t.type,e),o=Object.create(null),r=Object.create(null);return Object.keys(i).forEach((t=>{const e=i[t];if(!Yt(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=Yo(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(a,s),c=n.scales||{};o[a]=o[a]||t,r[t]=oe(Object.create(null),[{axis:a},e,c[a],c[l]])})),t.data.datasets.forEach((n=>{const s=n.type||t.type,a=n.indexAxis||qo(s,e),l=(Fn[s]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),s=n[e+"AxisID"]||o[e]||e;r[s]=r[s]||Object.create(null),oe(r[s],[{axis:e},i[s],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];oe(e,[Vn.scales[e.type],Vn.scale])})),r}(t,e)}function Xo(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Go=new Map,Ko=new Set;function Jo(t,e){let n=Go.get(t);return n||(n=e(),Go.set(t,n),Ko.add(n)),n}const Qo=(t,e,n)=>{const i=le(e,n);void 0!==i&&t.add(i)};class tr{constructor(t){this._config=function(t){return(t=t||{}).data=Xo(t.data),Zo(t),t}(t),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=Xo(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Zo(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Jo(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Jo(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Jo(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Jo(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:s}=this,o=this._cachedScopes(t,n),r=o.get(e);if(r)return r;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>Qo(a,t,e)))),e.forEach((t=>Qo(a,i,t))),e.forEach((t=>Qo(a,Fn[s]||{},t))),e.forEach((t=>Qo(a,Vn,t))),e.forEach((t=>Qo(a,Nn,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),Ko.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Fn[e]||{},Vn.datasets[e]||{},{type:e},Vn,Nn]}resolveNamedOptions(t,e,n,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=er(this._resolverCache,t,i);let a=o;if(function(t,e){const{isScriptable:n,isIndexable:i}=gi(t);for(const s of e){const e=n(s),o=i(s),r=(o||e)&&t[s];if(e&&(ue(r)||nr(r))||o&&qt(r))return!0}return!1}(o,e)){s.$shared=!1;a=pi(o,n=ue(n)?n():n,this.createResolver(t,n,r))}for(const t of e)s[t]=a[t];return s}createResolver(t,e,n=[""],i){const{resolver:s}=er(this._resolverCache,t,n);return Yt(e)?pi(s,e,void 0,i):s}}function er(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let o=i.get(s);if(!o){o={resolver:fi(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(s,o)}return o}const nr=t=>Yt(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||ue(t[n])),!1);const ir=["top","bottom","left","right","chartArea"];function sr(t,e){return"top"===t||"bottom"===t||-1===ir.indexOf(t)&&"x"===e}function or(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function rr(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Jt(n&&n.onComplete,[t],e)}function ar(t){const e=t.chart,n=e.options.animation;Jt(n&&n.onProgress,[t],e)}function lr(t){return Ti()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const cr={},hr=t=>{const e=lr(t);return Object.values(cr).filter((t=>t.canvas===e)).pop()};function ur(t,e,n){const i=Object.keys(t);for(const s of i){const i=+s;if(i>=e){const o=t[s];delete t[s],(n>0||i>e)&&(t[i+n]=o)}}}class dr{constructor(t,e){const n=this.config=new tr(e),i=lr(t),s=hr(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Ti()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?So:Vo}(i)),this.platform.updateConfig(n);const r=this.platform.acquireContext(i,o.aspectRatio),a=r&&r.canvas,l=a&&a.height,c=a&&a.width;this.id=Wt(),this.ctx=r,this.canvas=a,this.width=c,this.height=l,this._options=o,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 Ho,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],cr[this.id]=this,r&&a?(as.listen(this,"complete",rr),as.listen(this,"progress",ar),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:s}=this;return Ut(t)?e&&s?s:i?n/i: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}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Wi(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qn(this.canvas,this.ctx),this}stop(){return as.stop(this),this}resize(t,e){as.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,s=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,s),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Wi(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),Jt(n.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Qt(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const n=e[t],i=Yo(t,n),s="r"===i,o="x"===i;return{options:n,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),Qt(s,(e=>{const s=e.options,o=s.id,r=Yo(o,s),a=Gt(s.type,e.dtype);void 0!==s.position&&sr(s.position,r)===sr(e.dposition)||(s.position=e.dposition),i[o]=!0;let l=null;if(o in n&&n[o].type===a)l=n[o];else{l=new(to.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(s,t)})),Qt(i,((t,e)=>{t||delete n[e]})),Qt(n,(t=>{Co.configure(this,t,t.options),Co.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(or("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let s=this.getDatasetMeta(n);const o=i.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=o,s.indexAxis=i.indexAxis||qo(o,this.options),s.order=i.order||0,s.index=n,s.label=""+i.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const e=to.getController(o),{datasetElementType:i,dataElementType:r}=Vn.datasets[o];Object.assign(e.prototype,{dataElementType:to.getElement(r),datasetElementType:i&&to.getElement(i)}),s.controller=new e(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Qt(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===s.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Qt(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(or("z","_idx"));const{_active:r,_lastEvent:a}=this;a?this._eventHandler(a,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){Qt(this.scales,(t=>{Co.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);de(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:s}of e){ur(t,i,"_removeElements"===n?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!de(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Co.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Qt(this.boxes,(t=>{n&&"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<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,ue(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(as.has(this)?this.attached&&!as.running(this)&&as.start(this):(this.draw(),rr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,s;for(i=0,s=e.length;i<s;++i){const s=e[i];t&&!s.visible||n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,s=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&Xn(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),t.controller.draw(),i&&Gn(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Zn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const s=uo.modes[e];return"function"==typeof s?s(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=di(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);he(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(s,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),as.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),qn(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete cr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Qt(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",s),n("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){Qt(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Qt(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!te(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=n?t:s(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const s=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(s||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:s}=this,o=e,r=this._getActiveElements(t,i,n,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,Jt(s.onHover,[t,r,this],this),a&&Jt(s.onClick,[t,r,this],this));const c=!te(r,i);return(c||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}const fr=()=>Qt(dr.instances,(t=>t._plugins.invalidate())),pr=!0;function gr(t,e,n){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=e;let c=s/a;t.beginPath(),t.arc(o,r,a,i-c,n+c),l>s?(c=s/l,t.arc(o,r,l,n+c,i-c,!0)):t.arc(o,r,s,n+xe,i-xe),t.closePath(),t.clip()}function mr(t,e,n,i){const s=ri(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(n-e)/2,r=Math.min(o,i*e/2),a=t=>{const e=(n-Math.min(o,t))*i/2;return Re(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Re(s.innerStart,0,r),innerEnd:Re(s.innerEnd,0,r)}}function br(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function xr(t,e,n,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=e,u=Math.max(e.outerRadius+i+n-c,0),d=h>0?h+i+n+c:0;let f=0;const p=s-l;if(i){const t=((h>0?h-i:0)+(u>0?u-i:0))/2;f=(p-(0!==t?p*t/(t+i):p))/2}const g=(p-Math.max(.001,p*u-n/fe)/u)/2,m=l+g+f,b=s-g-f,{outerStart:x,outerEnd:y,innerStart:_,innerEnd:v}=mr(e,d,u,b-m),$=u-x,k=u-y,w=m+x/$,C=b-y/k,M=d+_,S=d+v,L=m+_/M,D=b-v/S;if(t.beginPath(),o){if(t.arc(r,a,u,w,C),y>0){const e=br(k,C,r,a);t.arc(e.x,e.y,y,C,b+xe)}const e=br(S,b,r,a);if(t.lineTo(e.x,e.y),v>0){const e=br(S,D,r,a);t.arc(e.x,e.y,v,b+xe,D+Math.PI)}if(t.arc(r,a,d,b-v/d,m+_/d,!0),_>0){const e=br(M,L,r,a);t.arc(e.x,e.y,_,L+Math.PI,m-xe)}const n=br($,m,r,a);if(t.lineTo(n.x,n.y),x>0){const e=br($,w,r,a);t.arc(e.x,e.y,x,m-xe,w)}}else{t.moveTo(r,a);const e=Math.cos(w)*u+r,n=Math.sin(w)*u+a;t.lineTo(e,n);const i=Math.cos(C)*u+r,s=Math.sin(C)*u+a;t.lineTo(i,s)}t.closePath()}function yr(t,e,n,i,s,o){const{options:r}=e,{borderWidth:a,borderJoinStyle:l}=r,c="inner"===r.borderAlign;a&&(c?(t.lineWidth=2*a,t.lineJoin=l||"round"):(t.lineWidth=a,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:s,startAngle:o,pixelMargin:r,fullCircles:a}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let h;for(n&&gr(t,e,o+pe),t.beginPath(),t.arc(i,s,c,o+pe,o,!0),h=0;h<a;++h)t.stroke();for(t.beginPath(),t.arc(i,s,l,o,o+pe),h=0;h<a;++h)t.stroke()}(t,e,c),c&&gr(t,e,s),xr(t,e,n,i,s,o),t.stroke())}Object.defineProperties(dr,{defaults:{enumerable:pr,value:Vn},instances:{enumerable:pr,value:cr},overrides:{enumerable:pr,value:Fn},registry:{enumerable:pr,value:to},version:{enumerable:pr,value:"3.9.1"},getChart:{enumerable:pr,value:hr},register:{enumerable:pr,value:(...t)=>{to.add(...t),fr()}},unregister:{enumerable:pr,value:(...t)=>{to.remove(...t),fr()}}});class _r extends js{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,n){const i=this.getProps(["x","y"],n),{angle:s,distance:o}=Pe(i,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=this.options.spacing/2,d=Gt(h,a-r)>=pe||Te(s,r,a),f=ze(o,l+u,c+u);return d&&f}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(i+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:n+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>pe?Math.floor(n/pe):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=fe&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,n,i,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let l=e.endAngle;if(o){xr(t,e,n,i,r+pe,s);for(let e=0;e<o;++e)t.fill();isNaN(a)||(l=r+a%pe,a%pe==0&&(l+=pe))}return xr(t,e,n,i,l,s),t.fill(),l}(t,this,r,s,o);yr(t,this,r,s,a,o),t.restore()}}function vr(t,e,n=e){t.lineCap=Gt(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Gt(n.borderDash,e.borderDash)),t.lineDashOffset=Gt(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Gt(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Gt(n.borderWidth,e.borderWidth),t.strokeStyle=Gt(n.borderColor,e.borderColor)}function $r(t,e,n){t.lineTo(n.x,n.y)}function kr(t,e,n={}){const i=t.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:l,loop:e.loop,ilen:c<l&&!h?i+c-l:c-l}}function wr(t,e,n,i){const{points:s,options:o}=e,{count:r,start:a,loop:l,ilen:c}=kr(s,n,i),h=function(t){return t.stepped?Kn:t.tension||"monotone"===t.cubicInterpolationMode?Jn:$r}(o);let u,d,f,{move:p=!0,reverse:g}=i||{};for(u=0;u<=c;++u)d=s[(a+(g?c-u:u))%r],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):h(t,f,d,g,o.stepped),f=d);return l&&(d=s[(a+(g?c:0))%r],h(t,f,d,g,o.stepped)),!!l}function Cr(t,e,n,i){const s=e.points,{count:o,start:r,ilen:a}=kr(s,n,i),{move:l=!0,reverse:c}=i||{};let h,u,d,f,p,g,m=0,b=0;const x=t=>(r+(c?a-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(u=s[x(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=s[x(h)],u.skip)continue;const e=u.x,n=u.y,i=0|e;i===d?(n<f?f=n:n>p&&(p=n),m=(b*m+e)/++b):(y(),t.lineTo(e,n),d=i,b=0,f=p=n),g=n}y()}function Mr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Cr:wr}_r.id="arc",_r.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},_r.defaultRoutes={backgroundColor:"backgroundColor"};const Sr="function"==typeof Path2D;function Lr(t,e,n,i){Sr&&!e.options.segment?function(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),vr(t,e.options),t.stroke(s)}(t,e,n,i):function(t,e,n,i){const{segments:s,options:o}=e,r=Mr(e);for(const a of s)vr(t,o,a.style),t.beginPath(),r(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Dr extends js{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){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Ei(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,n,i){let s=0,o=e-1;if(n&&!i)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,n&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(n,s,o,i);return ss(t,!0===i?[{start:r,end:a,loop:o}]:function(t,e,n,i){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=n;++r){const n=t[r%s];n.skip||n.stop?l.skip||(i=!1,o.push({start:e%s,end:(r-1)%s,loop:i}),e=a=n.stop?r:null):(a=r,l.skip&&(e=r)),l=n}return null!==a&&o.push({start:e%s,end:a%s,loop:i}),o}(n,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],s=this.points,o=function(t,e){const n=[],i=t.segments;for(let s=0;s<i.length;s++){const o=is(i[s],t.points,e);o.length&&n.push(...o)}return n}(this,{property:e,start:i,end:i});if(!o.length)return;const r=[],a=function(t){return t.stepped?Zi:t.tension||"monotone"===t.cubicInterpolationMode?Xi:Yi}(n);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:h}=o[l],u=s[c],d=s[h];if(u===d){r.push(u);continue}const f=a(u,d,Math.abs((i-u[e])/(d[e]-u[e])),n.stepped);f[e]=t[e],r.push(f)}return 1===r.length?r[0]:r}pathSegment(t,e,n){return Mr(this)(t,this,e,n)}path(t,e,n){const i=this.segments,s=Mr(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)o&=s(t,this,r,{start:e,end:e+n-1});return!!o}draw(t,e,n,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),Lr(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Pr(t,e,n,i){const s=t.options,{[n]:o}=t.getProps([n],i);return Math.abs(e-o)<s.radius+s.hitRadius}Dr.id="line",Dr.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Dr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Dr.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Or extends js{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:s,y:o}=this.getProps(["x","y"],n);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Pr(this,t,"x",e)}inYRange(t,e){return Pr(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!Zn(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Yn(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Ar(t,e){const{x:n,y:i,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=r/2,a=Math.min(n,s),l=Math.max(n,s),c=i-u,h=i+u):(u=o/2,a=n-u,l=n+u,c=Math.min(i,s),h=Math.max(i,s)),{left:a,top:c,right:l,bottom:h}}function Er(t,e,n,i){return t?0:Re(e,n,i)}function Tr(t){const e=Ar(t),n=e.right-e.left,i=e.bottom-e.top,s=function(t,e,n){const i=t.options.borderWidth,s=t.borderSkipped,o=ai(i);return{t:Er(s.top,o.top,0,n),r:Er(s.right,o.right,0,e),b:Er(s.bottom,o.bottom,0,n),l:Er(s.left,o.left,0,e)}}(t,n/2,i/2),o=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=li(s),r=Math.min(e,n),a=t.borderSkipped,l=i||Yt(s);return{topLeft:Er(!l||a.top||a.left,o.topLeft,0,r),topRight:Er(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Er(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Er(!l||a.bottom||a.right,o.bottomRight,0,r)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function Rr(t,e,n,i){const s=null===e,o=null===n,r=t&&!(s&&o)&&Ar(t,i);return r&&(s||ze(e,r.left,r.right))&&(o||ze(n,r.top,r.bottom))}function zr(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ir(t,e,n={}){const i=t.x!==n.x?-e:0,s=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-s;return{x:t.x+i,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}Or.id="point",Or.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Or.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Fr extends js{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){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:s,outer:o}=Tr(this),r=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?ei:zr;var a;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),r(t,Ir(o,e,s)),t.clip(),r(t,Ir(s,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),r(t,Ir(s,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Rr(this,t,e,n)}inXRange(t,e){return Rr(this,t,null,e)}inYRange(t,e){return Rr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+i)/2:e,y:s?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Fr.id="bar",Fr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Fr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const Nr={average(t){if(!t.length)return!1;let e,n,i=0,s=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,s+=t.y,++o}}return{x:i/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let n,i,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Oe(e,i.getCenterPoint());t<a&&(a=t,s=i)}}if(s){const t=s.tooltipPosition();o=t.x,r=t.y}return{x:o,y:r}}};function jr(t,e){return e&&(qt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Br(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Vr(t,e){const{element:n,datasetIndex:i,index:s}=e,o=t.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Hr(t,e){const n=t.chart.ctx,{body:i,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=hi(e.bodyFont),c=hi(e.titleFont),h=hi(e.footerFont),u=o.length,d=s.length,f=i.length,p=ci(e.padding);let g=p.height,m=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){g+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,Qt(t.title,y),n.font=l.string,Qt(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,Qt(i,(t=>{Qt(t.before,y),Qt(t.lines,y),Qt(t.after,y)})),x=0,n.font=h.string,Qt(t.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function Wr(t,e,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===i?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),function(t,e,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(c,t,e,n)&&(c="center"),c}function Ur(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Wr(t,e,n,i),yAlign:i}}function qr(t,e,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=li(r);let p=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,a);const g=function(t,e,n){let{y:i,height:s}=t;return"top"===e?i+=n:i-="bottom"===e?s+n:s/2,i}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,d)+s:"right"===a&&(p+=Math.max(u,f)+s),{x:Re(p,0,i.width-e.width),y:Re(g,0,i.height-e.height)}}function Yr(t,e,n){const i=ci(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Zr(t){return jr([],Br(t))}function Xr(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}(class extends js{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,s=new ds(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,di(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),s=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]);let r=[];return r=jr(r,Br(i)),r=jr(r,Br(s)),r=jr(r,Br(o)),r}getBeforeBody(t,e){return Zr(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return Qt(t,(t=>{const e={before:[],lines:[],after:[]},s=Xr(n,t);jr(e.before,Br(s.beforeLabel.call(this,t))),jr(e.lines,s.label.call(this,t)),jr(e.after,Br(s.afterLabel.call(this,t))),i.push(e)})),i}getAfterBody(t,e){return Zr(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),s=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]);let r=[];return r=jr(r,Br(i)),r=jr(r,Br(s)),r=jr(r,Br(o)),r}_createItems(t){const e=this._active,n=this.chart.data,i=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;r<a;++r)l.push(Vr(this.chart,e[r]));return t.filter&&(l=l.filter(((e,i,s)=>t.filter(e,i,s,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),Qt(l,(e=>{const n=Xr(t.callbacks,e);i.push(n.labelColor.call(this,e)),s.push(n.labelPointStyle.call(this,e)),o.push(n.labelTextColor.call(this,e))})),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(i.length){const t=Nr[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=Hr(this,n),r=Object.assign({},t,e),a=Ur(this.chart,n,r),l=qr(n,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const s=this.getCaretPosition(t,n,i);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:r}=n,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=li(r),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,b,x,y,_;return"center"===s?(y=d+p/2,"left"===i?(g=u,m=g-o,x=y+o,_=y-o):(g=u+f,m=g+o,x=y-o,_=y+o),b=g):(m="left"===i?u+Math.max(a,c)+o:"right"===i?u+f-Math.max(l,h)-o:this.caretX,"top"===s?(x=d,y=x-o,g=m-o,b=m+o):(x=d+p,y=x+o,g=m+o,b=m-o),_=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:_}}drawTitle(t,e,n){const i=this.title,s=i.length;let o,r,a;if(s){const l=ts(n.rtl,this.x,this.width);for(t.x=Yr(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",o=hi(n.titleFont),r=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,a=0;a<s;++a)e.fillText(i[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,a+1===s&&(t.y+=n.titleMarginBottom-r)}}_drawColorBox(t,e,n,i,s){const o=this.labelColors[n],r=this.labelPointStyles[n],{boxHeight:a,boxWidth:l,boxPadding:c}=s,h=hi(s.bodyFont),u=Yr(this,"left",s),d=i.x(u),f=a<h.lineHeight?(h.lineHeight-a)/2:0,p=e.y+f;if(s.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},n=i.leftForLtr(d,l)+l/2,c=p+a/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Yn(t,e,n,c),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Yn(t,e,n,c)}else{t.lineWidth=Yt(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=i.leftForLtr(d,l-c),n=i.leftForLtr(i.xPlus(d,1),l-c-2),r=li(o.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,ei(t,{x:e,y:p,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ei(t,{x:n,y:p+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,p,l,a),t.strokeRect(e,p,l,a),t.fillStyle=o.backgroundColor,t.fillRect(n,p+1,l-2,a-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:c}=n,h=hi(n.bodyFont);let u=h.lineHeight,d=0;const f=ts(n.rtl,this.x,this.width),p=function(n){e.fillText(n,f.x(t.x+d),t.y+u/2),t.y+=u+s},g=f.textAlign(o);let m,b,x,y,_,v,$;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=Yr(this,g,n),e.fillStyle=n.bodyColor,Qt(this.beforeBody,p),d=r&&"right"!==g?"center"===o?l/2+c:l+2+c:0,y=0,v=i.length;y<v;++y){for(m=i[y],b=this.labelTextColors[y],e.fillStyle=b,Qt(m.before,p),x=m.lines,r&&x.length&&(this._drawColorBox(e,t,y,f,n),u=Math.max(h.lineHeight,a)),_=0,$=x.length;_<$;++_)p(x[_]),u=h.lineHeight;Qt(m.after,p)}d=0,u=h.lineHeight,Qt(this.afterBody,p),t.y-=s}drawFooter(t,e,n){const i=this.footer,s=i.length;let o,r;if(s){const a=ts(n.rtl,this.x,this.width);for(t.x=Yr(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=a.textAlign(n.footerAlign),e.textBaseline="middle",o=hi(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,r=0;r<s;++r)e.fillText(i[r],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:s,yAlign:o}=this,{x:r,y:a}=t,{width:l,height:c}=n,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=li(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(r+h,a),"top"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+l-u,a),e.quadraticCurveTo(r+l,a,r+l,a+u),"center"===o&&"right"===s&&this.drawCaret(t,e,n,i),e.lineTo(r+l,a+c-f),e.quadraticCurveTo(r+l,a+c,r+l-f,a+c),"bottom"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+d,a+c),e.quadraticCurveTo(r,a+c,r,a+c-d),"center"===o&&"left"===s&&this.drawCaret(t,e,n,i),e.lineTo(r,a+h),e.quadraticCurveTo(r,a,r+h,a),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,s=n&&n.y;if(i||s){const n=Nr[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=Hr(this,t),r=Object.assign({},n,this._size),a=Ur(e,t,r),l=qr(t,r,a,e);i._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=ci(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=n,this.drawBackground(s,t,i,e),function(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),function(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),s=!te(n,i),o=this._positionChanged(i,e);(s||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,n),r=this._positionChanged(o,t),a=e||!te(o,s)||r;return a&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,n,i){const s=this.options;if("mouseout"===t.type)return[];if(!i)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,n);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:s}=this,o=Nr[s.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}).positioners=Nr;const Gr=(t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);class Kr extends Js{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Ut(t))return null;const n=this.getLabels();return e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const s=t.indexOf(e);return-1===s?Gr(t,e,n,i):s!==t.lastIndexOf(e)?n:s}(n,t,Gt(e,t),this._addedLabels),((t,e)=>null===t?null:Re(Math.round(t),0,e))(e,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]: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){const 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}}function Jr(t,e){const n=[],{bounds:i,step:s,min:o,max:r,precision:a,count:l,maxTicks:c,maxDigits:h,includeBounds:u}=t,d=s||1,f=c-1,{min:p,max:g}=e,m=!Ut(o),b=!Ut(r),x=!Ut(l),y=(g-p)/(h+1);let _,v,$,k,w=ke((g-p)/f/d)*d;if(w<1e-14&&!m&&!b)return[{value:p},{value:g}];k=Math.ceil(g/w)-Math.floor(p/w),k>f&&(w=ke(k*w/f/d)*d),Ut(a)||(_=Math.pow(10,a),w=Math.ceil(w*_)/_),"ticks"===i?(v=Math.floor(p/w)*w,$=Math.ceil(g/w)*w):(v=p,$=g),m&&b&&s&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((r-o)/s,w/1e3)?(k=Math.round(Math.min((r-o)/w,c)),w=(r-o)/k,v=o,$=r):x?(v=m?o:v,$=b?r:$,k=l-1,w=($-v)/k):(k=($-v)/w,k=Ce(k,Math.round(k),w/1e3)?Math.round(k):Math.ceil(k));const C=Math.max(De(w),De(v));_=Math.pow(10,Ut(a)?C:a),v=Math.round(v*_)/_,$=Math.round($*_)/_;let M=0;for(m&&(u&&v!==o?(n.push({value:o}),v<o&&M++,Ce(Math.round((v+M*w)*_)/_,o,Qr(o,y,t))&&M++):v<o&&M++);M<k;++M)n.push({value:Math.round((v+M*w)*_)/_});return b&&u&&$!==r?n.length&&Ce(n[n.length-1].value,r,Qr(r,y,t))?n[n.length-1].value=r:n.push({value:r}):b&&$!==r||n.push({value:$}),n}function Qr(t,e,{horizontal:n,minRotation:i}){const s=Se(i),o=(n?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}Kr.id="category",Kr.defaults={ticks:{callback:Kr.prototype.getLabelForValue}};class ta extends Js{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Ut(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this;const o=t=>i=e?i:t,r=t=>s=n?s:t;if(t){const t=$e(i),e=$e(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(i===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),r(s+e),t||o(i-e)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Jr({maxTicks:n,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},this._range||this);return"ticks"===t.bounds&&Me(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Ki(t,this.chart.options.locale,this.options.ticks.format)}}class ea extends ta{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Zt(t)?t:0,this.max=Zt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Se(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function na(t){return 1===t/Math.pow(10,Math.floor(ve(t)))}ea.id="linear",ea.defaults={ticks:{callback:Vs.formatters.numeric}};class ia extends Js{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=ta.prototype.parse.apply(this,[t,e]);if(0!==n)return Zt(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Zt(t)?Math.max(0,t):null,this.max=Zt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const s=e=>n=t?n:e,o=t=>i=e?i:t,r=(t,e)=>Math.pow(10,Math.floor(ve(t))+e);n===i&&(n<=0?(s(1),o(10)):(s(r(n,-1)),o(r(i,1)))),n<=0&&s(r(i,-1)),i<=0&&o(r(n,1)),this._zero&&this.min!==this._suggestedMin&&n===r(this.min,0)&&s(r(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(ve(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),s=[];let o=Xt(t.min,Math.pow(10,Math.floor(ve(e.min)))),r=Math.floor(ve(o)),a=Math.floor(o/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{s.push({value:o,major:na(o)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),o=Math.round(a*Math.pow(10,r)*l)/l}while(r<n||r===n&&a<i);const c=Xt(t.max,o);return s.push({value:c,major:na(o)}),s}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Me(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Ki(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ve(t),this._valueRange=ve(this.max)-ve(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ve(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function sa(t){const e=t.ticks;if(e.display&&t.display){const t=ci(e.backdropPadding);return Gt(e.font&&e.font.size,Vn.font.size)+t.height}return 0}function oa(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function ra(t){const 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},n=Object.assign({},e),i=[],s=[],o=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?fe/o:0;for(let u=0;u<o;u++){const o=r.setContext(t.getPointLabelContext(u));s[u]=o.padding;const d=t.getPointPosition(u,t.drawingArea+s[u],a),f=hi(o.font),p=(l=t.ctx,c=f,h=qt(h=t._pointLabels[u])?h:[h],{w:Wn(l,c.string,h),h:h.length*c.lineHeight});i[u]=p;const g=Ee(t.getIndexAngle(u)+a),m=Math.round(Le(g));aa(n,e,g,oa(m,d.x,p.w,0,180),oa(m,d.y,p.h,90,270))}var l,c,h;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],s=t._pointLabels.length,o=t.options,r=sa(o)/2,a=t.drawingArea,l=o.pointLabels.centerPointLabels?fe/s:0;for(let o=0;o<s;o++){const s=t.getPointPosition(o,a+r+n[o],l),c=Math.round(Le(Ee(s.angle+xe))),h=e[o],u=ha(s.y,h.h,c),d=la(c),f=ca(s.x,h.w,d);i.push({x:s.x,y:u,textAlign:d,left:f,top:u,right:f+h.w,bottom:u+h.h})}return i}(t,i,s)}function aa(t,e,n,i,s){const o=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let a=0,l=0;i.start<e.l?(a=(e.l-i.start)/o,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(l=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function la(t){return 0===t||180===t?"center":t<180?"left":"right"}function ca(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ha(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function ua(t,e,n,i){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,pe);else{let n=t.getPointPosition(0,e);s.moveTo(n.x,n.y);for(let o=1;o<i;o++)n=t.getPointPosition(o,e),s.lineTo(n.x,n.y)}}ia.id="logarithmic",ia.defaults={ticks:{callback:Vs.formatters.logarithmic,major:{enabled:!0}}};class da extends ta{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ci(sa(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Zt(t)&&!isNaN(t)?t:0,this.max=Zt(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/sa(this.options))}generateTickLabels(t){ta.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=Jt(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?ra(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Ee(t*(pe/(this._pointLabels.length||1))+Se(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Ut(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Ut(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return di(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-xe+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:s}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),ua(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,s=this._pointLabels.length;let o,r,a;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let s=e-1;s>=0;s--){const e=i.setContext(t.getPointLabelContext(s)),o=hi(e.font),{x:r,y:a,textAlign:l,left:c,top:h,right:u,bottom:d}=t._pointLabelItems[s],{backdropColor:f}=e;if(!Ut(f)){const t=li(e.borderRadius),i=ci(e.backdropPadding);n.fillStyle=f;const s=c-i.left,o=h-i.top,r=u-c+i.width,a=d-h+i.height;Object.values(t).some((t=>0!==t))?(n.beginPath(),ei(n,{x:s,y:o,w:r,h:a,radius:t}),n.fill()):n.fillRect(s,o,r,a)}Qn(n,t._pointLabels[s],r,a+o.lineHeight/2,o,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,s),i.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const s=t.ctx,o=e.circular,{color:r,lineWidth:a}=e;!o&&!i||!r||!a||n<0||(s.save(),s.strokeStyle=r,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),ua(t,n,o,i),s.closePath(),s.stroke(),s.restore())}(this,i.setContext(this.getContext(e-1)),r,s)}})),n.display){for(t.save(),o=s-1;o>=0;o--){const i=n.setContext(this.getPointLabelContext(o)),{color:s,lineWidth:l}=i;l&&s&&(t.lineWidth=l,t.strokeStyle=s,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,r)=>{if(0===r&&!e.reverse)return;const a=n.setContext(this.getContext(r)),l=hi(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(i.label).width,t.fillStyle=a.backdropColor;const e=ci(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}Qn(t,i.label,0,-s,l,{color:a.color})})),t.restore()}drawTitle(){}}da.id="radialLinear",da.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Vs.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},da.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},da.descriptors={angleLines:{_fallback:"grid"}};const fa={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}},pa=Object.keys(fa);function ga(t,e){return t-e}function ma(t,e){if(Ut(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof i&&(r=i(r)),Zt(r)||(r="string"==typeof i?n.parse(r,i):n.parse(r)),null===r?null:(s&&(r="week"!==s||!we(o)&&!0!==o?n.startOf(r,s):n.startOf(r,"isoWeek",o)),+r)}function ba(t,e,n,i){const s=pa.length;for(let o=pa.indexOf(t);o<s-1;++o){const t=fa[pa[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(s*t.size))<=i)return pa[o]}return pa[s-1]}function xa(t,e,n){if(n){if(n.length){const{lo:i,hi:s}=Ie(n,e);t[n[i]>=e?n[i]:n[s]]=!0}}else t[e]=!0}function ya(t,e,n){const i=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,i.push({value:a,major:!1});return 0!==o&&n?function(t,e,n,i){const s=t._adapter,o=+s.startOf(e[0].value,i),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}(t,i,s,n):i}class _a extends Js{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){const n=t.time||(t.time={}),i=this._adapter=new so._date(t.adapters.date);i.init(e),oe(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ma(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(i=Math.min(i,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),i=Zt(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),s=Zt(s)&&!isNaN(s)?s:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,o=function(t,e,n){let i=0,s=t.length;for(;i<s&&t[i]<e;)i++;for(;s>i&&t[s-1]>n;)s--;return i>0||s<t.length?t.slice(i,s):t}(i,s,this.max);return this._unit=e.unit||(n.autoSkip?ba(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,n,i,s){for(let o=pa.length-1;o>=pa.indexOf(n);o--){const n=pa[o];if(fa[n].common&&t._adapter.diff(s,i,n)>=e-1)return n}return pa[n?pa.indexOf(n):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=pa.indexOf(t)+1,n=pa.length;e<n;++e)if(fa[pa[e]].common)return pa[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&o.reverse(),ya(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,n,i=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),s=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;i=Re(i,0,o),s=Re(s,0,o),this._offsets={start:i,end:s,factor:1/(i+1+s)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,s=i.time,o=s.unit||ba(s.minUnit,e,n,this._getLabelCapacity(e)),r=Gt(s.stepSize,1),a="week"===o&&s.isoWeekday,l=we(a)||!0===a,c={};let h,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":o),t.diff(n,e,o)>1e5*r)throw new Error(e+" and "+n+" are too far apart with stepSize of "+r+" "+o);const f="data"===i.ticks.source&&this.getDataTimestamps();for(h=d,u=0;h<n;h=+t.add(h,r,o),u++)xa(c,h,f);return h!==n&&"ticks"!==i.bounds&&1!==u||xa(c,h,f),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const s=this.options,o=s.time.displayFormats,r=this._unit,a=this._majorUnit,l=r&&o[r],c=a&&o[a],h=n[e],u=a&&c&&h&&h.major,d=this._adapter.format(t,i||(u?c:l)),f=s.ticks.callback;return f?Jt(f,[d,e,n],this):d}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Se(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(i),o=Math.sin(i),r=this._resolveTickFontOptions(0).size;return{w:n*s+r*o,h:n*o+r*s}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,s=this._tickFormatFunction(t,0,ya(this,[t],this._majorUnit),i),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(ma(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ve(t.sort(ga))}}function va(t,e,n){let i,s,o,r,a=0,l=t.length-1;n?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=Fe(t,"pos",e)),({pos:i,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=Fe(t,"time",e)),({time:i,pos:o}=t[a]),({time:s,pos:r}=t[l]));const c=s-i;return c?o+(r-o)*(e-i)/c:o}_a.id="time",_a.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class $a extends _a{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=va(e,this.min),this._tableRange=va(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,r=i.length;o<r;++o)c=i[o+1],a=i[o-1],l=i[o],Math.round((c+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(va(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return va(this._table,n*this._tableRange+this._minPos,!0)}}$a.id="timeseries",$a.defaults=_a.defaults;const ka=["#faab4a","#2e3454","#2a679d","#f8d9d8"];function wa(e){let n,i;return{c(){n=$("div"),i=$("canvas"),L(n,"data-component","bar-chart")},m(t,s){y(t,n,s),x(n,i),e[2](i)},p:t,i:t,o:t,d(t){t&&_(n),e[2](null)}}}function Ca(t,e,n){dr.register(Fr,Es,ea,Kr,Or);let{componentData:i}=e;const{config:s,data:o,labels:r}=i;let a;const l=s||{type:"bar",data:{labels:r,datasets:[{backgroundColor:ka[2],borderColor:ka[2],data:o||[]}]},options:{plugins:{legend:{display:!1}}}};return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},t.$$.update=()=>{1&t.$$.dirty&&a&&new dr(a,l)},[a,i,function(t){V[t?"unshift":"push"]((()=>{a=t,n(0,a)}))}]}class Ma extends pt{constructor(t){super(),ft(this,t,Ca,wa,r,{componentData:1})}}function Sa(t){let e,n,i;return{c(){e=$("div"),n=C(),i=$("div"),L(e,"class","path topLeft svelte-1hyaq5f"),L(i,"class","path bottomRight svelte-1hyaq5f")},m(t,s){y(t,e,s),y(t,n,s),y(t,i,s)},d(t){t&&_(e),t&&_(n),t&&_(i)}}}function La(t){let e;return{c(){e=$("div"),L(e,"class","path straightLine svelte-1hyaq5f")},m(t,n){y(t,e,n)},d(t){t&&_(e)}}}function Da(e){let n;function i(t,e){return t[5]?La:Sa}let s=i(e),o=s(e);return{c(){n=$("div"),o.c(),L(n,"class","connectorwrapper svelte-1hyaq5f"),O(n,"top",e[1]+"rem"),O(n,"left",e[0]+"rem"),O(n,"width",e[3]+"rem"),O(n,"height",e[4]+"rem"),A(n,"flip",e[2])},m(t,e){y(t,n,e),o.m(n,null)},p(t,[e]){s!==(s=i(t))&&(o.d(1),o=s(t),o&&(o.c(),o.m(n,null))),2&e&&O(n,"top",t[1]+"rem"),1&e&&O(n,"left",t[0]+"rem"),8&e&&O(n,"width",t[3]+"rem"),16&e&&O(n,"height",t[4]+"rem"),4&e&&A(n,"flip",t[2])},i:t,o:t,d(t){t&&_(n),o.d()}}}const Pa=.5;function Oa(t,e,n){let i,s,o,{top:r=0}=e,{left:a=0}=e,{bottom:l=0}=e,{right:c=0}=e,h=!1;return t.$$set=t=>{"top"in t&&n(1,r=t.top),"left"in t&&n(0,a=t.left),"bottom"in t&&n(7,l=t.bottom),"right"in t&&n(6,c=t.right)},t.$$.update=()=>{207&t.$$.dirty&&(n(2,i=c-a<0),n(3,s=Math.abs(c-a)),s<=Pa?(n(3,s=Pa),n(5,h=!0),n(0,a-=Pa/2)):(i?(n(0,a+=Pa/2),n(6,c-=Pa/2)):(n(0,a-=Pa/2),n(6,c+=Pa/2)),n(3,s=Math.abs(c-a))),n(4,o=l-r))},[a,r,i,s,o,h,c,l]}class Aa extends pt{constructor(t){super(),ft(this,t,Oa,Da,r,{top:1,left:0,bottom:7,right:6})}}function Ea(t,e,n){const i=t.slice();return i[4]=e[n],i}function Ta(t){let e,n;return e=new Aa({props:{top:wt(t[4].top),left:wt(t[4].left),bottom:wt(t[4].bottom),right:wt(t[4].right)}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.top=wt(t[4].top)),1&n&&(i.left=wt(t[4].left)),1&n&&(i.bottom=wt(t[4].bottom)),1&n&&(i.right=wt(t[4].right)),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ra(t){let e,n,i=t[0],s=[];for(let e=0;e<i.length;e+=1)s[e]=Ta(Ea(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,[n]){if(1&n){let r;for(i=t[0],r=0;r<i.length;r+=1){const o=Ea(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Ta(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function za(t,e,n){let{steps:i}=e,{boxes:s}=e,{container:o}=e,r=[];return t.$$set=t=>{"steps"in t&&n(1,i=t.steps),"boxes"in t&&n(2,s=t.boxes),"container"in t&&n(3,o=t.container)},t.$$.update=()=>{if(15&t.$$.dirty){n(0,r=[]);const t=o.getBoundingClientRect(),e=t.top,a=t.left;s&&Object.keys(i).forEach((t=>{var o;const l=i[t],c=s[t].getBoundingClientRect();null===(o=l.next)||void 0===o||o.forEach((t=>{const i=s[t].getBoundingClientRect(),o={top:c.bottom-e,left:c.left-a+c.width/2,bottom:i.top-e,right:i.left-a+i.width/2};n(0,r=[...r,o])}))}))}},[r,i,s,o]}class Ia extends pt{constructor(t){super(),ft(this,t,za,Ra,r,{steps:1,boxes:2,container:3})}}const Fa="currentStep";function Na(t,e,n){const i=t.slice();return i[18]=e[n],i[20]=n,i}function ja(t){let e,n,i;return{c(){e=$("div"),n=w("x"),i=w(t[6]),L(e,"class","levelstoshow svelte-117ceti")},m(t,s){y(t,e,s),x(e,n),x(e,i)},p(t,e){64&e&&P(i,t[6])},d(t){t&&_(e)}}}function Ba(t){let e,n;return{c(){e=$("div"),L(e,"class",n="level rectangle "+t[18]+" svelte-117ceti"),O(e,"z-index",-1*(t[20]+1)),O(e,"top",(t[20]+1)*Ha+"px"),O(e,"left",(t[20]+1)*Ha+"px")},m(t,n){y(t,e,n)},p(t,i){128&i&&n!==(n="level rectangle "+t[18]+" svelte-117ceti")&&L(e,"class",n)},d(t){t&&_(e)}}}function Va(e){let n,i,s,o,r,a,l,c,h,u,d,f=e[2].doc+"",p=e[6]&&ja(e),g=e[7],m=[];for(let t=0;t<g.length;t+=1)m[t]=Ba(Na(e,g,t));return{c(){n=$("div"),p&&p.c(),i=C(),s=$("div"),o=$("div"),r=$("span"),a=w(e[1]),l=C(),c=$("div"),h=w(f),d=C();for(let t=0;t<m.length;t+=1)m[t].c();L(r,"class","name svelte-117ceti"),L(c,"class","description svelte-117ceti"),L(c,"title",u=e[9]?e[2].doc:void 0),A(c,"overflown",e[9]),L(o,"class","inner svelte-117ceti"),L(s,"class","step rectangle svelte-117ceti"),A(s,"success",e[3]),A(s,"running",e[5]),A(s,"error",e[4]),L(n,"class","wrapper svelte-117ceti"),A(n,"current",e[10])},m(t,u){y(t,n,u),p&&p.m(n,null),x(n,i),x(n,s),x(s,o),x(o,r),x(r,a),x(o,l),x(o,c),x(c,h),e[12](c),e[13](s),x(n,d);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(n,null)},p(t,[e]){if(t[6]?p?p.p(t,e):(p=ja(t),p.c(),p.m(n,i)):p&&(p.d(1),p=null),2&e&&P(a,t[1]),4&e&&f!==(f=t[2].doc+"")&&P(h,f),516&e&&u!==(u=t[9]?t[2].doc:void 0)&&L(c,"title",u),512&e&&A(c,"overflown",t[9]),8&e&&A(s,"success",t[3]),32&e&&A(s,"running",t[5]),16&e&&A(s,"error",t[4]),128&e){let i;for(g=t[7],i=0;i<g.length;i+=1){const s=Na(t,g,i);m[i]?m[i].p(s,e):(m[i]=Ba(s),m[i].c(),m[i].m(n,null))}for(;i<m.length;i+=1)m[i].d(1);m.length=g.length}},i:t,o:t,d(t){t&&_(n),p&&p.d(),e[12](null),e[13](null),v(m,t)}}}const Ha=4,Wa=3;function Ua(t,e,n){var i,s;let o,{name:r}=e,{step:a}=e,{numLevels:l=0}=e,{el:c}=e,h=!1,u=!1,d=!1;const f={3:3,100:4,1e3:5,1e4:6};let p=[];a.num_possible_tasks?(a.num_possible_tasks>1&&(o=(new Intl.NumberFormat).format(a.num_possible_tasks)),l=a.num_possible_tasks-1,Object.keys(f).forEach((t=>{const e=Number.parseInt(t);a.num_possible_tasks&&a.num_possible_tasks>e&&n(11,l=f[e])}))):l*=Wa,l>0&&(p=new Array(l).fill("")),p=p.map(((t,e)=>{var n,i;if(a.num_possible_tasks){const t=null!==(n=a.num_failed)&&void 0!==n?n:0,s=null!==(i=a.successful_tasks)&&void 0!==i?i:0;return(t-1)/a.num_possible_tasks>=(e+1)/p.length?"error":(t+s)/a.num_possible_tasks>=(e+1)/p.length?"success":"running"}return""}));const g=j(Fa),m=r===g;let b;a.failed||a.num_failed?u=!0:(null!==(i=a.num_possible_tasks)&&void 0!==i?i:0)>(null!==(s=a.successful_tasks)&&void 0!==s?s:0)?d=!0:a.num_possible_tasks&&a.num_possible_tasks===a.successful_tasks&&(h=!0);let x=!1;return I((()=>{n(9,x=Mt(b))})),t.$$set=t=>{"name"in t&&n(1,r=t.name),"step"in t&&n(2,a=t.step),"numLevels"in t&&n(11,l=t.numLevels),"el"in t&&n(0,c=t.el)},[c,r,a,h,u,d,o,p,b,x,m,l,function(t){V[t?"unshift":"push"]((()=>{b=t,n(8,b)}))},function(t){V[t?"unshift":"push"]((()=>{c=t,n(0,c)}))}]}class qa extends pt{constructor(t){super(),ft(this,t,Ua,Va,r,{name:1,step:2,numLevels:11,el:0})}}function Ya(t,e,n){const i=t.slice();return i[11]=e[n],i}function Za(t){let e,n,i,s,o,r;function a(e){t[8](e)}let l={name:t[2],numLevels:t[3],step:t[5]};void 0!==t[4]&&(l.el=t[4]),n=new qa({props:l}),V.push((()=>lt(n,"el",a)));let c=t[7]&&function(t){let e,n,i,s,o=t[5].next,r=[];for(let e=0;e<o.length;e+=1)r[e]=Xa(Ya(t,o,e));const a=t=>st(r[t],1,1,(()=>{r[t]=null}));return{c(){e=$("div"),n=C(),i=$("div");for(let t=0;t<r.length;t+=1)r[t].c();L(e,"class","gap svelte-18aex7a"),L(i,"class","childwrapper svelte-18aex7a")},m(t,o){y(t,e,o),y(t,n,o),y(t,i,o);for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(i,null);s=!0},p(t,e){if(99&e){let n;for(o=t[5].next,n=0;n<o.length;n+=1){const s=Ya(t,o,n);r[n]?(r[n].p(s,e),it(r[n],1)):(r[n]=Xa(s),r[n].c(),it(r[n],1),r[n].m(i,null))}for(et(),n=o.length;n<r.length;n+=1)a(n);nt()}},i(t){if(!s){for(let t=0;t<o.length;t+=1)it(r[t]);s=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)st(r[t]);s=!1},d(t){t&&_(e),t&&_(n),t&&_(i),v(r,t)}}}(t),h=t[5].box_ends&&function(t){let e,n,i,s;return i=new Ja({props:{steps:t[1],stepName:t[5].box_ends,levels:t[3],boxes:t[0]}}),{c(){e=$("div"),n=C(),ct(i.$$.fragment),L(e,"class","gap svelte-18aex7a")},m(t,o){y(t,e,o),y(t,n,o),ht(i,t,o),s=!0},p(t,e){const n={};2&e&&(n.steps=t[1]),8&e&&(n.levels=t[3]),1&e&&(n.boxes=t[0]),i.$set(n)},i(t){s||(it(i.$$.fragment,t),s=!0)},o(t){st(i.$$.fragment,t),s=!1},d(t){t&&_(e),t&&_(n),ut(i,t)}}}(t);return{c(){e=$("div"),ct(n.$$.fragment),s=C(),c&&c.c(),o=C(),h&&h.c(),L(e,"class","stepwrapper svelte-18aex7a")},m(t,i){y(t,e,i),ht(n,e,null),x(e,s),c&&c.m(e,null),x(e,o),h&&h.m(e,null),r=!0},p(t,e){const s={};4&e&&(s.name=t[2]),8&e&&(s.numLevels=t[3]),!i&&16&e&&(i=!0,s.el=t[4],Z((()=>i=!1))),n.$set(s),t[7]&&c.p(t,e),t[5].box_ends&&h.p(t,e)},i(t){r||(it(n.$$.fragment,t),it(c),it(h),r=!0)},o(t){st(n.$$.fragment,t),st(c),st(h),r=!1},d(t){t&&_(e),ut(n),c&&c.d(),h&&h.d()}}}function Xa(t){let e,n;return e=new Ja({props:{steps:t[1],stepName:t[11],levels:t[6],boxes:t[0]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};2&n&&(i.steps=t[1]),1&n&&(i.boxes=t[0]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ga(t){let e,n,i=t[5]&&Za(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[5]&&i.p(t,e)},i(t){n||(it(i),n=!0)},o(t){st(i),n=!1},d(t){i&&i.d(t),t&&_(e)}}}function Ka(t,e,n){var i;let{steps:s}=e,{stepName:o}=e,{levels:r=0}=e,{boxes:a={}}=e,l=null;I((()=>{l&&n(0,a[o]=l,a)}));let c=s[o];c||console.warn("step ",o," not found");const h="foreach"===(null==c?void 0:c.type)?r+1:"join"===(null==c?void 0:c.type)?r-1:r;let u=null===(i=null==c?void 0:c.next)||void 0===i?void 0:i.find((t=>{var e;return"join"!==(null===(e=s[t])||void 0===e?void 0:e.type)}));return t.$$set=t=>{"steps"in t&&n(1,s=t.steps),"stepName"in t&&n(2,o=t.stepName),"levels"in t&&n(3,r=t.levels),"boxes"in t&&n(0,a=t.boxes)},[a,s,o,r,l,c,h,u,function(t){l=t,n(4,l)}]}class Ja extends pt{constructor(t){super(),ft(this,t,Ka,Ga,r,{steps:1,stepName:2,levels:3,boxes:0})}}function Qa(e){let n;return{c(){n=$("p"),n.textContent="No start step"},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&_(n)}}}function tl(t){let e,n,i;function s(e){t[6](e)}let o={steps:t[3],stepName:"start"};return void 0!==t[0]&&(o.boxes=t[0]),e=new Ja({props:o}),V.push((()=>lt(e,"boxes",s))),{c(){ct(e.$$.fragment)},m(t,n){ht(e,t,n),i=!0},p(t,i){const s={};!n&&1&i&&(n=!0,s.boxes=t[0],Z((()=>n=!1))),e.$set(s)},i(t){i||(it(e.$$.fragment,t),i=!0)},o(t){st(e.$$.fragment,t),i=!1},d(t){ut(e,t)}}}function el(t){let e,n;return e=new Ia({props:{boxes:t[0],steps:t[3],container:t[1]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.boxes=t[0]),2&n&&(i.container=t[1]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function nl(t){let e,n,i,s,o,r,a,l=!t[2]&&Object.keys(t[0]).length;const c=[tl,Qa],h=[];n=function(t,e){return t[3]?.start?0:1}(t),i=h[n]=c[n](t);let u=l&&el(t);return{c(){e=$("div"),i.c(),s=C(),u&&u.c(),O(e,"position","relative"),O(e,"line-height","1"),L(e,"data-component","dag")},m(i,l){y(i,e,l),h[n].m(e,null),x(e,s),u&&u.m(e,null),t[7](e),o=!0,r||(a=S(window,"resize",t[4]),r=!0)},p(t,[n]){i.p(t,n),5&n&&(l=!t[2]&&Object.keys(t[0]).length),l?u?(u.p(t,n),5&n&&it(u,1)):(u=el(t),u.c(),it(u,1),u.m(e,null)):u&&(et(),st(u,1,1,(()=>{u=null})),nt())},i(t){o||(it(i),it(u),o=!0)},o(t){st(i),st(u),o=!1},d(i){i&&_(e),h[n].d(),u&&u.d(),t[7](null),r=!1,a()}}}const il=100;function sl(t,e,n){let i;var s;h(t,_t,(t=>n(10,i=t)));let{componentData:o}=e;const{data:r}=o;let a,l,c={};N(Fa,Ct(null===(s=null==i?void 0:i.metadata)||void 0===s?void 0:s.pathspec,"stepname"));let u=!1;return t.$$set=t=>{"componentData"in t&&n(5,o=t.componentData)},[c,a,u,r,()=>{n(2,u=!0),clearTimeout(l),l=setTimeout((()=>{n(2,u=!1)}),il)},o,function(t){c=t,n(0,c)},function(t){V[t?"unshift":"push"]((()=>{a=t,n(1,a)}))}]}class ol extends pt{constructor(t){super(),ft(this,t,sl,nl,r,{componentData:5})}}function rl(e){let n;return{c(){n=$("h2"),n.textContent=`${e[0]}`,L(n,"class","title svelte-117s0ws"),L(n,"data-component","title")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&_(n)}}}function al(t,e,n){let{componentData:i}=e;const{text:s}=i;return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},[s,i]}class ll extends pt{constructor(t){super(),ft(this,t,al,rl,r,{componentData:1})}}function cl(e){let n,i,s=e[0].text+"";return{c(){n=$("p"),i=w(s),L(n,"class","subtitle svelte-lu9pnn"),L(n,"data-component","subtitle")},m(t,e){y(t,n,e),x(n,i)},p(t,[e]){1&e&&s!==(s=t[0].text+"")&&P(i,s)},i:t,o:t,d(t){t&&_(n)}}}function hl(t,e,n){let{componentData:i}=e;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i]}class ul extends pt{constructor(t){super(),ft(this,t,hl,cl,r,{componentData:0})}}function dl(e){let n,i,s,o=e[0]&&function(e){let n,i;return n=new ll({props:{componentData:{type:"title",text:e[0]}}}),{c(){ct(n.$$.fragment)},m(t,e){ht(n,t,e),i=!0},p:t,i(t){i||(it(n.$$.fragment,t),i=!0)},o(t){st(n.$$.fragment,t),i=!1},d(t){ut(n,t)}}}(e),r=e[1]&&function(e){let n,i;return n=new ul({props:{componentData:{type:"subtitle",text:e[1]}}}),{c(){ct(n.$$.fragment)},m(t,e){ht(n,t,e),i=!0},p:t,i(t){i||(it(n.$$.fragment,t),i=!0)},o(t){st(n.$$.fragment,t),i=!1},d(t){ut(n,t)}}}(e);return{c(){n=$("header"),o&&o.c(),i=C(),r&&r.c(),L(n,"class","container svelte-1ugmt5d"),L(n,"data-component","heading")},m(t,e){y(t,n,e),o&&o.m(n,null),x(n,i),r&&r.m(n,null),s=!0},p(t,[e]){t[0]&&o.p(t,e),t[1]&&r.p(t,e)},i(t){s||(it(o),it(r),s=!0)},o(t){st(o),st(r),s=!1},d(t){t&&_(n),o&&o.d(),r&&r.d()}}}function fl(t,e,n){let{componentData:i}=e;const{title:s,subtitle:o}=i;return t.$$set=t=>{"componentData"in t&&n(2,i=t.componentData)},[s,o,i]}class pl extends pt{constructor(t){super(),ft(this,t,fl,dl,r,{componentData:2})}}function gl(e){let n,i,s,o,r,a,l,h,u=e[2]&&function(e){let n;return{c(){n=$("div"),n.textContent=`${e[2]}`,L(n,"class","label svelte-1x96yvr")},m(t,e){y(t,n,e)},p:t,d(t){t&&_(n)}}}(e),d=e[3]&&function(e){let n;return{c(){n=$("figcaption"),n.textContent=`${e[3]}`,L(n,"class","description svelte-1x96yvr")},m(t,e){y(t,n,e)},p:t,d(t){t&&_(n)}}}(e);return{c(){n=$("figure"),i=$("div"),s=$("img"),r=C(),u&&u.c(),a=C(),d&&d.c(),c(s.src,o=e[1])||L(s,"src",o),L(s,"alt",e[2]||"image"),L(s,"class","svelte-1x96yvr"),L(i,"class","imageContainer"),L(n,"data-component","image"),L(n,"class","svelte-1x96yvr")},m(t,o){y(t,n,o),x(n,i),x(i,s),x(n,r),u&&u.m(n,null),x(n,a),d&&d.m(n,null),l||(h=S(n,"click",e[4]),l=!0)},p(t,[e]){t[2]&&u.p(t,e),t[3]&&d.p(t,e)},i:t,o:t,d(t){t&&_(n),u&&u.d(),d&&d.d(),l=!1,h()}}}function ml(t,e,n){let{componentData:i}=e;const{src:s,label:o,description:r}=i;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i,s,o,r,()=>$t.set(i)]}class bl extends pt{constructor(t){super(),ft(this,t,ml,gl,r,{componentData:0})}}function xl(e){let n,i;return{c(){n=$("div"),i=$("canvas"),L(n,"data-component","line-chart")},m(t,s){y(t,n,s),x(n,i),e[2](i)},p:t,i:t,o:t,d(t){t&&_(n),e[2](null)}}}function yl(t,e,n){dr.register(Dr,ea,zs,Kr,Or);let{componentData:i}=e;const{config:s,data:o,labels:r}=i;let a;const l=s||{type:"line",data:{labels:r,datasets:[{backgroundColor:ka[2],borderColor:ka[2],data:o||[]}]},options:{plugins:{legend:{display:!1}}}};return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},t.$$.update=()=>{1&t.$$.dirty&&a&&new dr(a,l)},[a,i,function(t){V[t?"unshift":"push"]((()=>{a=t,n(0,a)}))}]}class _l extends pt{constructor(t){super(),ft(this,t,yl,xl,r,{componentData:1})}}function vl(e){let n,i,s,o,r,a,l,c=e[0].data+"";return{c(){n=$("pre"),i=w(" \n "),s=$("code"),o=w("\n "),r=w(c),a=w("\n "),l=w("\n"),L(s,"class","mono language-log"),L(n,"class","log svelte-1jhmsu"),L(n,"data-component","log")},m(t,c){y(t,n,c),x(n,i),x(n,s),x(s,o),x(s,r),x(s,a),e[2](s),x(n,l)},p(t,[e]){1&e&&c!==(c=t[0].data+"")&&P(r,c)},i:t,o:t,d(t){t&&_(n),e[2](null)}}}function $l(t,e,n){let i,{componentData:s}=e;return t.$$set=t=>{"componentData"in t&&n(0,s=t.componentData)},t.$$.update=()=>{2&t.$$.dirty&&i&&function(){var t;i&&(null===(t=null===window||void 0===window?void 0:window.Prism)||void 0===t||t.highlightElement(i))}()},[s,i,function(t){V[t?"unshift":"push"]((()=>{i=t,n(1,i)}))}]}class kl extends pt{constructor(t){super(),ft(this,t,$l,vl,r,{componentData:0})}}function wl(t,e,n){const i=t.slice();return i[18]=e[n],i}function Cl(t,e,n){const i=t.slice();return i[18]=e[n],i}function Ml(t,e,n){const i=t.slice();return i[10]=e[n],i}function Sl(t,e,n){const i=t.slice();return i[13]=e[n],i[15]=n,i}function Ll(t,e,n){const i=t.slice();return i[16]=e[n],i[15]=n,i}function Dl(t,e,n){const i=t.slice();return i[7]=e[n],i}function Pl(t){let e,n,i,s;const o=[Tl,El,Al],r=[];function a(t,e){return"table"===t[0]?0:"list"===t[0]?1:2}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}function Ol(t){let e,n,i=t[1],s=[];for(let e=0;e<i.length;e+=1)s[e]=nc(Dl(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(34&n){let r;for(i=t[1],r=0;r<i.length;r+=1){const o=Dl(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=nc(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function Al(t){let n,i,s;const o=[t[6]];var r=t[5][t[0]];function a(t){let n={$$slots:{default:[Il]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=T(r,a(t))),{c(){n&&ct(n.$$.fragment),i=M()},m(t,e){n&&ht(n,t,e),y(t,i,e),s=!0},p(t,e){const s=64&e?rt(o,[at(t[6])]):{};if(8388706&e&&(s.$$scope={dirty:e,ctx:t}),33&e&&r!==(r=t[5][t[0]])){if(n){et();const t=n;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(n=T(r,a(t)),ct(n.$$.fragment),it(n.$$.fragment,1),ht(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&it(n.$$.fragment,t),s=!0)},o(t){n&&st(n.$$.fragment,t),s=!1},d(t){t&&_(i),n&&ut(n,t)}}}function El(t){let e,n,i,s;const o=[Nl,Fl],r=[];function a(t,e){return t[4]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}function Tl(t){let e,n,i;var s=t[5].table;function o(t){return{props:{$$slots:{default:[ec]},$$scope:{ctx:t}}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(8388716&i&&(r.$$scope={dirty:i,ctx:t}),32&i&&s!==(s=t[5].table)){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function Rl(e){let n,i=e[6].raw+"";return{c(){n=w(i)},m(t,e){y(t,n,e)},p(t,e){64&e&&i!==(i=t[6].raw+"")&&P(n,i)},i:t,o:t,d(t){t&&_(n)}}}function zl(t){let e,n;return e=new oc({props:{tokens:t[1],renderers:t[5]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};2&n&&(i.tokens=t[1]),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Il(t){let e,n,i,s;const o=[zl,Rl],r=[];function a(t,e){return t[1]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}function Fl(t){let n,i,s;const o=[{ordered:t[4]},t[6]];var r=t[5].list;function a(t){let n={$$slots:{default:[Vl]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=T(r,a(t))),{c(){n&&ct(n.$$.fragment),i=M()},m(t,e){n&&ht(n,t,e),y(t,i,e),s=!0},p(t,e){const s=80&e?rt(o,[16&e&&{ordered:t[4]},64&e&&at(t[6])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),32&e&&r!==(r=t[5].list)){if(n){et();const t=n;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(n=T(r,a(t)),ct(n.$$.fragment),it(n.$$.fragment,1),ht(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&it(n.$$.fragment,t),s=!0)},o(t){n&&st(n.$$.fragment,t),s=!1},d(t){t&&_(i),n&&ut(n,t)}}}function Nl(t){let n,i,s;const o=[{ordered:t[4]},t[6]];var r=t[5].list;function a(t){let n={$$slots:{default:[Ul]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=T(r,a(t))),{c(){n&&ct(n.$$.fragment),i=M()},m(t,e){n&&ht(n,t,e),y(t,i,e),s=!0},p(t,e){const s=80&e?rt(o,[16&e&&{ordered:t[4]},64&e&&at(t[6])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),32&e&&r!==(r=t[5].list)){if(n){et();const t=n;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(n=T(r,a(t)),ct(n.$$.fragment),it(n.$$.fragment,1),ht(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&it(n.$$.fragment,t),s=!0)},o(t){n&&st(n.$$.fragment,t),s=!1},d(t){t&&_(i),n&&ut(n,t)}}}function jl(t){let e,n,i;return e=new oc({props:{tokens:t[18].tokens,renderers:t[5]}}),{c(){ct(e.$$.fragment),n=C()},m(t,s){ht(e,t,s),y(t,n,s),i=!0},p(t,n){const i={};64&n&&(i.tokens=t[18].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){i||(it(e.$$.fragment,t),i=!0)},o(t){st(e.$$.fragment,t),i=!1},d(t){ut(e,t),t&&_(n)}}}function Bl(t){let n,i,s;const o=[t[18]];var r=t[5].unorderedlistitem||t[5].listitem;function a(t){let n={$$slots:{default:[jl]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=T(r,a(t))),{c(){n&&ct(n.$$.fragment),i=M()},m(t,e){n&&ht(n,t,e),y(t,i,e),s=!0},p(t,e){const s=64&e?rt(o,[at(t[18])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),32&e&&r!==(r=t[5].unorderedlistitem||t[5].listitem)){if(n){et();const t=n;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(n=T(r,a(t)),ct(n.$$.fragment),it(n.$$.fragment,1),ht(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&it(n.$$.fragment,t),s=!0)},o(t){n&&st(n.$$.fragment,t),s=!1},d(t){t&&_(i),n&&ut(n,t)}}}function Vl(t){let e,n,i=t[6].items,s=[];for(let e=0;e<i.length;e+=1)s[e]=Bl(wl(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(96&n){let r;for(i=t[6].items,r=0;r<i.length;r+=1){const o=wl(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Bl(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function Hl(t){let e,n,i;return e=new oc({props:{tokens:t[18].tokens,renderers:t[5]}}),{c(){ct(e.$$.fragment),n=C()},m(t,s){ht(e,t,s),y(t,n,s),i=!0},p(t,n){const i={};64&n&&(i.tokens=t[18].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){i||(it(e.$$.fragment,t),i=!0)},o(t){st(e.$$.fragment,t),i=!1},d(t){ut(e,t),t&&_(n)}}}function Wl(t){let n,i,s;const o=[t[18]];var r=t[5].orderedlistitem||t[5].listitem;function a(t){let n={$$slots:{default:[Hl]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)n=e(n,o[t]);return{props:n}}return r&&(n=T(r,a(t))),{c(){n&&ct(n.$$.fragment),i=M()},m(t,e){n&&ht(n,t,e),y(t,i,e),s=!0},p(t,e){const s=64&e?rt(o,[at(t[18])]):{};if(8388704&e&&(s.$$scope={dirty:e,ctx:t}),32&e&&r!==(r=t[5].orderedlistitem||t[5].listitem)){if(n){et();const t=n;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(n=T(r,a(t)),ct(n.$$.fragment),it(n.$$.fragment,1),ht(n,i.parentNode,i)):n=null}else r&&n.$set(s)},i(t){s||(n&&it(n.$$.fragment,t),s=!0)},o(t){n&&st(n.$$.fragment,t),s=!1},d(t){t&&_(i),n&&ut(n,t)}}}function Ul(t){let e,n,i=t[6].items,s=[];for(let e=0;e<i.length;e+=1)s[e]=Wl(Cl(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(96&n){let r;for(i=t[6].items,r=0;r<i.length;r+=1){const o=Cl(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Wl(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function ql(t){let e,n,i;return e=new oc({props:{tokens:t[16].tokens,renderers:t[5]}}),{c(){ct(e.$$.fragment),n=C()},m(t,s){ht(e,t,s),y(t,n,s),i=!0},p(t,n){const i={};4&n&&(i.tokens=t[16].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){i||(it(e.$$.fragment,t),i=!0)},o(t){st(e.$$.fragment,t),i=!1},d(t){ut(e,t),t&&_(n)}}}function Yl(t){let e,n,i;var s=t[5].tablecell;function o(t){return{props:{header:!0,align:t[6].align[t[15]]||"center",$$slots:{default:[ql]},$$scope:{ctx:t}}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(64&i&&(r.align=t[6].align[t[15]]||"center"),8388644&i&&(r.$$scope={dirty:i,ctx:t}),32&i&&s!==(s=t[5].tablecell)){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function Zl(t){let e,n,i=t[2],s=[];for(let e=0;e<i.length;e+=1)s[e]=Yl(Ll(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(100&n){let r;for(i=t[2],r=0;r<i.length;r+=1){const o=Ll(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Yl(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function Xl(t){let e,n,i;var s=t[5].tablerow;function o(t){return{props:{$$slots:{default:[Zl]},$$scope:{ctx:t}}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(8388708&i&&(r.$$scope={dirty:i,ctx:t}),32&i&&s!==(s=t[5].tablerow)){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function Gl(t){let e,n;return e=new oc({props:{tokens:t[13].tokens,renderers:t[5]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};8&n&&(i.tokens=t[13].tokens),32&n&&(i.renderers=t[5]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Kl(t){let e,n,i;var s=t[5].tablecell;function o(t){return{props:{header:!1,align:t[6].align[t[15]]||"center",$$slots:{default:[Gl]},$$scope:{ctx:t}}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(64&i&&(r.align=t[6].align[t[15]]||"center"),8388648&i&&(r.$$scope={dirty:i,ctx:t}),32&i&&s!==(s=t[5].tablecell)){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function Jl(t){let e,n,i=t[10],s=[];for(let e=0;e<i.length;e+=1)s[e]=Kl(Sl(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=C()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(104&n){let r;for(i=t[10],r=0;r<i.length;r+=1){const o=Sl(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Kl(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function Ql(t){let e,n,i;var s=t[5].tablerow;function o(t){return{props:{$$slots:{default:[Jl]},$$scope:{ctx:t}}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(8388712&i&&(r.$$scope={dirty:i,ctx:t}),32&i&&s!==(s=t[5].tablerow)){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function tc(t){let e,n,i=t[3],s=[];for(let e=0;e<i.length;e+=1)s[e]=Ql(Ml(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(104&n){let r;for(i=t[3],r=0;r<i.length;r+=1){const o=Ml(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Ql(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function ec(t){let e,n,i,s,o;var r=t[5].tablehead;function a(t){return{props:{$$slots:{default:[Xl]},$$scope:{ctx:t}}}}r&&(e=T(r,a(t)));var l=t[5].tablebody;function c(t){return{props:{$$slots:{default:[tc]},$$scope:{ctx:t}}}}return l&&(i=T(l,c(t))),{c(){e&&ct(e.$$.fragment),n=C(),i&&ct(i.$$.fragment),s=M()},m(t,r){e&&ht(e,t,r),y(t,n,r),i&&ht(i,t,r),y(t,s,r),o=!0},p(t,o){const h={};if(8388708&o&&(h.$$scope={dirty:o,ctx:t}),32&o&&r!==(r=t[5].tablehead)){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(e=T(r,a(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else r&&e.$set(h);const u={};if(8388712&o&&(u.$$scope={dirty:o,ctx:t}),32&o&&l!==(l=t[5].tablebody)){if(i){et();const t=i;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}l?(i=T(l,c(t)),ct(i.$$.fragment),it(i.$$.fragment,1),ht(i,s.parentNode,s)):i=null}else l&&i.$set(u)},i(t){o||(e&&it(e.$$.fragment,t),i&&it(i.$$.fragment,t),o=!0)},o(t){e&&st(e.$$.fragment,t),i&&st(i.$$.fragment,t),o=!1},d(t){e&&ut(e,t),t&&_(n),t&&_(s),i&&ut(i,t)}}}function nc(t){let n,i;const s=[t[7],{renderers:t[5]}];let o={};for(let t=0;t<s.length;t+=1)o=e(o,s[t]);return n=new oc({props:o}),{c(){ct(n.$$.fragment)},m(t,e){ht(n,t,e),i=!0},p(t,e){const i=34&e?rt(s,[2&e&&at(t[7]),32&e&&{renderers:t[5]}]):{};n.$set(i)},i(t){i||(it(n.$$.fragment,t),i=!0)},o(t){st(n.$$.fragment,t),i=!1},d(t){ut(n,t)}}}function ic(t){let e,n,i,s;const o=[Ol,Pl],r=[];function a(t,e){return t[0]?t[5][t[0]]?1:-1:0}return~(e=a(t))&&(n=r[e]=o[e](t)),{c(){n&&n.c(),i=M()},m(t,n){~e&&r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?~e&&r[e].p(t,s):(n&&(et(),st(r[l],1,1,(()=>{r[l]=null})),nt()),~e?(n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i)):n=null)},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){~e&&r[e].d(t),t&&_(i)}}}function sc(t,n,i){const s=["type","tokens","header","rows","ordered","renderers"];let o=b(n,s),{type:r}=n,{tokens:a}=n,{header:l}=n,{rows:c}=n,{ordered:h=!1}=n,{renderers:u}=n;return function(){const t=console.warn;console.warn=e=>{e.includes("unknown prop")||e.includes("unexpected slot")||t(e)},I((()=>{console.warn=t}))}(),t.$$set=t=>{n=e(e({},n),m(t)),i(6,o=b(n,s)),"type"in t&&i(0,r=t.type),"tokens"in t&&i(1,a=t.tokens),"header"in t&&i(2,l=t.header),"rows"in t&&i(3,c=t.rows),"ordered"in t&&i(4,h=t.ordered),"renderers"in t&&i(5,u=t.renderers)},[r,a,l,c,h,u,o]}class oc extends pt{constructor(t){super(),ft(this,t,sc,ic,r,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}}function rc(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ac={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const lc=/[&<>"']/,cc=new RegExp(lc.source,"g"),hc=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,uc=new RegExp(hc.source,"g"),dc={"&":"&","<":"<",">":">",'"':""","'":"'"},fc=t=>dc[t];function pc(t,e){if(e){if(lc.test(t))return t.replace(cc,fc)}else if(hc.test(t))return t.replace(uc,fc);return t}const gc=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function mc(t){return t.replace(gc,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const bc=/(^|[^\[])\^/g;function xc(t,e){t="string"==typeof t?t:t.source,e=e||"";const n={replace:(e,i)=>(i=(i=i.source||i).replace(bc,"$1"),t=t.replace(e,i),n),getRegex:()=>new RegExp(t,e)};return n}const yc=/[^\w:]/g,_c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function vc(t,e,n){if(t){let t;try{t=decodeURIComponent(mc(n)).replace(yc,"").toLowerCase()}catch(t){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}e&&!_c.test(n)&&(n=function(t,e){$c[" "+t]||(kc.test(t)?$c[" "+t]=t+"/":$c[" "+t]=Lc(t,"/",!0));t=$c[" "+t];const n=-1===t.indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(wc,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(Cc,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}const $c={},kc=/^[^:]+:\/*[^/]*$/,wc=/^([^:]+:)[\s\S]*$/,Cc=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Mc={exec:function(){}};function Sc(t,e){const n=t.replace(/\|/g,((t,e,n)=>{let i=!1,s=e;for(;--s>=0&&"\\"===n[s];)i=!i;return i?"|":" |"})),i=n.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function Lc(t,e,n){const i=t.length;if(0===i)return"";let s=0;for(;s<i;){const o=t.charAt(i-s-1);if(o!==e||n){if(o===e||!n)break;s++}else s++}return t.slice(0,i-s)}function Dc(t,e){if(e<1)return"";let n="";for(;e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function Pc(t,e,n,i){const s=e.href,o=e.title?pc(e.title):null,r=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const t={type:"link",raw:n,href:s,title:o,text:r,tokens:i.inlineTokens(r)};return i.state.inLink=!1,t}return{type:"image",raw:n,href:s,title:o,text:pc(r)}}class Oc{constructor(t){this.options=t||ac}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:Lc(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e){const n=t.match(/^(\s+)(?:```)/);if(null===n)return e;const i=n[1];return e.split("\n").map((t=>{const e=t.match(/^\s+/);if(null===e)return t;const[n]=e;return n.length>=i.length?t.slice(i.length):t})).join("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(/#$/.test(t)){const e=Lc(t,"#");this.options.pedantic?t=e.trim():e&&!/ $/.test(e)||(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const t=e[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(t);return this.lexer.state.top=n,{type:"blockquote",raw:e[0],tokens:i,text:t}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n,i,s,o,r,a,l,c,h,u,d,f,p=e[1].trim();const g=p.length>1,m={type:"list",raw:"",ordered:g,start:g?+p.slice(0,-1):"",loose:!1,items:[]};p=g?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=g?p:"[*+-]");const b=new RegExp(`^( {0,3}${p})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(f=!1,e=b.exec(t))&&!this.rules.block.hr.test(t);){if(n=e[0],t=t.substring(n.length),c=e[2].split("\n",1)[0].replace(/^\t+/,(t=>" ".repeat(3*t.length))),h=t.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=e[1].length),a=!1,!c&&/^ *$/.test(h)&&(n+=h+"\n",t=t.substring(h.length+1),f=!0),!f){const e=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),s=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;t&&(u=t.split("\n",1)[0],h=u,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!s.test(h))&&!r.test(h)&&!e.test(h)&&!i.test(t);){if(h.search(/[^ ]/)>=o||!h.trim())d+="\n"+h.slice(o);else{if(a)break;if(c.search(/[^ ]/)>=4)break;if(s.test(c))break;if(r.test(c))break;if(i.test(c))break;d+="\n"+h}a||h.trim()||(a=!0),n+=u+"\n",t=t.substring(u.length+1),c=h.slice(o)}}m.loose||(l?m.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(d),i&&(s="[ ] "!==i[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!i,checked:s,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const x=m.items.length;for(r=0;r<x;r++)if(this.lexer.state.top=!1,m.items[r].tokens=this.lexer.blockTokens(m.items[r].text,[]),!m.loose){const t=m.items[r].tokens.filter((t=>"space"===t.type)),e=t.length>0&&t.some((t=>/\n.*\n/.test(t.raw)));m.loose=e}if(m.loose)for(r=0;r<x;r++)m.items[r].loose=!0;return m}}html(t){const e=this.rules.block.html.exec(t);if(e){const t={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(e[0]):pc(e[0]);t.type="paragraph",t.text=n,t.tokens=this.lexer.inline(n)}return t}}def(t){const e=this.rules.block.def.exec(t);if(e){const t=e[1].toLowerCase().replace(/\s+/g," "),n=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:i}}}table(t){const e=this.rules.block.table.exec(t);if(e){const t={type:"table",header:Sc(e[1]).map((t=>({text:t}))),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];let n,i,s,o,r=t.align.length;for(n=0;n<r;n++)/^ *-+: *$/.test(t.align[n])?t.align[n]="right":/^ *:-+: *$/.test(t.align[n])?t.align[n]="center":/^ *:-+ *$/.test(t.align[n])?t.align[n]="left":t.align[n]=null;for(r=t.rows.length,n=0;n<r;n++)t.rows[n]=Sc(t.rows[n],t.header.length).map((t=>({text:t})));for(r=t.header.length,i=0;i<r;i++)t.header[i].tokens=this.lexer.inline(t.header[i].text);for(r=t.rows.length,i=0;i<r;i++)for(o=t.rows[i],s=0;s<o.length;s++)o[s].tokens=this.lexer.inline(o[s].text);return t}}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:pc(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):pc(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const e=Lc(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;const n=t.length;let i=0,s=0;for(;s<n;s++)if("\\"===t[s])s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return-1}(e[2],"()");if(t>-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){const t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);t&&(n=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(t)?n.slice(1):n.slice(1,-1)),Pc(e,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:i?i.replace(this.rules.inline._escapes,"$1"):i},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=(n[2]||n[1]).replace(/\s+/g," ");if(t=e[t.toLowerCase()],!t){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return Pc(n,t,n[0],this.lexer)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=i[1]||i[2]||"";if(!s||s&&(""===n||this.rules.inline.punctuation.exec(n))){const n=i[0].length-1;let s,o,r=n,a=0;const l="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);null!=(i=l.exec(e));){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=s.length,i[3]||i[4]){r+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(r-=o,r>0)continue;o=Math.min(o,o+r+a);const e=t.slice(0,n+i.index+(i[0].length-s.length)+o);if(Math.min(n,o)%2){const t=e.slice(1,-1);return{type:"em",raw:e,text:t,tokens:this.lexer.inlineTokens(t)}}const l=e.slice(2,-2);return{type:"strong",raw:e,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(/\n/g," ");const n=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return n&&i&&(t=t.substring(1,t.length-1)),t=pc(t,!0),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t,e){const n=this.rules.inline.autolink.exec(t);if(n){let t,i;return"@"===n[2]?(t=pc(this.options.mangle?e(n[1]):n[1]),i="mailto:"+t):(t=pc(n[1]),i=t),{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}url(t,e){let n;if(n=this.rules.inline.url.exec(t)){let t,i;if("@"===n[2])t=pc(this.options.mangle?e(n[0]):n[0]),i="mailto:"+t;else{let e;do{e=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(e!==n[0]);t=pc(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t,e){const n=this.rules.inline.text.exec(t);if(n){let t;return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):pc(n[0]):n[0]:pc(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:t}}}}const Ac={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Mc,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ac.def=xc(Ac.def).replace("label",Ac._label).replace("title",Ac._title).getRegex(),Ac.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ac.listItemStart=xc(/^( *)(bull) */).replace("bull",Ac.bullet).getRegex(),Ac.list=xc(Ac.list).replace(/bull/g,Ac.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ac.def.source+")").getRegex(),Ac._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ac._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ac.html=xc(Ac.html,"i").replace("comment",Ac._comment).replace("tag",Ac._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ac.paragraph=xc(Ac._paragraph).replace("hr",Ac.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ac._tag).getRegex(),Ac.blockquote=xc(Ac.blockquote).replace("paragraph",Ac.paragraph).getRegex(),Ac.normal={...Ac},Ac.gfm={...Ac.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Ac.gfm.table=xc(Ac.gfm.table).replace("hr",Ac.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ac._tag).getRegex(),Ac.gfm.paragraph=xc(Ac._paragraph).replace("hr",Ac.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ac.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ac._tag).getRegex(),Ac.pedantic={...Ac.normal,html:xc("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ac._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Mc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xc(Ac.normal._paragraph).replace("hr",Ac.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ac.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ec={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Mc,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Mc,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Tc(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Rc(t){let e,n,i="";const s=t.length;for(e=0;e<s;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}Ec._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ec.punctuation=xc(Ec.punctuation).replace(/punctuation/g,Ec._punctuation).getRegex(),Ec.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ec.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Ec._comment=xc(Ac._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ec.emStrong.lDelim=xc(Ec.emStrong.lDelim).replace(/punct/g,Ec._punctuation).getRegex(),Ec.emStrong.rDelimAst=xc(Ec.emStrong.rDelimAst,"g").replace(/punct/g,Ec._punctuation).getRegex(),Ec.emStrong.rDelimUnd=xc(Ec.emStrong.rDelimUnd,"g").replace(/punct/g,Ec._punctuation).getRegex(),Ec._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ec._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ec._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ec.autolink=xc(Ec.autolink).replace("scheme",Ec._scheme).replace("email",Ec._email).getRegex(),Ec._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ec.tag=xc(Ec.tag).replace("comment",Ec._comment).replace("attribute",Ec._attribute).getRegex(),Ec._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ec._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ec._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ec.link=xc(Ec.link).replace("label",Ec._label).replace("href",Ec._href).replace("title",Ec._title).getRegex(),Ec.reflink=xc(Ec.reflink).replace("label",Ec._label).replace("ref",Ac._label).getRegex(),Ec.nolink=xc(Ec.nolink).replace("ref",Ac._label).getRegex(),Ec.reflinkSearch=xc(Ec.reflinkSearch,"g").replace("reflink",Ec.reflink).replace("nolink",Ec.nolink).getRegex(),Ec.normal={...Ec},Ec.pedantic={...Ec.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:xc(/^!?\[(label)\]\((.*?)\)/).replace("label",Ec._label).getRegex(),reflink:xc(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ec._label).getRegex()},Ec.gfm={...Ec.normal,escape:xc(Ec.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ec.gfm.url=xc(Ec.gfm.url,"i").replace("email",Ec.gfm._extended_email).getRegex(),Ec.breaks={...Ec.gfm,br:xc(Ec.br).replace("{2,}","*").getRegex(),text:xc(Ec.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class zc{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ac,this.options.tokenizer=this.options.tokenizer||new Oc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:Ac.normal,inline:Ec.normal};this.options.pedantic?(e.block=Ac.pedantic,e.inline=Ec.pedantic):this.options.gfm&&(e.block=Ac.gfm,this.options.breaks?e.inline=Ec.breaks:e.inline=Ec.gfm),this.tokenizer.rules=e}static get rules(){return{block:Ac,inline:Ec}}static lex(t,e){return new zc(e).lex(t)}static lexInline(t,e){return new zc(e).inlineTokens(t)}lex(t){let e;for(t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens}blockTokens(t,e=[]){let n,i,s,o;for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,((t,e,n)=>e+" ".repeat(n.length)));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else{if(s=t,this.options.extensions&&this.options.extensions.startBlock){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(s=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=s.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,i,s,o,r,a,l=t;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)t.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+Dc("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+Dc("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(r||(a=""),r=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,l,a))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,Rc))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,Rc))){if(s=t,this.options.extensions&&this.options.extensions.startInline){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(s=t.substring(0,e+1))}if(n=this.tokenizer.inlineText(s,Tc))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),r=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}else t=t.substring(n.raw.length),e.push(n);return e}}class Ic{constructor(t){this.options=t||ac}code(t,e,n){const i=(e||"").match(/\S*/)[0];if(this.options.highlight){const e=this.options.highlight(t,i);null!=e&&e!==t&&(n=!0,t=e)}return t=t.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+pc(i)+'">'+(n?t:pc(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:pc(t,!0))+"</code></pre>\n"}blockquote(t){return`<blockquote>\n${t}</blockquote>\n`}html(t){return t}heading(t,e,n,i){if(this.options.headerIds){return`<h${e} id="${this.options.headerPrefix+i.slug(n)}">${t}</h${e}>\n`}return`<h${e}>${t}</h${e}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(t,e,n){const i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+i+">\n"}listitem(t){return`<li>${t}</li>\n`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>\n`}table(t,e){return e&&(e=`<tbody>${e}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"}tablerow(t){return`<tr>\n${t}</tr>\n`}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,e,n){if(null===(t=vc(this.options.sanitize,this.options.baseUrl,t)))return n;let i='<a href="'+t+'"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>",i}image(t,e,n){if(null===(t=vc(this.options.sanitize,this.options.baseUrl,t)))return n;let i=`<img src="${t}" alt="${n}"`;return e&&(i+=` title="${e}"`),i+=this.options.xhtml?"/>":">",i}text(t){return t}}class Fc{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class Nc{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n}slug(t,e={}){const n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}class jc{constructor(t){this.options=t||ac,this.options.renderer=this.options.renderer||new Ic,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Fc,this.slugger=new Nc}static parse(t,e){return new jc(e).parse(t)}static parseInline(t,e){return new jc(e).parseInline(t)}parse(t,e=!0){let n,i,s,o,r,a,l,c,h,u,d,f,p,g,m,b,x,y,_,v="";const $=t.length;for(n=0;n<$;n++)if(u=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(_=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==_||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))v+=_||"";else switch(u.type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(u.tokens),u.depth,mc(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(c="",l="",o=u.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(u.header[i].tokens),{header:!0,align:u.align[i]});for(c+=this.renderer.tablerow(l),h="",o=u.rows.length,i=0;i<o;i++){for(a=u.rows[i],l="",r=a.length,s=0;s<r;s++)l+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:u.align[s]});h+=this.renderer.tablerow(l)}v+=this.renderer.table(c,h);continue;case"blockquote":h=this.parse(u.tokens),v+=this.renderer.blockquote(h);continue;case"list":for(d=u.ordered,f=u.start,p=u.loose,o=u.items.length,h="",i=0;i<o;i++)m=u.items[i],b=m.checked,x=m.task,g="",m.task&&(y=this.renderer.checkbox(b),p?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):g+=y),g+=this.parse(m.tokens,p),h+=this.renderer.listitem(g,x,b);v+=this.renderer.list(h,d,f);continue;case"html":v+=this.renderer.html(u.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(h=u.tokens?this.parseInline(u.tokens):u.text;n+1<$&&"text"===t[n+1].type;)u=t[++n],h+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);v+=e?this.renderer.paragraph(h):h;continue;default:{const t='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(t);throw new Error(t)}}return v}parseInline(t,e){e=e||this.renderer;let n,i,s,o="";const r=t.length;for(n=0;n<r;n++)if(i=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(s=this.options.extensions.renderers[i.type].call({parser:this},i),!1!==s||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)))o+=s||"";else switch(i.type){case"escape":case"text":o+=e.text(i.text);break;case"html":o+=e.html(i.text);break;case"link":o+=e.link(i.href,i.title,this.parseInline(i.tokens,e));break;case"image":o+=e.image(i.href,i.title,i.text);break;case"strong":o+=e.strong(this.parseInline(i.tokens,e));break;case"em":o+=e.em(this.parseInline(i.tokens,e));break;case"codespan":o+=e.codespan(i.text);break;case"br":o+=e.br();break;case"del":o+=e.del(this.parseInline(i.tokens,e));break;default:{const t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(t);throw new Error(t)}}return o}}class Bc{constructor(t){this.options=t||ac}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(t){return t}postprocess(t){return t}}function Vc(t,e){return(n,i,s)=>{"function"==typeof i&&(s=i,i=null);const o={...i},r=function(t,e,n){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="<p>An error occurred:</p><pre>"+pc(i.message+"",!0)+"</pre>";return e?Promise.resolve(t):n?void n(null,t):t}if(e)return Promise.reject(i);if(!n)throw i;n(i)}}((i={...Hc.defaults,...o}).silent,i.async,s);if(null==n)return r(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),s){const o=i.highlight;let a;try{i.hooks&&(n=i.hooks.preprocess(n)),a=t(n,i)}catch(t){return r(t)}const l=function(t){let n;if(!t)try{i.walkTokens&&Hc.walkTokens(a,i.walkTokens),n=e(a,i),i.hooks&&(n=i.hooks.postprocess(n))}catch(e){t=e}return i.highlight=o,t?r(t):s(null,n)};if(!o||o.length<3)return l();if(delete i.highlight,!a.length)return l();let c=0;return Hc.walkTokens(a,(function(t){"code"===t.type&&(c++,setTimeout((()=>{o(t.text,t.lang,(function(e,n){if(e)return l(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then((e=>t(e,i))).then((t=>i.walkTokens?Promise.all(Hc.walkTokens(t,i.walkTokens)).then((()=>t)):t)).then((t=>e(t,i))).then((t=>i.hooks?i.hooks.postprocess(t):t)).catch(r);try{i.hooks&&(n=i.hooks.preprocess(n));const s=t(n,i);i.walkTokens&&Hc.walkTokens(s,i.walkTokens);let o=e(s,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(t){return r(t)}}}function Hc(t,e,n){return Vc(zc.lex,jc.parse)(t,e,n)}Hc.options=Hc.setOptions=function(t){var e;return Hc.defaults={...Hc.defaults,...t},e=Hc.defaults,ac=e,Hc},Hc.getDefaults=rc,Hc.defaults=ac,Hc.use=function(...t){const e=Hc.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((t=>{const n={...t};if(n.async=Hc.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=n.apply(this,e)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=Hc.defaults.renderer||new Ic;for(const n in t.renderer){const i=e[n];e[n]=(...s)=>{let o=t.renderer[n].apply(e,s);return!1===o&&(o=i.apply(e,s)),o}}n.renderer=e}if(t.tokenizer){const e=Hc.defaults.tokenizer||new Oc;for(const n in t.tokenizer){const i=e[n];e[n]=(...s)=>{let o=t.tokenizer[n].apply(e,s);return!1===o&&(o=i.apply(e,s)),o}}n.tokenizer=e}if(t.hooks){const e=Hc.defaults.hooks||new Bc;for(const n in t.hooks){const i=e[n];Bc.passThroughHooks.has(n)?e[n]=s=>{if(Hc.defaults.async)return Promise.resolve(t.hooks[n].call(e,s)).then((t=>i.call(e,t)));const o=t.hooks[n].call(e,s);return i.call(e,o)}:e[n]=(...s)=>{let o=t.hooks[n].apply(e,s);return!1===o&&(o=i.apply(e,s)),o}}n.hooks=e}if(t.walkTokens){const e=Hc.defaults.walkTokens;n.walkTokens=function(n){let i=[];return i.push(t.walkTokens.call(this,n)),e&&(i=i.concat(e.call(this,n))),i}}Hc.setOptions(n)}))},Hc.walkTokens=function(t,e){let n=[];for(const i of t)switch(n=n.concat(e.call(Hc,i)),i.type){case"table":for(const t of i.header)n=n.concat(Hc.walkTokens(t.tokens,e));for(const t of i.rows)for(const i of t)n=n.concat(Hc.walkTokens(i.tokens,e));break;case"list":n=n.concat(Hc.walkTokens(i.items,e));break;default:Hc.defaults.extensions&&Hc.defaults.extensions.childTokens&&Hc.defaults.extensions.childTokens[i.type]?Hc.defaults.extensions.childTokens[i.type].forEach((function(t){n=n.concat(Hc.walkTokens(i[t],e))})):i.tokens&&(n=n.concat(Hc.walkTokens(i.tokens,e)))}return n},Hc.parseInline=Vc(zc.lexInline,jc.parseInline),Hc.Parser=jc,Hc.parser=jc.parse,Hc.Renderer=Ic,Hc.TextRenderer=Fc,Hc.Lexer=zc,Hc.lexer=zc.lex,Hc.Tokenizer=Oc,Hc.Slugger=Nc,Hc.Hooks=Bc,Hc.parse=Hc,Hc.options,Hc.setOptions,Hc.use,Hc.walkTokens,Hc.parseInline;const Wc={};function Uc(e){let n;return{c(){n=w(e[1])},m(t,e){y(t,n,e)},p(t,e){2&e&&P(n,t[1])},i:t,o:t,d(t){t&&_(n)}}}function qc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h6"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Yc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h5"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Zc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h4"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Xc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h3"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Gc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h2"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Kc(t){let e,n;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=$("h1"),s&&s.c(),L(e,"id",t[2])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||16&o)&&p(s,i,t,t[4],n?f(i,t[4],o,null):g(t[4]),null),(!n||4&o)&&L(e,"id",t[2])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Jc(t){let e,n,i,s;const o=[Kc,Gc,Xc,Zc,Yc,qc,Uc],r=[];function a(t,e){return 1===t[0]?0:2===t[0]?1:3===t[0]?2:4===t[0]?3:5===t[0]?4:6===t[0]?5:6}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}function Qc(t,e,n){let i,{$$slots:s={},$$scope:o}=e,{depth:r}=e,{raw:a}=e,{text:l}=e;const{slug:c,getOptions:h}=j(Wc),u=h();return t.$$set=t=>{"depth"in t&&n(0,r=t.depth),"raw"in t&&n(1,a=t.raw),"text"in t&&n(3,l=t.text),"$$scope"in t&&n(4,o=t.$$scope)},t.$$.update=()=>{8&t.$$.dirty&&n(2,i=u.headerIds?u.headerPrefix+c(l):void 0)},[r,a,i,l,o,s]}function th(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("p"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function eh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function nh(t){let e;const n=t[3].default,i=u(n,t,t[2],null);return{c(){i&&i.c()},m(t,n){i&&i.m(t,n),e=!0},p(t,[s]){i&&i.p&&(!e||4&s)&&p(i,n,t,t[2],e?f(n,t[2],s,null):g(t[2]),null)},i(t){e||(it(i,t),e=!0)},o(t){st(i,t),e=!1},d(t){i&&i.d(t)}}}function ih(t,e,n){let{$$slots:i={},$$scope:s}=e,{text:o}=e,{raw:r}=e;return t.$$set=t=>{"text"in t&&n(0,o=t.text),"raw"in t&&n(1,r=t.raw),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function sh(e){let n,i;return{c(){n=$("img"),c(n.src,i=e[0])||L(n,"src",i),L(n,"title",e[1]),L(n,"alt",e[2])},m(t,e){y(t,n,e)},p(t,[e]){1&e&&!c(n.src,i=t[0])&&L(n,"src",i),2&e&&L(n,"title",t[1]),4&e&&L(n,"alt",t[2])},i:t,o:t,d(t){t&&_(n)}}}function oh(t,e,n){let{href:i=""}=e,{title:s}=e,{text:o=""}=e;return t.$$set=t=>{"href"in t&&n(0,i=t.href),"title"in t&&n(1,s=t.title),"text"in t&&n(2,o=t.text)},[i,s,o]}function rh(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("a"),s&&s.c(),L(e,"href",t[0]),L(e,"title",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[o]){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||1&o)&&L(e,"href",t[0]),(!n||2&o)&&L(e,"title",t[1])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function ah(t,e,n){let{$$slots:i={},$$scope:s}=e,{href:o=""}=e,{title:r}=e;return t.$$set=t=>{"href"in t&&n(0,o=t.href),"title"in t&&n(1,r=t.title),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function lh(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("em"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function ch(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function hh(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("del"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function uh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function dh(e){let n,i,s=e[0].replace(/`/g,"")+"";return{c(){n=$("code"),i=w(s)},m(t,e){y(t,n,e),x(n,i)},p(t,[e]){1&e&&s!==(s=t[0].replace(/`/g,"")+"")&&P(i,s)},i:t,o:t,d(t){t&&_(n)}}}function fh(t,e,n){let{raw:i}=e;return t.$$set=t=>{"raw"in t&&n(0,i=t.raw)},[i]}function ph(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("strong"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function gh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function mh(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("table"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function bh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function xh(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("thead"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function yh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function _h(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("tbody"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function vh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function $h(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("tr"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function kh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function wh(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("td"),s&&s.c(),L(e,"align",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||2&o)&&L(e,"align",t[1])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Ch(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("th"),s&&s.c(),L(e,"align",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||2&o)&&L(e,"align",t[1])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Mh(t){let e,n,i,s;const o=[Ch,wh],r=[];function a(t,e){return t[0]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}function Sh(t,e,n){let{$$slots:i={},$$scope:s}=e,{header:o}=e,{align:r}=e;return t.$$set=t=>{"header"in t&&n(0,o=t.header),"align"in t&&n(1,r=t.align),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function Lh(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("ul"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,e){s&&s.p&&(!n||4&e)&&p(s,i,t,t[2],n?f(i,t[2],e,null):g(t[2]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Dh(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("ol"),s&&s.c(),L(e,"start",t[1])},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,o){s&&s.p&&(!n||4&o)&&p(s,i,t,t[2],n?f(i,t[2],o,null):g(t[2]),null),(!n||2&o)&&L(e,"start",t[1])},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Ph(t){let e,n,i,s;const o=[Dh,Lh],r=[];function a(t,e){return t[0]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}function Oh(t,e,n){let{$$slots:i={},$$scope:s}=e,{ordered:o}=e,{start:r}=e;return t.$$set=t=>{"ordered"in t&&n(0,o=t.ordered),"start"in t&&n(1,r=t.start),"$$scope"in t&&n(2,s=t.$$scope)},[o,r,s,i]}function Ah(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("li"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Eh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Th(e){let n;return{c(){n=$("hr")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&_(n)}}}function Rh(e){let n,i;return{c(){n=new E(!1),i=M(),n.a=i},m(t,s){n.m(e[0],t,s),y(t,i,s)},p(t,[e]){1&e&&n.p(t[0])},i:t,o:t,d(t){t&&_(i),t&&n.d()}}}function zh(t,e,n){let{text:i}=e;return t.$$set=t=>{"text"in t&&n(0,i=t.text)},[i]}function Ih(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("blockquote"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Fh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}function Nh(e){let n,i,s;return{c(){n=$("pre"),i=$("code"),s=w(e[1]),L(n,"class",e[0])},m(t,e){y(t,n,e),x(n,i),x(i,s)},p(t,[e]){2&e&&P(s,t[1]),1&e&&L(n,"class",t[0])},i:t,o:t,d(t){t&&_(n)}}}function jh(t,e,n){let{lang:i}=e,{text:s}=e;return t.$$set=t=>{"lang"in t&&n(0,i=t.lang),"text"in t&&n(1,s=t.text)},[i,s]}function Bh(t){let e,n;const i=t[1].default,s=u(i,t,t[0],null);return{c(){e=$("br"),s&&s.c()},m(t,i){y(t,e,i),s&&s.m(t,i),n=!0},p(t,[e]){s&&s.p&&(!n||1&e)&&p(s,i,t,t[0],n?f(i,t[0],e,null):g(t[0]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Vh(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}const Hh={heading:class extends pt{constructor(t){super(),ft(this,t,Qc,Jc,r,{depth:0,raw:1,text:3})}},paragraph:class extends pt{constructor(t){super(),ft(this,t,eh,th,r,{})}},text:class extends pt{constructor(t){super(),ft(this,t,ih,nh,r,{text:0,raw:1})}},image:class extends pt{constructor(t){super(),ft(this,t,oh,sh,r,{href:0,title:1,text:2})}},link:class extends pt{constructor(t){super(),ft(this,t,ah,rh,r,{href:0,title:1})}},em:class extends pt{constructor(t){super(),ft(this,t,ch,lh,r,{})}},strong:class extends pt{constructor(t){super(),ft(this,t,gh,ph,r,{})}},codespan:class extends pt{constructor(t){super(),ft(this,t,fh,dh,r,{raw:0})}},del:class extends pt{constructor(t){super(),ft(this,t,uh,hh,r,{})}},table:class extends pt{constructor(t){super(),ft(this,t,bh,mh,r,{})}},tablehead:class extends pt{constructor(t){super(),ft(this,t,yh,xh,r,{})}},tablebody:class extends pt{constructor(t){super(),ft(this,t,vh,_h,r,{})}},tablerow:class extends pt{constructor(t){super(),ft(this,t,kh,$h,r,{})}},tablecell:class extends pt{constructor(t){super(),ft(this,t,Sh,Mh,r,{header:0,align:1})}},list:class extends pt{constructor(t){super(),ft(this,t,Oh,Ph,r,{ordered:0,start:1})}},orderedlistitem:null,unorderedlistitem:null,listitem:class extends pt{constructor(t){super(),ft(this,t,Eh,Ah,r,{})}},hr:class extends pt{constructor(t){super(),ft(this,t,null,Th,r,{})}},html:class extends pt{constructor(t){super(),ft(this,t,zh,Rh,r,{text:0})}},blockquote:class extends pt{constructor(t){super(),ft(this,t,Fh,Ih,r,{})}},code:class extends pt{constructor(t){super(),ft(this,t,jh,Nh,r,{lang:0,text:1})}},br:class extends pt{constructor(t){super(),ft(this,t,Vh,Bh,r,{})}}},Wh={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function Uh(t){let e,n;return e=new oc({props:{tokens:t[0],renderers:t[1]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,[n]){const i={};1&n&&(i.tokens=t[0]),2&n&&(i.renderers=t[1]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function qh(t,e,n){let i,s,o,r,{source:a=[]}=e,{renderers:l={}}=e,{options:c={}}=e,{isInline:h=!1}=e;const u=F();let d,f,p;return N(Wc,{slug:t=>s?s.slug(t):"",getOptions:()=>o}),I((()=>{n(7,p=!0)})),t.$$set=t=>{"source"in t&&n(2,a=t.source),"renderers"in t&&n(3,l=t.renderers),"options"in t&&n(4,c=t.options),"isInline"in t&&n(5,h=t.isInline)},t.$$.update=()=>{4&t.$$.dirty&&n(8,i=Array.isArray(a)),4&t.$$.dirty&&(s=a?new Nc:void 0),16&t.$$.dirty&&n(9,o={...Wh,...c}),869&t.$$.dirty&&(i?n(0,d=a):(n(6,f=new zc(o)),n(0,d=h?f.inlineTokens(a):f.lex(a)),u("parsed",{tokens:d}))),8&t.$$.dirty&&n(1,r={...Hh,...l}),385&t.$$.dirty&&p&&!i&&u("parsed",{tokens:d})},[d,r,a,l,c,h,f,p,i,o]}class Yh extends pt{constructor(t){super(),ft(this,t,qh,Uh,r,{source:2,renderers:3,options:4,isInline:5})}}function Zh(t){let e,n;return e=new Yh({props:{source:t[0].source}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,[n]){const i={};1&n&&(i.source=t[0].source),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Xh(t,e,n){let{componentData:i}=e;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i]}class Gh extends pt{constructor(t){super(),ft(this,t,Xh,Zh,r,{componentData:0})}}function Kh(t){let e,n;const i=t[3].default,s=u(i,t,t[2],null);return{c(){e=$("div"),s&&s.c(),L(e,"id",`page-${t[0]||"No Title"}`),L(e,"class","page svelte-v7ihqd"),L(e,"data-component","page")},m(t,i){y(t,e,i),s&&s.m(e,null),n=!0},p(t,[e]){s&&s.p&&(!n||4&e)&&p(s,i,t,t[2],n?f(i,t[2],e,null):g(t[2]),null)},i(t){n||(it(s,t),n=!0)},o(t){st(s,t),n=!1},d(t){t&&_(e),s&&s.d(t)}}}function Jh(t,e,n){let{$$slots:i={},$$scope:s}=e,{componentData:o}=e;const{title:r}=o;return t.$$set=t=>{"componentData"in t&&n(1,o=t.componentData),"$$scope"in t&&n(2,s=t.$$scope)},[r,o,s,i]}class Qh extends pt{constructor(t){super(),ft(this,t,Jh,Kh,r,{componentData:1})}}function tu(e){let n,i,s,o,r,a,l,c,h=e[1]&&function(e){let n;return{c(){n=$("h3"),n.textContent=`${e[1]}`},m(t,e){y(t,n,e)},p:t,d(t){t&&_(n)}}}(e),d=e[2]&&function(e){let n;return{c(){n=$("p"),n.textContent=`${e[2]}`,L(n,"class","description")},m(t,e){y(t,n,e)},p:t,d(t){t&&_(n)}}}(e);const m=e[6].default,b=u(m,e,e[5],null);return{c(){n=$("section"),i=$("div"),h&&h.c(),s=C(),d&&d.c(),o=C(),r=$("div"),b&&b.c(),a=C(),l=$("hr"),L(i,"class","heading svelte-17n0qr8"),L(r,"class","sectionItems svelte-17n0qr8"),L(r,"style",e[0]),L(l,"class","svelte-17n0qr8"),L(n,"class","container svelte-17n0qr8"),L(n,"data-component","section"),L(n,"data-section-id",e[1]),A(n,"columns",e[3])},m(t,e){y(t,n,e),x(n,i),h&&h.m(i,null),x(i,s),d&&d.m(i,null),x(n,o),x(n,r),b&&b.m(r,null),x(n,a),x(n,l),c=!0},p(t,[e]){t[1]&&h.p(t,e),t[2]&&d.p(t,e),b&&b.p&&(!c||32&e)&&p(b,m,t,t[5],c?f(m,t[5],e,null):g(t[5]),null),(!c||1&e)&&L(r,"style",t[0])},i(t){c||(it(b,t),c=!0)},o(t){st(b,t),c=!1},d(t){t&&_(n),h&&h.d(),d&&d.d(),b&&b.d(t)}}}function eu(t,e,n){let{$$slots:i={},$$scope:s}=e,{componentData:o}=e;const{title:r,subtitle:a,columns:l}=o;let c;return l&&(c=`grid-template-columns: repeat(${l||1}, 1fr);`),t.$$set=t=>{"componentData"in t&&n(4,o=t.componentData),"$$scope"in t&&n(5,s=t.$$scope)},[c,r,a,l,o,s,i]}class nu extends pt{constructor(t){super(),ft(this,t,eu,tu,r,{componentData:4})}}function iu(e){let n;return{c(){n=$("p"),n.textContent=`${e[0]}`,L(n,"data-component","text")},m(t,e){y(t,n,e)},p:t,i:t,o:t,d(t){t&&_(n)}}}function su(t,e,n){let{componentData:i}=e;const{text:s}=i;return t.$$set=t=>{"componentData"in t&&n(1,i=t.componentData)},[s,i]}class ou extends pt{constructor(t){super(),ft(this,t,su,iu,r,{componentData:1})}}function ru(e){let n;return{c(){n=w(e[0])},m(t,e){y(t,n,e)},p(t,e){1&e&&P(n,t[0])},i:t,o:t,d(t){t&&_(n)}}}function au(t){let e,n,i;var s=t[1];function o(t){return{props:{componentData:t[0]}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),2&i&&s!==(s=t[1])){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function lu(t){let e,n,i,s;const o=[au,ru],r=[];function a(t,e){return t[1]?0:1}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,[s]){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}function cu(t,e,n){let i,{componentData:s}=e;const o={artifacts:Ht,barChart:Ma,dag:ol,heading:pl,image:bl,lineChart:_l,log:kl,markdown:Gh,text:ou},r=null==s?void 0:s.type;return r&&(i=null==o?void 0:o[r],i||console.error("Unknown component type: ",r)),t.$$set=t=>{"componentData"in t&&n(0,s=t.componentData)},[s,i]}class hu extends pt{constructor(t){super(),ft(this,t,cu,lu,r,{componentData:0})}}function uu(t,e,n){const i=t.slice();return i[3]=e[n],i[5]=n,i}function du(t,e,n){const i=t.slice();return i[6]=e[n],i}function fu(e){let n,i,s;return i=new hu({props:{componentData:e[6][e[5]]}}),{c(){n=$("td"),ct(i.$$.fragment),L(n,"class","svelte-gl9h79")},m(t,e){y(t,n,e),ht(i,n,null),s=!0},p:t,i(t){s||(it(i.$$.fragment,t),s=!0)},o(t){st(i.$$.fragment,t),s=!1},d(t){t&&_(n),ut(i)}}}function pu(t){let e,n,i,s,o,r,a=t[3]+"",l=t[1],c=[];for(let e=0;e<l.length;e+=1)c[e]=fu(du(t,l,e));const h=t=>st(c[t],1,1,(()=>{c[t]=null}));return{c(){e=$("tr"),n=$("td"),i=w(a),s=C();for(let t=0;t<c.length;t+=1)c[t].c();o=C(),L(n,"class","labelColumn svelte-gl9h79")},m(t,a){y(t,e,a),x(e,n),x(n,i),x(e,s);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);x(e,o),r=!0},p(t,n){if(2&n){let i;for(l=t[1],i=0;i<l.length;i+=1){const s=du(t,l,i);c[i]?(c[i].p(s,n),it(c[i],1)):(c[i]=fu(s),c[i].c(),it(c[i],1),c[i].m(e,o))}for(et(),i=l.length;i<c.length;i+=1)h(i);nt()}},i(t){if(!r){for(let t=0;t<l.length;t+=1)it(c[t]);r=!0}},o(t){c=c.filter(Boolean);for(let t=0;t<c.length;t+=1)st(c[t]);r=!1},d(t){t&&_(e),v(c,t)}}}function gu(t){let e,n,i=t[0]&&t[1]&&function(t){let e,n,i,s,o=t[0],r=[];for(let e=0;e<o.length;e+=1)r[e]=pu(uu(t,o,e));const a=t=>st(r[t],1,1,(()=>{r[t]=null}));return{c(){e=$("div"),n=$("table"),i=$("tbody");for(let t=0;t<r.length;t+=1)r[t].c();L(e,"class","tableContainer"),L(e,"data-component","table-vertical")},m(t,o){y(t,e,o),x(e,n),x(n,i);for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(i,null);s=!0},p(t,e){if(3&e){let n;for(o=t[0],n=0;n<o.length;n+=1){const s=uu(t,o,n);r[n]?(r[n].p(s,e),it(r[n],1)):(r[n]=pu(s),r[n].c(),it(r[n],1),r[n].m(i,null))}for(et(),n=o.length;n<r.length;n+=1)a(n);nt()}},i(t){if(!s){for(let t=0;t<o.length;t+=1)it(r[t]);s=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)st(r[t]);s=!1},d(t){t&&_(e),v(r,t)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[0]&&t[1]&&i.p(t,e)},i(t){n||(it(i),n=!0)},o(t){st(i),n=!1},d(t){i&&i.d(t),t&&_(e)}}}function mu(t,e,n){let{componentData:i}=e;const{columns:s,data:o}=i;return t.$$set=t=>{"componentData"in t&&n(2,i=t.componentData)},[s,o,i]}class bu extends pt{constructor(t){super(),ft(this,t,mu,gu,r,{componentData:2})}}function xu(t,e,n){const i=t.slice();return i[3]=e[n],i}function yu(t,e,n){const i=t.slice();return i[6]=e[n],i}function _u(t,e,n){const i=t.slice();return i[9]=e[n],i}function vu(e){let n,i,s=e[9]+"";return{c(){n=$("th"),i=w(s),L(n,"class","svelte-q3hq57")},m(t,e){y(t,n,e),x(n,i)},p:t,d(t){t&&_(n)}}}function $u(e){let n,i,s;return i=new hu({props:{componentData:e[6]}}),{c(){n=$("td"),ct(i.$$.fragment)},m(t,e){y(t,n,e),ht(i,n,null),s=!0},p:t,i(t){s||(it(i.$$.fragment,t),s=!0)},o(t){st(i.$$.fragment,t),s=!1},d(t){t&&_(n),ut(i)}}}function ku(t){let e,n,i,s=t[3],o=[];for(let e=0;e<s.length;e+=1)o[e]=$u(yu(t,s,e));const r=t=>st(o[t],1,1,(()=>{o[t]=null}));return{c(){e=$("tr");for(let t=0;t<o.length;t+=1)o[t].c();n=C()},m(t,s){y(t,e,s);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);x(e,n),i=!0},p(t,i){if(2&i){let a;for(s=t[3],a=0;a<s.length;a+=1){const r=yu(t,s,a);o[a]?(o[a].p(r,i),it(o[a],1)):(o[a]=$u(r),o[a].c(),it(o[a],1),o[a].m(e,n))}for(et(),a=s.length;a<o.length;a+=1)r(a);nt()}},i(t){if(!i){for(let t=0;t<s.length;t+=1)it(o[t]);i=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)st(o[t]);i=!1},d(t){t&&_(e),v(o,t)}}}function wu(t){let e,n,i=t[0]&&t[1]&&function(t){let e,n,i,s,o,r,a,l=t[0],c=[];for(let e=0;e<l.length;e+=1)c[e]=vu(_u(t,l,e));let h=t[1],u=[];for(let e=0;e<h.length;e+=1)u[e]=ku(xu(t,h,e));const d=t=>st(u[t],1,1,(()=>{u[t]=null}));return{c(){e=$("div"),n=$("table"),i=$("thead"),s=$("tr");for(let t=0;t<c.length;t+=1)c[t].c();o=C(),r=$("tbody");for(let t=0;t<u.length;t+=1)u[t].c();L(e,"class","tableContainer svelte-q3hq57"),L(e,"data-component","table-horizontal")},m(t,l){y(t,e,l),x(e,n),x(n,i),x(i,s);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(s,null);x(n,o),x(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);a=!0},p(t,e){if(1&e){let n;for(l=t[0],n=0;n<l.length;n+=1){const i=_u(t,l,n);c[n]?c[n].p(i,e):(c[n]=vu(i),c[n].c(),c[n].m(s,null))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}if(2&e){let n;for(h=t[1],n=0;n<h.length;n+=1){const i=xu(t,h,n);u[n]?(u[n].p(i,e),it(u[n],1)):(u[n]=ku(i),u[n].c(),it(u[n],1),u[n].m(r,null))}for(et(),n=h.length;n<u.length;n+=1)d(n);nt()}},i(t){if(!a){for(let t=0;t<h.length;t+=1)it(u[t]);a=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)st(u[t]);a=!1},d(t){t&&_(e),v(c,t),v(u,t)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[0]&&t[1]&&i.p(t,e)},i(t){n||(it(i),n=!0)},o(t){st(i),n=!1},d(t){i&&i.d(t),t&&_(e)}}}function Cu(t,e,n){let{componentData:i}=e;const{columns:s,data:o}=i;return t.$$set=t=>{"componentData"in t&&n(2,i=t.componentData)},[s,o,i]}class Mu extends pt{constructor(t){super(),ft(this,t,Cu,wu,r,{componentData:2})}}function Su(t){let e,n,i=t[1]&&t[2]&&function(t){let e,n,i;var s=t[3];function o(t){return{props:{componentData:t[0]}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),s!==(s=t[3])){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[1]&&t[2]&&i.p(t,e)},i(t){n||(it(i),n=!0)},o(t){st(i),n=!1},d(t){i&&i.d(t),t&&_(e)}}}function Lu(t,e,n){let{componentData:i}=e;const{columns:s,data:o,vertical:r}=i,a=r?bu:Mu;return t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i,s,o,a]}class Du extends pt{constructor(t){super(),ft(this,t,Lu,Su,r,{componentData:0})}}function Pu(t,e,n){const i=t.slice();return i[3]=e[n],i}function Ou(t){let e,n,i;var s=t[1];function o(t){return{props:{componentData:t[0]}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),s!==(s=t[1])){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function Au(t){let e,n,i;var s=t[1];function o(t){return{props:{componentData:t[0],$$slots:{default:[Tu]},$$scope:{ctx:t}}}}return s&&(e=T(s,o(t))),{c(){e&&ct(e.$$.fragment),n=M()},m(t,s){e&&ht(e,t,s),y(t,n,s),i=!0},p(t,i){const r={};if(1&i&&(r.componentData=t[0]),65&i&&(r.$$scope={dirty:i,ctx:t}),s!==(s=t[1])){if(e){et();const t=e;st(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}s?(e=T(s,o(t)),ct(e.$$.fragment),it(e.$$.fragment,1),ht(e,n.parentNode,n)):e=null}else s&&e.$set(r)},i(t){i||(e&&it(e.$$.fragment,t),i=!0)},o(t){e&&st(e.$$.fragment,t),i=!1},d(t){t&&_(n),e&&ut(e,t)}}}function Eu(t){let e,n;return e=new Iu({props:{componentData:t[3]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.componentData=t[3]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Tu(t){let e,n,i=t[0].contents,s=[];for(let e=0;e<i.length;e+=1)s[e]=Eu(Pu(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(1&n){let r;for(i=t[0].contents,r=0;r<i.length;r+=1){const o=Pu(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Eu(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function Ru(t){let e,n,i=t[1]&&function(t){let e,n,i,s;const o=[Au,Ou],r=[];function a(t,e){return"page"!==t[0].type&&"section"!==t[0].type||!t[0]?.contents?1:0}return e=a(t),n=r[e]=o[e](t),{c(){n.c(),i=M()},m(t,n){r[e].m(t,n),y(t,i,n),s=!0},p(t,s){let l=e;e=a(t),e===l?r[e].p(t,s):(et(),st(r[l],1,1,(()=>{r[l]=null})),nt(),n=r[e],n?n.p(t,s):(n=r[e]=o[e](t),n.c()),it(n,1),n.m(i.parentNode,i))},i(t){s||(it(n),s=!0)},o(t){st(n),s=!1},d(t){r[e].d(t),t&&_(i)}}}(t);return{c(){i&&i.c(),e=M()},m(t,s){i&&i.m(t,s),y(t,e,s),n=!0},p(t,[e]){t[1]&&i.p(t,e)},i(t){n||(it(i),n=!0)},o(t){st(i),n=!1},d(t){i&&i.d(t),t&&_(e)}}}function zu(t,e,n){let{componentData:i}=e;const s={artifacts:Ht,barChart:Ma,dag:ol,heading:pl,image:bl,lineChart:_l,log:kl,markdown:Gh,page:Qh,section:nu,subtitle:ul,table:Du,text:ou,title:ll};let o=null==s?void 0:s[i.type];return o||console.error("Unknown component type: ",i.type),t.$$set=t=>{"componentData"in t&&n(0,i=t.componentData)},[i,o]}class Iu extends pt{constructor(t){super(),ft(this,t,zu,Ru,r,{componentData:0})}}function Fu(t){let e,n,i;const s=t[1].default,o=u(s,t,t[0],null);return{c(){e=$("main"),n=$("div"),o&&o.c(),L(n,"class","mainContainer svelte-13ho8jo"),L(e,"class","svelte-13ho8jo")},m(t,s){y(t,e,s),x(e,n),o&&o.m(n,null),i=!0},p(t,[e]){o&&o.p&&(!i||1&e)&&p(o,s,t,t[0],i?f(s,t[0],e,null):g(t[0]),null)},i(t){i||(it(o,t),i=!0)},o(t){st(o,t),i=!1},d(t){t&&_(e),o&&o.d(t)}}}function Nu(t,e,n){let{$$slots:i={},$$scope:s}=e;return t.$$set=t=>{"$$scope"in t&&n(0,s=t.$$scope)},[s,i]}class ju extends pt{constructor(t){super(),ft(this,t,Nu,Fu,r,{})}}const Bu=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vu=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1});function Hu(t){return{...Vu,...t}}const Wu=(t,e,n,i="")=>{const s=t.split(":");if("@"===t.slice(0,1)){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const t=s.pop(),n=s.pop(),o={provider:s.length>0?s[0]:i,prefix:n,name:t};return e&&!Uu(o)?null:o}const o=s[0],r=o.split("-");if(r.length>1){const t={provider:i,prefix:r.shift(),name:r.join("-")};return e&&!Uu(t)?null:t}if(n&&""===i){const t={provider:i,prefix:"",name:o};return e&&!Uu(t,n)?null:t}return null},Uu=(t,e)=>!!t&&!(""!==t.provider&&!t.provider.match(Bu)||!(e&&""===t.prefix||t.prefix.match(Bu))||!t.name.match(Bu));function qu(t,e,n=!1){const i=function e(n,i){if(void 0!==t.icons[n])return Object.assign({},t.icons[n]);if(i>5)return null;const s=t.aliases;if(s&&void 0!==s[n]){const t=s[n],o=e(t.parent,i+1);return o?function(t,e){const n={...t};for(const t in Vu){const i=t;if(void 0!==e[i]){const t=e[i];if(void 0===n[i]){n[i]=t;continue}switch(i){case"rotate":n[i]=(n[i]+t)%4;break;case"hFlip":case"vFlip":n[i]=t!==n[i];break;default:n[i]=t}}}return n}(o,t):o}const o=t.chars;return!i&&o&&void 0!==o[n]?e(o[n],i+1):null}(e,0);if(i)for(const e in Vu)void 0===i[e]&&void 0!==t[e]&&(i[e]=t[e]);return i&&n?Hu(i):i}function Yu(t,e,n){n=n||{};const i=[];if("object"!=typeof t||"object"!=typeof t.icons)return i;t.not_found instanceof Array&&t.not_found.forEach((t=>{e(t,null),i.push(t)}));const s=t.icons;Object.keys(s).forEach((n=>{const s=qu(t,n,!0);s&&(e(n,s),i.push(n))}));const o=n.aliases||"all";if("none"!==o&&"object"==typeof t.aliases){const n=t.aliases;Object.keys(n).forEach((s=>{if("variations"===o&&function(t){for(const e in Vu)if(void 0!==t[e])return!0;return!1}(n[s]))return;const r=qu(t,s,!0);r&&(e(s,r),i.push(s))}))}return i}const Zu={provider:"string",aliases:"object",not_found:"object"};for(const t in Vu)Zu[t]=typeof Vu[t];function Xu(t){if("object"!=typeof t||null===t)return null;const e=t;if("string"!=typeof e.prefix||!t.icons||"object"!=typeof t.icons)return null;for(const e in Zu)if(void 0!==t[e]&&typeof t[e]!==Zu[e])return null;const n=e.icons;for(const t in n){const e=n[t];if(!t.match(Bu)||"string"!=typeof e.body)return null;for(const t in Vu)if(void 0!==e[t]&&typeof e[t]!=typeof Vu[t])return null}const i=e.aliases;if(i)for(const t in i){const e=i[t],s=e.parent;if(!t.match(Bu)||"string"!=typeof s||!n[s]&&!i[s])return null;for(const t in Vu)if(void 0!==e[t]&&typeof e[t]!=typeof Vu[t])return null}return e}let Gu=Object.create(null);try{const t=window||self;t&&1===t._iconifyStorage.version&&(Gu=t._iconifyStorage.storage)}catch(t){}function Ku(t,e){void 0===Gu[t]&&(Gu[t]=Object.create(null));const n=Gu[t];return void 0===n[e]&&(n[e]=function(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:Object.create(null)}}(t,e)),n[e]}function Ju(t,e){if(!Xu(e))return[];const n=Date.now();return Yu(e,((e,i)=>{i?t.icons[e]=i:t.missing[e]=n}))}let Qu=!1;function td(t){return"boolean"==typeof t&&(Qu=t),Qu}function ed(t,e){const n=Wu(t,!0,Qu);if(!n)return!1;return function(t,e,n){try{if("string"==typeof n.body)return t.icons[e]=Object.freeze(Hu(n)),!0}catch(t){}return!1}(Ku(n.provider,n.prefix),n.name,e)}const nd=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0});const id=/(-?[0-9.]*[0-9]+[0-9.]*)/g,sd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function od(t,e,n){if(1===e)return t;if(n=void 0===n?100:n,"number"==typeof t)return Math.ceil(t*e*n)/n;if("string"!=typeof t)return t;const i=t.split(id);if(null===i||!i.length)return t;const s=[];let o=i.shift(),r=sd.test(o);for(;;){if(r){const t=parseFloat(o);isNaN(t)?s.push(o):s.push(Math.ceil(t*e*n)/n)}else s.push(o);if(o=i.shift(),void 0===o)return s.join("");r=!r}}function rd(t){let e="";switch(t.hAlign){case"left":e+="xMin";break;case"right":e+="xMax";break;default:e+="xMid"}switch(t.vAlign){case"top":e+="YMin";break;case"bottom":e+="YMax";break;default:e+="YMid"}return e+=t.slice?" slice":" meet",e}const ad=/\sid="(\S+)"/g,ld="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let cd=0;function hd(t,e=ld){const n=[];let i;for(;i=ad.exec(t);)n.push(i[1]);return n.length?(n.forEach((n=>{const i="function"==typeof e?e(n):e+(cd++).toString(),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+i+"$3")})),t):t}const ud=Object.create(null);function dd(t){return ud[t]||ud[""]}function fd(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:void 0===t.path?"/":t.path,maxURL:t.maxURL?t.maxURL:500,rotate:t.rotate?t.rotate:750,timeout:t.timeout?t.timeout:5e3,random:!0===t.random,index:t.index?t.index:0,dataAfterTimeout:!1!==t.dataAfterTimeout}}const pd=Object.create(null),gd=["https://api.simplesvg.com","https://api.unisvg.com"],md=[];for(;gd.length>0;)1===gd.length||Math.random()>.5?md.push(gd.shift()):md.push(gd.pop());function bd(t,e){const n=fd(e);return null!==n&&(pd[t]=n,!0)}function xd(t){return pd[t]}pd[""]=fd({resources:["https://api.iconify.design"].concat(md)});const yd=(t,e)=>{let n=t,i=-1!==n.indexOf("?");return Object.keys(e).forEach((t=>{let s;try{s=function(t){switch(typeof t){case"boolean":return t?"true":"false";case"number":case"string":return encodeURIComponent(t);default:throw new Error("Invalid parameter")}}(e[t])}catch(t){return}n+=(i?"&":"?")+encodeURIComponent(t)+"="+s,i=!0})),n},_d={},vd={};let $d=(()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch(t){}return null})();const kd={prepare:(t,e,n)=>{const i=[];let s=_d[e];void 0===s&&(s=function(t,e){const n=xd(t);if(!n)return 0;let i;if(n.maxURL){let t=0;n.resources.forEach((e=>{const n=e;t=Math.max(t,n.length)}));const s=yd(e+".json",{icons:""});i=n.maxURL-t-n.path.length-s.length}else i=0;const s=t+":"+e;return vd[t]=n.path,_d[s]=i,i}(t,e));const o="icons";let r={type:o,provider:t,prefix:e,icons:[]},a=0;return n.forEach(((n,l)=>{a+=n.length+1,a>=s&&l>0&&(i.push(r),r={type:o,provider:t,prefix:e,icons:[]},a=n.length),r.icons.push(n)})),i.push(r),i},send:(t,e,n)=>{if(!$d)return void n("abort",424);let i=function(t){if("string"==typeof t){if(void 0===vd[t]){const e=xd(t);if(!e)return"/";vd[t]=e.path}return vd[t]}return"/"}(e.provider);switch(e.type){case"icons":{const t=e.prefix,n=e.icons.join(",");i+=yd(t+".json",{icons:n});break}case"custom":{const t=e.uri;i+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void n("abort",400)}let s=503;$d(t+i).then((t=>{const e=t.status;if(200===e)return s=501,t.json();setTimeout((()=>{n(function(t){return 404===t}(e)?"abort":"next",e)}))})).then((t=>{"object"==typeof t&&null!==t?setTimeout((()=>{n("success",t)})):setTimeout((()=>{n("next",s)}))})).catch((()=>{n("next",s)}))}};const wd=Object.create(null),Cd=Object.create(null);function Md(t,e){t.forEach((t=>{const n=t.provider;if(void 0===wd[n])return;const i=wd[n],s=t.prefix,o=i[s];o&&(i[s]=o.filter((t=>t.id!==e)))}))}let Sd=0;var Ld={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Dd(t,e,n,i){const s=t.resources.length,o=t.random?Math.floor(Math.random()*s):t.index;let r;if(t.random){let e=t.resources.slice(0);for(r=[];e.length>1;){const t=Math.floor(Math.random()*e.length);r.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}r=r.concat(e)}else r=t.resources.slice(o).concat(t.resources.slice(0,o));const a=Date.now();let l,c="pending",h=0,u=null,d=[],f=[];function p(){u&&(clearTimeout(u),u=null)}function g(){"pending"===c&&(c="aborted"),p(),d.forEach((t=>{"pending"===t.status&&(t.status="aborted")})),d=[]}function m(t,e){e&&(f=[]),"function"==typeof t&&f.push(t)}function b(){c="failed",f.forEach((t=>{t(void 0,l)}))}function x(){d.forEach((t=>{"pending"===t.status&&(t.status="aborted")})),d=[]}function y(){if("pending"!==c)return;p();const i=r.shift();if(void 0===i)return d.length?void(u=setTimeout((()=>{p(),"pending"===c&&(x(),b())}),t.timeout)):void b();const s={status:"pending",resource:i,callback:(e,n)=>{!function(e,n,i){const s="success"!==n;switch(d=d.filter((t=>t!==e)),c){case"pending":break;case"failed":if(s||!t.dataAfterTimeout)return;break;default:return}if("abort"===n)return l=i,void b();if(s)return l=i,void(d.length||(r.length?y():b()));if(p(),x(),!t.random){const n=t.resources.indexOf(e.resource);-1!==n&&n!==t.index&&(t.index=n)}c="completed",f.forEach((t=>{t(i)}))}(s,e,n)}};d.push(s),h++,u=setTimeout(y,t.rotate),n(i,e,s.callback)}return"function"==typeof i&&f.push(i),setTimeout(y),function(){return{startTime:a,payload:e,status:c,queriesSent:h,queriesPending:d.length,subscribe:m,abort:g}}}function Pd(t){const e=function(t){if(!("object"==typeof t&&"object"==typeof t.resources&&t.resources instanceof Array&&t.resources.length))throw new Error("Invalid Reduncancy configuration");const e=Object.create(null);let n;for(n in Ld)void 0!==t[n]?e[n]=t[n]:e[n]=Ld[n];return e}(t);let n=[];function i(){n=n.filter((t=>"pending"===t().status))}const s={query:function(t,s,o){const r=Dd(e,t,s,((t,e)=>{i(),o&&o(t,e)}));return n.push(r),r},find:function(t){const e=n.find((e=>t(e)));return void 0!==e?e:null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:i};return s}function Od(){}const Ad=Object.create(null);function Ed(t,e,n){let i,s;if("string"==typeof t){const e=dd(t);if(!e)return n(void 0,424),Od;s=e.send;const o=function(t){if(void 0===Ad[t]){const e=xd(t);if(!e)return;const n={config:e,redundancy:Pd(e)};Ad[t]=n}return Ad[t]}(t);o&&(i=o.redundancy)}else{const e=fd(t);if(e){i=Pd(e);const n=dd(t.resources?t.resources[0]:"");n&&(s=n.send)}}return i&&s?i.query(e,s,n)().abort:(n(void 0,424),Od)}const Td={};function Rd(){}const zd=Object.create(null),Id=Object.create(null),Fd=Object.create(null),Nd=Object.create(null);function jd(t,e){void 0===Fd[t]&&(Fd[t]=Object.create(null));const n=Fd[t];n[e]||(n[e]=!0,setTimeout((()=>{n[e]=!1,function(t,e){void 0===Cd[t]&&(Cd[t]=Object.create(null));const n=Cd[t];n[e]||(n[e]=!0,setTimeout((()=>{if(n[e]=!1,void 0===wd[t]||void 0===wd[t][e])return;const i=wd[t][e].slice(0);if(!i.length)return;const s=Ku(t,e);let o=!1;i.forEach((n=>{const i=n.icons,r=i.pending.length;i.pending=i.pending.filter((n=>{if(n.prefix!==e)return!0;const r=n.name;if(void 0!==s.icons[r])i.loaded.push({provider:t,prefix:e,name:r});else{if(void 0===s.missing[r])return o=!0,!0;i.missing.push({provider:t,prefix:e,name:r})}return!1})),i.pending.length!==r&&(o||Md([{provider:t,prefix:e}],n.id),n.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),n.abort))}))})))}(t,e)})))}const Bd=Object.create(null);function Vd(t,e,n){void 0===Id[t]&&(Id[t]=Object.create(null));const i=Id[t];void 0===Nd[t]&&(Nd[t]=Object.create(null));const s=Nd[t];void 0===zd[t]&&(zd[t]=Object.create(null));const o=zd[t];void 0===i[e]?i[e]=n:i[e]=i[e].concat(n).sort(),s[e]||(s[e]=!0,setTimeout((()=>{s[e]=!1;const n=i[e];delete i[e];const r=dd(t);if(!r)return void function(){const n=(""===t?"":"@"+t+":")+e,i=Math.floor(Date.now()/6e4);Bd[n]<i&&(Bd[n]=i,console.error('Unable to retrieve icons for "'+n+'" because API is not configured properly.'))}();r.prepare(t,e,n).forEach((n=>{Ed(t,n,((i,s)=>{const r=Ku(t,e);if("object"!=typeof i){if(404!==s)return;const t=Date.now();n.icons.forEach((e=>{r.missing[e]=t}))}else try{const n=Ju(r,i);if(!n.length)return;const s=o[e];n.forEach((t=>{delete s[t]})),Td.store&&Td.store(t,i)}catch(t){console.error(t)}jd(t,e)}))}))})))}const Hd=(t,e)=>{const n=function(t,e=!0,n=!1){const i=[];return t.forEach((t=>{const s="string"==typeof t?Wu(t,!1,n):t;e&&!Uu(s,n)||i.push({provider:s.provider,prefix:s.prefix,name:s.name})})),i}(t,!0,td()),i=function(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort(((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name)));let i={provider:"",prefix:"",name:""};return t.forEach((t=>{if(i.name===t.name&&i.prefix===t.prefix&&i.provider===t.provider)return;i=t;const s=t.provider,o=t.prefix,r=t.name;void 0===n[s]&&(n[s]=Object.create(null));const a=n[s];void 0===a[o]&&(a[o]=Ku(s,o));const l=a[o];let c;c=void 0!==l.icons[r]?e.loaded:""===o||void 0!==l.missing[r]?e.missing:e.pending;const h={provider:s,prefix:o,name:r};c.push(h)})),e}(n);if(!i.pending.length){let t=!0;return e&&setTimeout((()=>{t&&e(i.loaded,i.missing,i.pending,Rd)})),()=>{t=!1}}const s=Object.create(null),o=[];let r,a;i.pending.forEach((t=>{const e=t.provider,n=t.prefix;if(n===a&&e===r)return;r=e,a=n,o.push({provider:e,prefix:n}),void 0===zd[e]&&(zd[e]=Object.create(null));const i=zd[e];void 0===i[n]&&(i[n]=Object.create(null)),void 0===s[e]&&(s[e]=Object.create(null));const l=s[e];void 0===l[n]&&(l[n]=[])}));const l=Date.now();return i.pending.forEach((t=>{const e=t.provider,n=t.prefix,i=t.name,o=zd[e][n];void 0===o[i]&&(o[i]=l,s[e][n].push(i))})),o.forEach((t=>{const e=t.provider,n=t.prefix;s[e][n].length&&Vd(e,n,s[e][n])})),e?function(t,e,n){const i=Sd++,s=Md.bind(null,n,i);if(!e.pending.length)return s;const o={id:i,icons:e,callback:t,abort:s};return n.forEach((t=>{const e=t.provider,n=t.prefix;void 0===wd[e]&&(wd[e]=Object.create(null));const i=wd[e];void 0===i[n]&&(i[n]=[]),i[n].push(o)})),s}(e,i,o):Rd},Wd="iconify2",Ud="iconify",qd=Ud+"-count",Yd=Ud+"-version",Zd=36e5,Xd={local:!0,session:!0};let Gd=!1;const Kd={local:0,session:0},Jd={local:[],session:[]};let Qd="undefined"==typeof window?{}:window;function tf(t){const e=t+"Storage";try{if(Qd&&Qd[e]&&"number"==typeof Qd[e].length)return Qd[e]}catch(t){}return Xd[t]=!1,null}function ef(t,e,n){try{return t.setItem(qd,n.toString()),Kd[e]=n,!0}catch(t){return!1}}function nf(t){const e=t.getItem(qd);if(e){const t=parseInt(e);return t||0}return 0}const sf=()=>{if(Gd)return;Gd=!0;const t=Math.floor(Date.now()/Zd)-168;function e(e){const n=tf(e);if(!n)return;const i=e=>{const i=Ud+e.toString(),s=n.getItem(i);if("string"!=typeof s)return!1;let o=!0;try{const e=JSON.parse(s);if("object"!=typeof e||"number"!=typeof e.cached||e.cached<t||"string"!=typeof e.provider||"object"!=typeof e.data||"string"!=typeof e.data.prefix)o=!1;else{const t=e.provider,n=e.data.prefix;o=Ju(Ku(t,n),e.data).length>0}}catch(t){o=!1}return o||n.removeItem(i),o};try{const t=n.getItem(Yd);if(t!==Wd)return t&&function(t){try{const e=nf(t);for(let n=0;n<e;n++)t.removeItem(Ud+n.toString())}catch(t){}}(n),void function(t,e){try{t.setItem(Yd,Wd)}catch(t){}ef(t,e,0)}(n,e);let s=nf(n);for(let t=s-1;t>=0;t--)i(t)||(t===s-1?s--:Jd[e].push(t));ef(n,e,s)}catch(t){}}for(const t in Xd)e(t)},of=(t,e)=>{function n(n){if(!Xd[n])return!1;const i=tf(n);if(!i)return!1;let s=Jd[n].shift();if(void 0===s&&(s=Kd[n],!ef(i,n,s+1)))return!1;try{const n={cached:Math.floor(Date.now()/Zd),provider:t,data:e};i.setItem(Ud+s.toString(),JSON.stringify(n))}catch(t){return!1}return!0}Gd||sf(),Object.keys(e.icons).length&&(e.not_found&&delete(e=Object.assign({},e)).not_found,n("local")||n("session"))},rf=/[\s,]+/;function af(t,e){e.split(rf).forEach((e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}}))}function lf(t,e){e.split(rf).forEach((e=>{const n=e.trim();switch(n){case"left":case"center":case"right":t.hAlign=n;break;case"top":case"middle":case"bottom":t.vAlign=n;break;case"slice":case"crop":t.slice=!0;break;case"meet":t.slice=!1}}))}function cf(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function i(t){for(;t<0;)t+=4;return t%4}if(""===n){const e=parseInt(t);return isNaN(e)?0:i(e)}if(n!==t){let e=0;switch(n){case"%":e=25;break;case"deg":e=90}if(e){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s/=e,s%1==0?i(s):0)}}return e}const hf={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"};function uf(t,e){const n=function(t,e){const n={};for(const i in t){const s=i;if(n[s]=t[s],void 0===e[s])continue;const o=e[s];switch(s){case"inline":case"slice":"boolean"==typeof o&&(n[s]=o);break;case"hFlip":case"vFlip":!0===o&&(n[s]=!n[s]);break;case"hAlign":case"vAlign":"string"==typeof o&&""!==o&&(n[s]=o);break;case"width":case"height":("string"==typeof o&&""!==o||"number"==typeof o&&o||null===o)&&(n[s]=o);break;case"rotate":"number"==typeof o&&(n[s]+=o)}}return n}(nd,e),i={...hf};let s="string"==typeof e.style?e.style:"";for(let t in e){const o=e[t];if(void 0!==o)switch(t){case"icon":case"style":case"onLoad":break;case"inline":case"hFlip":case"vFlip":n[t]=!0===o||"true"===o||1===o;break;case"flip":"string"==typeof o&&af(n,o);break;case"align":"string"==typeof o&&lf(n,o);break;case"color":s=s+(s.length>0&&";"!==s.trim().slice(-1)?";":"")+"color: "+o+"; ";break;case"rotate":"string"==typeof o?n[t]=cf(o):"number"==typeof o&&(n[t]=o);break;case"ariaHidden":case"aria-hidden":!0!==o&&"true"!==o&&delete i["aria-hidden"];break;default:if("on:"===t.slice(0,3))break;void 0===nd[t]&&(i[t]=o)}}const o=function(t,e){const n={left:t.left,top:t.top,width:t.width,height:t.height};let i,s,o=t.body;[t,e].forEach((t=>{const e=[],i=t.hFlip,s=t.vFlip;let r,a=t.rotate;switch(i?s?a+=2:(e.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),e.push("scale(-1 1)"),n.top=n.left=0):s&&(e.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),e.push("scale(1 -1)"),n.top=n.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:r=n.height/2+n.top,e.unshift("rotate(90 "+r.toString()+" "+r.toString()+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:r=n.width/2+n.left,e.unshift("rotate(-90 "+r.toString()+" "+r.toString()+")")}a%2==1&&(0===n.left&&0===n.top||(r=n.left,n.left=n.top,n.top=r),n.width!==n.height&&(r=n.width,n.width=n.height,n.height=r)),e.length&&(o='<g transform="'+e.join(" ")+'">'+o+"</g>")})),null===e.width&&null===e.height?(s="1em",i=od(s,n.width/n.height)):null!==e.width&&null!==e.height?(i=e.width,s=e.height):null!==e.height?(s=e.height,i=od(s,n.width/n.height)):(i=e.width,s=od(i,n.height/n.width)),"auto"===i&&(i=n.width),"auto"===s&&(s=n.height),i="string"==typeof i?i:i.toString()+"",s="string"==typeof s?s:s.toString()+"";const r={attributes:{width:i,height:s,preserveAspectRatio:rd(e),viewBox:n.left.toString()+" "+n.top.toString()+" "+n.width.toString()+" "+n.height.toString()},body:o};return e.inline&&(r.inline=!0),r}(t,n);for(let t in o.attributes)i[t]=o.attributes[t];o.inline&&(s="vertical-align: -0.125em; "+s),""!==s&&(i.style=s);let r=0,a=e.id;return"string"==typeof a&&(a=a.replace(/-/g,"_")),{attributes:i,body:hd(o.body,a?()=>a+"ID"+r++:"iconifySvelte")}}var df;if(td(!0),df=kd,ud[""]=df,"undefined"!=typeof document&&"undefined"!=typeof window){Td.store=of,sf();const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach((t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!function(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e="string"==typeof t.provider?t.provider:""),Qu&&""===e&&("string"!=typeof t.prefix||""===t.prefix)){let e=!1;return Xu(t)&&(t.prefix="",Yu(t,((t,n)=>{n&&ed(t,n)&&(e=!0)}))),e}return!("string"!=typeof t.prefix||!Uu({provider:e,prefix:t.prefix,name:"a"}))&&!!Ju(Ku(e,t.prefix),t)}(t))&&console.error(n)}catch(t){console.error(n)}}))}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const n="IconifyProviders["+t+"] is invalid.";try{const i=e[t];if("object"!=typeof i||!i||void 0===i.resources)continue;bd(t,i)||console.error(n)}catch(t){console.error(n)}}}}function ff(t,e,n,i,s){function o(){e.loading&&(e.loading.abort(),e.loading=null)}if("object"==typeof t&&null!==t&&"string"==typeof t.body)return e.name="",o(),{data:Hu(t)};let r;if("string"!=typeof t||null===(r=Wu(t,!1,!0)))return o(),null;const a=function(t){const e="string"==typeof t?Wu(t,!0,Qu):t;return e?function(t,e){const n=t.icons[e];return void 0===n?null:n}(Ku(e.provider,e.prefix),e.name):null}(r);if(null===a)return!n||e.loading&&e.loading.name===t||(o(),e.name="",e.loading={name:t,abort:Hd([r],i)}),null;o(),e.name!==t&&(e.name=t,s&&!e.destroyed&&s(t));const l=["iconify"];return""!==r.prefix&&l.push("iconify--"+r.prefix),""!==r.provider&&l.push("iconify--"+r.provider),{data:a,classes:l}}function pf(t){let n,i=t[0].body+"",s=[t[0].attributes],o={};for(let t=0;t<s.length;t+=1)o=e(o,s[t]);return{c(){n=k("svg"),D(n,o)},m(t,e){y(t,n,e),n.innerHTML=i},p(t,e){1&e&&i!==(i=t[0].body+"")&&(n.innerHTML=i),D(n,o=rt(s,[1&e&&t[0].attributes]))},d(t){t&&_(n)}}}function gf(e){let n,i=null!==e[0]&&pf(e);return{c(){i&&i.c(),n=M()},m(t,e){i&&i.m(t,e),y(t,n,e)},p(t,[e]){null!==t[0]?i?i.p(t,e):(i=pf(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:t,o:t,d(t){i&&i.d(t),t&&_(n)}}}function mf(t,n,i){const s={name:"",loading:null,destroyed:!1};let o,r=!1,a=0;const l=t=>{"function"==typeof n.onLoad&&n.onLoad(t);F()("load",{icon:t})};function c(){i(3,a++,a)}var h;return I((()=>{i(2,r=!0)})),h=()=>{i(1,s.destroyed=!0,s),s.loading&&(s.loading.abort(),i(1,s.loading=null,s))},z().$$.on_destroy.push(h),t.$$set=t=>{i(6,n=e(e({},n),m(t)))},t.$$.update=()=>{{const a=ff(n.icon,s,r,c,l);i(0,o=a?(t=a.data,e=n,t?uf(t,e):null):null),o&&a.classes&&i(0,o.attributes.class=("string"==typeof n.class?n.class+" ":"")+a.classes.join(" "),o)}var t,e},n=m(n),[o,s,r,a]}class bf extends pt{constructor(t){super(),ft(this,t,mf,gf,r,{})}}function xf(t){let e,n,i,o,r,a,l,c,h;return i=new bf({props:{icon:"mdi:close"}}),a=new Iu({props:{componentData:t[1]}}),{c(){e=$("div"),n=$("span"),ct(i.$$.fragment),o=C(),r=$("div"),ct(a.$$.fragment),L(n,"class","cancelButton svelte-1hhf5ym"),L(r,"class","modalContainer"),L(e,"class","modal svelte-1hhf5ym"),L(e,"data-component","modal")},m(s,u){y(s,e,u),x(e,n),ht(i,n,null),x(e,o),x(e,r),ht(a,r,null),l=!0,c||(h=[S(r,"click",_f),S(e,"click",t[3])],c=!0)},p(t,e){const n={};2&e&&(n.componentData=t[1]),a.$set(n)},i(t){l||(it(i.$$.fragment,t),it(a.$$.fragment,t),l=!0)},o(t){st(i.$$.fragment,t),st(a.$$.fragment,t),l=!1},d(t){t&&_(e),ut(i),ut(a),c=!1,s(h)}}}function yf(t){let e,n,i,s,o=t[0]&&t[1]&&xf(t);return{c(){o&&o.c(),e=M()},m(r,a){o&&o.m(r,a),y(r,e,a),n=!0,i||(s=S(window,"keyup",t[2]),i=!0)},p(t,[n]){t[0]&&t[1]?o?(o.p(t,n),3&n&&it(o,1)):(o=xf(t),o.c(),it(o,1),o.m(e.parentNode,e)):o&&(et(),st(o,1,1,(()=>{o=null})),nt())},i(t){n||(it(o),n=!0)},o(t){st(o),n=!1},d(t){o&&o.d(t),t&&_(e),i=!1,s()}}}const _f=t=>{t?.stopImmediatePropagation()};function vf(t,e,n){let i;h(t,$t,(t=>n(1,i=t)));let{componentData:s}=e;return t.$$set=t=>{"componentData"in t&&n(0,s=t.componentData)},[s,i,function(t){"Escape"===t.code&&$t.set(void 0)},function(t){t.stopImmediatePropagation(),$t.set(void 0)}]}class $f extends pt{constructor(t){super(),ft(this,t,vf,yf,r,{componentData:0})}}function kf(t,e,n){const i=t.slice();return i[2]=e[n][0],i[3]=e[n][1],i}function wf(t,e,n){const i=t.slice();return i[6]=e[n],i}function Cf(t){let e,n,i=t[2]+"";return{c(){e=$("span"),n=w(i),L(e,"class","pageId svelte-1kdpgko")},m(t,i){y(t,e,i),x(e,n)},p(t,e){1&e&&i!==(i=t[2]+"")&&P(n,i)},d(t){t&&_(e)}}}function Mf(t){let e,n,i,s,o,r,a=t[6]+"";function l(){return t[1](t[6])}return{c(){e=$("li"),n=$("button"),i=w(a),s=C(),L(n,"class","textButton"),L(e,"class","sectionLink svelte-1kdpgko")},m(t,a){y(t,e,a),x(e,n),x(n,i),x(e,s),o||(r=S(n,"click",l),o=!0)},p(e,n){t=e,1&n&&a!==(a=t[6]+"")&&P(i,a)},d(t){t&&_(e),o=!1,r()}}}function Sf(t){let e,n,i,s,o=t[2]&&Cf(t),r=t[3]||[],a=[];for(let e=0;e<r.length;e+=1)a[e]=Mf(wf(t,r,e));return{c(){e=$("li"),o&&o.c(),n=C(),i=$("ul");for(let t=0;t<a.length;t+=1)a[t].c();s=C(),L(i,"class","navItem svelte-1kdpgko"),L(e,"class","svelte-1kdpgko")},m(t,r){y(t,e,r),o&&o.m(e,null),x(e,n),x(e,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(i,null);x(e,s)},p(t,s){if(t[2]?o?o.p(t,s):(o=Cf(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),1&s){let e;for(r=t[3]||[],e=0;e<r.length;e+=1){const n=wf(t,r,e);a[e]?a[e].p(n,s):(a[e]=Mf(n),a[e].c(),a[e].m(i,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=r.length}},d(t){t&&_(e),o&&o.d(),v(a,t)}}}function Lf(e){let n,i,s=Object.entries(e[0]),o=[];for(let t=0;t<s.length;t+=1)o[t]=Sf(kf(e,s,t));return{c(){n=$("nav"),i=$("ul");for(let t=0;t<o.length;t+=1)o[t].c();L(i,"class","navList svelte-1kdpgko"),L(n,"class","nav svelte-1kdpgko")},m(t,e){y(t,n,e),x(n,i);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(i,null)},p(t,[e]){if(1&e){let n;for(s=Object.entries(t[0]),n=0;n<s.length;n+=1){const r=kf(t,s,n);o[n]?o[n].p(r,e):(o[n]=Sf(r),o[n].c(),o[n].m(i,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=s.length}},i:t,o:t,d(t){t&&_(n),v(o,t)}}}function Df(t,e,n){let{pageHierarchy:i={}}=e;return t.$$set=t=>{"pageHierarchy"in t&&n(0,i=t.pageHierarchy)},[i,t=>function(t){const e=document.querySelector(`[data-section-id="${t}"]`);null==e||e.scrollIntoView({behavior:"smooth"})}(t)]}class Pf extends pt{constructor(t){super(),ft(this,t,Df,Lf,r,{pageHierarchy:0})}}const{Boolean:Of}=ot;function Af(t,e,n){const i=t.slice();return i[5]=e[n],i}function Ef(t){let e,n;return e=new Pf({props:{pageHierarchy:kt(t[0]?.components)}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.pageHierarchy=kt(t[0]?.components)),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Tf(t){let e,n;return e=new Iu({props:{componentData:t[5]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};1&n&&(i.componentData=t[5]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Rf(t){let e,n,i=t[0]?.components||[],s=[];for(let e=0;e<i.length;e+=1)s[e]=Tf(Af(t,i,e));const o=t=>st(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=M()},m(t,i){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,i);y(t,e,i),n=!0},p(t,n){if(1&n){let r;for(i=t[0]?.components||[],r=0;r<i.length;r+=1){const o=Af(t,i,r);s[r]?(s[r].p(o,n),it(s[r],1)):(s[r]=Tf(o),s[r].c(),it(s[r],1),s[r].m(e.parentNode,e))}for(et(),r=i.length;r<s.length;r+=1)o(r);nt()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)it(s[t]);n=!0}},o(t){s=s.filter(Of);for(let t=0;t<s.length;t+=1)st(s[t]);n=!1},d(t){v(s,t),t&&_(e)}}}function zf(t){let e,n;return e=new $f({props:{componentData:t[1]}}),{c(){ct(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};2&n&&(i.componentData=t[1]),e.$set(i)},i(t){n||(it(e.$$.fragment,t),n=!0)},o(t){st(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function If(t){let e,n,i,s,o,r,a;n=new Tt({props:{$$slots:{default:[Ef]},$$scope:{ctx:t}}}),s=new ju({props:{$$slots:{default:[Rf]},$$scope:{ctx:t}}});let l=t[1]&&zf(t);return{c(){e=$("div"),ct(n.$$.fragment),i=C(),ct(s.$$.fragment),o=C(),l&&l.c(),r=M(),L(e,"class","container mf-card svelte-teyund"),A(e,"embed",t[2])},m(t,c){y(t,e,c),ht(n,e,null),x(e,i),ht(s,e,null),y(t,o,c),l&&l.m(t,c),y(t,r,c),a=!0},p(t,[e]){const i={};257&e&&(i.$$scope={dirty:e,ctx:t}),n.$set(i);const o={};257&e&&(o.$$scope={dirty:e,ctx:t}),s.$set(o),t[1]?l?(l.p(t,e),2&e&&it(l,1)):(l=zf(t),l.c(),it(l,1),l.m(r.parentNode,r)):l&&(et(),st(l,1,1,(()=>{l=null})),nt())},i(t){a||(it(n.$$.fragment,t),it(s.$$.fragment,t),it(l),a=!0)},o(t){st(n.$$.fragment,t),st(s.$$.fragment,t),st(l),a=!1},d(t){t&&_(e),ut(n),ut(s),t&&_(o),l&&l.d(t),t&&_(r)}}}function Ff(t,e,n){let i,s;h(t,_t,(t=>n(0,i=t))),h(t,$t,(t=>n(1,s=t)));let{cardDataId:o}=e;vt(o);const r=new URLSearchParams(null===window||void 0===window?void 0:window.location.search);let a=Boolean(r.get("embed"));return t.$$set=t=>{"cardDataId"in t&&n(3,o=t.cardDataId)},[i,s,a,o]}class Nf extends pt{constructor(t){super(),ft(this,t,Ff,If,r,{cardDataId:3})}}var jf;let Bf;try{const t=window.mfCardDataId,e=window.mfContainerId,n=null===(jf=document.querySelector(`[data-container="${e}"]`))||void 0===jf?void 0:jf.querySelector(".card_app");Bf=new Nf({target:null!=n?n:document.querySelector(".card_app"),props:{cardDataId:t}})}catch(t){throw new Error(t)}return Bf}();
|
14
21
|
//# sourceMappingURL=main.js.map
|