@verdocs/web-sdk 6.10.3 → 6.10.4

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.
@@ -0,0 +1,2 @@
1
+ import{p as t,H as n,h as r,d as i,t as e}from"./p-yZBlG3YQ.js";import{formatFullName as s}from"@verdocs/js-sdk";import{c as o}from"./p-BfP9ezJQ.js";var h=Object.create;var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.getPrototypeOf;var f=Object.prototype.hasOwnProperty;var v=(t,n)=>()=>(n||(t((n={exports:{}}).exports,n),t=null),n.exports);var d=(t,n)=>{let r={};for(var i in t){u(r,i,{get:t[i],enumerable:true})}{u(r,Symbol.toStringTag,{value:"Module"})}return r};var C=(t,n,r,i)=>{if(n&&typeof n==="object"||typeof n==="function"){for(var e=a(n),s=0,o=e.length,h;s<o;s++){h=e[s];if(!f.call(t,h)&&h!==r){u(t,h,{get:(t=>n[t]).bind(null,h),enumerable:!(i=c(n,h))||i.enumerable})}}}return t};var p=(t,n,r)=>(r=t!=null?h(l(t)):{},C(u(r,"default",{value:t,enumerable:true}),t));const w={};const y=[];function g(t,n){if(Array.isArray(t)){for(const r of t)g(r,n);return}if(typeof t==="object"){for(const n in t)g(n,t[n]);return}b(Object.getOwnPropertyNames(n));w[t]=Object.assign(w[t]||{},n)}function m(t){return w[t]||{}}function x(){return[...new Set(y)]}function b(t){y.push(...t)}var M=v(((t,n)=>{n.exports=function(t){try{return!!t()}catch(t){return true}}}));var k=v(((t,n)=>{var r=M();n.exports=!r((function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}))}));var j=v(((t,n)=>{var r=k();var i=Function.prototype;var e=i.call;var s=r&&i.bind.bind(e,e);n.exports=r?s:function(t){return function(){return e.apply(t,arguments)}}}));var _=v(((t,n)=>{var r=j();n.exports=r({}.isPrototypeOf)}));var O=v(((t,n)=>{var r=function(t){return t&&t.Math===Math&&t};n.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof global=="object"&&global)||r(typeof t=="object"&&t)||function(){return this}()||Function("return this")()}));var S=v(((t,n)=>{var r=k();var i=Function.prototype;var e=i.apply;var s=i.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(r?s.bind(e):function(){return s.apply(e,arguments)})}));var A=v(((t,n)=>{var r=j();var i=r({}.toString);var e=r("".slice);n.exports=function(t){return e(i(t),8,-1)}}));var E=v(((t,n)=>{var r=A();var i=j();n.exports=function(t){if(r(t)==="Function")return i(t)}}));var L=v(((t,n)=>{var r=typeof document=="object"&&document.all;n.exports=typeof r=="undefined"&&r!==void 0?function(t){return typeof t=="function"||t===r}:function(t){return typeof t=="function"}}));var T=v(((t,n)=>{var r=M();n.exports=!r((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))}));var V=v(((t,n)=>{var r=k();var i=Function.prototype.call;n.exports=r?i.bind(i):function(){return i.apply(i,arguments)}}));var B=v((t=>{var n={}.propertyIsEnumerable;var r=Object.getOwnPropertyDescriptor;var i=r&&!n.call({1:2},1);t.f=i?function t(n){var i=r(this,n);return!!i&&i.enumerable}:n}));var z=v(((t,n)=>{n.exports=function(t,n){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:n}}}));var H=v(((t,n)=>{var r=j();var i=M();var e=A();var s=Object;var o=r("".split);n.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return e(t)==="String"?o(t,""):s(t)}:s}));var D=v(((t,n)=>{n.exports=function(t){return t===null||t===void 0}}));var F=v(((t,n)=>{var r=D();var i=TypeError;n.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}}));var I=v(((t,n)=>{var r=H();var i=F();n.exports=function(t){return r(i(t))}}));var Z=v(((t,n)=>{var r=L();n.exports=function(t){return typeof t=="object"?t!==null:r(t)}}));var $=v(((t,n)=>{n.exports={}}));var N=v(((t,n)=>{var r=$();var i=O();var e=L();var s=function(t){return e(t)?t:void 0};n.exports=function(t,n){return arguments.length<2?s(r[t])||s(i[t]):r[t]&&r[t][n]||i[t]&&i[t][n]}}));var P=v(((t,n)=>{var r=O().navigator;var i=r&&r.userAgent;n.exports=i?String(i):""}));var R=v(((t,n)=>{var r=O();var i=P();var e=r.process;var s=r.Deno;var o=e&&e.versions||s&&s.version;var h=o&&o.v8;var u;var c;if(h){u=h.split(".");c=u[0]>0&&u[0]<4?1:+(u[0]+u[1])}if(!c&&i){u=i.match(/Edge\/(\d+)/);if(!u||u[1]>=74){u=i.match(/Chrome\/(\d+)/);if(u)c=+u[1]}}n.exports=c}));var G=v(((t,n)=>{var r=R();var i=M();var e=O().String;n.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!e(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))}));var Y=v(((t,n)=>{var r=G();n.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}));var X=v(((t,n)=>{var r=N();var i=L();var e=_();var s=Y();var o=Object;n.exports=s?function(t){return typeof t=="symbol"}:function(t){var n=r("Symbol");return i(n)&&e(n.prototype,o(t))}}));var Q=v(((t,n)=>{var r=String;n.exports=function(t){try{return r(t)}catch(t){return"Object"}}}));var J=v(((t,n)=>{var r=L();var i=Q();var e=TypeError;n.exports=function(t){if(r(t))return t;throw new e(i(t)+" is not a function")}}));var q=v(((t,n)=>{var r=J();var i=D();n.exports=function(t,n){var e=t[n];return i(e)?void 0:r(e)}}));var U=v(((t,n)=>{var r=V();var i=L();var e=Z();var s=TypeError;n.exports=function(t,n){var o,h;if(n==="string"&&i(o=t.toString)&&!e(h=r(o,t)))return h;if(i(o=t.valueOf)&&!e(h=r(o,t)))return h;if(n!=="string"&&i(o=t.toString)&&!e(h=r(o,t)))return h;throw new s("Can't convert object to primitive value")}}));var W=v(((t,n)=>{n.exports=true}));var K=v(((t,n)=>{var r=O();var i=Object.defineProperty;n.exports=function(t,n){try{i(r,t,{value:n,configurable:true,writable:true})}catch(i){r[t]=n}return n}}));var tt=v(((t,n)=>{var r=W();var i=O();var e=K();var s="__core-js_shared__";var o=n.exports=i[s]||e(s,{});(o.versions||(o.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})}));var nt=v(((t,n)=>{var r=tt();n.exports=function(t,n){return r[t]||(r[t]=n||{})}}));var rt=v(((t,n)=>{var r=F();var i=Object;n.exports=function(t){return i(r(t))}}));var it=v(((t,n)=>{var r=j();var i=rt();var e=r({}.hasOwnProperty);n.exports=Object.hasOwn||function t(n,r){return e(i(n),r)}}));var et=v(((t,n)=>{var r=j();var i=0;var e=Math.random();var s=r(1.1.toString);n.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+s(++i+e,36)}}));var st=v(((t,n)=>{var r=O();var i=nt();var e=it();var s=et();var o=G();var h=Y();var u=r.Symbol;var c=i("wks");var a=h?u["for"]||u:u&&u.withoutSetter||s;n.exports=function(t){if(!e(c,t))c[t]=o&&e(u,t)?u[t]:a("Symbol."+t);return c[t]}}));var ot=v(((t,n)=>{var r=V();var i=Z();var e=X();var s=q();var o=U();var h=st();var u=TypeError;var c=h("toPrimitive");n.exports=function(t,n){if(!i(t)||e(t))return t;var h=s(t,c);var a;if(h){if(n===void 0)n="default";a=r(h,t,n);if(!i(a)||e(a))return a;throw new u("Can't convert object to primitive value")}if(n===void 0)n="number";return o(t,n)}}));var ht=v(((t,n)=>{var r=ot();var i=X();n.exports=function(t){var n=r(t,"string");return i(n)?n:n+""}}));var ut=v(((t,n)=>{var r=O();var i=Z();var e=r.document;var s=i(e)&&i(e.createElement);n.exports=function(t){return s?e.createElement(t):{}}}));var ct=v(((t,n)=>{var r=T();var i=M();var e=ut();n.exports=!r&&!i((function(){return Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a!==7}))}));var at=v((t=>{var n=T();var r=V();var i=B();var e=z();var s=I();var o=ht();var h=it();var u=ct();var c=Object.getOwnPropertyDescriptor;t.f=n?c:function t(n,a){n=s(n);a=o(a);if(u)try{return c(n,a)}catch(t){}if(h(n,a))return e(!r(i.f,n,a),n[a])}}));var lt=v(((t,n)=>{var r=M();var i=L();var e=/#|\.prototype\./;var s=function(t,n){var e=h[o(t)];return e===c?true:e===u?false:i(n)?r(n):!!n};var o=s.normalize=function(t){return String(t).replace(e,".").toLowerCase()};var h=s.data={};var u=s.NATIVE="N";var c=s.POLYFILL="P";n.exports=s}));var ft=v(((t,n)=>{var r=E();var i=J();var e=k();var s=r(r.bind);n.exports=function(t,n){i(t);return n===void 0?t:e?s(t,n):function(){return t.apply(n,arguments)}}}));var vt=v(((t,n)=>{var r=T();var i=M();n.exports=r&&i((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype!==42}))}));var dt=v(((t,n)=>{var r=Z();var i=String;var e=TypeError;n.exports=function(t){if(r(t))return t;throw new e(i(t)+" is not an object")}}));var Ct=v((t=>{var n=T();var r=ct();var i=vt();var e=dt();var s=ht();var o=TypeError;var h=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c="enumerable";var a="configurable";var l="writable";t.f=n?i?function t(n,r,i){e(n);r=s(r);e(i);if(typeof n==="function"&&r==="prototype"&&"value"in i&&l in i&&!i[l]){var o=u(n,r);if(o&&o[l]){n[r]=i.value;i={configurable:a in i?i[a]:o[a],enumerable:c in i?i[c]:o[c],writable:false}}}return h(n,r,i)}:h:function t(n,i,u){e(n);i=s(i);e(u);if(r)try{return h(n,i,u)}catch(t){}if("get"in u||"set"in u)throw new o("Accessors not supported");if("value"in u)n[i]=u.value;return n}}));var pt=v(((t,n)=>{var r=T();var i=Ct();var e=z();n.exports=r?function(t,n,r){return i.f(t,n,e(1,r))}:function(t,n,r){t[n]=r;return t}}));var wt=v(((t,n)=>{var r=O();var i=S();var e=E();var s=L();var o=at().f;var h=lt();var u=$();var c=ft();var a=pt();var l=it();tt();var f=function(t){var n=function(r,e,s){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,e)}return new t(r,e,s)}return i(t,this,arguments)};n.prototype=t.prototype;return n};n.exports=function(t,n){var i=t.target;var v=t.global;var d=t.stat;var C=t.proto;var p=v?r:d?r[i]:r[i]&&r[i].prototype;var w=v?u:u[i]||a(u,i,{})[i];var y=w.prototype;var g,m,x;var b,M,k,j,_,O;for(b in n){g=h(v?b:i+(d?".":"#")+b,t.forced);m=!g&&p&&l(p,b);k=w[b];if(m)if(t.dontCallGetSet){O=o(p,b);j=O&&O.value}else j=p[b];M=m&&j?j:n[b];if(!g&&!C&&typeof k==typeof M)continue;if(t.bind&&m)_=c(M,r);else if(t.wrap&&m)_=f(M);else if(C&&s(M))_=e(M);else _=M;if(t.sham||M&&M.sham||k&&k.sham)a(_,"sham",true);a(w,b,_);if(C){x=i+"Prototype";if(!l(u,x))a(u,x,{});a(u[x],b,M);if(t.real&&y&&(g||!y[b]))a(y,b,M)}}}}));var yt=v(((t,n)=>{var r=Math.ceil;var i=Math.floor;n.exports=Math.trunc||function t(n){var e=+n;return(e>0?i:r)(e)}}));var gt=v(((t,n)=>{var r=yt();n.exports=function(t){var n=+t;return n!==n||n===0?0:r(n)}}));var mt=v(((t,n)=>{var r=gt();var i=Math.max;var e=Math.min;n.exports=function(t,n){var s=r(t);return s<0?i(s+n,0):e(s,n)}}));var xt=v(((t,n)=>{var r=gt();var i=Math.min;n.exports=function(t){var n=r(t);return n>0?i(n,9007199254740991):0}}));var bt=v(((t,n)=>{var r=xt();n.exports=function(t){return r(t.length)}}));var Mt=v(((t,n)=>{var r=I();var i=mt();var e=bt();var s=function(t){return function(n,s,o){var h=r(n);var u=e(h);if(u===0)return!t&&-1;var c=i(o,u);var a;if(t&&s!==s)while(u>c){a=h[c++];if(a!==a)return true}else for(;u>c;c++)if((t||c in h)&&h[c]===s)return t||c||0;return!t&&-1}};n.exports={includes:s(true),indexOf:s(false)}}));var kt=v(((t,n)=>{n.exports=function(){}}));var jt=v((()=>{var t=wt();var n=Mt().includes;var r=M();var i=kt();var e=r((function(){return!Array(1).includes()}));var s=r((function(){return[,1].includes(void 0,1)}));t({target:"Array",proto:true,forced:e||s},{includes:function t(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}});i("includes")}));var _t=v(((t,n)=>{var r=O();var i=$();n.exports=function(t,n){var e=i[t+"Prototype"];var s=e&&e[n];if(s)return s;var o=r[t];var h=o&&o.prototype;return h&&h[n]}}));var Ot=v(((t,n)=>{jt();var r=_t();n.exports=r("Array","includes")}));var St=v(((t,n)=>{var r=Z();var i=A();var e=st()("match");n.exports=function(t){var n;return r(t)&&((n=t[e])!==void 0?!!n:i(t)==="RegExp")}}));var At=v(((t,n)=>{var r=St();var i=TypeError;n.exports=function(t){if(r(t))throw new i("The method doesn't accept regular expressions");return t}}));var Et=v(((t,n)=>{var r=st()("toStringTag");var i={};i[r]="z";n.exports=String(i)==="[object z]"}));var Lt=v(((t,n)=>{var r=Et();var i=L();var e=A();var s=st()("toStringTag");var o=Object;var h=e(function(){return arguments}())==="Arguments";var u=function(t,n){try{return t[n]}catch(t){}};n.exports=r?e:function(t){var n,r,c;return t===void 0?"Undefined":t===null?"Null":typeof(r=u(n=o(t),s))=="string"?r:h?e(n):(c=e(n))==="Object"&&i(n.callee)?"Arguments":c}}));var Tt=v(((t,n)=>{var r=Lt();var i=String;n.exports=function(t){if(r(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}}));var Vt=v(((t,n)=>{var r=st()("match");n.exports=function(t){var n=/./;try{"/./"[t](n)}catch(i){try{n[r]=false;return"/./"[t](n)}catch(t){}}return false}}));var Bt=v((()=>{var t=wt();var n=j();var r=At();var i=F();var e=Tt();var s=Vt();var o=n("".indexOf);t({target:"String",proto:true,forced:!s("includes")},{includes:function t(n){return!!~o(e(i(this)),e(r(n)),arguments.length>1?arguments[1]:void 0)}})}));var zt=v(((t,n)=>{Bt();var r=_t();n.exports=r("String","includes")}));var Ht=v(((t,n)=>{var r=_();var i=Ot();var e=zt();var s=Array.prototype;var o=String.prototype;n.exports=function(t){var n=t.includes;if(t===s||r(s,t)&&n===s.includes)return i;if(typeof t=="string"||t===o||r(o,t)&&n===o.includes)return e;return n}}));var Dt=v(((t,n)=>{var r=Ht();n.exports=r}));var Ft=p(Dt());function It(t,n){let r;const i=t.length;const e=[];for(r=0;r<i;r++)e.push(n(t[r]));return e}function Zt(t,n){let r;const i=t.length;const e=[];for(r=0;r<i;r++)if(n(t[r]))e.push(t[r]);return e}function $t(t){return t%360*Math.PI/180}function Nt(t){return t.replace(/([A-Z])/g,(function(t,n){return"-"+n.toLowerCase()}))}function Pt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Rt(t,n,r,i){if(n==null||r==null){i=i||t.bbox();if(n==null)n=i.width/i.height*r;else if(r==null)r=i.height/i.width*n}return{width:n,height:r}}function Gt(t,n){const r=t.origin;let i=t.ox!=null?t.ox:t.originX!=null?t.originX:"center";let e=t.oy!=null?t.oy:t.originY!=null?t.originY:"center";if(r!=null)[i,e]=Array.isArray(r)?r:typeof r==="object"?[r.x,r.y]:[r,r];const s=typeof i==="string";const o=typeof e==="string";if(s||o){const{height:t,width:r,x:h,y:u}=n.bbox();if(s)i=(0,Ft.default)(i).call(i,"left")?h:(0,Ft.default)(i).call(i,"right")?h+r:h+r/2;if(o)e=(0,Ft.default)(e).call(e,"top")?u:(0,Ft.default)(e).call(e,"bottom")?u+t:u+t/2}return[i,e]}const Yt=new Set(["desc","metadata","title"]);const Xt=t=>Yt.has(t.nodeName);const Qt=(t,n,r={})=>{const i={...n};for(const t in i)if(i[t].valueOf()===r[t])delete i[t];if(Object.keys(i).length)t.node.setAttribute("data-svgjs",JSON.stringify(i));else{t.node.removeAttribute("data-svgjs");t.node.removeAttribute("svgjs:data")}};const Jt="http://www.w3.org/2000/svg";const qt="http://www.w3.org/1999/xhtml";const Ut="http://www.w3.org/2000/xmlns/";const Wt="http://www.w3.org/1999/xlink";const Kt={window:typeof window==="undefined"?null:window,document:typeof document==="undefined"?null:document};function tn(){return Kt.window}var nn=class{};const rn={};const en="___SYMBOL___ROOT___";function sn(t,n=Jt){return Kt.document.createElementNS(n,t)}function on(t,n=false){if(t instanceof nn)return t;if(typeof t==="object")return cn(t);if(t==null)return new rn[en];if(typeof t==="string"&&t.trim().charAt(0)!=="<")return cn(Kt.document.querySelector(t));const r=n?Kt.document.createElement("div"):sn("svg");r.innerHTML=t.trim();t=cn(r.firstElementChild);r.removeChild(r.firstElementChild);return t}function hn(t,n){return n&&(n instanceof Kt.window.Node||n.ownerDocument&&n instanceof n.ownerDocument.defaultView.Node)?n:sn(t)}function un(t){if(!t)return null;if(t.instance instanceof nn)return t.instance;if(t.nodeName==="#document-fragment")return new rn.Fragment(t);let n=Pt(t.nodeName||"Dom");if(n==="LinearGradient"||n==="RadialGradient")n="Gradient";else if(!rn[n])n="Dom";return new rn[n](t)}let cn=un;function an(t,n=t.name,r=false){rn[n]=t;if(r)rn[en]=t;b(Object.getOwnPropertyNames(t.prototype));return t}function ln(t){return rn[t]}let fn=1e3;function vn(t){return"Svgjs"+Pt(t)+fn++}function dn(t){for(let n=t.children.length-1;n>=0;n--)dn(t.children[n]);if(t.id){t.id=vn(t.nodeName);return t}return t}function Cn(t,n){let r,i;t=Array.isArray(t)?t:[t];for(i=t.length-1;i>=0;i--)for(r in n)t[i].prototype[r]=n[r]}function pn(t){return function(...n){const r=n[n.length-1];if(r&&r.constructor===Object&&!(r instanceof Array))return t.apply(this,n.slice(0,-1)).attr(r);else return t.apply(this,n)}}function wn(){return this.parent().children()}function yn(){return this.parent().index(this)}function gn(){return this.siblings()[this.position()+1]}function mn(){return this.siblings()[this.position()-1]}function xn(){const t=this.position();this.parent().add(this.remove(),t+1);return this}function bn(){const t=this.position();this.parent().add(this.remove(),t?t-1:0);return this}function Mn(){this.parent().add(this.remove());return this}function kn(){this.parent().add(this.remove(),0);return this}function jn(t){t=on(t);t.remove();const n=this.position();this.parent().add(t,n);return this}function _n(t){t=on(t);t.remove();const n=this.position();this.parent().add(t,n+1);return this}function On(t){t=on(t);t.before(this);return this}function Sn(t){t=on(t);t.after(this);return this}g("Dom",{siblings:wn,position:yn,next:gn,prev:mn,forward:xn,backward:bn,front:Mn,back:kn,before:jn,after:_n,insertBefore:On,insertAfter:Sn});const An=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i;const En=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;const Ln=/rgb\((\d+),(\d+),(\d+)\)/;const Tn=/^(#[^\s]+)$/;const Vn=/\)\s*,?\s*/;const Bn=/\s/g;const zn=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i;const Hn=/^rgb\(/;const Dn=/^(\s+)?$/;const Fn=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;const In=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i;const Zn=/[\s,]+/;const $n=/[MLHVCSQTAZ]/i;function Nn(){const t=this.attr("class");return t==null?[]:t.trim().split(Zn)}function Pn(t){return this.classes().indexOf(t)!==-1}function Rn(t){if(!this.hasClass(t)){const n=this.classes();n.push(t);this.attr("class",n.join(" "))}return this}function Gn(t){if(this.hasClass(t))this.attr("class",this.classes().filter((function(n){return n!==t})).join(" "));return this}function Yn(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}g("Dom",{classes:Nn,hasClass:Pn,addClass:Rn,removeClass:Gn,toggleClass:Yn});const Xn=t=>t.startsWith("--")?t:Nt(t);function Qn(t,n){const r={};if(arguments.length===0){const t=this.node.style;for(let n=0;n<t.length;n++){const i=t.item(n);const e=t.getPropertyValue(i);const s=t.getPropertyPriority(i);r[i]=s?`${e} !${s}`:e}return r}if(arguments.length<2){if(Array.isArray(t)){for(const n of t){const t=Xn(n);r[n]=this.node.style.getPropertyValue(t)}return r}if(typeof t==="string")return this.node.style.getPropertyValue(Xn(t));if(typeof t==="object")for(const n in t)this.node.style.setProperty(Xn(n),t[n]==null||Dn.test(t[n])?"":t[n])}if(arguments.length===2)this.node.style.setProperty(Xn(t),n==null||Dn.test(n)?"":n);return this}function Jn(){return this.css("display","")}function qn(){return this.css("display","none")}function Un(){return this.css("display")!=="none"}g("Dom",{css:Qn,show:Jn,hide:qn,visible:Un});function Wn(t,n,r){if(t==null)return this.data(It(Zt(this.node.attributes,(t=>t.nodeName.indexOf("data-")===0)),(t=>t.nodeName.slice(5))));else if(t instanceof Array){const n={};for(const r of t)n[r]=this.data(r);return n}else if(typeof t==="object")for(n in t)this.data(n,t[n]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(n){return this.attr("data-"+t)}else this.attr("data-"+t,n===null?null:r===true||typeof n==="string"||typeof n==="number"?n:JSON.stringify(n));return this}g("Dom",{data:Wn});function Kn(t,n){if(typeof arguments[0]==="object")for(const n in t)this.remember(n,t[n]);else if(arguments.length===1)return this.memory()[t];else this.memory()[t]=n;return this}function tr(){if(arguments.length===0)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this}function nr(){return this._memory=this._memory||{}}g("Dom",{remember:Kn,forget:tr,memory:nr});function rr(t){return t.length===4?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function ir(t){const n=Math.max(0,Math.min(255,Math.round(t))).toString(16);return n.length===1?"0"+n:n}function er(t,n){for(let r=n.length;r--;)if(t[n[r]]==null)return false;return true}function sr(t,n){const r=er(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:er(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:er(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:er(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:er(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:er(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};r.space=n||r.space;return r}function or(t){if(t==="lab"||t==="xyz"||t==="lch")return true;else return false}function hr(t,n,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(n-t)*6*r;if(r<1/2)return n;if(r<2/3)return t+(n-t)*(2/3-r)*6;return t}var ur=class t{constructor(...t){this.init(...t)}static isColor(n){return n&&(n instanceof t||this.isRgb(n)||this.test(n))}static isRgb(t){return t&&typeof t.r==="number"&&typeof t.g==="number"&&typeof t.b==="number"}static random(n="vibrant",r){const{random:i,round:e,sin:s,PI:o}=Math;if(n==="vibrant"){const n=24*i()+57;const r=38*i()+45;const e=360*i();return new t(n,r,e,"lch")}else if(n==="sine"){r=r==null?i():r;const n=e(80*s(2*o*r/.5+.01)+150);const h=e(50*s(2*o*r/.5+4.6)+200);const u=e(100*s(2*o*r/.5+2.3)+150);return new t(n,h,u)}else if(n==="pastel"){const n=8*i()+86;const r=17*i()+9;const e=360*i();return new t(n,r,e,"lch")}else if(n==="dark"){const n=10+10*i();const r=50*i()+86;const e=360*i();return new t(n,r,e,"lch")}else if(n==="rgb"){const n=255*i();const r=255*i();const e=255*i();return new t(n,r,e)}else if(n==="lab"){const n=100*i();const r=256*i()-128;const e=256*i()-128;return new t(n,r,e,"lab")}else if(n==="grey"){const n=255*i();return new t(n,n,n)}else throw new Error("Unsupported random color mode")}static test(t){return typeof t==="string"&&(zn.test(t)||Hn.test(t))}cmyk(){const{_a:n,_b:r,_c:i}=this.rgb();const[e,s,o]=[n,r,i].map((t=>t/255));const h=Math.min(1-e,1-s,1-o);if(h===1)return new t(0,0,0,1,"cmyk");const u=(1-e-h)/(1-h);const c=(1-s-h)/(1-h);const a=(1-o-h)/(1-h);return new t(u,c,a,h,"cmyk")}hsl(){const{_a:n,_b:r,_c:i}=this.rgb();const[e,s,o]=[n,r,i].map((t=>t/255));const h=Math.max(e,s,o);const u=Math.min(e,s,o);const c=(h+u)/2;const a=h===u;const l=h-u;const f=a?0:c>.5?l/(2-h-u):l/(h+u);const v=a?0:h===e?((s-o)/l+(s<o?6:0))/6:h===s?((o-e)/l+2)/6:h===o?((e-s)/l+4)/6:0;return new t(360*v,100*f,100*c,"hsl")}init(t=0,n=0,r=0,i=0,e="rgb"){t=!t?0:t;if(this.space)for(const t in this.space)delete this[this.space[t]];if(typeof t==="number"){e=typeof i==="string"?i:e;i=typeof i==="string"?0:i;Object.assign(this,{_a:t,_b:n,_c:r,_d:i,space:e})}else if(t instanceof Array){this.space=n||(typeof t[3]==="string"?t[3]:t[4])||"rgb";Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0})}else if(t instanceof Object){const r=sr(t,n);Object.assign(this,r)}else if(typeof t==="string")if(Hn.test(t)){const n=t.replace(Bn,"");const[r,i,e]=Ln.exec(n).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:r,_b:i,_c:e,_d:0,space:"rgb"})}else if(zn.test(t)){const n=t=>parseInt(t,16);const[,r,i,e]=En.exec(rr(t)).map(n);Object.assign(this,{_a:r,_b:i,_c:e,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color");const{_a:s,_b:o,_c:h,_d:u}=this;const c=this.space==="rgb"?{r:s,g:o,b:h}:this.space==="xyz"?{x:s,y:o,z:h}:this.space==="hsl"?{h:s,s:o,l:h}:this.space==="lab"?{l:s,a:o,b:h}:this.space==="lch"?{l:s,c:o,h}:this.space==="cmyk"?{c:s,m:o,y:h,k:u}:{};Object.assign(this,c)}lab(){const{x:n,y:r,z:i}=this.xyz();const e=116*r-16;const s=500*(n-r);const o=200*(r-i);return new t(e,s,o,"lab")}lch(){const{l:n,a:r,b:i}=this.lab();const e=Math.sqrt(r**2+i**2);let s=180*Math.atan2(i,r)/Math.PI;if(s<0){s*=-1;s=360-s}return new t(n,e,s,"lch")}rgb(){if(this.space==="rgb")return this;else if(or(this.space)){let{x:n,y:r,z:i}=this;if(this.space==="lab"||this.space==="lch"){let{l:t,a:e,b:s}=this;if(this.space==="lch"){const{c:t,h:n}=this;const r=Math.PI/180;e=t*Math.cos(r*n);s=t*Math.sin(r*n)}const o=(t+16)/116;const h=e/500+o;const u=o-s/200;const c=16/116;const a=.008856;const l=7.787;n=.95047*(h**3>a?h**3:(h-c)/l);r=1*(o**3>a?o**3:(o-c)/l);i=1.08883*(u**3>a?u**3:(u-c)/l)}const e=n*3.2406+r*-1.5372+i*-.4986;const s=n*-.9689+r*1.8758+i*.0415;const o=n*.0557+r*-.204+i*1.057;const h=Math.pow;const u=.0031308;const c=e>u?1.055*h(e,1/2.4)-.055:12.92*e;const a=s>u?1.055*h(s,1/2.4)-.055:12.92*s;const l=o>u?1.055*h(o,1/2.4)-.055:12.92*o;return new t(255*c,255*a,255*l)}else if(this.space==="hsl"){let{h:n,s:r,l:i}=this;n/=360;r/=100;i/=100;if(r===0){i*=255;return new t(i,i,i)}const e=i<.5?i*(1+r):i+r-i*r;const s=2*i-e;const o=255*hr(s,e,n+1/3);const h=255*hr(s,e,n);const u=255*hr(s,e,n-1/3);return new t(o,h,u)}else if(this.space==="cmyk"){const{c:n,m:r,y:i,k:e}=this;const s=255*(1-Math.min(1,n*(1-e)+e));const o=255*(1-Math.min(1,r*(1-e)+e));const h=255*(1-Math.min(1,i*(1-e)+e));return new t(s,o,h)}else return this}toArray(){const{_a:t,_b:n,_c:r,_d:i,space:e}=this;return[t,n,r,i,e]}toHex(){const[t,n,r]=this._clamped().map(ir);return`#${t}${n}${r}`}toRgb(){const[t,n,r]=this._clamped();return`rgb(${t},${n},${r})`}toString(){return this.toHex()}xyz(){const{_a:n,_b:r,_c:i}=this.rgb();const[e,s,o]=[n,r,i].map((t=>t/255));const h=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92;const u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;const c=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;const a=(h*.4124+u*.3576+c*.1805)/.95047;const l=(h*.2126+u*.7152+c*.0722)/1;const f=(h*.0193+u*.1192+c*.9505)/1.08883;const v=a>.008856?Math.pow(a,1/3):7.787*a+16/116;const d=l>.008856?Math.pow(l,1/3):7.787*l+16/116;const C=f>.008856?Math.pow(f,1/3):7.787*f+16/116;return new t(v,d,C,"xyz")}_clamped(){const{_a:t,_b:n,_c:r}=this.rgb();const{max:i,min:e,round:s}=Math;const o=t=>i(0,e(s(t),255));return[t,n,r].map(o)}};var cr=class t{constructor(...t){this.init(...t)}clone(){return new t(this)}init(t,n){const r={x:0,y:0};const i=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t==="object"?{x:t.x,y:t.y}:{x:t,y:n};this.x=i.x==null?r.x:i.x;this.y=i.y==null?r.y:i.y;return this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){if(!fr.isMatrixLike(t))t=new fr(t);const{x:n,y:r}=this;this.x=t.a*n+t.c*r+t.e;this.y=t.b*n+t.d*r+t.f;return this}};function ar(t,n){return new cr(t,n).transformO(this.screenCTM().inverseO())}function lr(t,n,r){return Math.abs(n-t)<1e-6}var fr=class t{constructor(...t){this.init(...t)}static formatTransforms(t){const n=t.flip==="both"||t.flip===true;const r=t.flip&&(n||t.flip==="x")?-1:1;const i=t.flip&&(n||t.flip==="y")?-1:1;const e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0;const s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0;const o=t.scale&&t.scale.length?t.scale[0]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleX)?t.scaleX*r:r;const h=t.scale&&t.scale.length?t.scale[1]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleY)?t.scaleY*i:i;const u=t.shear||0;const c=t.rotate||t.theta||0;const a=new cr(t.origin||t.around||t.ox||t.originX,t.oy||t.originY);const l=a.x;const f=a.y;const v=new cr(t.position??t.px??t.positionX??NaN,t.py??t.positionY??NaN);const d=v.x;const C=v.y;const p=new cr(t.translate||t.tx||t.translateX,t.ty||t.translateY);const w=p.x;const y=p.y;const g=new cr(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:h,skewX:e,skewY:s,shear:u,theta:c,rx:g.x,ry:g.y,tx:w,ty:y,ox:l,oy:f,px:d,py:C}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null}static matrixMultiply(t,n,r){const i=t.a*n.a+t.c*n.b;const e=t.b*n.a+t.d*n.b;const s=t.a*n.c+t.c*n.d;const o=t.b*n.c+t.d*n.d;const h=t.e+t.a*n.e+t.c*n.f;const u=t.f+t.b*n.e+t.d*n.f;r.a=i;r.b=e;r.c=s;r.d=o;r.e=h;r.f=u;return r}around(t,n,r){return this.clone().aroundO(t,n,r)}aroundO(t,n,r){const i=t||0;const e=n||0;return this.translateO(-i,-e).lmultiplyO(r).translateO(i,e)}clone(){return new t(this)}decompose(t=0,n=0){const r=this.a;const i=this.b;const e=this.c;const s=this.d;const o=this.e;const h=this.f;const u=r*s-i*e;const c=u>0?1:-1;const a=c*Math.sqrt(r*r+i*i);const l=Math.atan2(c*i,c*r);const f=180/Math.PI*l;const v=(r*e+i*s)/u;return{scaleX:a,scaleY:e*a/(v*r-i)||s*a/(v*i+r),shear:v,rotate:f,translateX:o-t+t*r+n*e,translateY:h-n+t*i+n*s,originX:t,originY:n,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(n){if(n===this)return true;const r=new t(n);return lr(this.a,r.a)&&lr(this.b,r.b)&&lr(this.c,r.c)&&lr(this.d,r.d)&&lr(this.e,r.e)&&lr(this.f,r.f)}flip(t,n){return this.clone().flipO(t,n)}flipO(t,n){return t==="x"?this.scaleO(-1,1,n,0):t==="y"?this.scaleO(1,-1,0,n):this.scaleO(-1,-1,t,n||t)}init(n){const r=t.fromArray([1,0,0,1,0,0]);n=n instanceof Kr?n.matrixify():typeof n==="string"?t.fromArray(n.split(Zn).map(parseFloat)):Array.isArray(n)?t.fromArray(n):typeof n==="object"&&t.isMatrixLike(n)?n:typeof n==="object"?(new t).transform(n):arguments.length===6?t.fromArray([].slice.call(arguments)):r;this.a=n.a!=null?n.a:r.a;this.b=n.b!=null?n.b:r.b;this.c=n.c!=null?n.c:r.c;this.d=n.d!=null?n.d:r.d;this.e=n.e!=null?n.e:r.e;this.f=n.f!=null?n.f:r.f;return this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a;const n=this.b;const r=this.c;const i=this.d;const e=this.e;const s=this.f;const o=t*i-n*r;if(!o)throw new Error("Cannot invert "+this);const h=i/o;const u=-n/o;const c=-r/o;const a=t/o;const l=-(h*e+c*s);const f=-(u*e+a*s);this.a=h;this.b=u;this.c=c;this.d=a;this.e=l;this.f=f;return this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(n){const r=this;const i=n instanceof t?n:new t(n);return t.matrixMultiply(i,r,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(n){const r=this;const i=n instanceof t?n:new t(n);return t.matrixMultiply(r,i,this)}rotate(t,n,r){return this.clone().rotateO(t,n,r)}rotateO(t,n=0,r=0){t=$t(t);const i=Math.cos(t);const e=Math.sin(t);const{a:s,b:o,c:h,d:u,e:c,f:a}=this;this.a=s*i-o*e;this.b=o*i+s*e;this.c=h*i-u*e;this.d=u*i+h*e;this.e=c*i-a*e+r*e-n*i+n;this.f=a*i+c*e-n*e-r*i+r;return this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,n=t,r=0,i=0){if(arguments.length===3){i=r;r=n;n=t}const{a:e,b:s,c:o,d:h,e:u,f:c}=this;this.a=e*t;this.b=s*n;this.c=o*t;this.d=h*n;this.e=u*t-r*t+r;this.f=c*n-i*n+i;return this}shear(t,n,r){return this.clone().shearO(t,n,r)}shearO(t,n=0,r=0){const{a:i,b:e,c:s,d:o,e:h,f:u}=this;this.a=i+e*t;this.c=s+o*t;this.e=h+u*t-r*t;return this}skew(){return this.clone().skewO(...arguments)}skewO(t,n=t,r=0,i=0){if(arguments.length===3){i=r;r=n;n=t}t=$t(t);n=$t(n);const e=Math.tan(t);const s=Math.tan(n);const{a:o,b:h,c:u,d:c,e:a,f:l}=this;this.a=o+h*e;this.b=h+o*s;this.c=u+c*e;this.d=c+u*s;this.e=a+l*e-i*e;this.f=l+a*s-r*s;return this}skewX(t,n,r){return this.skew(t,0,n,r)}skewY(t,n,r){return this.skew(0,t,n,r)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(n){if(t.isMatrixLike(n))return new t(n).multiplyO(this);const r=t.formatTransforms(n);const i=this;const{x:e,y:s}=new cr(r.ox,r.oy).transform(i);const o=(new t).translateO(r.rx,r.ry).lmultiplyO(i).translateO(-e,-s).scaleO(r.scaleX,r.scaleY).skewO(r.skewX,r.skewY).shearO(r.shear).rotateO(r.theta).translateO(e,s);if(isFinite(r.px)||isFinite(r.py)){const t=new cr(e,s).transform(o);const n=isFinite(r.px)?r.px-t.x:0;const i=isFinite(r.py)?r.py-t.y:0;o.translateO(n,i)}o.translateO(r.tx,r.ty);return o}translate(t,n){return this.clone().translateO(t,n)}translateO(t,n){this.e+=t||0;this.f+=n||0;return this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}};function vr(){return new fr(this.node.getCTM())}function dr(){try{if(typeof this.isRoot==="function"&&!this.isRoot()){const t=this.rect(1,1);const n=t.node.getScreenCTM();t.remove();return new fr(n)}return new fr(this.node.getScreenCTM())}catch(t){console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`);return new fr}}an(fr,"Matrix");function Cr(){if(!Cr.nodes||Cr.nodes.svg.node.ownerDocument!==Kt.document){const t=on().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";");t.attr("focusable","false");t.attr("aria-hidden","true");Cr.nodes={svg:t,path:t.path().node}}if(!Cr.nodes.svg.node.parentNode)Cr.nodes.svg.addTo(Kt.document.body||Kt.document.documentElement);return Cr.nodes}function pr(t){return!t.width&&!t.height&&!t.x&&!t.y}function wr(t){return t===Kt.document||(Kt.document.documentElement.contains||function(t){while(t.parentNode)t=t.parentNode;return t===Kt.document}).call(Kt.document.documentElement,t)}var yr=class t{constructor(...t){this.init(...t)}addOffset(){this.x+=Kt.window.pageXOffset;this.y+=Kt.window.pageYOffset;return new t(this)}init(t){t=typeof t==="string"?t.split(Zn).map(parseFloat):Array.isArray(t)?t:typeof t==="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):[0,0,0,0];this.x=t[0]||0;this.y=t[1]||0;this.width=this.w=t[2]||0;this.height=this.h=t[3]||0;this.x2=this.x+this.w;this.y2=this.y+this.h;this.cx=this.x+this.w/2;this.cy=this.y+this.h/2;return this}isNulled(){return pr(this)}merge(n){const r=Math.min(this.x,n.x);const i=Math.min(this.y,n.y);const e=Math.max(this.x+this.width,n.x+n.width)-r;const s=Math.max(this.y+this.height,n.y+n.height)-i;return new t(r,i,e,s)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(n){if(!(n instanceof fr))n=new fr(n);let r=Infinity;let i=-Infinity;let e=Infinity;let s=-Infinity;[new cr(this.x,this.y),new cr(this.x2,this.y),new cr(this.x,this.y2),new cr(this.x2,this.y2)].forEach((function(t){t=t.transform(n);r=Math.min(r,t.x);i=Math.max(i,t.x);e=Math.min(e,t.y);s=Math.max(s,t.y)}));return new t(r,e,i-r,s-e)}};function gr(t,n,r){let i;try{i=n(t.node);if(pr(i)&&!wr(t.node))throw new Error("Element not in the dom")}catch(n){i=r(t)}return i}function mr(){const t=t=>t.getBBox();const n=t=>{try{const n=t.clone().addTo(Cr().svg).show();const r=n.node.getBBox();n.remove();return r}catch(n){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${n.toString()}`)}};const r=gr(this,t,n);return new yr(r)}function xr(t){const n=t=>t.getBoundingClientRect();const r=t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)};const i=gr(this,n,r);const e=new yr(i);if(t)return e.transform(t.screenCTM().inverseO());return e.addOffset()}function br(t,n){const r=this.bbox();return t>r.x&&n>r.y&&t<r.x+r.width&&n<r.y+r.height}g({viewbox:{viewbox(t,n,r,i){if(t==null)return new yr(this.attr("viewBox"));return this.attr("viewBox",new yr(t,n,r,i))},zoom(t,n){let{width:r,height:i}=this.attr(["width","height"]);if(!r&&!i||typeof r==="string"||typeof i==="string"){r=this.node.clientWidth;i=this.node.clientHeight}if(!r||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const e=this.viewbox();const s=r/e.width;const o=i/e.height;const h=Math.min(s,o);if(t==null)return h;let u=h/t;if(u===Infinity)u=Number.MAX_SAFE_INTEGER/100;n=n||new cr(r/2/s+e.x,i/2/o+e.y);const c=new yr(e).transform(new fr({scale:u,origin:n}));return this.viewbox(c)}}});an(yr,"Box");var Mr=class extends Array{constructor(t=[],...n){super(t,...n);if(typeof t==="number")return this;this.length=0;this.push(...t)}};Cn([Mr],{each(t,...n){if(typeof t==="function")return this.map(((n,r,i)=>t.call(n,n,r,i)));else return this.map((r=>r[t](...n)))},toArray(){return Array.prototype.concat.apply([],this)}});const kr=["toArray","constructor","each"];Mr.extend=function(t){t=t.reduce(((t,n)=>{if((0,Ft.default)(kr).call(kr,n))return t;if(n[0]==="_")return t;if(n in Array.prototype)t["$"+n]=Array.prototype[n];t[n]=function(...t){return this.each(n,...t)};return t}),{});Cn([Mr],t)};function jr(t){let n=(t+"").trim();const r=n.match(/^url\((.*)\)$/i);if(r){n=r[1].trim();const t=n[0];if(t==='"'||t==="'"){if(n[n.length-1]!==t)return null;n=n.slice(1,-1)}}const i=n.match(Tn);return i?i[1].slice(1):null}function _r(t,n){const r=`#${Kt.window.CSS.escape(n)}`;if(t.nodeType===1&&t.matches(r))return t;return t.querySelector(r)}function Or(t,n){const r=jr(n);return r?_r(t.getRootNode(),r):null}function Sr(t,n,r=`[${n}]`){const i=t.getAttribute("id");const e=t.getRootNode();if(!i||_r(e,i)!==t)return new Mr;const s=[];if(e.nodeType===1&&e.matches(r)&&jr(e.getAttribute(n))===i)s.push(un(e));for(const t of e.querySelectorAll(r))if(jr(t.getAttribute(n))===i)s.push(un(t));return new Mr(s)}function Ar(t,n){return new Mr(It((n||Kt.document).querySelectorAll(t),(function(t){return un(t)})))}function Er(t){return Ar(t,this.node)}function Lr(t){return un(this.node.querySelector(t))}let Tr=0;const Vr=new WeakMap;const Br=new WeakMap;const zr=()=>Object.create(null);function Hr(t){const n=t.getEventHolder();let r=Vr.get(n);if(!r){r=zr();Vr.set(n,r)}return r}function Dr(t){return t.getEventTarget()}function Fr(t){Vr.delete(t.getEventHolder())}function Ir(t,n,r,i,e){const s=r.bind(i||t);const o=e||false;const h=on(t);const u=Hr(h);const c=Dr(h);n=Array.isArray(n)?n:n.split(Zn);let a=Br.get(r);if(!a){a=++Tr;Br.set(r,a)}n.forEach((function(t){const n=t.split(".")[0];const r=t.split(".")[1]||"*";u[n]=u[n]||zr();u[n][r]=u[n][r]||zr();u[n][r][a]=u[n][r][a]||[];u[n][r][a].push({listener:s,options:o});c.addEventListener(n,s,o)}))}function Zr(t,n,r,i){const e=on(t);const s=Hr(e);const o=Dr(e);if(typeof r==="function"){r=Br.get(r);if(!r)return}n=Array.isArray(n)?n:(n||"").split(Zn);n.forEach((function(t){const n=t&&t.split(".")[0];const h=t&&t.split(".")[1];let u,c;if(r){if(s[n]&&s[n][h||"*"]){const t=s[n][h||"*"][r];if(!t)return;t.forEach((function(t){o.removeEventListener(n,t.listener,t.options??i??false)}));delete s[n][h||"*"][r]}}else if(n&&h){if(s[n]&&s[n][h]){for(c in s[n][h])Zr(o,[n,h].join("."),c);delete s[n][h]}}else if(h){for(t in s)for(u in s[t])if(h===u)Zr(o,[t,h].join("."))}else if(n){if(s[n]){for(u in s[n])Zr(o,[n,u].join("."));delete s[n]}}else{for(t in s)Zr(o,t);Fr(e)}}))}function $r(t,n,r,i){const e=Dr(t);if(n instanceof Kt.window.Event)e.dispatchEvent(n);else{n=new Kt.window.CustomEvent(n,{detail:r,cancelable:true,...i});e.dispatchEvent(n)}return n}var Nr=class extends nn{addEventListener(){}dispatch(t,n,r){return $r(this,t,n,r)}dispatchEvent(t){const n=Hr(this)[t.type];if(!n)return true;for(const r in n)for(const i in n[r])n[r][i].forEach((function(n){n.listener(t)}));return!t.defaultPrevented}fire(t,n,r){this.dispatch(t,n,r);return this}getEventHolder(){return this}getEventTarget(){return this}off(t,n,r){Zr(this,t,n,r);return this}on(t,n,r,i){Ir(this,t,n,r,i);return this}removeEventListener(){}};an(Nr,"EventTarget");function Pr(){}const Rr={duration:400,ease:">",delay:0};const Gr={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};var Yr=class extends Array{constructor(...t){super(...t);this.init(...t)}clone(){return new this.constructor(this)}init(t){if(typeof t==="number")return this;this.length=0;this.push(...this.parse(t));return this}parse(t=[]){if(t instanceof Array)return t;return t.trim().split(Zn).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];t.push(...this);return t}};var Xr=class t{constructor(...t){this.init(...t)}convert(n){return new t(this.value,n)}divide(n){n=new t(n);return new t(this/n,this.unit||n.unit)}init(n,r){r=Array.isArray(n)?n[1]:r;n=Array.isArray(n)?n[0]:n;this.value=0;this.unit=r||"";if(typeof n==="number")this.value=isNaN(n)?0:!isFinite(n)?n<0?-34e37:34e37:n;else if(typeof n==="string"){r=n.match(An);if(r){this.value=parseFloat(r[1]);if(r[5]==="%")this.value/=100;else if(r[5]==="s")this.value*=1e3;this.unit=r[5]}}else if(n instanceof t){this.value=n.valueOf();this.unit=n.unit}return this}minus(n){n=new t(n);return new t(this-n,this.unit||n.unit)}plus(n){n=new t(n);return new t(this+n,this.unit||n.unit)}times(n){n=new t(n);return new t(this*n,this.unit||n.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}};const Qr=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]);const Jr=[];function qr(t){Jr.push(t)}function Ur(t,n,r){if(t==null){t={};n=this.node.attributes;for(const r of n)t[r.nodeName]=Fn.test(r.nodeValue)?parseFloat(r.nodeValue):r.nodeValue;return t}else if(t instanceof Array)return t.reduce(((t,n)=>{t[n]=this.attr(n);return t}),{});else if(typeof t==="object"&&t.constructor===Object)for(n in t)this.attr(n,t[n]);else if(n===null)this.node.removeAttribute(t);else if(n==null){n=this.node.getAttribute(t);return n==null?Gr[t]:Fn.test(n)?parseFloat(n):n}else{n=Jr.reduce(((n,r)=>r(t,n,this)),n);if(typeof n==="number")n=new Xr(n);else if(Qr.has(t)&&ur.isColor(n))n=new ur(n);else if(n.constructor===Array)n=new Yr(n);if(t==="leading"){if(this.leading)this.leading(n)}else typeof r==="string"?this.node.setAttributeNS(r,t,n.toString()):this.node.setAttribute(t,n.toString());if(this.rebuild&&(t==="font-size"||t==="x"))this.rebuild()}return this}var Wr=class t extends Nr{constructor(t,n){super();this.node=t;this.type=t.nodeName;if(n&&t!==n)this.attr(n)}add(t,n){t=on(t);if(t.removeNamespace&&this.node instanceof Kt.window.SVGElement)t.removeNamespace();if(n==null)this.node.appendChild(t.node);else if(t.node!==this.node.childNodes[n])this.node.insertBefore(t.node,this.node.childNodes[n]);return this}addTo(t,n){return on(t).put(this,n)}children(){return new Mr(It(this.node.children,(function(t){return un(t)})))}clear(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return this}clone(t=true,n=true){this.writeDataToDom();let r=this.node.cloneNode(t);if(n)r=dn(r);return new this.constructor(r)}each(t,n){const r=this.children();let i,e;for(i=0,e=r.length;i<e;i++){t.apply(r[i],[i,r]);if(n)r[i].each(t,n)}return this}element(n,r){return this.put(new t(sn(n),r))}first(){return un(this.node.firstChild)}get(t){return un(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,n){return this.xml(t,n,qt)}id(t){if(typeof t==="undefined"&&!this.node.id)this.node.id=vn(this.type);return this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return un(this.node.lastChild)}matches(t){const n=this.node;const r=n.matches||n.matchesSelector||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector||null;return r&&r.call(n,t)}parent(t){let n=this;if(!n.node.parentNode)return null;n=un(n.node.parentNode);if(!t)return n;do{if(typeof t==="string"?n.matches(t):n instanceof t)return n}while(n=un(n.node.parentNode));return n}put(t,n){t=on(t);this.add(t,n);return t}putIn(t,n){return on(t).add(this,n)}remove(){if(this.parent())this.parent().removeElement(this);return this}removeElement(t){this.node.removeChild(t.node);return this}replace(t){t=on(t);if(this.node.parentNode)this.node.parentNode.replaceChild(t.node,this.node);return t}round(t=2,n=null){const r=10**t;const i=this.attr(n);for(const t in i)if(typeof i[t]==="number")i[t]=Math.round(i[t]*r)/r;this.attr(i);return this}svg(t,n){return this.xml(t,n,Jt)}toString(){return this.id()}words(t){this.node.textContent=t;return this}wrap(t){const n=this.parent();if(!n)return this.addTo(t);const r=n.index(this);return n.put(t,r).put(this)}writeDataToDom(){this.each((function(){this.writeDataToDom()}));return this}xml(t,n,r){if(typeof t==="boolean"){r=n;n=t;t=null}if(t==null||typeof t==="function"){n=n==null?true:n;this.writeDataToDom();let r=this;if(t!=null){r=un(r.node.cloneNode(true));if(n){const n=t(r);r=n||r;if(n===false)return""}r.each((function(){const n=t(this);const r=n||this;if(n===false)this.remove();else if(n&&this!==r)this.replace(r)}),true)}return n?r.node.outerHTML:r.node.innerHTML}n=n==null?false:n;const i=sn("wrapper",r);const e=Kt.document.createDocumentFragment();i.innerHTML=t;for(let t=i.children.length;t--;)e.appendChild(i.firstElementChild);const s=this.parent();return n?this.replace(e)&&s:this.add(e)}};Cn(Wr,{attr:Ur,find:Er,findOne:Lr});an(Wr,"Dom");var Kr=class extends Wr{constructor(t,n){super(t,n);this.dom={};this.node.instance=this;if(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,n){return this.cx(t).cy(n)}cx(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,n){return this.dx(t).dy(n)}dx(t=0){return this.x(new Xr(t).plus(this.x()))}dy(t=0){return this.y(new Xr(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,n){return this.x(t).y(n)}parents(t=this.root()){const n=typeof t==="string";const r=this.root();const i=r&&r.node;if(!n)t=t&&on(t).node;const e=new Mr;let s=this;while((s=s.parent())&&s.node!==Kt.document&&s.node.nodeName!=="#document-fragment"){e.push(s);if(!n&&s.node===t)break;if(n&&s.matches(t))break;if(i&&s.node===i)return null}return e}reference(t){t=this.attr(t);if(!t)return null;const n=Or(this.node,t);return n?on(n):null}root(){const t=this.parent(ln(en));return t&&t.root()}setData(t){this.dom=t;return this}size(t,n){const r=Rt(this,t,n);return this.width(new Xr(r.width)).height(new Xr(r.height))}width(t){return this.attr("width",t)}writeDataToDom(t){Qt(this,this.dom,t);return super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}};Cn(Kr,{bbox:mr,rbox:xr,inside:br,point:ar,ctm:vr,screenCTM:dr});an(Kr,"Element");const ti={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,n){return n==="color"?t:t+"-"+n}};["fill","stroke"].forEach((function(t){const n={};let r;n[t]=function(n){if(typeof n==="undefined")return this.attr(t);if(typeof n==="string"||n instanceof ur||ur.isRgb(n)||n instanceof Kr)this.attr(t,n);else for(r=ti[t].length-1;r>=0;r--)if(n[ti[t][r]]!=null)this.attr(ti.prefix(t,ti[t][r]),n[ti[t][r]]);return this};g(["Element","Runner"],n)}));g(["Element","Runner"],{matrix:function(t,n,r,i,e,s){if(t==null)return new fr(this);return this.attr("transform",new fr(t,n,r,i,e,s))},rotate:function(t,n,r){return this.transform({rotate:t,ox:n,oy:r},true)},skew:function(t,n,r,i){return arguments.length===1||arguments.length===3?this.transform({skew:t,ox:n,oy:r},true):this.transform({skew:[t,n],ox:r,oy:i},true)},shear:function(t,n,r){return this.transform({shear:t,ox:n,oy:r},true)},scale:function(t,n,r,i){return arguments.length===1||arguments.length===3?this.transform({scale:t,ox:n,oy:r},true):this.transform({scale:[t,n],ox:r,oy:i},true)},translate:function(t,n){return this.transform({translate:[t,n]},true)},relative:function(t,n){return this.transform({relative:[t,n]},true)},flip:function(t="both",n="center"){if("xybothtrue".indexOf(t)===-1){n=t;t="both"}return this.transform({flip:t,origin:n},true)},opacity:function(t){return this.attr("opacity",t)}});g("radius",{radius:function(t,n=t){return(this._element||this).type==="radialGradient"?this.attr("r",new Xr(t)):this.rx(t).ry(n)}});g("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new cr(this.node.getPointAtLength(t))}});g(["Element","Runner"],{font:function(t,n){if(typeof t==="object"){for(n in t)this.font(n,t[n]);return this}return t==="leading"?this.leading(n):t==="anchor"?this.attr("text-anchor",n):t==="size"||t==="family"||t==="weight"||t==="stretch"||t==="variant"||t==="style"?this.attr("font-"+t,n):this.attr(t,n)}});g("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,n){const r=function(t){if(t===null)this.off(n);else this.on(n,t);return this};t[n]=r;return t}),{}));function ni(){return this.attr("transform",null)}function ri(){return(this.attr("transform")||"").split(Vn).slice(0,-1).map((function(t){const n=t.trim().split("(");return[n[0].trim(),n[1].split(Zn).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,n){if(n[0]==="matrix")return t.lmultiply(fr.fromArray(n[1]));return t[n[0]].apply(t,n[1])}),new fr)}function ii(t,n){if(this===t)return this;if(Xt(this.node))return this.addTo(t,n);const r=this.screenCTM();const i=t.screenCTM().inverse();this.addTo(t,n).untransform().transform(i.multiply(r));return this}function ei(t){return this.toParent(this.root(),t)}function si(t,n){if(t==null||typeof t==="string"){const n=new fr(this).decompose();return t==null?n:n[t]}if(!fr.isMatrixLike(t))t={...t,origin:Gt(t,this)};const r=new fr(n===true?this:n||false).transform(t);return this.attr("transform",r)}g("Element",{untransform:ni,matrixify:ri,toParent:ii,toRoot:ei,transform:si});var oi=class t extends Kr{flatten(){this.each((function(){if(this instanceof t)return this.flatten().ungroup()}));return this}ungroup(t=this.parent(),n=t.index(this)){n=n===-1?t.children().length:n;this.each((function(r,i){return i[i.length-r-1].toParent(t,n)}));return this.remove()}};an(oi,"Container");var hi=class extends oi{constructor(t,n=t){super(hn("defs",t),n)}flatten(){return this}ungroup(){return this}};an(hi,"Defs");var ui=class extends Kr{};an(ui,"Shape");var ci=d({cx:()=>di,cy:()=>Ci,height:()=>wi,rx:()=>ai,ry:()=>li,width:()=>pi,x:()=>fi,y:()=>vi});function ai(t){return this.attr("rx",t)}function li(t){return this.attr("ry",t)}function fi(t){return t==null?this.cx()-this.rx():this.cx(t+this.rx())}function vi(t){return t==null?this.cy()-this.ry():this.cy(t+this.ry())}function di(t){return this.attr("cx",t)}function Ci(t){return this.attr("cy",t)}function pi(t){return t==null?this.rx()*2:this.rx(new Xr(t).divide(2))}function wi(t){return t==null?this.ry()*2:this.ry(new Xr(t).divide(2))}var yi=class extends ui{constructor(t,n=t){super(hn("ellipse",t),n)}size(t,n){const r=Rt(this,t,n);return this.rx(new Xr(r.width).divide(2)).ry(new Xr(r.height).divide(2))}};Cn(yi,ci);g("Container",{ellipse:pn((function(t=0,n=t){return this.put(new yi).size(t,n).move(0,0)}))});an(yi,"Ellipse");var gi=class extends Wr{constructor(t=Kt.document.createDocumentFragment()){super(t)}xml(t,n,r){if(typeof t==="boolean"){r=n;n=t;t=null}if(t==null||typeof t==="function"){const t=new Wr(sn("wrapper",r));t.add(this.node.cloneNode(true));return t.xml(false,r)}return super.xml(t,false,r)}};an(gi,"Fragment");var mi=d({from:()=>xi,to:()=>bi});function xi(t,n){return(this._element||this).type==="radialGradient"?this.attr({fx:new Xr(t),fy:new Xr(n)}):this.attr({x1:new Xr(t),y1:new Xr(n)})}function bi(t,n){return(this._element||this).type==="radialGradient"?this.attr({cx:new Xr(t),cy:new Xr(n)}):this.attr({x2:new Xr(t),y2:new Xr(n)})}var Mi=class extends oi{constructor(t,n){super(hn(t+"Gradient",typeof t==="string"?null:t),n)}attr(t,n,r){if(t==="transform")t="gradientTransform";return super.attr(t,n,r)}bbox(){return new yr}targets(){return Sr(this.node,"fill")}toString(){return this.url()}update(t){this.clear();if(typeof t==="function")t.call(this,this);return this}url(){return"url(#"+this.id()+")"}};Cn(Mi,mi);g({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:pn((function(t,n){return this.put(new Mi(t)).update(n)}))}});an(Mi,"Gradient");var ki=class extends oi{constructor(t,n=t){super(hn("pattern",t),n)}attr(t,n,r){if(t==="transform")t="patternTransform";return super.attr(t,n,r)}bbox(){return new yr}targets(){return Sr(this.node,"fill")}toString(){return this.url()}update(t){this.clear();if(typeof t==="function")t.call(this,this);return this}url(){return"url(#"+this.id()+")"}};g({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:pn((function(t,n,r){return this.put(new ki).update(r).attr({x:0,y:0,width:t,height:n,patternUnits:"userSpaceOnUse"})}))}});an(ki,"Pattern");var ji=class extends ui{constructor(t,n=t){super(hn("image",t),n)}load(t,n){if(!t)return this;const r=new Kt.window.Image;Ir(r,"load",(function(t){const i=this.parent(ki);if(this.width()===0&&this.height()===0)this.size(r.width,r.height);if(i instanceof ki){if(i.width()===0&&i.height()===0)i.size(this.width(),this.height())}if(typeof n==="function")n.call(this,t)}),this);Ir(r,"load error",(function(){Zr(r)}));return this.attr("href",r.src=t,Wt)}};qr((function(t,n,r){if(t==="fill"||t==="stroke"){if(In.test(n))n=r.root().defs().image(n)}if(n instanceof ji)n=r.root().defs().pattern(0,0,(t=>{t.add(n)}));return n}));g({Container:{image:pn((function(t,n){return this.put(new ji).size(0,0).load(t,n)}))}});an(ji,"Image");var _i=class extends Yr{bbox(){let t=-Infinity;let n=-Infinity;let r=Infinity;let i=Infinity;this.forEach((function(e){t=Math.max(e[0],t);n=Math.max(e[1],n);r=Math.min(e[0],r);i=Math.min(e[1],i)}));return new yr(r,i,t-r,n-i)}move(t,n){const r=this.bbox();t-=r.x;n-=r.y;if(!isNaN(t)&&!isNaN(n))for(let r=this.length-1;r>=0;r--)this[r]=[this[r][0]+t,this[r][1]+n];return this}parse(t=[0,0]){const n=[];if(t instanceof Array)t=Array.prototype.concat.apply([],t);else t=t.trim().split(Zn).map(parseFloat);if(t.length%2!==0)t.pop();for(let r=0,i=t.length;r<i;r=r+2)n.push([t[r],t[r+1]]);return n}size(t,n){let r;const i=this.bbox();for(r=this.length-1;r>=0;r--){if(i.width)this[r][0]=(this[r][0]-i.x)*t/i.width+i.x;if(i.height)this[r][1]=(this[r][1]-i.y)*n/i.height+i.y}return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let n=0,r=this.length;n<r;n++)t.push(this[n].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){if(!fr.isMatrixLike(t))t=new fr(t);for(let n=this.length;n--;){const[r,i]=this[n];this[n][0]=t.a*r+t.c*i+t.e;this[n][1]=t.b*r+t.d*i+t.f}return this}};var Oi=d({MorphArray:()=>Si,height:()=>Ti,width:()=>Li,x:()=>Ai,y:()=>Ei});const Si=_i;function Ai(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}function Ei(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}function Li(t){const n=this.bbox();return t==null?n.width:this.size(t,n.height)}function Ti(t){const n=this.bbox();return t==null?n.height:this.size(n.width,t)}var Vi=class extends ui{constructor(t,n=t){super(hn("line",t),n)}array(){return new _i([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,n){return this.attr(this.array().move(t,n).toLine())}plot(t,n,r,i){if(t==null)return this.array();else if(typeof n!=="undefined")t={x1:t,y1:n,x2:r,y2:i};else t=new _i(t).toLine();return this.attr(t)}size(t,n){const r=Rt(this,t,n);return this.attr(this.array().size(r.width,r.height).toLine())}};Cn(Vi,Oi);g({Container:{line:pn((function(...t){return Vi.prototype.plot.apply(this.put(new Vi),t[0]!=null?t:[0,0,0,0])}))}});an(Vi,"Line");var Bi=class extends oi{constructor(t,n=t){super(hn("marker",t),n)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,n){return this.attr("refX",t).attr("refY",n)}toString(){return"url(#"+this.id()+")"}update(t){this.clear();if(typeof t==="function")t.call(this,this);return this}width(t){return this.attr("markerWidth",t)}};g({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:pn((function(t,n,r){return this.put(new Bi).size(t,n).ref(t/2,n/2).viewbox(0,0,t,n).attr("orient","auto").update(r)}))},marker:{marker(t,n,r,i){let e=["marker"];if(t!=="all")e.push(t);e=e.join("-");t=arguments[1]instanceof Bi?arguments[1]:this.defs().marker(n,r,i);return this.attr(e,t)}}});an(Bi,"Marker");function zi(t,n){return function(r){if(r==null)return this[t];this[t]=r;if(n)n.call(this);return this}}const Hi={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return-Math.cos(t*Math.PI/2)+1},bezier:function(t,n,r,i){return function(e){if(e<0)if(t>0)return n/t*e;else if(r>0)return i/r*e;else return 0;else if(e>1)if(r<1)return(1-i)/(1-r)*e+(i-r)/(1-r);else if(t<1)return(1-n)/(1-t)*e+(n-t)/(1-t);else return 1;else return 3*e*(1-e)**2*n+3*e**2*(1-e)*i+e**3}},steps:function(t,n="end"){n=n.split("-").reverse()[0];let r=t;if(n==="none")--r;else if(n==="both")++r;return(i,e=false)=>{let s=Math.floor(i*t);const o=i*s%1===0;if(n==="start"||n==="both")++s;if(e&&o)--s;if(i>=0&&s<0)s=0;if(i<=1&&s>r)s=r;return s/r}}};var Di=class{done(){return false}};var Fi=class extends Di{constructor(t=Rr.ease){super();this.ease=Hi[t]||t}step(t,n,r){if(typeof t!=="number")return r<1?t:n;return t+(n-t)*this.ease(r)}};var Ii=class extends Di{constructor(t){super();this.stepper=t}done(t){return t.done}step(t,n,r,i){return this.stepper(t,n,r,i)}};function Zi(){const t=(this._duration||500)/1e3;const n=this._overshoot||0;const r=1e-10;const i=Math.PI;const e=Math.log(n/100+r);const s=-e/Math.sqrt(i*i+e*e);const o=3.9/(s*t);this.d=2*s*o;this.k=o*o}var $i=class extends Ii{constructor(t=500,n=0){super();this.duration(t).overshoot(n)}step(t,n,r,i){if(typeof t==="string")return t;i.done=r===Infinity;if(r===Infinity)return n;if(r===0)return t;if(r>100)r=16;r/=1e3;const e=i.velocity||0;const s=-this.d*e-this.k*(t-n);const o=t+e*r+s*r*r/2;i.velocity=e+s*r;i.done=Math.abs(n-o)+Math.abs(e)<.002;return i.done?n:o}};Cn($i,{duration:zi("_duration",Zi),overshoot:zi("_overshoot",Zi)});var Ni=class extends Ii{constructor(t=.1,n=.01,r=0,i=1e3){super();this.p(t).i(n).d(r).windup(i)}step(t,n,r,i){if(typeof t==="string")return t;i.done=r===Infinity;if(r===Infinity)return n;if(r===0)return t;const e=n-t;let s=(i.integral||0)+e*r;const o=(e-(i.error||0))/r;const h=this._windup;if(h!==false)s=Math.max(-h,Math.min(s,h));i.error=e;i.integral=s;i.done=Math.abs(e)<.001;return i.done?n:t+(this.P*e+this.I*s+this.D*o)}};Cn(Ni,{windup:zi("_windup"),p:zi("P"),i:zi("I"),d:zi("D")});const Pi={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};const Ri={M:function(t,n,r){n.x=r.x=t[0];n.y=r.y=t[1];return["M",n.x,n.y]},L:function(t,n){n.x=t[0];n.y=t[1];return["L",t[0],t[1]]},H:function(t,n){n.x=t[0];return["H",t[0]]},V:function(t,n){n.y=t[0];return["V",t[0]]},C:function(t,n){n.x=t[4];n.y=t[5];return["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,n){n.x=t[2];n.y=t[3];return["S",t[0],t[1],t[2],t[3]]},Q:function(t,n){n.x=t[2];n.y=t[3];return["Q",t[0],t[1],t[2],t[3]]},T:function(t,n){n.x=t[0];n.y=t[1];return["T",t[0],t[1]]},Z:function(t,n,r){n.x=r.x;n.y=r.y;return["Z"]},A:function(t,n){n.x=t[5];n.y=t[6];return["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}};const Gi="mlhvqtcsaz".split("");for(let t=0,n=Gi.length;t<n;++t)Ri[Gi[t]]=function(t){return function(n,r,i){if(t==="H")n[0]=n[0]+r.x;else if(t==="V")n[0]=n[0]+r.y;else if(t==="A"){n[5]=n[5]+r.x;n[6]=n[6]+r.y}else for(let t=0,i=n.length;t<i;++t)n[t]=n[t]+(t%2?r.y:r.x);return Ri[t](n,r,i)}}(Gi[t].toUpperCase());function Yi(t){return Ri[t.segment[0]](t.segment.slice(1),t.p,t.p0)}function Xi(t){return t.segment.length&&t.segment.length-1===Pi[t.segment[0].toUpperCase()]}function Qi(t,n){t.inNumber&&Ji(t,false);const r=$n.test(n);if(r)t.segment=[n];else{const n=t.lastCommand;const r=n.toLowerCase();t.segment=[r==="m"?n===r?"l":"L":n]}t.inSegment=true;t.lastCommand=t.segment[0];return r}function Ji(t,n){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number));t.inNumber=n;t.number="";t.pointSeen=false;t.hasExponent=false;if(Xi(t))qi(t)}function qi(t){t.inSegment=false;if(t.absolute)t.segment=Yi(t);t.segments.push(t.segment)}function Ui(t){if(!t.segment.length)return false;const n=t.segment[0].toUpperCase()==="A";const r=t.segment.length;return n&&(r===4||r===5)}function Wi(t){return t.lastToken.toUpperCase()==="E"}const Ki=new Set([" ",",","\t","\n","\r","\f"]);function te(t,n=true){let r=0;let i="";const e={segment:[],inNumber:false,number:"",lastToken:"",inSegment:false,segments:[],pointSeen:false,hasExponent:false,absolute:n,p0:new cr,p:new cr};while(e.lastToken=i,i=t.charAt(r++)){if(!e.inSegment){if(Qi(e,i))continue}if(i==="."){if(e.pointSeen||e.hasExponent){Ji(e,false);--r;continue}e.inNumber=true;e.pointSeen=true;e.number+=i;continue}if(!isNaN(parseInt(i))){if(e.number==="0"||Ui(e)){e.inNumber=true;e.number=i;Ji(e,true);continue}e.inNumber=true;e.number+=i;continue}if(Ki.has(i)){if(e.inNumber)Ji(e,false);continue}if(i==="-"||i==="+"){if(e.inNumber&&!Wi(e)){Ji(e,false);--r;continue}e.number+=i;e.inNumber=true;continue}if(i.toUpperCase()==="E"){e.number+=i;e.hasExponent=true;continue}if($n.test(i)){if(e.inNumber)Ji(e,false);else if(!Xi(e))throw new Error("parser Error");else qi(e);--r}}if(e.inNumber)Ji(e,false);if(e.inSegment&&Xi(e))qi(e);return e.segments}function ne(t){let n="";for(let r=0,i=t.length;r<i;r++){n+=t[r][0];if(t[r][1]!=null){n+=t[r][1];if(t[r][2]!=null){n+=" ";n+=t[r][2];if(t[r][3]!=null){n+=" ";n+=t[r][3];n+=" ";n+=t[r][4];if(t[r][5]!=null){n+=" ";n+=t[r][5];n+=" ";n+=t[r][6];if(t[r][7]!=null){n+=" ";n+=t[r][7]}}}}}}return n+" "}var re=class extends Yr{bbox(){Cr().path.setAttribute("d",this.toString());return new yr(Cr.nodes.path.getBBox())}move(t,n){const r=this.bbox();t-=r.x;n-=r.y;if(!isNaN(t)&&!isNaN(n))for(let r,i=this.length-1;i>=0;i--){r=this[i][0];if(r==="M"||r==="L"||r==="T"){this[i][1]+=t;this[i][2]+=n}else if(r==="H")this[i][1]+=t;else if(r==="V")this[i][1]+=n;else if(r==="C"||r==="S"||r==="Q"){this[i][1]+=t;this[i][2]+=n;this[i][3]+=t;this[i][4]+=n;if(r==="C"){this[i][5]+=t;this[i][6]+=n}}else if(r==="A"){this[i][6]+=t;this[i][7]+=n}}return this}parse(t="M0 0"){if(Array.isArray(t))t=Array.prototype.concat.apply([],t).toString();return te(t)}size(t,n){const r=this.bbox();let i,e;r.width=r.width===0?1:r.width;r.height=r.height===0?1:r.height;for(i=this.length-1;i>=0;i--){e=this[i][0];if(e==="M"||e==="L"||e==="T"){this[i][1]=(this[i][1]-r.x)*t/r.width+r.x;this[i][2]=(this[i][2]-r.y)*n/r.height+r.y}else if(e==="H")this[i][1]=(this[i][1]-r.x)*t/r.width+r.x;else if(e==="V")this[i][1]=(this[i][1]-r.y)*n/r.height+r.y;else if(e==="C"||e==="S"||e==="Q"){this[i][1]=(this[i][1]-r.x)*t/r.width+r.x;this[i][2]=(this[i][2]-r.y)*n/r.height+r.y;this[i][3]=(this[i][3]-r.x)*t/r.width+r.x;this[i][4]=(this[i][4]-r.y)*n/r.height+r.y;if(e==="C"){this[i][5]=(this[i][5]-r.x)*t/r.width+r.x;this[i][6]=(this[i][6]-r.y)*n/r.height+r.y}}else if(e==="A"){this[i][1]=this[i][1]*t/r.width;this[i][2]=this[i][2]*n/r.height;this[i][6]=(this[i][6]-r.x)*t/r.width+r.x;this[i][7]=(this[i][7]-r.y)*n/r.height+r.y}}return this}toString(){return ne(this)}};const ie=t=>{const n=typeof t;if(n==="number")return Xr;else if(n==="string")if(ur.isColor(t))return ur;else if(Zn.test(t))return $n.test(t)?re:Yr;else if(An.test(t))return Xr;else return se;else if(ce.indexOf(t.constructor)>-1)return t.constructor;else if(Array.isArray(t))return Yr;else if(n==="object")return ue;else return se};var ee=class{constructor(t){this._stepper=t||new Fi("-");this._from=null;this._to=null;this._type=null;this._context=null;this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,n){return t&&n}),true)}from(t){if(t==null)return this._from;this._from=this._set(t);return this}stepper(t){if(t==null)return this._stepper;this._stepper=t;return this}to(t){if(t==null)return this._to;this._to=this._set(t);return this}type(t){if(t==null)return this._type;this._type=t;return this}_set(t){if(!this._type)this.type(ie(t));let n=new this._type(t);if(this._type===ur)n=this._to?n[this._to[4]]():this._from?n[this._from[4]]():n;if(this._type===ue)n=this._to?n.align(this._to):this._from?n.align(this._from):n;n=n.toConsumable();this._morphObj=this._morphObj||new this._type;this._context=this._context||Array.apply(null,Array(n.length)).map(Object).map((function(t){t.done=true;return t}));return n}};var se=class{constructor(...t){this.init(...t)}init(t){t=Array.isArray(t)?t[0]:t;this.value=t;return this}toArray(){return[this.value]}valueOf(){return this.value}};var oe=class t{constructor(...t){this.init(...t)}init(n){if(Array.isArray(n))n={scaleX:n[0],scaleY:n[1],shear:n[2],rotate:n[3],translateX:n[4],translateY:n[5],originX:n[6],originY:n[7]};Object.assign(this,t.defaults,n);return this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}};oe.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const he=(t,n)=>t[0]<n[0]?-1:t[0]>n[0]?1:0;var ue=class{constructor(...t){this.init(...t)}align(t){const n=this.values;for(let r=0,i=n.length;r<i;++r){if(n[r+1]===t[r+1]){if(n[r+1]===ur&&t[r+7]!==n[r+7]){const n=t[r+7];const i=new ur(this.values.splice(r+3,5))[n]().toArray();this.values.splice(r+3,0,...i)}r+=n[r+2]+2;continue}if(!t[r+1])return this;const i=(new t[r+1]).toArray();const e=n[r+2]+3;n.splice(r,e,t[r],t[r+1],t[r+2],...i);r+=n[r+2]+2}return this}init(t){this.values=[];if(Array.isArray(t)){this.values=t.slice();return}t=t||{};const n=[];for(const r in t){const i=ie(t[r]);const e=new i(t[r]).toArray();n.push([r,i,e.length,...e])}n.sort(he);this.values=n.reduce(((t,n)=>t.concat(n)),[]);return this}toArray(){return this.values}valueOf(){const t={};const n=this.values;while(n.length){const r=n.shift();const i=n.shift();const e=n.shift();t[r]=new i(n.splice(0,e))}return t}};const ce=[se,oe,ue];function ae(t=[]){ce.push(...[].concat(t))}function le(){Cn(ce,{to(t){return(new ee).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){this.init(t);return this},toConsumable(){return this.toArray()},morph(t,n,r,i,e){const s=function(t,s){return i.step(t,n[s],r,e[s],e)};return this.fromArray(t.map(s))}})}var fe=class extends ui{constructor(t,n=t){super(hn("path",t),n)}array(){return this._array||(this._array=new re(this.attr("d")))}clear(){delete this._array;return this}height(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)}move(t,n){return this.attr("d",this.array().move(t,n))}plot(t){return t==null?this.array():this.clear().attr("d",typeof t==="string"?t:this._array=new re(t))}size(t,n){const r=Rt(this,t,n);return this.attr("d",this.array().size(r.width,r.height))}width(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)}x(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}y(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}};fe.prototype.MorphArray=re;g({Container:{path:pn((function(t){return this.put(new fe).plot(t||new re)}))}});an(fe,"Path");var ve=d({array:()=>de,clear:()=>Ce,move:()=>pe,plot:()=>we,size:()=>ye});function de(){return this._array||(this._array=new _i(this.attr("points")))}function Ce(){delete this._array;return this}function pe(t,n){return this.attr("points",this.array().move(t,n))}function we(t){return t==null?this.array():this.clear().attr("points",typeof t==="string"?t:this._array=new _i(t))}function ye(t,n){const r=Rt(this,t,n);return this.attr("points",this.array().size(r.width,r.height))}var ge=class extends ui{constructor(t,n=t){super(hn("polygon",t),n)}};g({Container:{polygon:pn((function(t){return this.put(new ge).plot(t||new _i)}))}});Cn(ge,Oi);Cn(ge,ve);an(ge,"Polygon");var me=class extends ui{constructor(t,n=t){super(hn("polyline",t),n)}};g({Container:{polyline:pn((function(t){return this.put(new me).plot(t||new _i)}))}});Cn(me,Oi);Cn(me,ve);an(me,"Polyline");var xe=class extends ui{constructor(t,n=t){super(hn("rect",t),n)}};Cn(xe,{rx:ai,ry:li});g({Container:{rect:pn((function(t,n){return this.put(new xe).size(t,n)}))}});an(xe,"Rect");var be=class{constructor(){this._first=null;this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const n=typeof t.next!=="undefined"?t:{value:t,next:null,prev:null};if(this._last){n.prev=this._last;this._last.next=n;this._last=n}else{this._last=n;this._first=n}return n}remove(t){if(t.prev)t.prev.next=t.next;if(t.next)t.next.prev=t.prev;if(t===this._last)this._last=t.prev;if(t===this._first)this._first=t.next;t.prev=null;t.next=null}shift(){const t=this._first;if(!t)return null;this._first=t.next;if(this._first)this._first.prev=null;this._last=this._first?this._last:null;return t.value}};const Me={nextDraw:null,frames:new be,timeouts:new be,immediates:new be,timer:()=>Kt.window.performance||Kt.window.Date,transforms:[],frame(t){const n=Me.frames.push({run:t});if(Me.nextDraw===null)Me.nextDraw=Kt.window.requestAnimationFrame(Me._draw);return n},timeout(t,n){n=n||0;const r=Me.timer().now()+n;const i=Me.timeouts.push({run:t,time:r});if(Me.nextDraw===null)Me.nextDraw=Kt.window.requestAnimationFrame(Me._draw);return i},immediate(t){const n=Me.immediates.push(t);if(Me.nextDraw===null)Me.nextDraw=Kt.window.requestAnimationFrame(Me._draw);return n},cancelFrame(t){t!=null&&Me.frames.remove(t)},clearTimeout(t){t!=null&&Me.timeouts.remove(t)},cancelImmediate(t){t!=null&&Me.immediates.remove(t)},_draw(t){try{let n=null;const r=Me.timeouts.last();while(n=Me.timeouts.shift()){if(t>=n.time)n.run();else Me.timeouts.push(n);if(n===r)break}let i=null;const e=Me.frames.last();while(i!==e&&(i=Me.frames.shift()))i.run(t);let s=null;while(s=Me.immediates.shift())s()}finally{const t=Me.timeouts.first()||Me.frames.first()||Me.immediates.first();Me.nextDraw=t?Kt.window.requestAnimationFrame(Me._draw):null}}};const ke=function(t){const n=t.start;const r=t.runner.duration();return{start:n,duration:r,end:n+r,runner:t.runner}};const je=function(){const t=Kt.window;return(t.performance||t.Date).now()};var _e=class extends Nr{constructor(t=je){super();this._timeSource=t;this.terminate()}active(){return!!this._nextFrame}finish(){this.time(this.getEndTimeOfTimeline()+1);return this.pause()}getEndTime(){const t=this.getLastRunnerInfo();const n=t?t.runner.duration():0;return(t?t.start:this._time)+n}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){this._paused=true;return this._continue()}persist(t){if(t==null)return this._persist;this._persist=t;return this}play(){this._paused=false;return this.updateTime()._continue()}reverse(t){const n=this.speed();if(t==null)return this.speed(-n);const r=Math.abs(n);return this.speed(t?-r:r)}schedule(t,n,r){if(t==null)return this._runners.map(ke);let i=0;const e=this.getEndTime();n=n||0;if(r==null||r==="last"||r==="after")i=e;else if(r==="absolute"||r==="start"){i=n;n=0}else if(r==="now")i=this._time;else if(r==="relative"){const r=this.getRunnerInfoById(t.id);if(r){i=r.start+n;n=0}}else if(r==="with-last"){const t=this.getLastRunnerInfo();i=t?t.start:this._time}else throw new Error('Invalid value for the "when" parameter');t.unschedule();t.timeline(this);const s=t.persist();const o={persist:s===null?this._persist:s,start:i+n,runner:t};this._lastRunnerId=t.id;this._runners.push(o);this._runners.sort(((t,n)=>t.start-n.start));this._runnerIds=this._runners.map((t=>t.runner.id));this.updateTime()._continue();return this}seek(t){return this.time(this._time+t)}source(t){if(t==null)return this._timeSource;this._timeSource=t;return this}speed(t){if(t==null)return this._speed;this._speed=t;return this}stop(){this.time(0);return this.pause()}time(t){if(t==null)return this._time;this._time=t;return this._continue(true)}unschedule(t){const n=this._runnerIds.indexOf(t.id);if(n<0)return this;this._runners.splice(n,1);this._runnerIds.splice(n,1);t.timeline(null);return this}updateTime(){if(!this.active())this._lastSourceTime=this._timeSource();return this}_continue(t=false){Me.cancelFrame(this._nextFrame);this._nextFrame=null;if(t)return this._stepImmediate();if(this._paused)return this;this._nextFrame=Me.frame(this._step);return this}_stepFn(t=false){const n=this._timeSource();let r=n-this._lastSourceTime;if(t)r=0;const i=this._speed*r+(this._time-this._lastStepTime);this._lastSourceTime=n;if(!t){this._time+=i;this._time=this._time<0?0:this._time}this._lastStepTime=this._time;this.fire("time",this._time);for(let t=this._runners.length;t--;){const n=this._runners[t];const r=n.runner;if(this._time-n.start<=0)r.reset()}let e=false;for(let t=0,n=this._runners.length;t<n;t++){const r=this._runners[t];const s=r.runner;let o=i;const h=this._time-r.start;if(h<=0){e=true;continue}else if(h<o)o=h;if(!s.active())continue;if(!s.step(o).done)e=true;else if(r.persist!==true){if(s.duration()-s.time()+this._time+r.persist<this._time){s.unschedule();--t;--n}}}if(e&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0)this._continue();else{this.pause();this.fire("finished")}return this}terminate(){this._startTime=0;this._speed=1;this._persist=0;this._nextFrame=null;this._paused=true;this._runners=[];this._runnerIds=[];this._lastRunnerId=-1;this._time=0;this._lastSourceTime=0;this._lastStepTime=0;this._step=this._stepFn.bind(this,false);this._stepImmediate=this._stepFn.bind(this,true)}};g({Element:{timeline:function(t){if(t==null){this._timeline=this._timeline||new _e;return this._timeline}else{this._timeline=t;return this}}}});var Oe=class t extends Nr{constructor(n){super();this.id=t.id++;n=n==null?Rr.duration:n;n=typeof n==="function"?new Ii(n):n;this._element=null;this._timeline=null;this.done=false;this._queue=[];this._duration=typeof n==="number"&&n;this._isDeclarative=n instanceof Ii;this._stepper=this._isDeclarative?n:new Fi;this._history={};this.enabled=true;this._time=0;this._lastTime=0;this._reseted=true;this.transforms=new fr;this.transformId=1;this._haveReversed=false;this._reverse=false;this._loopsDone=0;this._swing=false;this._wait=0;this._times=1;this._frameId=null;this._persist=this._isDeclarative?true:null}static sanitise(t,n,r){let i=1;let e=false;let s=0;t=t??Rr.duration;n=n??Rr.delay;r=r||"last";if(typeof t==="object"&&!(t instanceof Di)){n=t.delay??n;r=t.when??r;e=t.swing||e;i=t.times??i;s=t.wait??s;t=t.duration??Rr.duration}return{duration:t,delay:n,swing:e,times:i,wait:s,when:r}}active(t){if(t==null)return this.enabled;this.enabled=t;return this}addTransform(t){this.transforms.lmultiplyO(t);return this}after(t){return this.on("finished",t)}animate(n,r,i){const e=t.sanitise(n,r,i);const s=new t(e.duration);if(this._timeline)s.timeline(this._timeline);if(this._element)s.element(this._element);return s.loop(e).schedule(e.delay,e.when)}clearTransform(){this.transforms=new fr;return this}clearTransformsFromQueue(){var t;if(!this.done||!this._timeline||!(0,Ft.default)(t=this._timeline._runnerIds).call(t,this.id))this._queue=this._queue.filter((t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){this._stepper=new Fi(t);return this}element(t){if(t==null)return this._element;this._element=t;t._prepareRunner();return this}finish(){return this.step(Infinity)}loop(t,n,r){if(typeof t==="object"){n=t.swing;r=t.wait;t=t.times}this._times=t||Infinity;this._swing=n||false;this._wait=r||0;if(this._times===true)this._times=Infinity;return this}loops(t){const n=this._duration+this._wait;if(t==null){const t=Math.floor(this._time/n);const r=(this._time-t*n)/this._duration;return Math.min(t+r,this._times)}const r=Math.floor(t);const i=t%1;const e=n*r+this._duration*i;return this.time(e)}persist(t){if(t==null)return this._persist;this._persist=t;return this}position(t){const n=this._time;const r=this._duration;const i=this._wait;const e=this._times;const s=this._swing;const o=this._reverse;let h;if(t==null){const t=function(t){const n=s*Math.floor(t%(2*(i+r))/(i+r));const e=n&&!o||!n&&o;const h=Math.pow(-1,e)*(t%(i+r))/r+e;return Math.max(Math.min(h,1),0)};const u=e*(i+r)-i;h=n<=0?Math.round(t(1e-5)):n<u?t(n):Math.round(t(u-1e-5));return h}const u=Math.floor(this.loops());const c=s&&u%2===0;h=u+(c&&!o||o&&c?t:1-t);return this.loops(h)}progress(t){if(t==null)return Math.min(1,this._time/this.duration());return this.time(t*this.duration())}queue(t,n,r,i){this._queue.push({initialiser:t||Pr,runner:n||Pr,retarget:r,isTransform:i,initialised:false,finished:false});this.timeline()&&this.timeline()._continue();return this}reset(){if(this._reseted)return this;this.time(0);this._reseted=true;return this}reverse(t){this._reverse=t==null?!this._reverse:t;return this}schedule(t,n,r){if(!(t instanceof _e)){r=n;n=t;t=this.timeline()}if(!t)throw Error("Runner cannot be scheduled without timeline");t.schedule(this,n,r);return this}step(t){if(!this.enabled)return this;t=t==null?16:t;this._time+=t;const n=this.position();const r=this._lastPosition!==n&&this._time>=0;this._lastPosition=n;const i=this.duration();const e=this._lastTime<=0&&this._time>0;const s=this._lastTime<i&&this._time>=i;this._lastTime=this._time;if(e)this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=i;this._reseted=false;let h=false;if(r||o){this._initialise(r);this.transforms=new fr;h=this._run(o?t:n);this.fire("step",this)}this.done=this.done||h&&o;if(s)this.fire("finished",this);return this}time(t){if(t==null)return this._time;const n=t-this._time;this.step(n);return this}timeline(t){if(typeof t==="undefined")return this._timeline;this._timeline=t;return this}unschedule(){const t=this.timeline();t&&t.unschedule(this);return this}_initialise(t){if(!t&&!this._isDeclarative)return;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n];const i=this._isDeclarative||!r.initialised&&t;t=!r.finished;if(i&&t){r.initialiser.call(this);r.initialised=true}}}_rememberMorpher(t,n){this._history[t]={morpher:n,caller:this._queue[this._queue.length-1]};if(this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let n=true;for(let r=0,i=this._queue.length;r<i;++r){const i=this._queue[r];const e=i.runner.call(this,t);i.finished=i.finished||e===true;n=n&&i.finished}return n}_tryRetarget(t,n,r){if(this._history[t]){if(!this._history[t].caller.initialised){const n=this._queue.indexOf(this._history[t].caller);this._queue.splice(n,1);return false}if(this._history[t].caller.retarget)this._history[t].caller.retarget.call(this,n,r);else this._history[t].morpher.to(n);this._history[t].caller.finished=false;const i=this.timeline();i&&i.play();return true}return false}};Oe.id=0;var Se=class{constructor(t=new fr,n=-1,r=true){this.transforms=t;this.id=n;this.done=r}clearTransformsFromQueue(){}};Cn([Oe,Se],{mergeWith(t){return new Se(t.transforms.lmultiply(this.transforms),t.id)}});const Ae=(t,n)=>t.lmultiplyO(n);const Ee=t=>t.transforms;function Le(){const t=this._transformationRunners.runners.map(Ee).reduce(Ae,new fr);this.transform(t);this._transformationRunners.merge();if(this._transformationRunners.length()===1)this._frameId=null}var Te=class{constructor(){this.runners=[];this.ids=[]}add(t){var n;if((0,Ft.default)(n=this.runners).call(n,t))return;const r=t.id+1;this.runners.push(t);this.ids.push(r);return this}clearBefore(t){const n=this.ids.indexOf(t+1)||1;this.ids.splice(0,n,0);this.runners.splice(0,n,new Se).forEach((t=>t.clearTransformsFromQueue()));return this}edit(t,n){const r=this.ids.indexOf(t+1);this.ids.splice(r,1,t+1);this.runners.splice(r,1,n);return this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let i=0;i<this.runners.length;++i){var n,r;const e=this.runners[i];if(t&&e.done&&t.done&&(!e._timeline||!(0,Ft.default)(n=e._timeline._runnerIds).call(n,e.id))&&(!t._timeline||!(0,Ft.default)(r=t._timeline._runnerIds).call(r,t.id))){this.remove(e.id);const n=e.mergeWith(t);this.edit(t.id,n);t=n;--i}else t=e}return this}remove(t){const n=this.ids.indexOf(t+1);this.ids.splice(n,1);this.runners.splice(n,1);return this}};g({Element:{animate(t,n,r){const i=Oe.sanitise(t,n,r);const e=this.timeline();return new Oe(i.duration).loop(i).element(this).timeline(e.play()).schedule(i.delay,i.when)},delay(t,n){return this.animate(0,t,n)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((n=>n.id<=t.id)).map(Ee).reduce(Ae,new fr)},_addRunner(t){this._transformationRunners.add(t);Me.cancelImmediate(this._frameId);this._frameId=Me.immediate(Le.bind(this))},_prepareRunner(){if(this._frameId==null)this._transformationRunners=(new Te).add(new Se(new fr(this)))}}});const Ve=(t,n)=>t.filter((t=>!(0,Ft.default)(n).call(n,t)));Cn(Oe,{attr(t,n){return this.styleAttr("attr",t,n)},css(t,n){return this.styleAttr("css",t,n)},styleAttr(t,n,r){if(typeof n==="string")return this.styleAttr(t,{[n]:r});const i=n;const e=this._history[t];if(e&&!e.caller.initialised&&e.caller.retarget){e.caller.retarget.call(this,i);return this}if(this._tryRetarget(t,i))return this;let s=new ee(this._stepper).to(i);let o=Object.keys(i);this.queue((function(){s=s.from(this.element()[t](o))}),(function(n){this.element()[t](s.at(n).valueOf());return s.done()}),(function(n){const r=Ve(Object.keys(n),o);if(r.length&&s.from()!=null){const n=this.element()[t](r);const i=new ue(s.from()).valueOf();Object.assign(i,n);s.from(i)}const i=new ue(s.to()).valueOf();Object.assign(i,n);s.to(i);o=Object.keys(i)}));this._rememberMorpher(t,s);return this},zoom(t,n){if(this._tryRetarget("zoom",t,n))return this;let r=new ee(this._stepper).to(new Xr(t));this.queue((function(){r=r.from(this.element().zoom())}),(function(t){this.element().zoom(r.at(t),n);return r.done()}),(function(t,i){n=i;r.to(t)}));this._rememberMorpher("zoom",r);return this},transform(t,n,r){n=t.relative||n;if(this._isDeclarative&&!n&&this._tryRetarget("transform",t))return this;const i=fr.isMatrixLike(t);r=t.affine!=null?t.affine:r!=null?r:!i;const e=new ee(this._stepper).type(r?oe:fr);let s;let o;let h;let u;let c;function a(){o=o||this.element();s=s||Gt(t,o);c=new fr(n?void 0:o);o._addRunner(this);if(!n)o._clearTransformRunnersBefore(this)}function l(a){if(!n)this.clearTransform();const{x:l,y:f}=new cr(s).transform(o._currentTransform(this));const v={...t,origin:[l,f]};if(v.relative===true)delete v.relative;let d=new fr(v);let C=this._isDeclarative&&h?h:c;if(r){d=d.decompose(l,f);C=C.decompose(l,f);const t=d.rotate;const n=C.rotate;const r=[t-360,t,t+360];const i=r.map((t=>Math.abs(t-n)));const e=Math.min(...i);const s=i.indexOf(e);d.rotate=r[s]}if(n){if(!i)d.rotate=t.rotate||0;if(this._isDeclarative&&u)C.rotate=u}e.from(C);e.to(d);const p=e.at(a);u=p.rotate;h=new fr(p);this.addTransform(h);o._addRunner(this);return e.done()}function f(n){if((n.origin||"center").toString()!==(t.origin||"center").toString())s=Gt(n,o);t={...n,origin:s}}this.queue(a,l,f,true);this._isDeclarative&&this._rememberMorpher("transform",e);return this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,n){return this.dx(t).dy(n)},_queueNumberDelta(t,n){n=new Xr(n);if(this._tryRetarget(t,n))return this;const r=new ee(this._stepper).to(n);let i=null;this.queue((function(){i=this.element()[t]();r.from(i);r.to(i+n)}),(function(n){this.element()[t](r.at(n));return r.done()}),(function(t){r.to(i+new Xr(t))}));this._rememberMorpher(t,r);return this},_queueObject(t,n){if(this._tryRetarget(t,n))return this;const r=new ee(this._stepper).to(n);this.queue((function(){r.from(this.element()[t]())}),(function(n){this.element()[t](r.at(n));return r.done()}));this._rememberMorpher(t,r);return this},_queueNumber(t,n){return this._queueObject(t,new Xr(n))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,n){return this.x(t).y(n)},amove(t,n){return this.ax(t).ay(n)},center(t,n){return this.cx(t).cy(n)},size(t,n){const r=Rt(this._element,t,n);return this.width(r.width).height(r.height)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,n,r,i){if(arguments.length===4)return this.plot([t,n,r,i]);if(this._tryRetarget("plot",t))return this;const e=new ee(this._stepper).type(this._element.MorphArray).to(t);this.queue((function(){e.from(this._element.array())}),(function(t){this._element.plot(e.at(t));return e.done()}));this._rememberMorpher("plot",e);return this},leading(t){return this._queueNumber("leading",t)},viewbox(t,n,r,i){return this._queueObject("viewbox",new yr(t,n,r,i))},update(t){if(typeof t!=="object")return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]});if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",t.offset);return this}});Cn(Oe,{rx:ai,ry:li,from:xi,to:bi});an(Oe,"Runner");var Be=class extends oi{constructor(t,n=t){super(hn("svg",t),n);this.namespace()}defs(){if(!this.isRoot())return this.root().defs();return un(this.node.querySelector("defs"))||this.put(new hi)}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Kt.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){if(!this.isRoot())return this.root().namespace();return this.attr({xmlns:Jt,version:"1.1"}).attr("xmlns:xlink",Wt,Ut)}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Ut).attr("xmlns:svgjs",null,Ut)}root(){if(this.isRoot())return this;return super.root()}};g({Container:{nested:pn((function(){return this.put(new Be)}))}});an(Be,"Svg",true);var ze=class extends oi{constructor(t,n=t){super(hn("symbol",t),n)}};g({Container:{symbol:pn((function(){return this.put(new ze)}))}});an(ze,"Symbol");var He=d({amove:()=>Xe,ax:()=>Ge,ay:()=>Ye,build:()=>Qe,center:()=>Re,cx:()=>Ne,cy:()=>Pe,length:()=>Fe,move:()=>$e,plain:()=>De,x:()=>Ie,y:()=>Ze});function De(t){if(this._build===false)this.clear();this.node.appendChild(Kt.document.createTextNode(t));return this}function Fe(){return this.node.getComputedTextLength()}function Ie(t,n=this.bbox()){if(t==null)return n.x;return this.attr("x",this.attr("x")+t-n.x)}function Ze(t,n=this.bbox()){if(t==null)return n.y;return this.attr("y",this.attr("y")+t-n.y)}function $e(t,n,r=this.bbox()){return this.x(t,r).y(n,r)}function Ne(t,n=this.bbox()){if(t==null)return n.cx;return this.attr("x",this.attr("x")+t-n.cx)}function Pe(t,n=this.bbox()){if(t==null)return n.cy;return this.attr("y",this.attr("y")+t-n.cy)}function Re(t,n,r=this.bbox()){return this.cx(t,r).cy(n,r)}function Ge(t){return this.attr("x",t)}function Ye(t){return this.attr("y",t)}function Xe(t,n){return this.ax(t).ay(n)}function Qe(t){this._build=!!t;return this}var Je=class extends ui{constructor(t,n=t){super(hn("text",t),n);this.dom.leading=this.dom.leading??new Xr(1.3);this._rebuild=true;this._build=false}leading(t){if(t==null)return this.dom.leading;this.dom.leading=new Xr(t);return this.rebuild()}rebuild(t){if(typeof t==="boolean")this._rebuild=t;if(this._rebuild){const t=this;let n=0;const r=this.dom.leading;this.each((function(i){if(Xt(this.node))return;const e=Kt.window.getComputedStyle(this.node).getPropertyValue("font-size");const s=r*new Xr(e);if(this.dom.newLined){this.attr("x",t.attr("x"));if(this.text()==="\n")n+=s;else{this.attr("dy",i?s+n:0);n=0}}}));this.fire("rebuild")}return this}setData(t){this.dom=t;this.dom.leading=new Xr(t.leading||1.3);return this}writeDataToDom(){return super.writeDataToDom({leading:1.3})}text(t){if(t===void 0){const n=this.node.childNodes;let r=0;t="";for(let i=0,e=n.length;i<e;++i){if(n[i].nodeName==="textPath"||Xt(n[i])){if(i===0)r=i+1;continue}if(i!==r&&n[i].nodeType!==3&&un(n[i]).dom.newLined===true)t+="\n";t+=n[i].textContent}return t}this.clear().build(true);if(typeof t==="function")t.call(this,this);else{t=(t+"").split("\n");for(let n=0,r=t.length;n<r;n++)this.newLine(t[n])}return this.build(false).rebuild()}};Cn(Je,He);g({Container:{text:pn((function(t=""){return this.put(new Je).text(t)})),plain:pn((function(t=""){return this.put(new Je).plain(t)}))}});an(Je,"Text");var qe=class extends ui{constructor(t,n=t){super(hn("tspan",t),n);this._build=false}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=true;const t=this.parent();if(!(t instanceof Je))return this;const n=t.index(this);const r=Kt.window.getComputedStyle(this.node).getPropertyValue("font-size");const i=t.dom.leading*new Xr(r);return this.dy(n?i:0).attr("x",t.x())}text(t){if(t==null)return this.node.textContent+(this.dom.newLined?"\n":"");if(typeof t==="function"){this.clear().build(true);t.call(this,this);this.build(false)}else this.plain(t);return this}};Cn(qe,He);g({Tspan:{tspan:pn((function(t=""){const n=new qe;if(!this._build)this.clear();return this.put(n).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}});an(qe,"Tspan");var Ue=class extends ui{constructor(t,n=t){super(hn("circle",t),n)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Xr(t).divide(2))}};Cn(Ue,{x:fi,y:vi,cx:di,cy:Ci,width:pi,height:wi});g({Container:{circle:pn((function(t=0){return this.put(new Ue).size(t).move(0,0)}))}});an(Ue,"Circle");var We=class extends oi{constructor(t,n=t){super(hn("clipPath",t),n)}remove(){this.targets().forEach((function(t){t.unclip()}));return super.remove()}targets(){return Sr(this.node,"clip-path")}};g({Container:{clip:pn((function(){return this.defs().put(new We)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const n=t instanceof We?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+n.id()+")")},unclip(){return this.attr("clip-path",null)}}});an(We,"ClipPath");var Ke=class extends Kr{constructor(t,n=t){super(hn("foreignObject",t),n)}};g({Container:{foreignObject:pn((function(t,n){return this.put(new Ke).size(t,n)}))}});an(Ke,"ForeignObject");var ts=d({dmove:()=>ns,dx:()=>rs,dy:()=>is,height:()=>es,move:()=>ss,size:()=>os,width:()=>hs,x:()=>us,y:()=>cs});function ns(t,n){this.children().forEach((r=>{let i;try{i=r.node instanceof tn().SVGSVGElement?new yr(r.attr(["x","y","width","height"])):r.bbox()}catch(t){return}const e=new fr(r);const s=e.translate(t,n).transform(e.inverse());const o=new cr(i.x,i.y).transform(s);r.dmove(o.x-i.x,o.y-i.y)}));return this}function rs(t){return this.dmove(t,0)}function is(t){return this.dmove(0,t)}function es(t,n=this.bbox()){if(t==null)return n.height;return this.size(n.width,t,n)}function ss(t=0,n=0,r=this.bbox()){const i=t-r.x;const e=n-r.y;return this.dmove(i,e)}function os(t,n,r=this.bbox()){const i=Rt(this,t,n,r);const e=i.width/r.width;const s=i.height/r.height;this.children().forEach((t=>{const n=new cr(r).transform(new fr(t).inverse());t.scale(e,s,n.x,n.y)}));return this}function hs(t,n=this.bbox()){if(t==null)return n.width;return this.size(t,n.height,n)}function us(t,n=this.bbox()){if(t==null)return n.x;return this.move(t,n.y,n)}function cs(t,n=this.bbox()){if(t==null)return n.y;return this.move(n.x,t,n)}var as=class extends oi{constructor(t,n=t){super(hn("g",t),n)}};Cn(as,ts);g({Container:{group:pn((function(){return this.put(new as)}))}});an(as,"G");var ls=class extends oi{constructor(t,n=t){super(hn("a",t),n)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,Wt)}};Cn(ls,ts);g({Container:{link:pn((function(t){return this.put(new ls).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const n=t.parent();if(!n)return this.remove();const r=n.index(t);n.add(this,r);t.remove();return this},linkTo(t){let n=this.linker();if(!n){n=new ls;this.wrap(n)}if(typeof t==="function")t.call(n,n);else n.to(t);return this},linker(){const t=this.parent();if(t&&t.node.nodeName.toLowerCase()==="a")return t;return null}}});an(ls,"A");var fs=class extends oi{constructor(t,n=t){super(hn("mask",t),n)}remove(){this.targets().forEach((function(t){t.unmask()}));return super.remove()}targets(){return Sr(this.node,"mask")}};g({Container:{mask:pn((function(){return this.defs().put(new fs)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const n=t instanceof fs?t:this.parent().mask().add(t);return this.attr("mask","url(#"+n.id()+")")},unmask(){return this.attr("mask",null)}}});an(fs,"Mask");var vs=class extends Kr{constructor(t,n=t){super(hn("stop",t),n)}update(t){if(typeof t==="number"||t instanceof Xr)t={offset:arguments[0],color:arguments[1],opacity:arguments[2]};if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",new Xr(t.offset));return this}};g({Gradient:{stop:function(t,n,r){return this.put(new vs).update(t,n,r)}}});an(vs,"Stop");function ds(t,n){if(!t)return"";if(!n)return t;let r=t+"{";for(const t in n)r+=Nt(t)+":"+n[t]+";";r+="}";return r}var Cs=class extends Kr{constructor(t,n=t){super(hn("style",t),n)}addText(t=""){this.node.textContent+=t;return this}font(t,n,r={}){return this.rule("@font-face",{fontFamily:t,src:n,...r})}rule(t,n){return this.addText(ds(t,n))}};g("Dom",{style(t,n){return this.put(new Cs).rule(t,n)},fontface(t,n,r){return this.put(new Cs).font(t,n,r)}});an(Cs,"Style");var ps=class extends Je{constructor(t,n=t){super(hn("textPath",t),n)}array(){const t=this.track();return t?t.array():null}plot(t){const n=this.track();let r=null;if(n)r=n.plot(t);return t==null?r:this}track(){return this.reference("href")}};g({Container:{textPath:pn((function(t,n){if(!(t instanceof Je))t=this.text(t);return t.path(n)}))},Text:{path:pn((function(t,n=true){const r=new ps;if(!(t instanceof fe))t=this.defs().path(t);r.attr("href","#"+t,Wt);let i;if(n)while(i=this.node.firstChild)r.node.appendChild(i);return this.put(r)})),textPath(){return this.findOne("textPath")}},Path:{text:pn((function(t){if(!(t instanceof Je))t=(new Je).addTo(this.parent()).text(t);return t.path(this)})),targets(){return Sr(this.node,"href","textPath")}}});ps.prototype.MorphArray=re;an(ps,"TextPath");var ws=class extends ui{constructor(t,n=t){super(hn("use",t),n)}use(t,n){return this.attr("href",(n||"")+"#"+t,Wt)}};g({Container:{use:pn((function(t,n){return this.put(new ws).use(t,n)}))}});an(ws,"Use");const ys=on;Cn([Be,ze,ji,ki,Bi],m("viewbox"));Cn([Vi,me,ge,fe],m("marker"));Cn(Je,m("Text"));Cn(fe,m("Path"));Cn(hi,m("Defs"));Cn([Je,qe],m("Tspan"));Cn([xe,yi,Mi,Oe],m("radius"));Cn(Nr,m("EventTarget"));Cn(Wr,m("Dom"));Cn(Kr,m("Element"));Cn(ui,m("Shape"));Cn([oi,gi],m("Container"));Cn(Mi,m("Gradient"));Cn(Oe,m("Runner"));Mr.extend(x());ae([Xr,ur,yr,fr,Yr,_i,re,cr]);le();function gs(){let t={entities:[]};let n;let r=[];function i(t,r,i){n=ys().addTo(t).size(r,i);n.entities=[];n.lines=n.group();n.labels=n.group()}function e(t,n){const r=t.group().attr({id:n.id});t.entities.push(r);n.background_color=n.background_color?n.background_color:"#f06";n.color=n.color?n.color:"#ffffff";n.radius=n.radius?n.radius:0;r.entity=r.rect(n.width,n.height).cx(n.width/2).cy(n.height/2).attr({fill:"#ffffff",stroke:n.color,["stroke-width"]:2}).radius(n.radius);if(n.class){r.entity.attr("class",n.class)}r.plain(n.text).cx(14).cy(n.height/2+6).attr({fill:n.color});r.move(n.x,n.y)}function s(){if(t.labels&&t.labels.length>0){t.labels.forEach((t=>{n.labels.text(t.value).x(t.x).y(t.y)}))}}function o(t,n){n.forEach((n=>h(t,n)))}function h(t,n){let r="";const i=n.color||"#4c56cb";const e=t.findOne("#"+n.from.element);const s=t.findOne("#"+n.to.element);const o=u(n,e,s);r+=a(e,n.from.point)+","+l(e,n.from.point)+" ";o.forEach((t=>r+=t.x+","+t.y+" "));if(n.to.point==="top"){r+=a(s,n.to.point)+","+l(s,n.to.point)+" "}else if(n.to.point==="bottom"){r+=a(s,n.to.point)+","+l(s,n.to.point)+" "}else{r+=a(s,n.to.point)+","+l(s,n.to.point)+" "}if(!n.polyline){n.polyline=t.lines.polyline(r).fill("none").stroke({color:i,width:2,linecap:"round",linejoin:"round"}).attr("id",n.id)}else{n.polyline.plot(r)}}function u(t,n,r){const i=[];const e=l(n,t.from.point);const s=l(r,t.to.point);const o=a(n,t.from.point);const h=a(r,t.to.point);const u=c(t.from.point);const f=c(t.to.point);const v=u-f;if(v===0){if(t.from.point==="top"){if(e<=s){i.push({x:o,y:e-20});i.push({x:h,y:e-20})}else{i.push({x:o,y:s-20});i.push({x:h,y:s-20})}}else if(t.from.point==="bottom"){if(e<=s){i.push({x:o,y:s+20});i.push({x:h,y:s+20})}else{i.push({x:o,y:e+20});i.push({x:h,y:e+20})}}else{if(o<=h){i.push({x:h+20,y:e});i.push({x:h+20,y:s})}else{i.push({x:o+20,y:e});i.push({x:o+20,y:s})}}}if(v===2||v===-2){if(o!==h){i.push({x:o,y:s+(e-s)/2});i.push({x:h,y:s+(e-s)/2})}}if(v===1||v===-1||v===3||v===-3){if(t.from.point==="top"){if(e<s+20){i.push({x:o,y:e-20});i.push({x:h+20,y:e-20});i.push({x:h+20,y:s})}else{i.push({x:o,y:s})}}if(t.from.point==="bottom"){if(e>s-20){i.push({x:o,y:e+20});i.push({x:h+20,y:e+20});i.push({x:h+20,y:s})}else{i.push({x:o,y:s})}}}return i}function c(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function a(t,n){const r=t.entity.attr("width");const i=t.entity.attr("x");switch(n){case"top":case"bottom":return i+r/2;default:return i-r/2}}function l(t,n){const r=t.entity.attr("height");const i=t.entity.attr("y");switch(n){case"top":return i;case"bottom":return i+r;default:return i}}function f(){n.entities.forEach((t=>t.remove()));n.entities=[];r=[];if(!t.labels){t.labels=[]}t.labels=t.labels.map((t=>({id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"})));t.entities.map((t=>{t.type=t.type?t.type:"entity";if(t.type==="operation"){t.height=t.width}}));s();t.entities.forEach((t=>e(n,t)));r=t.lines;o(n,r)}function v(n){t=n;f()}return{initalize:i,update:v}}const ms=()=>`verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}`;const xs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>`;const bs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>`;const Ms=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>`;const ks=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>`;const js=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>`;const _s=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>`;const Os=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>`;const Ss=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>`;const As=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Es=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Ls=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>`;const Ts=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>`;const Vs=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Bs=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const zs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>`;const Hs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>`;const Ds=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Fs=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Is=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>`;const Zs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>`;const $s=140;const Ns=40;const Ps=40;const Rs=t(class t extends n{constructor(t){super();if(t!==false){this.__registerHost()}this.size="normal";this.theme="light";this.containerId=`verdocs-status-indicator-${Math.random().toString(36).substring(2,11)}`;this.recipientStatusIcons=[]}componentDidLoad(){var t;this.popper=o(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]});if((t=this.envelope)===null||t===void 0?void 0:t.recipients){const t=[];this.envelope.recipients.forEach((n=>{const r=n.sequence-1;t[r]||(t[r]=[]);const i=`r-${r}-${t[r].length}`;t[r].push({...n,id:i})}));const n=Object.keys(t).length;const r=n*Ns+(n+1)*Ps;let i=0;Object.values(t).forEach((t=>{let n=t.length*$s+(t.length+1)*Ps;if(n>i){i=n}}));const e=[];const o=[];const h=[];let u=Ps;Object.entries(t).forEach((([n,r])=>{const c=r.length*($s+Ps);const a=i-c;const l=Ps/2+a/2;r.forEach(((r,i)=>{var c;const a=s(r);const f={id:r.id,text:a,icon:this.getStatusIcon(r.status),x:i*($s+Ps)+l,y:u,width:$s,height:Ns,color:this.getStatusColor(r.status),radius:8};e.push(f);h.push({icon:this.getStatusIcon(r.status),x:i*($s+Ps)+l+($s-32),y:u+Ns/2-13});(c=t[+n-1])===null||c===void 0?void 0:c.forEach((t=>{const n={id:`line-${t.id}-${f.id}`,from:{element:t.id,point:"bottom"},to:{element:f.id,point:"top"},color:this.getStatusColor(r.status)};o.push(n)}))}));u+=Ns+Ps}));this.recipientStatusIcons=h;const c=gs();c.initalize(`#${this.containerId}`,i,r);c.update({entities:e,lines:o})}}showDropdown(){var t,n;this.isOpen=true;this.detailPanel.setAttribute("data-show","");this.detailPanel.removeAttribute("aria-hidden");(t=this.popper)===null||t===void 0?void 0:t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:true}]})));(n=this.popper)===null||n===void 0?void 0:n.update()}handleHideDropdown(t){var n,r;if(((n=t===null||t===void 0?void 0:t.target)===null||n===void 0?void 0:n.localName)==="button"&&((r=t===null||t===void 0?void 0:t.target)===null||r===void 0?void 0:r.className)==="arrow"){return}this.hide()}toggleDropdown(){if(this.isOpen){this.hide()}else{this.showDropdown()}}hide(){var t;this.isOpen=false;this.detailPanel.removeAttribute("data-show");this.detailPanel.setAttribute("aria-hidden","true");(t=this.popper)===null||t===void 0?void 0:t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:false}]})))}getStatusColor(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";case"canceled":case"in progress":case"pending":default:return"#999999"}}getStatusIcon(t){switch(t){case"accepted":return this.theme==="light"?bs:xs;case"complete":return this.theme==="light"?_s:js;case"in progress":return this.theme==="light"?Es:As;case"canceled":return this.theme==="light"?ks:Ms;case"declined":return this.theme==="light"?Ss:Os;case"invited":return this.theme==="light"?Es:As;case"opened":return this.theme==="light"?Ts:Ls;case"signed":return this.theme==="light"?Hs:zs;case"submitted":return this.theme==="light"?Zs:Is;case"some-signed":return this.theme==="light"?Fs:Ds;default:case"pending":return this.theme==="light"?Bs:Vs}}getStatusMessage(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}}render(){var t,n;let e=this.status||((t=this.envelope)===null||t===void 0?void 0:t.status)||"pending";if(!this.status&&((n=this.envelope)===null||n===void 0?void 0:n.recipients)){const t=this.envelope.recipients.filter((t=>t.status==="submitted"));if(t.length>0&&t.length!==this.envelope.recipients.length){e="some-signed"}}const s=this.getStatusIcon(e);const o=this.getStatusMessage(e);return r(i,{key:"9c94c90d8fc3640cd0065d4476e822aef432ae66",ref:t=>this.summaryComponent=t,class:`${this.theme} ${this.size} ${this.envelope?"has-document":""}`,"aria-label":"Click to View Details",onClick:t=>{t.stopPropagation();t.preventDefault();this.envelope&&this.toggleDropdown()},onBlur:t=>this.envelope&&this.handleHideDropdown(t)},r("span",{key:"0ef24ac3375647b88d535cdef0157455c787e6e5",class:"icon",innerHTML:s}),r("span",{key:"1bbcabfd32b9599fe100cd16f9bf0c0389ff6511",class:"content"},o),r("div",{key:"976a3cd5ff440cf24b6e086d86a9afc86827c2b8",class:"detail-panel",ref:t=>this.detailPanel=t},r("div",{key:"35b6337d32ae7420676a056648ea18cc474c1c97",id:`${this.containerId}`}),this.recipientStatusIcons.map((t=>r("span",{innerHTML:t.icon,style:{position:"absolute",top:`${t.y}px`,left:`${t.x}px`}})))))}static get style(){return ms()}},[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],envelope:[16],isOpen:[32],containerId:[32]}]);function Gs(){if(typeof customElements==="undefined"){return}const t=["verdocs-status-indicator"];t.forEach((t=>{switch(t){case"verdocs-status-indicator":if(!customElements.get(e(t))){customElements.define(e(t),Rs)}break}}))}export{Rs as V,Gs as d};
2
+ //# sourceMappingURL=p-DtHLJ-XO.js.map