@openparachute/app 0.22.12 → 0.22.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +123 -75
  2. package/dist/.parachute/info +1 -1
  3. package/dist/assets/{Account-CdkJMAPi.js → Account-CRPq4eky.js} +1 -1
  4. package/dist/assets/Activity-BLLN2kgu.js +1 -0
  5. package/dist/assets/{AddVault-D1K_D6Y0.js → AddVault-BR5gZWT3.js} +1 -1
  6. package/dist/assets/{AddVaultChooser-DCs3tJPw.js → AddVaultChooser-Bq8pAkVc.js} +1 -1
  7. package/dist/assets/{AddVaultCreate-B3yMKaiU.js → AddVaultCreate-m_9BeV_Q.js} +1 -1
  8. package/dist/assets/Calendar-65Irth8Y.js +1 -0
  9. package/dist/assets/{CheckEmail-taTm_0KJ.js → CheckEmail-encZZOxl.js} +1 -1
  10. package/dist/assets/{ConnectAI-CsKHus0o.js → ConnectAI-B7gqvDkQ.js} +1 -1
  11. package/dist/assets/DayView-DsQr2XvT.js +1 -0
  12. package/dist/assets/{Export-pVqCJjpd.js → Export-BRO5DUzT.js} +1 -1
  13. package/dist/assets/{Import-DDHJzkGw.js → Import-_1c63gXI.js} +1 -1
  14. package/dist/assets/NoteEditor-C1s0DRwJ.js +1 -0
  15. package/dist/assets/NoteNew-D2gDWKnW.js +8 -0
  16. package/dist/assets/{NoteRenderer-BzRFYOTP.js → NoteRenderer-BwgvmHZD.js} +1 -1
  17. package/dist/assets/{NoteView-GsOFyCey.js → NoteView-BtXvo-Ke.js} +2 -2
  18. package/dist/assets/{OAuthCallback-BoeL9Unb.js → OAuthCallback-Dne6nN7G.js} +1 -1
  19. package/dist/assets/{PinArchiveButtons-DBJ9XC87.js → PinArchiveButtons-BaeSYCvb.js} +1 -1
  20. package/dist/assets/{Settings-C14K5QIf.js → Settings-C5Q_6IiY.js} +1 -1
  21. package/dist/assets/{TagPage-Dth86gwn.js → TagPage-Bz58IORf.js} +1 -1
  22. package/dist/assets/{TagSchemaEditor-DrsKXHjg.js → TagSchemaEditor-YXqxcc95.js} +1 -1
  23. package/dist/assets/{Tags-BAMUSxtu.js → Tags-DIhbbif6.js} +1 -1
  24. package/dist/assets/{VaultGraph-CUiB0dxf.js → VaultGraph-OyvE7-1G.js} +2 -2
  25. package/dist/assets/{Vaults-YV2Gt5rq.js → Vaults-DZTvLJL0.js} +1 -1
  26. package/dist/assets/{ViewNew--9bYKDKm.js → ViewNew-CEWGH98c.js} +1 -1
  27. package/dist/assets/ViewSurface-BVVt4eto.js +1 -0
  28. package/dist/assets/{Welcome-CG-4UtgI.js → Welcome-DcaF7cVO.js} +1 -1
  29. package/dist/assets/{WizardShell-BPt_HrH0.js → WizardShell-BpDtpsOX.js} +1 -1
  30. package/dist/assets/{attachment-upload-DbV0j1WH.js → attachment-upload-BqMcsBiB.js} +1 -1
  31. package/dist/assets/{history-Dwz434D-.js → history-v1ErfO2u.js} +1 -1
  32. package/dist/assets/index-BBWRhmyM.css +1 -0
  33. package/dist/assets/index-C2wr_d3O.js +66 -0
  34. package/dist/assets/{provenance-O7CbiScI.js → provenance-C8B5Q0ir.js} +1 -1
  35. package/dist/assets/{react-force-graph-2d-CQUSRInM.js → react-force-graph-2d-BtLtJaOD.js} +1 -1
  36. package/dist/assets/{transcribe-default-DIcTpM6A.js → transcribe-default-BCVfDb3s.js} +1 -1
  37. package/dist/assets/{useAttachmentUploader-t5hlKCgS.js → useAttachmentUploader-BmtZQjNW.js} +2 -2
  38. package/dist/index.html +2 -2
  39. package/dist/sw.js +1 -1
  40. package/meta.json +1 -1
  41. package/package.json +1 -1
  42. package/dist/assets/Activity-DqsfIB-3.js +0 -1
  43. package/dist/assets/Calendar-DcVL4_q0.js +0 -1
  44. package/dist/assets/DayView-BTm_sLsN.js +0 -1
  45. package/dist/assets/NoteEditor-h3CHfMT1.js +0 -1
  46. package/dist/assets/NoteNew-DUVNgXN7.js +0 -8
  47. package/dist/assets/ViewSurface-BhLi1m3l.js +0 -1
  48. package/dist/assets/index-B9w7QdRL.css +0 -1
  49. package/dist/assets/index-CpyANXLa.js +0 -66
@@ -1 +1 @@
1
- import{bD as u}from"./index-CpyANXLa.js";function i(){return"Cloud"}function o(t){if(!t)return null;try{return new URL(t).host}catch{return null}}function l(t){if(u(t.clientId))return{kind:"cloud",label:i()};const n=o(t.issuer)??o(t.url)??"your server";return{kind:"self-hosted",host:n,label:`Self-hosted · ${n}`}}function s(t){if(!Number.isFinite(t)||t<=0)return null;const n=t/1024,r=n/1024,e=r/1024;return e>=1?`${e<10?e.toFixed(1):Math.round(e)} GB`:r>=1?`${r<10?r.toFixed(1):Math.round(r)} MB`:`${Math.max(1,Math.round(n))} KB`}function f(t){return t?s((t.notes_bytes??0)+(t.attachment_bytes??0)):null}export{s as a,f,l as v};
1
+ import{bE as u}from"./index-C2wr_d3O.js";function i(){return"Cloud"}function o(t){if(!t)return null;try{return new URL(t).host}catch{return null}}function l(t){if(u(t.clientId))return{kind:"cloud",label:i()};const n=o(t.issuer)??o(t.url)??"your server";return{kind:"self-hosted",host:n,label:`Self-hosted · ${n}`}}function s(t){if(!Number.isFinite(t)||t<=0)return null;const n=t/1024,r=n/1024,e=r/1024;return e>=1?`${e<10?e.toFixed(1):Math.round(e)} GB`:r>=1?`${r<10?r.toFixed(1):Math.round(r)} MB`:`${Math.max(1,Math.round(n))} KB`}function f(t){return t?s((t.notes_bytes??0)+(t.attachment_bytes??0)):null}export{s as a,f,l as v};
@@ -1,4 +1,4 @@
1
- import{r as at,ca as _o,ae as vo}from"./index-CpyANXLa.js";function mo(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);l=!0);}catch(c){f=!0,o=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw o}}return u}}function xo(e,n,r){return n=To(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Kn(e,n){return ko(e)||mo(e,n)||oi(e,n)||So()}function bo(e){return wo(e)||Ao(e)||oi(e)||Co()}function wo(e){if(Array.isArray(e))return gn(e)}function ko(e){if(Array.isArray(e))return e}function Ao(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oi(e,n){if(e){if(typeof e=="string")return gn(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(e,n)}}function gn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function Co(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{r as at,cd as _o,ae as vo}from"./index-C2wr_d3O.js";function mo(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);l=!0);}catch(c){f=!0,o=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw o}}return u}}function xo(e,n,r){return n=To(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Kn(e,n){return ko(e)||mo(e,n)||oi(e,n)||So()}function bo(e){return wo(e)||Ao(e)||oi(e)||Co()}function wo(e){if(Array.isArray(e))return gn(e)}function ko(e){if(Array.isArray(e))return e}function Ao(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oi(e,n){if(e){if(typeof e=="string")return gn(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(e,n)}}function gn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function Co(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function So(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mo(e,n){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function To(e){var n=Mo(e,"string");return typeof n=="symbol"?n:String(n)}var Po=function(n,r){var i=new Set(r);return Object.assign.apply(Object,[{}].concat(bo(Object.entries(n).filter(function(o){var a=Kn(o,1),s=a[0];return!i.has(s)}).map(function(o){var a=Kn(o,2),s=a[0],u=a[1];return xo({},s,u)}))))};function Oo(e,{wrapperElementType:n="div",nodeMapper:r=a=>a,methodNames:i=[],initPropNames:o=[]}={}){return at.forwardRef((a,s)=>{const u=at.useRef(),l=at.useMemo(()=>{const h=Object.fromEntries(o.filter(d=>a.hasOwnProperty(d)).map(d=>[d,a[d]]));return e(h)},[]);Qn(()=>{l(r(u.current))},at.useLayoutEffect),Qn(()=>l._destructor instanceof Function?l._destructor:void 0);const f=at.useCallback((h,...d)=>l[h]instanceof Function?l[h](...d):void 0,[l]),c=at.useRef({});return Object.keys(Po(a,[...i,...o])).filter(h=>c.current[h]!==a[h]).forEach(h=>f(h,a[h])),c.current=a,at.useImperativeHandle(s,()=>Object.fromEntries(i.map(h=>[h,(...d)=>f(h,...d)])),[f]),_o.createElement(n,{ref:u})})}function Qn(e,n=at.useEffect){const r=at.useRef(),i=at.useRef(!1),o=at.useRef(!1),[a,s]=at.useState(0);i.current&&(o.current=!0),n(()=>(i.current||(r.current=e(),i.current=!0),s(u=>u+1),()=>{o.current&&(r.current&&r.current(),r.current=void 0,i.current=!1,o.current=!1)}),[])}var yn="http://www.w3.org/1999/xhtml";const Jn={svg:"http://www.w3.org/2000/svg",xhtml:yn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Be(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Jn.hasOwnProperty(n)?{space:Jn[n],local:e}:e}function Eo(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===yn&&n.documentElement.namespaceURI===yn?n.createElement(e):n.createElementNS(r,e)}}function zo(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ai(e){var n=Be(e);return(n.local?zo:Eo)(n)}function Ro(){}function Nn(e){return e==null?Ro:function(){return this.querySelector(e)}}function No(e){typeof e!="function"&&(e=Nn(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=new Array(s),l,f,c=0;c<s;++c)(l=a[c])&&(f=e.call(l,l.__data__,c,a))&&("__data__"in l&&(f.__data__=l.__data__),u[c]=f);return new rt(i,this._parents)}function Io(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Do(){return[]}function si(e){return e==null?Do:function(){return this.querySelectorAll(e)}}function $o(e){return function(){return Io(e.apply(this,arguments))}}function jo(e){typeof e=="function"?e=$o(e):e=si(e);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s=n[a],u=s.length,l,f=0;f<u;++f)(l=s[f])&&(i.push(e.call(l,l.__data__,f,s)),o.push(l));return new rt(i,o)}function ui(e){return function(){return this.matches(e)}}function li(e){return function(n){return n.matches(e)}}var Fo=Array.prototype.find;function Uo(e){return function(){return Fo.call(this.children,e)}}function Lo(){return this.firstElementChild}function qo(e){return this.select(e==null?Lo:Uo(typeof e=="function"?e:li(e)))}var Ho=Array.prototype.filter;function Go(){return Array.from(this.children)}function Vo(e){return function(){return Ho.call(this.children,e)}}function Wo(e){return this.selectAll(e==null?Go:Vo(typeof e=="function"?e:li(e)))}function Bo(e){typeof e!="function"&&(e=ui(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=[],l,f=0;f<s;++f)(l=a[f])&&e.call(l,l.__data__,f,a)&&u.push(l);return new rt(i,this._parents)}function fi(e){return new Array(e.length)}function Xo(){return new rt(this._enter||this._groups.map(fi),this._parents)}function Re(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}Re.prototype={constructor:Re,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Yo(e){return function(){return e}}function Zo(e,n,r,i,o,a){for(var s=0,u,l=n.length,f=a.length;s<f;++s)(u=n[s])?(u.__data__=a[s],i[s]=u):r[s]=new Re(e,a[s]);for(;s<l;++s)(u=n[s])&&(o[s]=u)}function Ko(e,n,r,i,o,a,s){var u,l,f=new Map,c=n.length,h=a.length,d=new Array(c),p;for(u=0;u<c;++u)(l=n[u])&&(d[u]=p=s.call(l,l.__data__,u,n)+"",f.has(p)?o[u]=l:f.set(p,l));for(u=0;u<h;++u)p=s.call(e,a[u],u,a)+"",(l=f.get(p))?(i[u]=l,l.__data__=a[u],f.delete(p)):r[u]=new Re(e,a[u]);for(u=0;u<c;++u)(l=n[u])&&f.get(d[u])===l&&(o[u]=l)}function Qo(e){return e.__data__}function Jo(e,n){if(!arguments.length)return Array.from(this,Qo);var r=n?Ko:Zo,i=this._parents,o=this._groups;typeof e!="function"&&(e=Yo(e));for(var a=o.length,s=new Array(a),u=new Array(a),l=new Array(a),f=0;f<a;++f){var c=i[f],h=o[f],d=h.length,p=ta(e.call(c,c&&c.__data__,f,i)),y=p.length,x=u[f]=new Array(y),_=s[f]=new Array(y),g=l[f]=new Array(d);r(c,h,x,_,g,p,n);for(var w=0,S=0,b,m;w<y;++w)if(b=x[w]){for(w>=S&&(S=w+1);!(m=_[S])&&++S<y;);b._next=m||null}}return s=new rt(s,i),s._enter=u,s._exit=l,s}function ta(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ea(){return new rt(this._exit||this._groups.map(fi),this._parents)}function na(e,n,r){var i=this.enter(),o=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),n!=null&&(o=n(o),o&&(o=o.selection())),r==null?a.remove():r(a),i&&o?i.merge(o).order():o}function ra(e){for(var n=e.selection?e.selection():e,r=this._groups,i=n._groups,o=r.length,a=i.length,s=Math.min(o,a),u=new Array(o),l=0;l<s;++l)for(var f=r[l],c=i[l],h=f.length,d=u[l]=new Array(h),p,y=0;y<h;++y)(p=f[y]||c[y])&&(d[y]=p);for(;l<o;++l)u[l]=r[l];return new rt(u,this._parents)}function ia(){for(var e=this._groups,n=-1,r=e.length;++n<r;)for(var i=e[n],o=i.length-1,a=i[o],s;--o>=0;)(s=i[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function oa(e){e||(e=aa);function n(h,d){return h&&d?e(h.__data__,d.__data__):!h-!d}for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a){for(var s=r[a],u=s.length,l=o[a]=new Array(u),f,c=0;c<u;++c)(f=s[c])&&(l[c]=f);l.sort(n)}return new rt(o,this._parents).order()}function aa(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function sa(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ua(){return Array.from(this)}function la(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null}function fa(){let e=0;for(const n of this)++e;return e}function ca(){return!this.node()}function ha(e){for(var n=this._groups,r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length,u;a<s;++a)(u=o[a])&&e.call(u,u.__data__,a,o);return this}function da(e){return function(){this.removeAttribute(e)}}function pa(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ga(e,n){return function(){this.setAttribute(e,n)}}function ya(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function _a(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function va(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function ma(e,n){var r=Be(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((n==null?r.local?pa:da:typeof n=="function"?r.local?va:_a:r.local?ya:ga)(r,n))}function ci(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xa(e){return function(){this.style.removeProperty(e)}}function ba(e,n,r){return function(){this.style.setProperty(e,n,r)}}function wa(e,n,r){return function(){var i=n.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function ka(e,n,r){return arguments.length>1?this.each((n==null?xa:typeof n=="function"?wa:ba)(e,n,r??"")):Vt(this.node(),e)}function Vt(e,n){return e.style.getPropertyValue(n)||ci(e).getComputedStyle(e,null).getPropertyValue(n)}function Aa(e){return function(){delete this[e]}}function Ca(e,n){return function(){this[e]=n}}function Sa(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Ma(e,n){return arguments.length>1?this.each((n==null?Aa:typeof n=="function"?Sa:Ca)(e,n)):this.node()[e]}function hi(e){return e.trim().split(/^|\s+/)}function In(e){return e.classList||new di(e)}function di(e){this._node=e,this._names=hi(e.getAttribute("class")||"")}di.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function pi(e,n){for(var r=In(e),i=-1,o=n.length;++i<o;)r.add(n[i])}function gi(e,n){for(var r=In(e),i=-1,o=n.length;++i<o;)r.remove(n[i])}function Ta(e){return function(){pi(this,e)}}function Pa(e){return function(){gi(this,e)}}function Oa(e,n){return function(){(n.apply(this,arguments)?pi:gi)(this,e)}}function Ea(e,n){var r=hi(e+"");if(arguments.length<2){for(var i=In(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof n=="function"?Oa:n?Ta:Pa)(r,n))}function za(){this.textContent=""}function Ra(e){return function(){this.textContent=e}}function Na(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function Ia(e){return arguments.length?this.each(e==null?za:(typeof e=="function"?Na:Ra)(e)):this.node().textContent}function Da(){this.innerHTML=""}function $a(e){return function(){this.innerHTML=e}}function ja(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function Fa(e){return arguments.length?this.each(e==null?Da:(typeof e=="function"?ja:$a)(e)):this.node().innerHTML}function Ua(){this.nextSibling&&this.parentNode.appendChild(this)}function La(){return this.each(Ua)}function qa(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ha(){return this.each(qa)}function Ga(e){var n=typeof e=="function"?e:ai(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Va(){return null}function Wa(e,n){var r=typeof e=="function"?e:ai(e),i=n==null?Va:typeof n=="function"?n:Nn(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Ba(){var e=this.parentNode;e&&e.removeChild(this)}function Xa(){return this.each(Ba)}function Ya(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Za(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function Ka(e){return this.select(e?Za:Ya)}function Qa(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ja(e){return function(n){e.call(this,n,this.__data__)}}function ts(e){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");return i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),{type:n,name:r}})}function es(e){return function(){var n=this.__on;if(n){for(var r=0,i=-1,o=n.length,a;r<o;++r)a=n[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):n[++i]=a;++i?n.length=i:delete this.__on}}}function ns(e,n,r){return function(){var i=this.__on,o,a=Ja(n);if(i){for(var s=0,u=i.length;s<u;++s)if((o=i[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=r),o.value=n;return}}this.addEventListener(e.type,a,r),o={type:e.type,name:e.name,value:n,listener:a,options:r},i?i.push(o):this.__on=[o]}}function rs(e,n,r){var i=ts(e+""),o,a=i.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,f=u.length,c;l<f;++l)for(o=0,c=u[l];o<a;++o)if((s=i[o]).type===c.type&&s.name===c.name)return c.value}return}for(u=n?ns:es,o=0;o<a;++o)this.each(u(i[o],n,r));return this}function yi(e,n,r){var i=ci(e),o=i.CustomEvent;typeof o=="function"?o=new o(n,r):(o=i.document.createEvent("Event"),r?(o.initEvent(n,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(n,!1,!1)),e.dispatchEvent(o)}function is(e,n){return function(){return yi(this,e,n)}}function os(e,n){return function(){return yi(this,e,n.apply(this,arguments))}}function as(e,n){return this.each((typeof n=="function"?os:is)(e,n))}function*ss(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&(yield s)}var _i=[null];function rt(e,n){this._groups=e,this._parents=n}function ye(){return new rt([[document.documentElement]],_i)}function us(){return this}rt.prototype=ye.prototype={constructor:rt,select:No,selectAll:jo,selectChild:qo,selectChildren:Wo,filter:Bo,data:Jo,enter:Xo,exit:ea,join:na,merge:ra,selection:us,order:ia,sort:oa,call:sa,nodes:ua,node:la,size:fa,empty:ca,each:ha,attr:ma,style:ka,property:Ma,classed:Ea,text:Ia,html:Fa,raise:La,lower:Ha,append:Ga,insert:Wa,remove:Xa,clone:Ka,datum:Qa,on:rs,dispatch:as,[Symbol.iterator]:ss};function st(e){return typeof e=="string"?new rt([[document.querySelector(e)]],[document.documentElement]):new rt([[e]],_i)}function ls(e){let n;for(;n=e.sourceEvent;)e=n;return e}function yt(e,n){if(e=ls(e),n===void 0&&(n=e.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}if(n.getBoundingClientRect){var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}}return[e.pageX,e.pageY]}var fs={value:()=>{}};function _e(){for(var e=0,n=arguments.length,r={},i;e<n;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Me(r)}function Me(e){this._=e}function cs(e,n){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Me.prototype=_e.prototype={constructor:Me,on:function(e,n){var r=this._,i=cs(e+"",r),o,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((o=(e=i[a]).type)&&(o=hs(r[o],e.name)))return o;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++a<s;)if(o=(e=i[a]).type)r[o]=tr(r[o],e.name,n);else if(n==null)for(o in r)r[o]=tr(r[o],e.name,null);return this},copy:function(){var e={},n=this._;for(var r in n)e[r]=n[r].slice();return new Me(e)},call:function(e,n){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,a;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(n,r)},apply:function(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(n,r)}};function hs(e,n){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===n)return o.value}function tr(e,n,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===n){e[i]=fs,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:n,value:r}),e}const ds={passive:!1},fe={capture:!0,passive:!1};function en(e){e.stopImmediatePropagation()}function Ht(e){e.preventDefault(),e.stopImmediatePropagation()}function vi(e){var n=e.document.documentElement,r=st(e).on("dragstart.drag",Ht,fe);"onselectstart"in n?r.on("selectstart.drag",Ht,fe):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function mi(e,n){var r=e.document.documentElement,i=st(e).on("dragstart.drag",null);n&&(i.on("click.drag",Ht,fe),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const xe=e=>()=>e;function _n(e,{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:u,dx:l,dy:f,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:c}})}_n.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function ps(e){return!e.ctrlKey&&!e.button}function gs(){return this.parentNode}function ys(e,n){return n??{x:e.x,y:e.y}}function _s(){return navigator.maxTouchPoints||"ontouchstart"in this}function vs(){var e=ps,n=gs,r=ys,i=_s,o={},a=_e("start","drag","end"),s=0,u,l,f,c,h=0;function d(b){b.on("mousedown.drag",p).filter(i).on("touchstart.drag",_).on("touchmove.drag",g,ds).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(b,m){if(!(c||!e.call(this,b,m))){var A=S(this,n.call(this,b,m),b,m,"mouse");A&&(st(b.view).on("mousemove.drag",y,fe).on("mouseup.drag",x,fe),vi(b.view),en(b),f=!1,u=b.clientX,l=b.clientY,A("start",b))}}function y(b){if(Ht(b),!f){var m=b.clientX-u,A=b.clientY-l;f=m*m+A*A>h}o.mouse("drag",b)}function x(b){st(b.view).on("mousemove.drag mouseup.drag",null),mi(b.view,f),Ht(b),o.mouse("end",b)}function _(b,m){if(e.call(this,b,m)){var A=b.changedTouches,C=n.call(this,b,m),M=A.length,z,P;for(z=0;z<M;++z)(P=S(this,C,b,m,A[z].identifier,A[z]))&&(en(b),P("start",b,A[z]))}}function g(b){var m=b.changedTouches,A=m.length,C,M;for(C=0;C<A;++C)(M=o[m[C].identifier])&&(Ht(b),M("drag",b,m[C]))}function w(b){var m=b.changedTouches,A=m.length,C,M;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),C=0;C<A;++C)(M=o[m[C].identifier])&&(en(b),M("end",b,m[C]))}function S(b,m,A,C,M,z){var P=a.copy(),R=yt(z||A,m),N,j,k;if((k=r.call(b,new _n("beforestart",{sourceEvent:A,target:d,identifier:M,active:s,x:R[0],y:R[1],dx:0,dy:0,dispatch:P}),C))!=null)return N=k.x-R[0]||0,j=k.y-R[1]||0,function E(T,I,$){var F=R,U;switch(T){case"start":o[M]=E,U=s++;break;case"end":delete o[M],--s;case"drag":R=yt($||I,m),U=s;break}P.call(T,b,new _n(T,{sourceEvent:I,subject:k,target:d,identifier:M,active:U,x:R[0]+N,y:R[1]+j,dx:R[0]-F[0],dy:R[1]-F[1],dispatch:P}),C)}}return d.filter=function(b){return arguments.length?(e=typeof b=="function"?b:xe(!!b),d):e},d.container=function(b){return arguments.length?(n=typeof b=="function"?b:xe(b),d):n},d.subject=function(b){return arguments.length?(r=typeof b=="function"?b:xe(b),d):r},d.touchable=function(b){return arguments.length?(i=typeof b=="function"?b:xe(!!b),d):i},d.on=function(){var b=a.on.apply(a,arguments);return b===a?d:b},d.clickDistance=function(b){return arguments.length?(h=(b=+b)*b,d):Math.sqrt(h)},d}function Dn(e,n,r){e.prototype=n.prototype=r,r.constructor=e}function xi(e,n){var r=Object.create(e.prototype);for(var i in n)r[i]=n[i];return r}function ve(){}var ce=.7,Ne=1/ce,Gt="\\s*([+-]?\\d+)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ms=/^#([0-9a-f]{3,8})$/,xs=new RegExp(`^rgb\\(${Gt},${Gt},${Gt}\\)$`),bs=new RegExp(`^rgb\\(${vt},${vt},${vt}\\)$`),ws=new RegExp(`^rgba\\(${Gt},${Gt},${Gt},${he}\\)$`),ks=new RegExp(`^rgba\\(${vt},${vt},${vt},${he}\\)$`),As=new RegExp(`^hsl\\(${he},${vt},${vt}\\)$`),Cs=new RegExp(`^hsla\\(${he},${vt},${vt},${he}\\)$`),er={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dn(ve,de,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nr,formatHex:nr,formatHex8:Ss,formatHsl:Ms,formatRgb:rr,toString:rr});function nr(){return this.rgb().formatHex()}function Ss(){return this.rgb().formatHex8()}function Ms(){return bi(this).formatHsl()}function rr(){return this.rgb().formatRgb()}function de(e){var n,r;return e=(e+"").trim().toLowerCase(),(n=ms.exec(e))?(r=n[1].length,n=parseInt(n[1],16),r===6?ir(n):r===3?new tt(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?be(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?be(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=xs.exec(e))?new tt(n[1],n[2],n[3],1):(n=bs.exec(e))?new tt(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=ws.exec(e))?be(n[1],n[2],n[3],n[4]):(n=ks.exec(e))?be(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=As.exec(e))?sr(n[1],n[2]/100,n[3]/100,1):(n=Cs.exec(e))?sr(n[1],n[2]/100,n[3]/100,n[4]):er.hasOwnProperty(e)?ir(er[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function ir(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function be(e,n,r,i){return i<=0&&(e=n=r=NaN),new tt(e,n,r,i)}function Ts(e){return e instanceof ve||(e=de(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function vn(e,n,r,i){return arguments.length===1?Ts(e):new tt(e,n,r,i??1)}function tt(e,n,r,i){this.r=+e,this.g=+n,this.b=+r,this.opacity=+i}Dn(tt,vn,xi(ve,{brighter(e){return e=e==null?Ne:Math.pow(Ne,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(jt(this.r),jt(this.g),jt(this.b),Ie(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:or,formatHex:or,formatHex8:Ps,formatRgb:ar,toString:ar}));function or(){return`#${$t(this.r)}${$t(this.g)}${$t(this.b)}`}function Ps(){return`#${$t(this.r)}${$t(this.g)}${$t(this.b)}${$t((isNaN(this.opacity)?1:this.opacity)*255)}`}function ar(){const e=Ie(this.opacity);return`${e===1?"rgb(":"rgba("}${jt(this.r)}, ${jt(this.g)}, ${jt(this.b)}${e===1?")":`, ${e})`}`}function Ie(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $t(e){return e=jt(e),(e<16?"0":"")+e.toString(16)}function sr(e,n,r,i){return i<=0?e=n=r=NaN:r<=0||r>=1?e=n=NaN:n<=0&&(e=NaN),new ht(e,n,r,i)}function bi(e){if(e instanceof ht)return new ht(e.h,e.s,e.l,e.opacity);if(e instanceof ve||(e=de(e)),!e)return new ht;if(e instanceof ht)return e;e=e.rgb();var n=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(n,r,i),a=Math.max(n,r,i),s=NaN,u=a-o,l=(a+o)/2;return u?(n===a?s=(r-i)/u+(r<i)*6:r===a?s=(i-n)/u+2:s=(n-r)/u+4,u/=l<.5?a+o:2-a-o,s*=60):u=l>0&&l<1?0:s,new ht(s,u,l,e.opacity)}function Os(e,n,r,i){return arguments.length===1?bi(e):new ht(e,n,r,i??1)}function ht(e,n,r,i){this.h=+e,this.s=+n,this.l=+r,this.opacity=+i}Dn(ht,Os,xi(ve,{brighter(e){return e=e==null?Ne:Math.pow(Ne,e),new ht(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new ht(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,o=2*r-i;return new tt(nn(e>=240?e-240:e+120,o,i),nn(e,o,i),nn(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new ht(ur(this.h),we(this.s),we(this.l),Ie(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ie(this.opacity);return`${e===1?"hsl(":"hsla("}${ur(this.h)}, ${we(this.s)*100}%, ${we(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ur(e){return e=(e||0)%360,e<0?e+360:e}function we(e){return Math.max(0,Math.min(1,e||0))}function nn(e,n,r){return(e<60?n+(r-n)*e/60:e<180?r:e<240?n+(r-n)*(240-e)/60:n)*255}const wi=e=>()=>e;function Es(e,n){return function(r){return e+r*n}}function zs(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(i){return Math.pow(e+i*n,r)}}function Rs(e){return(e=+e)==1?ki:function(n,r){return r-n?zs(n,r,e):wi(isNaN(n)?r:n)}}function ki(e,n){var r=n-e;return r?Es(e,r):wi(isNaN(e)?n:e)}const lr=(function e(n){var r=Rs(n);function i(o,a){var s=r((o=vn(o)).r,(a=vn(a)).r),u=r(o.g,a.g),l=r(o.b,a.b),f=ki(o.opacity,a.opacity);return function(c){return o.r=s(c),o.g=u(c),o.b=l(c),o.opacity=f(c),o+""}}return i.gamma=e,i})(1);function Nt(e,n){return e=+e,n=+n,function(r){return e*(1-r)+n*r}}var mn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rn=new RegExp(mn.source,"g");function Ns(e){return function(){return e}}function Is(e){return function(n){return e(n)+""}}function Ds(e,n){var r=mn.lastIndex=rn.lastIndex=0,i,o,a,s=-1,u=[],l=[];for(e=e+"",n=n+"";(i=mn.exec(e))&&(o=rn.exec(n));)(a=o.index)>r&&(a=n.slice(r,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,l.push({i:s,x:Nt(i,o)})),r=rn.lastIndex;return r<n.length&&(a=n.slice(r),u[s]?u[s]+=a:u[++s]=a),u.length<2?l[0]?Is(l[0].x):Ns(n):(n=l.length,function(f){for(var c=0,h;c<n;++c)u[(h=l[c]).i]=h.x(f);return u.join("")})}var fr=180/Math.PI,xn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ai(e,n,r,i,o,a){var s,u,l;return(s=Math.sqrt(e*e+n*n))&&(e/=s,n/=s),(l=e*r+n*i)&&(r-=e*l,i-=n*l),(u=Math.sqrt(r*r+i*i))&&(r/=u,i/=u,l/=u),e*i<n*r&&(e=-e,n=-n,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(n,e)*fr,skewX:Math.atan(l)*fr,scaleX:s,scaleY:u}}var ke;function $s(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?xn:Ai(n.a,n.b,n.c,n.d,n.e,n.f)}function js(e){return e==null||(ke||(ke=document.createElementNS("http://www.w3.org/2000/svg","g")),ke.setAttribute("transform",e),!(e=ke.transform.baseVal.consolidate()))?xn:(e=e.matrix,Ai(e.a,e.b,e.c,e.d,e.e,e.f))}function Ci(e,n,r,i){function o(f){return f.length?f.pop()+" ":""}function a(f,c,h,d,p,y){if(f!==h||c!==d){var x=p.push("translate(",null,n,null,r);y.push({i:x-4,x:Nt(f,h)},{i:x-2,x:Nt(c,d)})}else(h||d)&&p.push("translate("+h+n+d+r)}function s(f,c,h,d){f!==c?(f-c>180?c+=360:c-f>180&&(f+=360),d.push({i:h.push(o(h)+"rotate(",null,i)-2,x:Nt(f,c)})):c&&h.push(o(h)+"rotate("+c+i)}function u(f,c,h,d){f!==c?d.push({i:h.push(o(h)+"skewX(",null,i)-2,x:Nt(f,c)}):c&&h.push(o(h)+"skewX("+c+i)}function l(f,c,h,d,p,y){if(f!==h||c!==d){var x=p.push(o(p)+"scale(",null,",",null,")");y.push({i:x-4,x:Nt(f,h)},{i:x-2,x:Nt(c,d)})}else(h!==1||d!==1)&&p.push(o(p)+"scale("+h+","+d+")")}return function(f,c){var h=[],d=[];return f=e(f),c=e(c),a(f.translateX,f.translateY,c.translateX,c.translateY,h,d),s(f.rotate,c.rotate,h,d),u(f.skewX,c.skewX,h,d),l(f.scaleX,f.scaleY,c.scaleX,c.scaleY,h,d),f=c=null,function(p){for(var y=-1,x=d.length,_;++y<x;)h[(_=d[y]).i]=_.x(p);return h.join("")}}}var Fs=Ci($s,"px, ","px)","deg)"),Us=Ci(js,", ",")",")"),Ls=1e-12;function cr(e){return((e=Math.exp(e))+1/e)/2}function qs(e){return((e=Math.exp(e))-1/e)/2}function Hs(e){return((e=Math.exp(2*e))-1)/(e+1)}const Gs=(function e(n,r,i){function o(a,s){var u=a[0],l=a[1],f=a[2],c=s[0],h=s[1],d=s[2],p=c-u,y=h-l,x=p*p+y*y,_,g;if(x<Ls)g=Math.log(d/f)/n,_=function(C){return[u+C*p,l+C*y,f*Math.exp(n*C*g)]};else{var w=Math.sqrt(x),S=(d*d-f*f+i*x)/(2*f*r*w),b=(d*d-f*f-i*x)/(2*d*r*w),m=Math.log(Math.sqrt(S*S+1)-S),A=Math.log(Math.sqrt(b*b+1)-b);g=(A-m)/n,_=function(C){var M=C*g,z=cr(m),P=f/(r*w)*(z*Hs(n*M+m)-qs(m));return[u+P*p,l+P*y,f*z/cr(n*M+m)]}}return _.duration=g*1e3*n/Math.SQRT2,_}return o.rho=function(a){var s=Math.max(.001,+a),u=s*s,l=u*u;return e(s,u,l)},o})(Math.SQRT2,2,4);var Wt=0,ne=0,Xt=0,Si=1e3,De,re,$e=0,Ut=0,Xe=0,pe=typeof performance=="object"&&performance.now?performance:Date,Mi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function $n(){return Ut||(Mi(Vs),Ut=pe.now()+Xe)}function Vs(){Ut=0}function je(){this._call=this._time=this._next=null}je.prototype=jn.prototype={constructor:je,restart:function(e,n,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?$n():+r)+(n==null?0:+n),!this._next&&re!==this&&(re?re._next=this:De=this,re=this),this._call=e,this._time=r,bn()},stop:function(){this._call&&(this._call=null,this._time=1/0,bn())}};function jn(e,n,r){var i=new je;return i.restart(e,n,r),i}function Ws(){$n(),++Wt;for(var e=De,n;e;)(n=Ut-e._time)>=0&&e._call.call(void 0,n),e=e._next;--Wt}function hr(){Ut=($e=pe.now())+Xe,Wt=ne=0;try{Ws()}finally{Wt=0,Xs(),Ut=0}}function Bs(){var e=pe.now(),n=e-$e;n>Si&&(Xe-=n,$e=e)}function Xs(){for(var e,n=De,r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:De=r);re=e,bn(i)}function bn(e){if(!Wt){ne&&(ne=clearTimeout(ne));var n=e-Ut;n>24?(e<1/0&&(ne=setTimeout(hr,e-pe.now()-Xe)),Xt&&(Xt=clearInterval(Xt))):(Xt||($e=pe.now(),Xt=setInterval(Bs,Si)),Wt=1,Mi(hr))}}function dr(e,n,r){var i=new je;return n=n==null?0:+n,i.restart(o=>{i.stop(),e(o+n)},n,r),i}var Ys=_e("start","end","cancel","interrupt"),Zs=[],Ti=0,pr=1,wn=2,Te=3,gr=4,kn=5,Pe=6;function Ye(e,n,r,i,o,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;Ks(e,r,{name:n,index:i,group:o,on:Ys,tween:Zs,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Ti})}function Fn(e,n){var r=pt(e,n);if(r.state>Ti)throw new Error("too late; already scheduled");return r}function xt(e,n){var r=pt(e,n);if(r.state>Te)throw new Error("too late; already running");return r}function pt(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function Ks(e,n,r){var i=e.__transition,o;i[n]=r,r.timer=jn(a,0,r.time);function a(f){r.state=pr,r.timer.restart(s,r.delay,r.time),r.delay<=f&&s(f-r.delay)}function s(f){var c,h,d,p;if(r.state!==pr)return l();for(c in i)if(p=i[c],p.name===r.name){if(p.state===Te)return dr(s);p.state===gr?(p.state=Pe,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[c]):+c<n&&(p.state=Pe,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[c])}if(dr(function(){r.state===Te&&(r.state=gr,r.timer.restart(u,r.delay,r.time),u(f))}),r.state=wn,r.on.call("start",e,e.__data__,r.index,r.group),r.state===wn){for(r.state=Te,o=new Array(d=r.tween.length),c=0,h=-1;c<d;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(o[++h]=p);o.length=h+1}}function u(f){for(var c=f<r.duration?r.ease.call(null,f/r.duration):(r.timer.restart(l),r.state=kn,1),h=-1,d=o.length;++h<d;)o[h].call(e,c);r.state===kn&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Pe,r.timer.stop(),delete i[n];for(var f in i)return;delete e.__transition}}function Oe(e,n){var r=e.__transition,i,o,a=!0,s;if(r){n=n==null?null:n+"";for(s in r){if((i=r[s]).name!==n){a=!1;continue}o=i.state>wn&&i.state<kn,i.state=Pe,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function Qs(e){return this.each(function(){Oe(this,e)})}function Js(e,n){var r,i;return function(){var o=xt(this,e),a=o.tween;if(a!==r){i=r=a;for(var s=0,u=i.length;s<u;++s)if(i[s].name===n){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function tu(e,n,r){var i,o;if(typeof r!="function")throw new Error;return function(){var a=xt(this,e),s=a.tween;if(s!==i){o=(i=s).slice();for(var u={name:n,value:r},l=0,f=o.length;l<f;++l)if(o[l].name===n){o[l]=u;break}l===f&&o.push(u)}a.tween=o}}function eu(e,n){var r=this._id;if(e+="",arguments.length<2){for(var i=pt(this.node(),r).tween,o=0,a=i.length,s;o<a;++o)if((s=i[o]).name===e)return s.value;return null}return this.each((n==null?Js:tu)(r,e,n))}function Un(e,n,r){var i=e._id;return e.each(function(){var o=xt(this,i);(o.value||(o.value={}))[n]=r.apply(this,arguments)}),function(o){return pt(o,i).value[n]}}function Pi(e,n){var r;return(typeof n=="number"?Nt:n instanceof de?lr:(r=de(n))?(n=r,lr):Ds)(e,n)}function nu(e){return function(){this.removeAttribute(e)}}function ru(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iu(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttribute(e);return s===o?null:s===i?a:a=n(i=s,r)}}function ou(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?a:a=n(i=s,r)}}function au(e,n,r){var i,o,a;return function(){var s,u=r(this),l;return u==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=u+"",s===l?null:s===i&&l===o?a:(o=l,a=n(i=s,u)))}}function su(e,n,r){var i,o,a;return function(){var s,u=r(this),l;return u==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=u+"",s===l?null:s===i&&l===o?a:(o=l,a=n(i=s,u)))}}function uu(e,n){var r=Be(e),i=r==="transform"?Us:Pi;return this.attrTween(e,typeof n=="function"?(r.local?su:au)(r,i,Un(this,"attr."+e,n)):n==null?(r.local?ru:nu)(r):(r.local?ou:iu)(r,i,n))}function lu(e,n){return function(r){this.setAttribute(e,n.call(this,r))}}function fu(e,n){return function(r){this.setAttributeNS(e.space,e.local,n.call(this,r))}}function cu(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&fu(e,a)),r}return o._value=n,o}function hu(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&lu(e,a)),r}return o._value=n,o}function du(e,n){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var i=Be(e);return this.tween(r,(i.local?cu:hu)(i,n))}function pu(e,n){return function(){Fn(this,e).delay=+n.apply(this,arguments)}}function gu(e,n){return n=+n,function(){Fn(this,e).delay=n}}function yu(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?pu:gu)(n,e)):pt(this.node(),n).delay}function _u(e,n){return function(){xt(this,e).duration=+n.apply(this,arguments)}}function vu(e,n){return n=+n,function(){xt(this,e).duration=n}}function mu(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?_u:vu)(n,e)):pt(this.node(),n).duration}function xu(e,n){if(typeof n!="function")throw new Error;return function(){xt(this,e).ease=n}}function bu(e){var n=this._id;return arguments.length?this.each(xu(n,e)):pt(this.node(),n).ease}function wu(e,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;xt(this,e).ease=r}}function ku(e){if(typeof e!="function")throw new Error;return this.each(wu(this._id,e))}function Au(e){typeof e!="function"&&(e=ui(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o)for(var a=n[o],s=a.length,u=i[o]=[],l,f=0;f<s;++f)(l=a[f])&&e.call(l,l.__data__,f,a)&&u.push(l);return new Et(i,this._parents,this._name,this._id)}function Cu(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l=n[u],f=r[u],c=l.length,h=s[u]=new Array(c),d,p=0;p<c;++p)(d=l[p]||f[p])&&(h[p]=d);for(;u<i;++u)s[u]=n[u];return new Et(s,this._parents,this._name,this._id)}function Su(e){return(e+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function Mu(e,n,r){var i,o,a=Su(n)?Fn:xt;return function(){var s=a(this,e),u=s.on;u!==i&&(o=(i=u).copy()).on(n,r),s.on=o}}function Tu(e,n){var r=this._id;return arguments.length<2?pt(this.node(),r).on.on(e):this.each(Mu(r,e,n))}function Pu(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function Ou(){return this.on("end.remove",Pu(this._id))}function Eu(e){var n=this._name,r=this._id;typeof e!="function"&&(e=Nn(e));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var u=i[s],l=u.length,f=a[s]=new Array(l),c,h,d=0;d<l;++d)(c=u[d])&&(h=e.call(c,c.__data__,d,u))&&("__data__"in c&&(h.__data__=c.__data__),f[d]=h,Ye(f[d],n,r,d,f,pt(c,r)));return new Et(a,this._parents,n,r)}function zu(e){var n=this._name,r=this._id;typeof e!="function"&&(e=si(e));for(var i=this._groups,o=i.length,a=[],s=[],u=0;u<o;++u)for(var l=i[u],f=l.length,c,h=0;h<f;++h)if(c=l[h]){for(var d=e.call(c,c.__data__,h,l),p,y=pt(c,r),x=0,_=d.length;x<_;++x)(p=d[x])&&Ye(p,n,r,x,d,y);a.push(d),s.push(c)}return new Et(a,s,n,r)}var Ru=ye.prototype.constructor;function Nu(){return new Ru(this._groups,this._parents)}function Iu(e,n){var r,i,o;return function(){var a=Vt(this,e),s=(this.style.removeProperty(e),Vt(this,e));return a===s?null:a===r&&s===i?o:o=n(r=a,i=s)}}function Oi(e){return function(){this.style.removeProperty(e)}}function Du(e,n,r){var i,o=r+"",a;return function(){var s=Vt(this,e);return s===o?null:s===i?a:a=n(i=s,r)}}function $u(e,n,r){var i,o,a;return function(){var s=Vt(this,e),u=r(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(e),Vt(this,e))),s===l?null:s===i&&l===o?a:(o=l,a=n(i=s,u))}}function ju(e,n){var r,i,o,a="style."+n,s="end."+a,u;return function(){var l=xt(this,e),f=l.on,c=l.value[a]==null?u||(u=Oi(n)):void 0;(f!==r||o!==c)&&(i=(r=f).copy()).on(s,o=c),l.on=i}}function Fu(e,n,r){var i=(e+="")=="transform"?Fs:Pi;return n==null?this.styleTween(e,Iu(e,i)).on("end.style."+e,Oi(e)):typeof n=="function"?this.styleTween(e,$u(e,i,Un(this,"style."+e,n))).each(ju(this._id,e)):this.styleTween(e,Du(e,i,n),r).on("end.style."+e,null)}function Uu(e,n,r){return function(i){this.style.setProperty(e,n.call(this,i),r)}}function Lu(e,n,r){var i,o;function a(){var s=n.apply(this,arguments);return s!==o&&(i=(o=s)&&Uu(e,s,r)),i}return a._value=n,a}function qu(e,n,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,Lu(e,n,r??""))}function Hu(e){return function(){this.textContent=e}}function Gu(e){return function(){var n=e(this);this.textContent=n??""}}function Vu(e){return this.tween("text",typeof e=="function"?Gu(Un(this,"text",e)):Hu(e==null?"":e+""))}function Wu(e){return function(n){this.textContent=e.call(this,n)}}function Bu(e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Wu(o)),n}return i._value=e,i}function Xu(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,Bu(e))}function Yu(){for(var e=this._name,n=this._id,r=Ei(),i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,l,f=0;f<u;++f)if(l=s[f]){var c=pt(l,n);Ye(l,e,r,f,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Et(i,this._parents,e,r)}function Zu(){var e,n,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var u={value:s},l={value:function(){--o===0&&a()}};r.each(function(){var f=xt(this,i),c=f.on;c!==e&&(n=(e=c).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(l)),f.on=n}),o===0&&a()})}var Ku=0;function Et(e,n,r,i){this._groups=e,this._parents=n,this._name=r,this._id=i}function Ei(){return++Ku}var kt=ye.prototype;Et.prototype={constructor:Et,select:Eu,selectAll:zu,selectChild:kt.selectChild,selectChildren:kt.selectChildren,filter:Au,merge:Cu,selection:Nu,transition:Yu,call:kt.call,nodes:kt.nodes,node:kt.node,size:kt.size,empty:kt.empty,each:kt.each,on:Tu,attr:uu,attrTween:du,style:Fu,styleTween:qu,text:Vu,textTween:Xu,remove:Ou,tween:eu,delay:yu,duration:mu,ease:bu,easeVarying:ku,end:Zu,[Symbol.iterator]:kt[Symbol.iterator]};function Qu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Ju={time:null,delay:0,duration:250,ease:Qu};function tl(e,n){for(var r;!(r=e.__transition)||!(r=r[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return r}function el(e){var n,r;e instanceof Et?(n=e._id,e=e._name):(n=Ei(),(r=Ju).time=$n(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,l,f=0;f<u;++f)(l=s[f])&&Ye(l,e,n,f,s,r||tl(l,n));return new Et(i,this._parents,e,n)}ye.prototype.interrupt=Qs;ye.prototype.transition=el;const Ae=e=>()=>e;function nl(e,{sourceEvent:n,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Tt(e,n,r){this.k=e,this.x=n,this.y=r}Tt.prototype={constructor:Tt,scale:function(e){return e===1?this:new Tt(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Tt(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ln=new Tt(1,0,0);gt.prototype=Tt.prototype;function gt(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ln;return e.__zoom}function on(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function rl(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function il(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function yr(){return this.__zoom||Ln}function ol(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function al(){return navigator.maxTouchPoints||"ontouchstart"in this}function sl(e,n,r){var i=e.invertX(n[0][0])-r[0][0],o=e.invertX(n[1][0])-r[1][0],a=e.invertY(n[0][1])-r[0][1],s=e.invertY(n[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function ul(){var e=rl,n=il,r=sl,i=ol,o=al,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,l=Gs,f=_e("start","zoom","end"),c,h,d,p=500,y=150,x=0,_=10;function g(k){k.property("__zoom",yr).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",z).on("dblclick.zoom",P).filter(o).on("touchstart.zoom",R).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(k,E,T,I){var $=k.selection?k.selection():k;$.property("__zoom",yr),k!==$?m(k,E,T,I):$.interrupt().each(function(){A(this,arguments).event(I).start().zoom(null,typeof E=="function"?E.apply(this,arguments):E).end()})},g.scaleBy=function(k,E,T,I){g.scaleTo(k,function(){var $=this.__zoom.k,F=typeof E=="function"?E.apply(this,arguments):E;return $*F},T,I)},g.scaleTo=function(k,E,T,I){g.transform(k,function(){var $=n.apply(this,arguments),F=this.__zoom,U=T==null?b($):typeof T=="function"?T.apply(this,arguments):T,L=F.invert(U),q=typeof E=="function"?E.apply(this,arguments):E;return r(S(w(F,q),U,L),$,s)},T,I)},g.translateBy=function(k,E,T,I){g.transform(k,function(){return r(this.__zoom.translate(typeof E=="function"?E.apply(this,arguments):E,typeof T=="function"?T.apply(this,arguments):T),n.apply(this,arguments),s)},null,I)},g.translateTo=function(k,E,T,I,$){g.transform(k,function(){var F=n.apply(this,arguments),U=this.__zoom,L=I==null?b(F):typeof I=="function"?I.apply(this,arguments):I;return r(Ln.translate(L[0],L[1]).scale(U.k).translate(typeof E=="function"?-E.apply(this,arguments):-E,typeof T=="function"?-T.apply(this,arguments):-T),F,s)},I,$)};function w(k,E){return E=Math.max(a[0],Math.min(a[1],E)),E===k.k?k:new Tt(E,k.x,k.y)}function S(k,E,T){var I=E[0]-T[0]*k.k,$=E[1]-T[1]*k.k;return I===k.x&&$===k.y?k:new Tt(k.k,I,$)}function b(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function m(k,E,T,I){k.on("start.zoom",function(){A(this,arguments).event(I).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(I).end()}).tween("zoom",function(){var $=this,F=arguments,U=A($,F).event(I),L=n.apply($,F),q=T==null?b(L):typeof T=="function"?T.apply($,F):T,Y=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),X=$.__zoom,lt=typeof E=="function"?E.apply($,F):E,bt=l(X.invert(q).concat(Y/X.k),lt.invert(q).concat(Y/lt.k));return function(ft){if(ft===1)ft=lt;else{var wt=bt(ft),tn=Y/wt[2];ft=new Tt(tn,q[0]-wt[0]*tn,q[1]-wt[1]*tn)}U.zoom(null,ft)}})}function A(k,E,T){return!T&&k.__zooming||new C(k,E)}function C(k,E){this.that=k,this.args=E,this.active=0,this.sourceEvent=null,this.extent=n.apply(k,E),this.taps=0}C.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,E){return this.mouse&&k!=="mouse"&&(this.mouse[1]=E.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=E.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=E.invert(this.touch1[0])),this.that.__zoom=E,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var E=st(this.that).datum();f.call(k,this.that,new nl(k,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:f}),E)}};function M(k,...E){if(!e.apply(this,arguments))return;var T=A(this,E).event(k),I=this.__zoom,$=Math.max(a[0],Math.min(a[1],I.k*Math.pow(2,i.apply(this,arguments)))),F=yt(k);if(T.wheel)(T.mouse[0][0]!==F[0]||T.mouse[0][1]!==F[1])&&(T.mouse[1]=I.invert(T.mouse[0]=F)),clearTimeout(T.wheel);else{if(I.k===$)return;T.mouse=[F,I.invert(F)],Oe(this),T.start()}Yt(k),T.wheel=setTimeout(U,y),T.zoom("mouse",r(S(w(I,$),T.mouse[0],T.mouse[1]),T.extent,s));function U(){T.wheel=null,T.end()}}function z(k,...E){if(d||!e.apply(this,arguments))return;var T=k.currentTarget,I=A(this,E,!0).event(k),$=st(k.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",Y,!0),F=yt(k,T),U=k.clientX,L=k.clientY;vi(k.view),on(k),I.mouse=[F,this.__zoom.invert(F)],Oe(this),I.start();function q(X){if(Yt(X),!I.moved){var lt=X.clientX-U,bt=X.clientY-L;I.moved=lt*lt+bt*bt>x}I.event(X).zoom("mouse",r(S(I.that.__zoom,I.mouse[0]=yt(X,T),I.mouse[1]),I.extent,s))}function Y(X){$.on("mousemove.zoom mouseup.zoom",null),mi(X.view,I.moved),Yt(X),I.event(X).end()}}function P(k,...E){if(e.apply(this,arguments)){var T=this.__zoom,I=yt(k.changedTouches?k.changedTouches[0]:k,this),$=T.invert(I),F=T.k*(k.shiftKey?.5:2),U=r(S(w(T,F),I,$),n.apply(this,E),s);Yt(k),u>0?st(this).transition().duration(u).call(m,U,I,k):st(this).call(g.transform,U,I,k)}}function R(k,...E){if(e.apply(this,arguments)){var T=k.touches,I=T.length,$=A(this,E,k.changedTouches.length===I).event(k),F,U,L,q;for(on(k),U=0;U<I;++U)L=T[U],q=yt(L,this),q=[q,this.__zoom.invert(q),L.identifier],$.touch0?!$.touch1&&$.touch0[2]!==q[2]&&($.touch1=q,$.taps=0):($.touch0=q,F=!0,$.taps=1+!!c);c&&(c=clearTimeout(c)),F&&($.taps<2&&(h=q[0],c=setTimeout(function(){c=null},p)),Oe(this),$.start())}}function N(k,...E){if(this.__zooming){var T=A(this,E).event(k),I=k.changedTouches,$=I.length,F,U,L,q;for(Yt(k),F=0;F<$;++F)U=I[F],L=yt(U,this),T.touch0&&T.touch0[2]===U.identifier?T.touch0[0]=L:T.touch1&&T.touch1[2]===U.identifier&&(T.touch1[0]=L);if(U=T.that.__zoom,T.touch1){var Y=T.touch0[0],X=T.touch0[1],lt=T.touch1[0],bt=T.touch1[1],ft=(ft=lt[0]-Y[0])*ft+(ft=lt[1]-Y[1])*ft,wt=(wt=bt[0]-X[0])*wt+(wt=bt[1]-X[1])*wt;U=w(U,Math.sqrt(ft/wt)),L=[(Y[0]+lt[0])/2,(Y[1]+lt[1])/2],q=[(X[0]+bt[0])/2,(X[1]+bt[1])/2]}else if(T.touch0)L=T.touch0[0],q=T.touch0[1];else return;T.zoom("touch",r(S(U,L,q),T.extent,s))}}function j(k,...E){if(this.__zooming){var T=A(this,E).event(k),I=k.changedTouches,$=I.length,F,U;for(on(k),d&&clearTimeout(d),d=setTimeout(function(){d=null},p),F=0;F<$;++F)U=I[F],T.touch0&&T.touch0[2]===U.identifier?delete T.touch0:T.touch1&&T.touch1[2]===U.identifier&&delete T.touch1;if(T.touch1&&!T.touch0&&(T.touch0=T.touch1,delete T.touch1),T.touch0)T.touch0[1]=this.__zoom.invert(T.touch0[0]);else if(T.end(),T.taps===2&&(U=yt(U,this),Math.hypot(h[0]-U[0],h[1]-U[1])<_)){var L=st(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return g.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:Ae(+k),g):i},g.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Ae(!!k),g):e},g.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:Ae(!!k),g):o},g.extent=function(k){return arguments.length?(n=typeof k=="function"?k:Ae([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),g):n},g.scaleExtent=function(k){return arguments.length?(a[0]=+k[0],a[1]=+k[1],g):[a[0],a[1]]},g.translateExtent=function(k){return arguments.length?(s[0][0]=+k[0][0],s[1][0]=+k[1][0],s[0][1]=+k[0][1],s[1][1]=+k[1][1],g):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},g.constrain=function(k){return arguments.length?(r=k,g):r},g.duration=function(k){return arguments.length?(u=+k,g):u},g.interpolate=function(k){return arguments.length?(l=k,g):l},g.on=function(){var k=f.on.apply(f,arguments);return k===f?g:k},g.clickDistance=function(k){return arguments.length?(x=(k=+k)*k,g):Math.sqrt(x)},g.tapDistance=function(k){return arguments.length?(_=+k,g):_},g}class _r extends Map{constructor(n,r=cl){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),n!=null)for(const[i,o]of n)this.set(i,o)}get(n){return super.get(vr(this,n))}has(n){return super.has(vr(this,n))}set(n,r){return super.set(ll(this,n),r)}delete(n){return super.delete(fl(this,n))}}function vr({_intern:e,_key:n},r){const i=n(r);return e.has(i)?e.get(i):r}function ll({_intern:e,_key:n},r){const i=n(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function fl({_intern:e,_key:n},r){const i=n(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function cl(e){return e!==null&&typeof e=="object"?e.valueOf():e}function mr(e,n){let r;if(n===void 0)for(const i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of e)(o=n(o,++i,e))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function xr(e,n){let r;if(n===void 0)for(const i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of e)(o=n(o,++i,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function hl(e,n){let r=0;for(let i of e)(i=+i)&&(r+=i);return r}var dl=typeof global=="object"&&global&&global.Object===Object&&global,pl=typeof self=="object"&&self&&self.Object===Object&&self,zi=dl||pl||Function("return this")(),Fe=zi.Symbol,Ri=Object.prototype,gl=Ri.hasOwnProperty,yl=Ri.toString,Zt=Fe?Fe.toStringTag:void 0;function _l(e){var n=gl.call(e,Zt),r=e[Zt];try{e[Zt]=void 0;var i=!0}catch{}var o=yl.call(e);return i&&(n?e[Zt]=r:delete e[Zt]),o}var vl=Object.prototype,ml=vl.toString;function xl(e){return ml.call(e)}var bl="[object Null]",wl="[object Undefined]",br=Fe?Fe.toStringTag:void 0;function kl(e){return e==null?e===void 0?wl:bl:br&&br in Object(e)?_l(e):xl(e)}function Al(e){return e!=null&&typeof e=="object"}var Cl="[object Symbol]";function Sl(e){return typeof e=="symbol"||Al(e)&&kl(e)==Cl}var Ml=/\s/;function Tl(e){for(var n=e.length;n--&&Ml.test(e.charAt(n)););return n}var Pl=/^\s+/;function Ol(e){return e&&e.slice(0,Tl(e)+1).replace(Pl,"")}function Ue(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var wr=NaN,El=/^[-+]0x[0-9a-f]+$/i,zl=/^0b[01]+$/i,Rl=/^0o[0-7]+$/i,Nl=parseInt;function kr(e){if(typeof e=="number")return e;if(Sl(e))return wr;if(Ue(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ol(e);var r=zl.test(e);return r||Rl.test(e)?Nl(e.slice(2),r?2:8):El.test(e)?wr:+e}var an=function(){return zi.Date.now()},Il="Expected a function",Dl=Math.max,$l=Math.min;function Ni(e,n,r){var i,o,a,s,u,l,f=0,c=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(Il);n=kr(n)||0,Ue(r)&&(c=!!r.leading,h="maxWait"in r,a=h?Dl(kr(r.maxWait)||0,n):a,d="trailing"in r?!!r.trailing:d);function p(A){var C=i,M=o;return i=o=void 0,f=A,s=e.apply(M,C),s}function y(A){return f=A,u=setTimeout(g,n),c?p(A):s}function x(A){var C=A-l,M=A-f,z=n-C;return h?$l(z,a-M):z}function _(A){var C=A-l,M=A-f;return l===void 0||C>=n||C<0||h&&M>=a}function g(){var A=an();if(_(A))return w(A);u=setTimeout(g,x(A))}function w(A){return u=void 0,d&&i?p(A):(i=o=void 0,s)}function S(){u!==void 0&&clearTimeout(u),f=0,i=l=o=u=void 0}function b(){return u===void 0?s:w(an())}function m(){var A=an(),C=_(A);if(i=arguments,o=this,l=A,C){if(u===void 0)return y(l);if(h)return clearTimeout(u),u=setTimeout(g,n),p(l)}return u===void 0&&(u=setTimeout(g,n)),s}return m.cancel=S,m.flush=b,m}var jl="Expected a function";function Fl(e,n,r){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(jl);return Ue(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ni(e,n,{leading:i,maxWait:n,trailing:o})}var Ft=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-Ft.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Ft.Bounce.In(e*2)*.5:Ft.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),ie=function(){return performance.now()},Ii=(function(){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];(n=s._group)===null||n===void 0||n.remove(s),s._group=this,this._tweens[s.getId()]=s,this._tweensAddedDuringUpdate[s.getId()]=s}},e.prototype.remove=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];a._group=void 0,delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,r){n===void 0&&(n=ie()),r===void 0&&(r=!0);var i=Object.keys(this._tweens);if(i.length!==0)for(;i.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<i.length;o++){var a=this._tweens[i[o]],s=!r;a&&a.update(n,s)===!1&&!r&&this.remove(a)}i=Object.keys(this._tweensAddedDuringUpdate)}},e})(),An={Linear:function(e,n){var r=e.length-1,i=r*n,o=Math.floor(i),a=An.Utils.Linear;return n<0?a(e[0],e[1],i):n>1?a(e[r],e[r-1],r-i):a(e[o],e[o+1>r?r:o+1],i-o)},Utils:{Linear:function(e,n,r){return(n-e)*r+e}}},Di=(function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e})(),Cn=new Ii,Ar=(function(){function e(n,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Ft.Linear.None,this._interpolationFunction=An.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Di.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=Cn,Cn.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,r){if(n===void 0&&(n=ie()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var i in this._valuesStartRepeat)this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var a in this._valuesEnd)o[a]=this._valuesEnd[a];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,r,i,o,a){for(var s in i){var u=n[s],l=Array.isArray(u),f=l?"array":typeof u,c=!l&&Array.isArray(i[s]);if(!(f==="undefined"||f==="function")){if(c){var h=i[s];if(h.length===0)continue;for(var d=[u],p=0,y=h.length;p<y;p+=1){var x=this._handleRelativeValue(u,h[p]);if(isNaN(x)){c=!1,console.warn("Found invalid interpolation list. Skipping.");break}d.push(x)}c&&(i[s]=d)}if((f==="object"||l)&&u&&!c){r[s]=l?[]:{};var _=u;for(var g in _)r[s][g]=_[g];o[s]=l?[]:{};var h=i[s];if(!this._isDynamic){var w={};for(var g in h)w[g]=h[g];i[s]=h=w}this._setupProperties(_,r[s],h,o[s],a)}else(typeof r[s]>"u"||a)&&(r[s]=u),l||(r[s]*=1),c?o[s]=i[s].slice().reverse():o[s]=r[s]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=ie()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=ie()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;n<r;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=Ft.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=An.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,r){var i=this,o;if(n===void 0&&(n=ie()),r===void 0&&(r=e.autoStartOnUpdate),this._isPaused)return!0;var a;if(!this._goToEnd&&!this._isPlaying)if(r)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var s=n-this._startTime,u=this._duration+((o=this._repeatDelayTime)!==null&&o!==void 0?o:this._delayTime),l=this._duration+this._repeat*u,f=function(){if(i._duration===0||s>l)return 1;var x=Math.trunc(s/u),_=s-x*u,g=Math.min(_/i._duration,1);return g===0&&s===i._duration?1:g},c=f(),h=this._easingFunction(c);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,h),this._onUpdateCallback&&this._onUpdateCallback(this._object,c),this._duration===0||s>=this._duration)if(this._repeat>0){var d=Math.min(Math.trunc((s-this._duration)/u)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=d);for(a in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo&&this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=u*d,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var p=0,y=this._chainedTweens.length;p<y;p++)this._chainedTweens[p].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,i,o){for(var a in i)if(r[a]!==void 0){var s=r[a]||0,u=i[a],l=Array.isArray(n[a]),f=Array.isArray(u),c=!l&&f;c?n[a]=this._interpolationFunction(u,o):typeof u=="object"&&u?this._updateProperties(n[a],s,u,o):(u=this._handleRelativeValue(s,u),typeof u=="number"&&(n[a]=s+(u-s)*o))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e.autoStartOnUpdate=!1,e})();Di.nextId;var mt=Cn;mt.getAll.bind(mt);mt.removeAll.bind(mt);mt.add.bind(mt);mt.remove.bind(mt);mt.update.bind(mt);function Cr(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function Ul(e){if(Array.isArray(e))return e}function Ll(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ql(e,n,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Hl(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,u=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(l=(i=a.call(r)).done)&&(u.push(i.value),u.length!==n);l=!0);}catch(c){f=!0,o=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw o}}return u}}function Gl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vl(e,n){return Ul(e)||Hl(e,n)||Wl(e,n)||Gl()}function Wl(e,n){if(e){if(typeof e=="string")return Cr(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cr(e,n):void 0}}var Bl=ql(function e(n,r){var i=r.default,o=i===void 0?null:i,a=r.triggerUpdate,s=a===void 0?!0:a,u=r.onChange,l=u===void 0?function(f,c){}:u;Ll(this,e),this.name=n,this.defaultVal=o,this.triggerUpdate=s,this.onChange=l});function qn(e){var n=e.stateInit,r=n===void 0?function(){return{}}:n,i=e.props,o=i===void 0?{}:i,a=e.methods,s=a===void 0?{}:a,u=e.aliases,l=u===void 0?{}:u,f=e.init,c=f===void 0?function(){}:f,h=e.update,d=h===void 0?function(){}:h,p=Object.keys(o).map(function(y){return new Bl(y,o[y])});return function y(){for(var x=arguments.length,_=new Array(x),g=0;g<x;g++)_[g]=arguments[g];var w=!!(this instanceof y&&this.constructor),S=w?_.shift():void 0,b=_[0],m=b===void 0?{}:b,A=Object.assign({},r instanceof Function?r(m):r,{initialised:!1}),C={};function M(R){return z(R,m),P(),M}var z=function(N,j){c.call(M,N,A,j),A.initialised=!0},P=Ni(function(){A.initialised&&(d.call(M,A,C),C={})},1);return p.forEach(function(R){M[R.name]=N(R);function N(j){var k=j.name,E=j.triggerUpdate,T=E===void 0?!1:E,I=j.onChange,$=I===void 0?function(L,q){}:I,F=j.defaultVal,U=F===void 0?null:F;return function(L){var q=A[k];if(!arguments.length)return q;var Y=L===void 0?U:L;return A[k]=Y,$.call(M,Y,A,q),!C.hasOwnProperty(k)&&(C[k]=q),T&&P(),M}}}),Object.keys(s).forEach(function(R){M[R]=function(){for(var N,j=arguments.length,k=new Array(j),E=0;E<j;E++)k[E]=arguments[E];return(N=s[R]).call.apply(N,[M,A].concat(k))}}),Object.entries(l).forEach(function(R){var N=Vl(R,2),j=N[0],k=N[1];return M[j]=M[k]}),M.resetProps=function(){return p.forEach(function(R){M[R.name](R.defaultVal)}),M},M.resetProps(),A._rerender=P,w&&S&&M(S),M}}var H=(function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}});function Le(e){"@babel/helpers - typeof";return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Le(e)}var Xl=/^\s+/,Yl=/\s+$/;function D(e,n){if(e=e||"",n=n||{},e instanceof D)return e;if(!(this instanceof D))return new D(e,n);var r=Zl(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}D.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,i,o,a,s,u;return r=n.r/255,i=n.g/255,o=n.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),o<=.03928?u=o/12.92:u=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*u},setAlpha:function(n){return this._a=$i(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=Mr(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=Mr(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+i+"%, "+o+"%)":"hsva("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=Sr(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=Sr(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+i+"%, "+o+"%)":"hsla("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return Tr(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return tf(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(W(this._r,255)*100)+"%",g:Math.round(W(this._g,255)*100)+"%",b:Math.round(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(W(this._r,255)*100)+"%, "+Math.round(W(this._g,255)*100)+"%, "+Math.round(W(this._b,255)*100)+"%)":"rgba("+Math.round(W(this._r,255)*100)+"%, "+Math.round(W(this._g,255)*100)+"%, "+Math.round(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:df[Tr(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+Pr(this._r,this._g,this._b,this._a),i=r,o=this._gradientType?"GradientType = 1, ":"";if(n){var a=D(n);i="#"+Pr(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+i+")"},toString:function(n){var r=!!n;n=n||this._format;var i=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return D(this.toString())},_applyModification:function(n,r){var i=n.apply(null,[this].concat([].slice.call(r)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(of,arguments)},brighten:function(){return this._applyModification(af,arguments)},darken:function(){return this._applyModification(sf,arguments)},desaturate:function(){return this._applyModification(ef,arguments)},saturate:function(){return this._applyModification(nf,arguments)},greyscale:function(){return this._applyModification(rf,arguments)},spin:function(){return this._applyModification(uf,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(cf,arguments)},complement:function(){return this._applyCombination(lf,arguments)},monochromatic:function(){return this._applyCombination(hf,arguments)},splitcomplement:function(){return this._applyCombination(ff,arguments)},triad:function(){return this._applyCombination(Or,[3])},tetrad:function(){return this._applyCombination(Or,[4])}};D.fromRatio=function(e,n){if(Le(e)=="object"){var r={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?r[i]=e[i]:r[i]=oe(e[i]));e=r}return D(e,n)};function Zl(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,u=!1;return typeof e=="string"&&(e=_f(e)),Le(e)=="object"&&(At(e.r)&&At(e.g)&&At(e.b)?(n=Kl(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):At(e.h)&&At(e.s)&&At(e.v)?(i=oe(e.s),o=oe(e.v),n=Jl(e.h,i,o),s=!0,u="hsv"):At(e.h)&&At(e.s)&&At(e.l)&&(i=oe(e.s),a=oe(e.l),n=Ql(e.h,i,a),s=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=$i(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function Kl(e,n,r){return{r:W(e,255)*255,g:W(n,255)*255,b:W(r,255)*255}}function Sr(e,n,r){e=W(e,255),n=W(n,255),r=W(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=(i+o)/2;if(i==o)a=s=0;else{var l=i-o;switch(s=u>.5?l/(2-i-o):l/(i+o),i){case e:a=(n-r)/l+(n<r?6:0);break;case n:a=(r-e)/l+2;break;case r:a=(e-n)/l+4;break}a/=6}return{h:a,s,l:u}}function Ql(e,n,r){var i,o,a;e=W(e,360),n=W(n,100),r=W(r,100);function s(f,c,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?f+(c-f)*6*h:h<1/2?c:h<2/3?f+(c-f)*(2/3-h)*6:f}if(n===0)i=o=a=r;else{var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;i=s(l,u,e+1/3),o=s(l,u,e),a=s(l,u,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function Mr(e,n,r){e=W(e,255),n=W(n,255),r=W(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=i,l=i-o;if(s=i===0?0:l/i,i==o)a=0;else{switch(i){case e:a=(n-r)/l+(n<r?6:0);break;case n:a=(r-e)/l+2;break;case r:a=(e-n)/l+4;break}a/=6}return{h:a,s,v:u}}function Jl(e,n,r){e=W(e,360)*6,n=W(n,100),r=W(r,100);var i=Math.floor(e),o=e-i,a=r*(1-n),s=r*(1-o*n),u=r*(1-(1-o)*n),l=i%6,f=[r,s,a,a,u,r][l],c=[u,r,r,s,a,a][l],h=[a,a,u,r,r,s][l];return{r:f*255,g:c*255,b:h*255}}function Tr(e,n,r,i){var o=[dt(Math.round(e).toString(16)),dt(Math.round(n).toString(16)),dt(Math.round(r).toString(16))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function tf(e,n,r,i,o){var a=[dt(Math.round(e).toString(16)),dt(Math.round(n).toString(16)),dt(Math.round(r).toString(16)),dt(ji(i))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Pr(e,n,r,i){var o=[dt(ji(i)),dt(Math.round(e).toString(16)),dt(Math.round(n).toString(16)),dt(Math.round(r).toString(16))];return o.join("")}D.equals=function(e,n){return!e||!n?!1:D(e).toRgbString()==D(n).toRgbString()};D.random=function(){return D.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ef(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.s-=n/100,r.s=Ze(r.s),D(r)}function nf(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.s+=n/100,r.s=Ze(r.s),D(r)}function rf(e){return D(e).desaturate(100)}function of(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.l+=n/100,r.l=Ze(r.l),D(r)}function af(e,n){n=n===0?0:n||10;var r=D(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),D(r)}function sf(e,n){n=n===0?0:n||10;var r=D(e).toHsl();return r.l-=n/100,r.l=Ze(r.l),D(r)}function uf(e,n){var r=D(e).toHsl(),i=(r.h+n)%360;return r.h=i<0?360+i:i,D(r)}function lf(e){var n=D(e).toHsl();return n.h=(n.h+180)%360,D(n)}function Or(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=D(e).toHsl(),i=[D(e)],o=360/n,a=1;a<n;a++)i.push(D({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function ff(e){var n=D(e).toHsl(),r=n.h;return[D(e),D({h:(r+72)%360,s:n.s,l:n.l}),D({h:(r+216)%360,s:n.s,l:n.l})]}function cf(e,n,r){n=n||6,r=r||30;var i=D(e).toHsl(),o=360/r,a=[D(e)];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(D(i));return a}function hf(e,n){n=n||6;for(var r=D(e).toHsv(),i=r.h,o=r.s,a=r.v,s=[],u=1/n;n--;)s.push(D({h:i,s:o,v:a})),a=(a+u)%1;return s}D.mix=function(e,n,r){r=r===0?0:r||50;var i=D(e).toRgb(),o=D(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return D(s)};D.readability=function(e,n){var r=D(e),i=D(n);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)};D.isReadable=function(e,n,r){var i=D.readability(e,n),o,a;switch(a=!1,o=vf(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7;break}return a};D.mostReadable=function(e,n,r){var i=null,o=0,a,s,u,l;r=r||{},s=r.includeFallbackColors,u=r.level,l=r.size;for(var f=0;f<n.length;f++)a=D.readability(e,n[f]),a>o&&(o=a,i=D(n[f]));return D.isReadable(e,i,{level:u,size:l})||!s?i:(r.includeFallbackColors=!1,D.mostReadable(e,["#fff","#000"],r))};var Sn=D.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},df=D.hexNames=pf(Sn);function pf(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function $i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function W(e,n){gf(e)&&(e="100%");var r=yf(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function Ze(e){return Math.min(1,Math.max(0,e))}function nt(e){return parseInt(e,16)}function gf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function yf(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dt(e){return e.length==1?"0"+e:""+e}function oe(e){return e<=1&&(e=e*100+"%"),e}function ji(e){return Math.round(parseFloat(e)*255).toString(16)}function Er(e){return nt(e)/255}var ct=(function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function At(e){return!!ct.CSS_UNIT.exec(e)}function _f(e){e=e.replace(Xl,"").replace(Yl,"").toLowerCase();var n=!1;if(Sn[e])e=Sn[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ct.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ct.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ct.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ct.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ct.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ct.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ct.hex8.exec(e))?{r:nt(r[1]),g:nt(r[2]),b:nt(r[3]),a:Er(r[4]),format:n?"name":"hex8"}:(r=ct.hex6.exec(e))?{r:nt(r[1]),g:nt(r[2]),b:nt(r[3]),format:n?"name":"hex"}:(r=ct.hex4.exec(e))?{r:nt(r[1]+""+r[1]),g:nt(r[2]+""+r[2]),b:nt(r[3]+""+r[3]),a:Er(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=ct.hex3.exec(e))?{r:nt(r[1]+""+r[1]),g:nt(r[2]+""+r[2]),b:nt(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function vf(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function Mn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function mf(e){if(Array.isArray(e))return Mn(e)}function Fi(e,n,r){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:r;throw new TypeError("Private element is not present on this object")}function xf(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bf(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function it(e,n){return e.get(Fi(e,n))}function zr(e,n,r){xf(e,n),n.set(e,r)}function Rr(e,n,r){return e.set(Fi(e,n),r),r}function wf(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Tf(i.key),i)}}function kf(e,n,r){return n&&wf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Af(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -1 +1 @@
1
- import{bo as g,a7 as S,a as E,ax as b,bp as h,r as a}from"./index-CpyANXLa.js";import{i as p}from"./types-BaJkUfo6.js";const y="keep",m="lens:audio-retention-choice:";function f(e){return m+e}function c(e){try{return localStorage.getItem(f(e))!==null}catch{return!1}}function R(e){try{localStorage.setItem(f(e),JSON.stringify({chosenAt:new Date().toISOString()}))}catch{}}function C(e){const[t,n]=a.useState(()=>e?c(e):!1);a.useEffect(()=>{n(e?c(e):!1)},[e]);const r=a.useCallback(()=>{e&&(R(e),n(!0))},[e]);return{made:t,markMade:r}}function _(){var n,r,o;const e=g(),t=(r=(n=e.data)==null?void 0:n.config)==null?void 0:r.audio_retention;return{value:p(t)?t:y,supported:e.isSuccess&&((o=e.data)==null?void 0:o.config)!==void 0,isLoading:e.isPending,isError:e.isError}}function w(){const e=S(),t=E(r=>r.activeVaultId),n=b();return h({mutationFn:async r=>{var i;if(!e)throw new Error("No active vault");const o=await e.patchVault({config:{audio_retention:r}});if(((i=o.config)==null?void 0:i.audio_retention)!==r)throw new Error("This vault doesn't support changing voice retention yet.");return o},onSuccess:r=>{n.setQueryData(["vaultInfo",t],o=>o&&{...o,config:r.config})}})}const s=!0,T="lens:transcribe-default:";function l(e){return T+e}function u(e){try{const t=localStorage.getItem(l(e));if(!t)return s;const n=JSON.parse(t);return typeof n.transcribe=="boolean"?n.transcribe:s}catch{return s}}function A(e,t){try{localStorage.setItem(l(e),JSON.stringify({transcribe:t}))}catch{}}function F(e){const[t,n]=a.useState(()=>e?u(e):s);a.useEffect(()=>{n(e?u(e):s)},[e]);const r=a.useCallback(o=>{e&&(A(e,o),n(o))},[e]);return{transcribeDefault:t,setTranscribeDefault:r}}export{w as a,C as b,F as c,u as l,_ as u};
1
+ import{bp as g,a7 as S,a as E,ay as b,bq as h,r as a}from"./index-C2wr_d3O.js";import{i as p}from"./types-BaJkUfo6.js";const y="keep",m="lens:audio-retention-choice:";function f(e){return m+e}function c(e){try{return localStorage.getItem(f(e))!==null}catch{return!1}}function R(e){try{localStorage.setItem(f(e),JSON.stringify({chosenAt:new Date().toISOString()}))}catch{}}function C(e){const[t,n]=a.useState(()=>e?c(e):!1);a.useEffect(()=>{n(e?c(e):!1)},[e]);const r=a.useCallback(()=>{e&&(R(e),n(!0))},[e]);return{made:t,markMade:r}}function _(){var n,r,o;const e=g(),t=(r=(n=e.data)==null?void 0:n.config)==null?void 0:r.audio_retention;return{value:p(t)?t:y,supported:e.isSuccess&&((o=e.data)==null?void 0:o.config)!==void 0,isLoading:e.isPending,isError:e.isError}}function w(){const e=S(),t=E(r=>r.activeVaultId),n=b();return h({mutationFn:async r=>{var i;if(!e)throw new Error("No active vault");const o=await e.patchVault({config:{audio_retention:r}});if(((i=o.config)==null?void 0:i.audio_retention)!==r)throw new Error("This vault doesn't support changing voice retention yet.");return o},onSuccess:r=>{n.setQueryData(["vaultInfo",t],o=>o&&{...o,config:r.config})}})}const s=!0,T="lens:transcribe-default:";function l(e){return T+e}function u(e){try{const t=localStorage.getItem(l(e));if(!t)return s;const n=JSON.parse(t);return typeof n.transcribe=="boolean"?n.transcribe:s}catch{return s}}function A(e,t){try{localStorage.setItem(l(e),JSON.stringify({transcribe:t}))}catch{}}function F(e){const[t,n]=a.useState(()=>e?u(e):s);a.useEffect(()=>{n(e?u(e):s)},[e]);const r=a.useCallback(o=>{e&&(A(e,o),n(o))},[e]);return{transcribeDefault:t,setTranscribeDefault:r}}export{w as a,C as b,F as c,u as l,_ as u};