@toa.io/extensions.introspection 1.0.0-alpha.262
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.
- package/CHANGELOG.md +61 -0
- package/components/introspection.edges/manifest.toa.yaml +48 -0
- package/components/introspection.edges/operations/lib/types.d.ts +28 -0
- package/components/introspection.edges/operations/lib/types.js +3 -0
- package/components/introspection.edges/operations/lib/types.js.map +1 -0
- package/components/introspection.edges/operations/merge.d.ts +9 -0
- package/components/introspection.edges/operations/merge.js +25 -0
- package/components/introspection.edges/operations/merge.js.map +1 -0
- package/components/introspection.edges/source/lib/types.ts +33 -0
- package/components/introspection.edges/source/merge.ts +26 -0
- package/components/introspection.edges/tsconfig.json +9 -0
- package/components/introspection.nodes/manifest.toa.yaml +49 -0
- package/components/introspection.nodes/operations/lib/types.d.ts +16 -0
- package/components/introspection.nodes/operations/lib/types.js +3 -0
- package/components/introspection.nodes/operations/lib/types.js.map +1 -0
- package/components/introspection.nodes/operations/merge.d.ts +9 -0
- package/components/introspection.nodes/operations/merge.js +21 -0
- package/components/introspection.nodes/operations/merge.js.map +1 -0
- package/components/introspection.nodes/source/lib/types.ts +18 -0
- package/components/introspection.nodes/source/merge.ts +21 -0
- package/components/introspection.nodes/tsconfig.json +9 -0
- package/cucumber.js +8 -0
- package/features/calls.feature +123 -0
- package/features/nodes.feature +70 -0
- package/features/samples.feature +75 -0
- package/features/shutdown.feature +37 -0
- package/features/site/_app/immutable/asset.js +1 -0
- package/features/site/index.html +6 -0
- package/features/steps/Map.ts +151 -0
- package/features/steps/UI.ts +88 -0
- package/features/steps/components/probe.discreet/manifest.toa.yaml +12 -0
- package/features/steps/components/probe.discreet/operations/ping.js +7 -0
- package/features/steps/components/probe.quiet/manifest.toa.yaml +11 -0
- package/features/steps/components/probe.quiet/operations/ping.js +7 -0
- package/features/steps/components/probe.source/manifest.toa.yaml +27 -0
- package/features/steps/components/probe.source/operations/crash.js +7 -0
- package/features/steps/components/probe.source/operations/fail.js +12 -0
- package/features/steps/components/probe.source/operations/relay.js +7 -0
- package/features/steps/components/probe.target/manifest.toa.yaml +24 -0
- package/features/steps/components/probe.target/operations/compute.js +7 -0
- package/features/steps/components/probe.target/operations/count.js +9 -0
- package/features/steps/config.ts +20 -0
- package/features/steps/tsconfig.json +9 -0
- package/features/ui.feature +85 -0
- package/package.json +31 -0
- package/readme.md +141 -0
- package/schemas/annotation.cos.yaml +16 -0
- package/schemas/declaration.cos.yaml +2 -0
- package/source/Composition.ts +61 -0
- package/source/Explorer.ts +16 -0
- package/source/Factory.ts +119 -0
- package/source/Reporter.ts +210 -0
- package/source/Tenant.ts +47 -0
- package/source/UI.ts +197 -0
- package/source/annotation.ts +83 -0
- package/source/const.ts +32 -0
- package/source/describe.ts +68 -0
- package/source/extension.ts +45 -0
- package/source/index.ts +7 -0
- package/source/keys.ts +0 -0
- package/source/manifest.ts +19 -0
- package/source/model.ts +82 -0
- package/source/sample.ts +49 -0
- package/source/schemas.ts +10 -0
- package/transpiled/Composition.d.ts +21 -0
- package/transpiled/Composition.js +48 -0
- package/transpiled/Composition.js.map +1 -0
- package/transpiled/Explorer.d.ts +9 -0
- package/transpiled/Explorer.js +19 -0
- package/transpiled/Explorer.js.map +1 -0
- package/transpiled/Factory.d.ts +22 -0
- package/transpiled/Factory.js +93 -0
- package/transpiled/Factory.js.map +1 -0
- package/transpiled/Reporter.d.ts +44 -0
- package/transpiled/Reporter.js +187 -0
- package/transpiled/Reporter.js.map +1 -0
- package/transpiled/Tenant.d.ts +18 -0
- package/transpiled/Tenant.js +40 -0
- package/transpiled/Tenant.js.map +1 -0
- package/transpiled/UI.d.ts +25 -0
- package/transpiled/UI.js +186 -0
- package/transpiled/UI.js.map +1 -0
- package/transpiled/annotation.d.ts +40 -0
- package/transpiled/annotation.js +46 -0
- package/transpiled/annotation.js.map +1 -0
- package/transpiled/const.d.ts +23 -0
- package/transpiled/const.js +27 -0
- package/transpiled/const.js.map +1 -0
- package/transpiled/contracts.d.ts +51 -0
- package/transpiled/contracts.js +53 -0
- package/transpiled/contracts.js.map +1 -0
- package/transpiled/describe.d.ts +9 -0
- package/transpiled/describe.js +64 -0
- package/transpiled/describe.js.map +1 -0
- package/transpiled/extension.d.ts +11 -0
- package/transpiled/extension.js +64 -0
- package/transpiled/extension.js.map +1 -0
- package/transpiled/index.d.ts +6 -0
- package/transpiled/index.js +25 -0
- package/transpiled/index.js.map +1 -0
- package/transpiled/keys.d.ts +9 -0
- package/transpiled/keys.js +0 -0
- package/transpiled/keys.js.map +1 -0
- package/transpiled/manifest.d.ts +9 -0
- package/transpiled/manifest.js +43 -0
- package/transpiled/manifest.js.map +1 -0
- package/transpiled/model.d.ts +71 -0
- package/transpiled/model.js +3 -0
- package/transpiled/model.js.map +1 -0
- package/transpiled/sample.d.ts +7 -0
- package/transpiled/sample.js +44 -0
- package/transpiled/sample.js.map +1 -0
- package/transpiled/schemas.d.ts +4 -0
- package/transpiled/schemas.js +13 -0
- package/transpiled/schemas.js.map +1 -0
- package/tsconfig.json +12 -0
- package/ui/dist/_app/env.js +1 -0
- package/ui/dist/_app/immutable/assets/0.fg2cP6bO.css +2 -0
- package/ui/dist/_app/immutable/assets/2.BghF56l_.css +1 -0
- package/ui/dist/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/ui/dist/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/ui/dist/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/ui/dist/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/ui/dist/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/ui/dist/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/ui/dist/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/ui/dist/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/ui/dist/_app/immutable/chunks/CIvRtvVA.js +1 -0
- package/ui/dist/_app/immutable/chunks/D1jNriZ8.js +1 -0
- package/ui/dist/_app/immutable/chunks/DINmginf.js +1 -0
- package/ui/dist/_app/immutable/chunks/DKZCAkrF.js +1 -0
- package/ui/dist/_app/immutable/chunks/DLG2JvyF.js +6 -0
- package/ui/dist/_app/immutable/chunks/DSi-FjwI.js +2 -0
- package/ui/dist/_app/immutable/chunks/DdoZuyU1.js +1 -0
- package/ui/dist/_app/immutable/chunks/O9IjE_TH.js +1 -0
- package/ui/dist/_app/immutable/chunks/PUjOYRcs.js +3 -0
- package/ui/dist/_app/immutable/chunks/QKD4Mgck.js +5 -0
- package/ui/dist/_app/immutable/chunks/Ux-r8C9U.js +1 -0
- package/ui/dist/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/ui/dist/_app/immutable/entry/app.CTY34L35.js +2 -0
- package/ui/dist/_app/immutable/entry/start.Bq2Gn1Ax.js +1 -0
- package/ui/dist/_app/immutable/nodes/0.lOXtBRjQ.js +1 -0
- package/ui/dist/_app/immutable/nodes/1.r8ESZdgM.js +1 -0
- package/ui/dist/_app/immutable/nodes/2.DuVj0loz.js +8 -0
- package/ui/dist/_app/immutable/nodes/3.DhdkQ2Q1.js +1 -0
- package/ui/dist/_app/immutable/nodes/4.DUAEZdRr.js +1 -0
- package/ui/dist/_app/immutable/nodes/5.CIVn_xgq.js +1 -0
- package/ui/dist/_app/version.json +1 -0
- package/ui/dist/index.html +48 -0
- package/ui/dist/robots.txt +3 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$ as e,A as t,C as n,Ct as r,D as i,E as a,Et as o,F as s,G as c,I as l,J as u,N as d,O as f,P as p,Q as m,T as h,V as g,Z as _,_ as v,_t as y,a as b,at as x,b as S,c as C,et as w,f as T,h as ee,i as E,j as D,k as O,lt as te,m as ne,mt as k,o as re,ot as A,p as j,q as M,rt as N,tt as ie,ut as P,vt as ae,wt as F,z as I}from"./PUjOYRcs.js";import{s as oe,t as se}from"./DdoZuyU1.js";import"./O9IjE_TH.js";import"./xihTtKlq.js";import{N as ce,P as le,c as ue,j as de,s as fe}from"./DLG2JvyF.js";import"./CIvRtvVA.js";import{C as pe,T as me,_ as he,at as ge,b as _e,c as ve,d as ye,f as be,g as xe,h as Se,it as Ce,l as we,m as Te,n as Ee,nt as De,p as Oe,rt as ke,s as Ae,t as je,u as Me,v as Ne,w as Pe,y as Fe}from"./QKD4Mgck.js";import{t as Ie}from"./DKZCAkrF.js";var Le={value:()=>{}};function Re(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new ze(n)}function ze(e){this._=e}function Be(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}ze.prototype=Re.prototype={constructor:ze,on:function(e,t){var n=this._,r=Be(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Ve(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=He(n[i],e.name,t);else if(t==null)for(i in n)n[i]=He(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ze(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Ve(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function He(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Le,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Ue={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function We(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Ue.hasOwnProperty(t)?{space:Ue[t],local:e}:e}function Ge(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ke(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function qe(e){var t=We(e);return(t.local?Ke:Ge)(t)}function Je(){}function Ye(e){return e==null?Je:function(){return this.querySelector(e)}}function Xe(e){typeof e!=`function`&&(e=Ye(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new R(r,this._parents)}function Ze(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Qe(){return[]}function $e(e){return e==null?Qe:function(){return this.querySelectorAll(e)}}function et(e){return function(){return Ze(e.apply(this,arguments))}}function tt(e){e=typeof e==`function`?et(e):$e(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new R(r,i)}function nt(e){return function(){return this.matches(e)}}function rt(e){return function(t){return t.matches(e)}}var it=Array.prototype.find;function at(e){return function(){return it.call(this.children,e)}}function ot(){return this.firstElementChild}function st(e){return this.select(e==null?ot:at(typeof e==`function`?e:rt(e)))}var ct=Array.prototype.filter;function lt(){return Array.from(this.children)}function ut(e){return function(){return ct.call(this.children,e)}}function dt(e){return this.selectAll(e==null?lt:ut(typeof e==`function`?e:rt(e)))}function ft(e){typeof e!=`function`&&(e=nt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new R(r,this._parents)}function pt(e){return Array(e.length)}function mt(){return new R(this._enter||this._groups.map(pt),this._parents)}function ht(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ht.prototype={constructor:ht,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function gt(e){return function(){return e}}function _t(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new ht(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function vt(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new ht(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function yt(e){return e.__data__}function bt(e,t){if(!arguments.length)return Array.from(this,yt);var n=t?vt:_t,r=this._parents,i=this._groups;typeof e!=`function`&&(e=gt(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=xt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new R(o,r),o._enter=s,o._exit=c,o}function xt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function St(){return new R(this._exit||this._groups.map(pt),this._parents)}function Ct(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function wt(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new R(s,this._parents)}function Tt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Et(e){e||=Dt;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new R(i,this._parents).order()}function Dt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ot(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kt(){return Array.from(this)}function At(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function jt(){let e=0;for(let t of this)++e;return e}function Mt(){return!this.node()}function Nt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Pt(e){return function(){this.removeAttribute(e)}}function Ft(e){return function(){this.removeAttributeNS(e.space,e.local)}}function It(e,t){return function(){this.setAttribute(e,t)}}function Lt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function zt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Bt(e,t){var n=We(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ft:Pt:typeof t==`function`?n.local?zt:Rt:n.local?Lt:It)(n,t))}function Vt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ht(e){return function(){this.style.removeProperty(e)}}function Ut(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Wt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Gt(e,t,n){return arguments.length>1?this.each((t==null?Ht:typeof t==`function`?Wt:Ut)(e,t,n??``)):L(this.node(),e)}function L(e,t){return e.style.getPropertyValue(t)||Vt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:qe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:qe(e),r=t==null?yn:typeof t==`function`?t:Ye(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function An(e,t,n){return function(){var r=this.__on,i,a=Dn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jn(e,t,n){var r=On(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Vt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Xe,selectAll:tt,selectChild:st,selectChildren:dt,filter:ft,data:bt,enter:mt,exit:St,join:Ct,merge:wt,selection:zn,order:Tt,sort:Et,call:Ot,nodes:kt,node:At,size:jt,empty:Mt,each:Nt,attr:Bt,style:Gt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={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};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(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:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(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(){let e=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Wr)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Re(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return hi(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(hi(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function xi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function ji(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Mi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ni(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pi(e,t){var n=We(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=We(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=nt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Zi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Qi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Ye(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=$e(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=L(this,e),o=(this.style.removeProperty(e),L(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=L(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=L(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),L(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},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 Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){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 Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Re(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,ee).filter(i).on(`touchstart.zoom`,E).on(`touchmove.zoom`,D).on(`touchend.zoom touchcancel.zoom`,O).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Ra),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ma.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=B(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],xi(this),s.start();Fa(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function ee(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function E(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Pa(t),s=0;s<i;++s)c=r[s],l=B(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),xi(this),a.start())}}function D(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function O(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ua=[.25,2],Wa=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ga).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{z(e).on(`.zoom`,null)}}};function Ga(e){return e.ctrlKey&&e.type!==`wheel`||`button`in e&&e.button!==0?!1:e.type===`wheel`?!Ka(e.target,`[data-scrollable]`):!Ka(e.target,`button, a, [data-scrollable]`)}function Ka(e,t){return e instanceof Element&&e.closest(t)!==null}function qa(e,t){let n=e.map(e=>({kind:`component`,id:ye(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Ja(e.src),n=ye(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!$a(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Ja(e){return`service`in e?Ya+e.service:ye(e)}var Ya=`svc:`,Xa=`@`;function Za(e){return e.startsWith(Ya)?Xa+e.slice(4):xe(e)}function Qa(e){return e.startsWith(Xa)?Ya+e.slice(1):e.includes(`.`)?e:`${Me}.${e}`}function $a(e){return`event`in e.src}function eo(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function to(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function no(e){return e.kind===`component`?xe(e.id):e.name}function ro(e,t){return e.kind===`component`?Se(e.node,t)>0:be(e.name,t)}function io(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Ja(s.src),c=ye(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:oo(n,s),theirs:so(s)}:{row:so(s),theirs:oo(d,s)};ao(l===`in`?i:a,`${l}:${u}`,d,f,$a(s))}return{vertex:n,incoming:[...i.values()].sort(co),outgoing:[...a.values()].sort(co),self:o}}function ao(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function oo(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=ye(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function so(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function co(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var lo=k(null),uo=`card`,fo=`transition-spring transition-morph`;function po(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function mo(e){lo.set(e),await g(),await se(`${oe}/${Za(e)}/`)}async function ho(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var go=4,_o=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>go)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},vo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},yo={height:40},bo={width:400,height:320},xo=.25,So={height:20,prefix:`band:`},Co=6,wo=32;function To(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Ao),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!he(e.node))},{label:`system`,of:a.filter(e=>he(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:So.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=So.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t*o.x,y:l}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,yo.height]));ko(r,t,e=>({width:e.startsWith(So.prefix)?u:$.width,height:e.startsWith(So.prefix)?So.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Eo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Oo(n,e.vertex.id,bo).height/2;return o(e.incoming,-1),o(e.outgoing,1),ko(i,t,t=>Oo(n,t,t===e.vertex.id?bo:$));function o(e,t){let o=$.width+$.gap;Do(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Oo(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?bo.width:$.width;i.set(e.id,{x:t<0?-(c+a):bo.width+c,y:d}),d+=l[n]+$.row})})}}function Do(e){if(e.length===0)return[];if(e.length<=Co)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Oo(e,t,n){return e.get(t)??n}function ko(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(wo,(t.width-i.width)/2)-r.left,y:Math.max(wo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Ao(e,t){return e.id.localeCompare(t.id)}var jo=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mo(e,t){let n=b(t,jo),r=[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`}],[`circle`,{cx:`12`,cy:`12`,r:`2`}]];ce(e,re({name:`radio`},()=>n,{get iconNode(){return r}}))}var No=t(`<!> <!>`,1);function Po(t,n){ae(n,!0);var a=O(),o=e(a);{let t=A(()=>[`bg-muted items-center`,n.class]);S(o,()=>Ne,(a,o)=>{o(a,{variant:`muted`,size:`sm`,get style(){return`height: ${yo.height??``}px`},get class(){return I(t)},children:(t,a)=>{var o=No(),s=e(o);S(s,()=>_e,(e,t)=>{t(e,{children:(e,t)=>{Mo(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var c=w(s,2);S(c,()=>Pe,(t,a)=>{a(t,{children:(t,a)=>{var o=O(),s=e(o);S(s,()=>Fe,(e,t)=>{t(e,{class:`gap-0`,children:(e,t)=>{r();var a=d();M(()=>i(a,n.name)),f(e,a)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})})}f(t,a),y()}var Fo=1/3,Io=2/3;function Lo(e,t,n){return zo(e,t,n,Io)}function Ro(e,t,n){return zo(e,t,n,Fo)}function zo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Bo(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Vo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Ho=D(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Uo=D(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Wo(e,t){ae(t,!0);let r=A(()=>t.arcs.map(e=>{let t=i(e.from),n=i(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Vo(t):Bo(Lo(t,n.x,e.out),Ro(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function i(e){let n=t.positions.get(e),r=t.sizes.get(e);return n===void 0||r===void 0?null:{...n,...r}}var a=Uo(),o=w(m(a));n(o,17,()=>I(r),e=>e.id,(e,t)=>{var n=Ho();M(()=>{T(n,`d`,I(t).d),T(n,`stroke-dasharray`,I(t).dashed?`4 3`:void 0),T(n,`opacity`,I(t).dimmed?xo:void 0)}),f(e,n)}),F(a),M(()=>ne(a,0,ee([`pointer-events-none absolute overflow-visible`,t.class]))),f(e,a),y()}var Go=t(`<span class="text-muted-foreground"> </span>`),Ko=t(`<!> `,1),qo=t(`<!> <!>`,1),Jo=t(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
|
|
2
|
+
cursor-pointer rounded-md p-1 transition-colors"><!></button>`),Yo=t(`<div class="flex items-start gap-2"><!> <!></div> <!>`,1);function Xo(t,n){ae(n,!0);let r=()=>P(we,`$dict`,o),[o,c]=te(),l=E(n,`open`,3,!1);var u=O(),d=e(u);{let t=A(()=>[`bg-card flex-col items-stretch gap-0`,n.class]);S(d,()=>Ne,(o,c)=>{c(o,{variant:`outline`,size:`sm`,get class(){return I(t)},children:(t,o)=>{var c=Yo(),u=e(c),d=m(u);S(d,()=>Pe,(t,r)=>{r(t,{class:`min-w-0`,children:(t,r)=>{var o=qo(),s=e(o);S(s,()=>Fe,(t,r)=>{r(t,{class:`gap-0`,children:(t,r)=>{var o=Ko(),s=e(o),c=e=>{var t=Go(),r=m(t);F(t),M(()=>i(r,`${n.node.namespace??``}.`)),f(e,t)};a(s,e=>{n.node.namespace!=="default"&&e(c)});var l=w(s,1,!0);M(()=>i(l,n.node.component)),f(t,o)},$$slots:{default:!0}})});var c=w(s,2);S(c,()=>pe,(e,t)=>{t(e,{class:`text-xs`,children:(e,t)=>{Ae(e,{get node(){return n.node}})},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var p=w(d,2),h=e=>{var t=Jo(),i=m(t);{let e=A(()=>[`size-4 transition-transform`,l()&&`rotate-180`]);ve(i,{get class(){return I(e)}})}F(t),M(()=>{T(t,`aria-expanded`,l()),T(t,`aria-label`,r().map.expand)}),s(`click`,t,function(...e){n.ontoggle?.apply(this,e)}),f(e,t)};a(p,e=>{n.ontoggle!==void 0&&e(h)}),F(u);var g=w(u,2),_=e=>{Ee(e,{get node(){return n.node},class:`pt-3`})};a(g,e=>{l()&&e(_)}),f(t,c)},$$slots:{default:!0}})})}f(t,u),y(),c()}p([`click`]);var Zo=t(`<div class="text-muted-foreground absolute top-0 left-0 flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div>`),Qo=t(`<div class="absolute top-0 left-0 cursor-pointer transition-opacity" role="button" tabindex="0"><!></div>`),$o=t(`<!> <!> <!>`,1);function es(t,r){ae(r,!0);let o=()=>P(Te,`$query`,d),s=()=>P(we,`$dict`,d),c=()=>P(lo,`$flying`,d),[d,p]=te(),h=new Ce,g=x(null),_=A(()=>To(r.graph,r.view)),b=A(()=>I(_).positions),S=A(()=>to(r.graph.links,I(g))),C=A(()=>eo(r.graph.links,I(g)).map(e=>({id:e.id,from:e.from,to:e.to,dashed:e.events===e.calls})));u(()=>{let e=r.graph.vertices.filter(e=>ro(e,o())),t=e.length===1?e[0].id:null;return Oe.set(t===null?null:()=>void mo(t)),()=>Oe.set(null)});function ee(e){return ro(e,o())?I(g)===null||I(S).has(e.id):!1}var E=$o(),D=e(E);Wo(D,{class:`text-muted-foreground/50`,get arcs(){return I(C)},get positions(){return I(b)},get sizes(){return h}});var O=w(D,2);n(O,17,()=>I(_).bands,e=>e.id,(e,t)=>{var n=Zo();let r;var a=m(n),o=m(a,!0);F(a);var c=w(a,2);me(c,{class:`flex-1`}),F(n),M(()=>{r=j(n,``,r,{translate:`${I(t).x??``}px ${I(t).y??``}px`,width:`${I(t).width??``}px`,height:`${So.height??``}px`}),i(o,s().space[I(t).label])}),f(e,n)});var ne=w(O,2);n(ne,17,()=>r.graph.vertices,e=>e.id,(e,t)=>{let n=A(()=>I(b).get(I(t).id)??{x:0,y:0});var r=Qo();let i;var o=m(r),s=e=>{Xo(e,{get node(){return I(t).node}})},u=e=>{Po(e,{get name(){return I(t).name}})};a(o,e=>{I(t).kind===`component`?e(s):e(u,-1)}),F(r),v(r,(e,t)=>vo?.(e,t),()=>({into:h,id:I(t).id})),v(r,(e,t)=>_o?.(e,t),()=>()=>void mo(I(t).id)),M((e,t)=>{T(r,`aria-label`,e),i=j(r,``,i,t)},[()=>no(I(t)),()=>({translate:`${I(n).x??``}px ${I(n).y??``}px`,width:`${$.width??``}px`,opacity:ee(I(t))?1:xo,"view-transition-name":c()===I(t).id?uo:void 0,"view-transition-class":c()===I(t).id?fo:void 0})]),l(`mouseenter`,r,()=>N(g,I(t).id,!0)),l(`mouseleave`,r,()=>N(g,null)),f(e,r)}),f(t,E),y(),p()}var ts=(e,t)=>{let n=new ResizeObserver(()=>s()),r=new MutationObserver(()=>s()),{into:i,of:a}=t,o=new Set;return n.observe(e),r.observe(e,{childList:!0,subtree:!0}),s(),{update:e=>{i=e.into,a=e.of,s()},destroy:()=>{n.disconnect(),r.disconnect();for(let e of o)i.delete(e)}};function s(){let t=new Set;for(let n of e.querySelectorAll(`[data-row]`)){if(n.dataset.row===void 0)continue;let e=`${a} ${n.dataset.row}`;t.add(e);let r={top:l(n).top,height:n.offsetHeight,right:c(n)},o=i.get(e);(o===void 0||o.top!==r.top||o.height!==r.height||o.right!==r.right)&&i.set(e,r)}for(let e of o)t.has(e)||i.delete(e);o=t}function c(e){let t=0;for(let n of e.children)n instanceof HTMLElement&&(t=Math.max(t,l(n).left+n.offsetWidth));return t===0?l(e).left+e.offsetWidth:t}function l(t){let n={top:0,left:0},r=t;for(;r!==null&&r!==e;)n.top+=r.offsetTop,n.left+=r.offsetLeft,r=r.offsetParent;return n}},ns=(e,t)=>{let n=t;return e.addEventListener(`mouseover`,r),e.addEventListener(`mouseleave`,i),e.addEventListener(`focusin`,r),e.addEventListener(`focusout`,i),{update:e=>n=e,destroy:()=>{e.removeEventListener(`mouseover`,r),e.removeEventListener(`mouseleave`,i),e.removeEventListener(`focusin`,r),e.removeEventListener(`focusout`,i)}};function r(e){let t=e.target instanceof Element?e.target.closest(`[data-row]`):null;n(t?.getAttribute(`data-row`)??null)}function i(){n(null)}},rs=t(`<div class="pointer-events-none absolute inset-y-0 end-2 flex items-center"><!></div>`),is=t(`<div role="button" tabindex="0"><div class="transition-opacity"><!></div> <!></div>`),as=t(`<!> <!> <div class="absolute top-0 left-0"><!></div>`,1);function os(t,o){ae(o,!0);let s=()=>P(lo,`$flying`,h),c=()=>P(Te,`$query`,h),p=()=>P(we,`$dict`,h),[h,g]=te();u(()=>lo.set(o.id));let _=new Ce,b=new Ce,S=x(null),C=x(null),E=A(()=>io(o.graph,o.id));function D(){return(I(E)?.incoming??[]).filter(e=>e.vertex.kind===`service`).map(e=>e.id)}let k=new ge(D()),re=A(()=>I(E)===null?new Map:Eo(I(E),o.view,_,I(S))),ie=A(()=>{if(I(E)===null)return[];let e=[];for(let t of I(E).incoming)if(!k.has(t.id))for(let n of t.wires)e.push({id:n.id,from:t.id,to:I(E).vertex.id,out:ce(t.id,n.theirs,8),in:ce(I(E).vertex.id,n.row),dashed:n.event,dimmed:!oe(t,n)});for(let t of I(E).outgoing)if(!k.has(t.id))for(let n of t.wires)e.push({id:n.id,from:I(E).vertex.id,to:t.id,out:ce(I(E).vertex.id,n.row,8),in:ce(t.id,n.theirs),dashed:n.event,dimmed:!oe(t,n)});return I(E).self&&e.push({id:`self`,from:I(E).vertex.id,to:I(E).vertex.id,dimmed:I(C)!==null}),e});function oe(e,t){return I(C)===null?!0:I(C).of===`card`?I(C).id===e.id:I(C).id===t.row}function se(e){return I(C)===null?!0:I(C).of===`card`?I(C).id===e.id:e.wires.some(e=>e.row===I(C)?.id)}function ce(e,t,n){if(t===null)return;let r=b.get(`${e} ${t}`);if(r!==void 0)return{y:r.top+r.height/2,x:n===void 0?void 0:r.right+n}}function le(e){fe(()=>{N(S,I(S)===e.id?null:e.id,!0)})}function de(e,t){t?k.has(e.id)?k.delete(e.id):k.add(e.id):mo(e.vertex.id)}let pe=A(()=>[...I(E)?.incoming??[],...I(E)?.outgoing??[]].find(e=>e.vertex.id===s())?.id??null);function me(e){return I(re).get(e)??{x:0,y:0}}var he=O(),_e=e(he),ve=t=>{var o=as(),u=e(o);Wo(u,{class:`text-muted-foreground/50 z-10`,get arcs(){return I(ie)},get positions(){return I(re)},get sizes(){return _}});var h=w(u,2);n(h,17,()=>[...I(E).incoming,...I(E).outgoing],e=>e.id,(e,t)=>{var n=is();let o;var s=m(n);let u;var h=m(s),g=e=>{{let n=A(()=>I(S)===I(t).id);Xo(e,{get node(){return I(t).vertex.node},get open(){return I(n)},ontoggle:()=>le(I(t))})}},y=e=>{Po(e,{get name(){return I(t).vertex.name}})};a(h,e=>{I(t).vertex.kind===`component`?e(g):e(y,-1)}),F(s);var x=w(s,2),E=e=>{var t=rs(),n=m(t);Ie(n,{children:(e,t)=>{r();var n=d();M(()=>i(n,p().map.restore)),f(e,n)},$$slots:{default:!0}}),F(t),f(e,t)},D=A(()=>k.has(I(t).id)&&I(t).vertex.kind===`service`);a(x,e=>{I(D)&&e(E)}),F(n),v(n,(e,t)=>vo?.(e,t),()=>({into:_,id:I(t).id})),v(n,(e,t)=>ts?.(e,t),()=>({into:b,of:I(t).id})),v(n,(e,t)=>ue?.(e,t),()=>({name:po(I(t).id),classes:fo})),v(n,(e,t)=>_o?.(e,t),()=>e=>de(I(t),e)),M((e,r,i)=>{ne(n,1,ee([`absolute top-0 left-0 cursor-pointer`,I(S)===I(t).id?`z-0`:`z-20`])),T(n,`aria-label`,e),o=j(n,``,o,r),u=j(s,``,u,i)},[()=>no(I(t).vertex),()=>({translate:`${me(I(t).id).x??``}px ${me(I(t).id).y??``}px`,width:`${(I(S)===I(t).id?bo.width:$.width)??``}px`,"view-transition-name":I(pe)===I(t).id?uo:void 0,"view-transition-class":I(pe)===I(t).id?fo:void 0}),()=>({opacity:ro(I(t).vertex,c())&&se(I(t))&&!k.has(I(t).id)?1:xo})]),l(`mouseenter`,n,()=>N(C,k.has(I(t).id)?null:{of:`card`,id:I(t).id},!0)),l(`mouseleave`,n,()=>N(C,null)),f(e,n)});var g=w(h,2);let y;var x=m(g),D=e=>{je(e,{class:`bg-card`,get node(){return I(E).vertex.node},collapsible:!1})},O=e=>{Po(e,{get name(){return I(E).vertex.name}})};a(x,e=>{I(E).vertex.kind===`component`?e(D):e(O,-1)}),F(g),v(g,(e,t)=>vo?.(e,t),()=>({into:_,id:I(E).vertex.id})),v(g,(e,t)=>ts?.(e,t),()=>({into:b,of:I(E).vertex.id})),v(g,(e,t)=>ns?.(e,t),()=>e=>N(C,e===null?null:{of:`row`,id:e},!0)),M(e=>y=j(g,``,y,e),[()=>({translate:`${me(I(E).vertex.id).x??``}px ${me(I(E).vertex.id).y??``}px`,width:`${bo.width??``}px`,"view-transition-name":s()===I(E).vertex.id?uo:void 0,"view-transition-class":s()===I(E).vertex.id?fo:void 0})]),f(t,o)};a(_e,e=>{I(E)!==null&&e(ve)}),f(t,he),y(),g()}var ss=t(`<p class="text-muted-foreground absolute inset-x-0 top-4 text-center text-sm"> </p>`),cs=t(`<!> <div class="absolute top-0 left-0 origin-top-left"><!></div>`,1),ls=t(`<div><!></div>`);function us(t,n){ae(n,!0);let r=()=>P(we,`$dict`,s),[s,d]=te(),p=E(n,`focus`,3,null),g=x(ie(Ma)),b=x(null),S=ie({width:0,height:0});u(()=>T(p()));function T(e){I(b)?.reset()}function D(e){e.key===`Escape`&&p()!==null&&ho()}var k=ls();l(`keydown`,_,D);var re=m(k);{let t=(t,n)=>{var s=A(()=>o(n?.(),2));let c=()=>I(s)[0],l=()=>I(s)[1],u=A(()=>qa(c(),l()));var d=cs(),_=e(d),v=e=>{var t=ss(),n=m(t,!0);F(t),M(()=>i(n,r().map.empty)),f(e,t)};a(_,e=>{I(u).links.length===0&&e(v)});var y=w(_,2);let b;var x=m(y),C=e=>{es(e,{get graph(){return I(u)},get view(){return S}})},T=t=>{var n=O(),r=e(n);h(r,p,e=>{os(e,{get graph(){return I(u)},get view(){return S},get id(){return p()}})}),f(t,n)};a(x,e=>{p()===null?e(C):e(T,-1)}),F(y),M(()=>b=j(y,``,b,{translate:`${I(g).x??``}px ${I(g).y??``}px`,scale:I(g).k})),f(t,d)},n=A(()=>le(ke,De));de(re,{get store(){return I(n)},awaited:t,$$slots:{awaited:!0}})}F(k),c(()=>C(k,`clientWidth`,e=>S.width=e)),c(()=>C(k,`clientHeight`,e=>S.height=e)),v(k,(e,t)=>Wa?.(e,t),()=>({onchange:e=>N(g,e,!0),onready:e=>N(b,e,!0)})),M(()=>ne(k,1,ee([`bg-muted/30 relative touch-none overflow-hidden`,n.class]))),f(t,k),y(),d()}export{Qa as n,us as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e,V as t,at as n,mt as r,n as i,rt as a,t as o,z as s}from"./PUjOYRcs.js";import{t as c}from"./O9IjE_TH.js";var l=class{constructor(e,t){this.status=e,this.body=typeof t==`string`?{message:t}:t||{message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},u=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},d=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function f(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function p(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function ee(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ue({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function de(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function fe(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_1gr92z8?.base??`/.introspection`,pe=globalThis.__sveltekit_1gr92z8?.assets??x??``,me=`sveltekit:snapshot`,he=`sveltekit:scroll`,ge=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},_e=location.origin;function ve(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ye={...w,"":w.hover};function be(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function xe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=be(e)}}function Se(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===_e&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=be(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ye[r??`off`],preload_data:ye[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Ce(e){let t=r(e),n=!0;function i(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:i,set:a,subscribe:o}}var we={v:h};function Te(){let{set:e,subscribe:t}=r(!1),n;async function i(){clearTimeout(n);try{let t=await fetch(`${pe}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==c;return r&&(e(!0),we.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:i}}function O(e,t,n){return e.origin!==_e||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Ee(e){}var De=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...De],[...new Set([...De])];function Oe(e){return e.filter(e=>e!=null)}function k(e,t){return e+`/`+t}function ke(e){return e instanceof l||e instanceof d?e.status:500}function Ae(e){return e instanceof d?e.text:`Internal Error`}var A,j,je,Me=i.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(i.toString()),Ne=`a:`;Me?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ne)},j={current:null},je={current:!1}):(A=new class{#e=n({});get data(){return s(this.#e)}set data(e){a(this.#e,e)}#t=n(null);get form(){return s(this.#t)}set form(e){a(this.#t,e)}#n=n(null);get error(){return s(this.#n)}set error(e){a(this.#n,e)}#r=n({});get params(){return s(this.#r)}set params(e){a(this.#r,e)}#i=n({id:null});get route(){return s(this.#i)}set route(e){a(this.#i,e)}#a=n({});get state(){return s(this.#a)}set state(e){a(this.#a,e)}#o=n(-1);get status(){return s(this.#o)}set status(e){a(this.#o,e)}#s=n(new URL(Ne));get url(){return s(this.#s)}set url(e){a(this.#s,e)}},j=new class{#e=n(null);get current(){return s(this.#e)}set current(e){a(this.#e,e)}},je=new class{#e=n(!1);get current(){return s(this.#e)}set current(e){a(this.#e,e)}},we.v=()=>je.current=!0);function Pe(e){Object.assign(A,e)}var{onMount:Fe,tick:Ie}=o,Le=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=de(`sveltekit:scroll`)??{},P=de(`sveltekit:snapshot`)??{},F={url:Ce({}),page:Ce({}),navigating:r(null),updated:Te()};function Re(e){N[e]=T()}function ze(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function Be(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var Ve,He,L,R,Ue,z,We={},Ge={},B=[],V=[],H=null;function U(){H?.fork?.then(e=>e?.discard()),H=null,Q={element:void 0,href:void 0}}var Ke=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,Xe=!1,Ze=!0,K=!1,q=!1,Qe=!1,$e=!1,et,J,Y,X,tt=new Set,nt=new Map,rt=new Map;async function it(e,t,n){if(globalThis.__sveltekit_1gr92z8.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_1gr92z8.data;for(let t in e)We[t]=e[t];for(let e in n)We[e]=n[e];for(let e in r)We[e]=r[e];for(let e in t)Ge[e]=t[e]}document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ve=ue(e),R=document.documentElement,Ue=t,He=e.nodes[0],L=e.nodes[1],He(),L(),J=history.state?.[S],Y=history.state?.[C],J||(J=Y=Date.now(),history.replaceState({...history.state,[S]:J,[C]:Y},``));let r=N[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Ft(Ue,n)):(await Z({type:`enter`,url:ve(z.hash?Vt(new URL(location.href)):location.href),replace_state:!0}),i()),Pt()}function at(){B.length=0,$e=!1}function ot(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function st(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ct(){Re(J),fe(he,N),ot(Y),fe(me,P)}async function lt(e,n,r,i){let a,o;n.invalidateAll&&U(),await Z({type:`goto`,url:ve(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){$e=!0,a=new Set;for(let[e,t]of nt)for(let[n,r]of t)r.resource?.reset(),a.add(k(e,n));o=new Set;for(let[e,t]of rt)for(let n of t.keys())o.add(k(e,n))}n.invalidate&&n.invalidate.forEach(Nt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of nt)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.start();for(let[e,t]of rt)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function ut(e){if(e.id!==H?.id){U();let t={};tt.add(t),H={id:e.id,token:t,promise:bt({...e,preload:t}).then(e=>(tt.delete(t),e.type===`loaded`&&e.state.error&&U(),e)),fork:null}}return H.promise}async function dt(e){let t=(await wt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ft(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},Pe(e.props.page),et=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:N[J]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}st(Y),Xe=!0}async function pt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=f(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:Bt(A)}};s!==void 0&&(l.props.form=s);let u={},d=!A,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==A.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:A.data}),l}async function mt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function ht(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:Xe?ne(r,i.href,t):y(r,t)}}function gt(e,t,n,r,i,a){if($e)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function _t(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function vt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function yt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Bt(A),constructors:[]}}}async function bt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return tt.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:c}=i,d=[...s,c];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=G.url?e!==Et(G.url):!1,p=G.route?i.id!==G.route.id:!1,ee=vt(G.url,n),m=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!gt(m,p,f,ee,a.universal?.uses,r)?a:(m=!0,mt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:_t(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof u)return{type:`redirect`,location:t.location};if(a&&tt.has(a))return yt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),c;if(t instanceof l)c=t.body;else{if(await F.updated.check())return await Be(),await I(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await xt(e,_,o);return d?pt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:c,route:i}):await Ot(n,{id:i.id},c,s)}else _.push(void 0);return pt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function xt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function St({status:e,error:t,url:n,route:r}){let i={};try{return pt({url:n,params:i,branch:[await mt({loader:He,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:_t(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof u){await lt(new URL(t.location,location.href),{},0);return}let a=await z.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function Ct(e){let t=e.href;if(Ke.has(t))return Ke.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>ht(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();Ke.set(t,r),n=await r}catch{Ke.delete(t);return}return n}async function wt(e,t){if(e&&!O(e,x,z.hash)){let n=await Ct(e);if(!n)return;let r=Tt(n);for(let n of Ve){let i=n.exec(r);if(i)return{id:Et(e),invalidating:t,route:n,params:ee(i),url:e}}}}function Tt(e){return p(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Et(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Dt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=zt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||qe.forEach(e=>e(c)),o?null:s}async function Z({type:n,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:u={},accept:f=h,block:p=h,event:ee}){let m=X;X=u;let g=await wt(r,!1),_=n===`enter`?zt(G,g,r,n):Dt({url:r,type:n,delta:i?.delta,intent:g,scroll:i?.scroll,event:ee});if(!_){p(),X===u&&(X=m);return}let te=J,v=Y;f(),K=!0,Xe&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let y=g&&await bt(g);if(!y){if(O(r,x,z.hash))return await I(r,s);y=await Ot(r,{id:null},await $(new d(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,X!==u){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:n,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:u}),_.fulfil(void 0);return}if(y=await St({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await F.updated.check())return await Be(),await I(r,s);if(at(),Re(te),ot(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[S]:J+=e,[C]:Y+=e,[ge]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||ze(J,Y)}let ne=g&&H?.id===g.id?H.fork:null;H?.fork&&!ne?U():(H=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(Xe){let t=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{W.delete(e)})}t.push(e),t.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ne&&await ne;i?b=i.commit():(M=null,et.$set(y.props),M&&Object.assign(y.props.page,M),Pe(y.props.page),b=e?.()),Qe=!0}else await ft(y,Ue,!1);let{activeElement:re}=document;if(await b,await t(),await t(),X!==u){_.reject(Error(`navigation aborted`));return}y.props.page&&M&&Object.assign(y.props.page,M);let ie=null;if(Ze){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(ie=r.hash&&document.getElementById(Ht(r)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!a&&!ae&&Rt(r,!ie),Ze=!0,K=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),n===`popstate`&&st(Y),F.navigating.set(j.current=null)}async function Ot(e,t,n,r,i){return e.origin===_e&&e.pathname===location.pathname&&!Ye?await St({status:r,error:n,url:e,route:t}):await I(e,i)}var Q={element:void 0,href:void 0};function kt(){let e,t;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,n),R.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(dt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=xe(e,R),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Se(r,x,z.hash);if(o||s)return;let c=D(r),l=a&&Et(G.url)===Et(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await wt(a,!1);if(!e)return;ut(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,dt(a))}}function a(){r.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Se(e,x,z.hash);if(n||i)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&dt(t))}}W.add(a),a()}function $(e,t){if(e instanceof l)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function At(e,t){Fe(()=>(e.add(t),()=>{e.delete(t)}))}function jt(e){At(Je,e)}function Mt(e,t={}){return e=new URL(ve(e)),e.origin===_e?lt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Nt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function Pt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ct(),!K){let e=zt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ct()}),navigator.connection?.saveData||kt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=xe(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=Se(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Dt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Re(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Lt){if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(X={},n===J)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(Qe||s)){i!==A.state&&(A.state=i),e(a),N[J]=T(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),z.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[S]:++J,[C]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Le.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){G.url=A.url=e,F.page.set(Bt(A)),F.page.notify()}}async function Ft(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let l=new URL(location.href),d;({params:i={},route:a={id:null}}=await wt(l,!1)||{}),d=Ve.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=It(r.uses)),mt({loader:z.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:_t(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await pt({url:l,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof u)return await I(new URL(t.location,location.href));f=await St({status:ke(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await ft(f,e,p))}function It(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Lt=!1;function Rt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Ht(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Lt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Lt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function zt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Bt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Vt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Ht(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{A as a,j as i,jt as n,Ee as o,it as r,x as s,Mt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./PUjOYRcs.js";var e=`1787939446490`;export{e as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=Array.isArray,d=Array.prototype.indexOf,f=Array.prototype.includes,p=Array.from,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,y=Object.getPrototypeOf,b=Object.isExtensible;function x(e){return typeof e==`function`}var S=()=>{};function ee(e){for(var t=0;t<e.length;t++)e[t]()}function te(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function ne(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var re=1<<24,C=1024,w=2048,ie=4096,ae=8192,oe=16384,se=32768,ce=1<<25,le=65536,ue=1<<18,de=1<<19,fe=1<<20,pe=1<<25,me=65536,he=1<<21,ge=1<<22,_e=1<<23,ve=Symbol(`$state`),ye=Symbol(`legacy props`),be=Symbol(``),xe=Symbol(`proxy path`),Se=Symbol(`attributes`),Ce=Symbol(`class`),we=Symbol(`style`),Te=Symbol(`text`),Ee=Symbol(`form reset`),De=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Oe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ke(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function Ae(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function je(){throw Error(`https://svelte.dev/e/missing_context`)}function Me(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ne(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Pe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Fe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ie(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Le(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Re(){throw Error(`https://svelte.dev/e/fork_discarded`)}function ze(){throw Error(`https://svelte.dev/e/fork_timing`)}function Be(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Ve(){throw Error(`https://svelte.dev/e/hydration_failed`)}function He(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function Ue(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function We(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ge(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ke(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function qe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Je={},T=Symbol(`uninitialized`),Ye=`http://www.w3.org/1999/xhtml`,Xe=`http://www.w3.org/2000/svg`,Ze=`http://www.w3.org/1998/Math/MathML`,Qe=`@attach`;function $e(){console.warn(`https://svelte.dev/e/derived_inert`)}function et(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function tt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function nt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function rt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw tt(),Je;return O=e}function A(){return k(B(O))}function it(e){if(E){if(B(O)!==null)throw tt(),Je;O=e}}function at(e=1){if(E){for(var t=e,n=O;t--;)n=B(n);O=n}}function ot(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=B(n);e&&n.remove(),n=i}}function st(e){if(!e||e.nodeType!==8)throw tt(),Je;return e.data}function ct(e){return e===this.v}function lt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function ut(e){return!lt(e,this.v)}var dt=!1;function ft(){dt=!0}function pt(e,t){return e.label=t,mt(e.v,t),e}function mt(e,t){return e?.[xe]?.(t),e}function ht(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}function gt(e,t,n){let r={};return[()=>(n(r)||je(),e(r)),e=>t(r,e)]}function _t(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function vt(e,t){return e===null&&Ae(t),e.c??=new Map(_t(e)||void 0)}var j=null;function yt(e){j=e}function bt(){return gt(xt,St,Ct)}function xt(e){return vt(j,`getContext`).get(e)}function St(e,t){return vt(j,`setContext`).set(e,t),t}function Ct(e){return vt(j,`hasContext`).has(e)}function wt(){return vt(j,`getAllContexts`)}function Tt(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:q,l:dt&&!t?{s:null,u:null,$:[]}:null}}function Et(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)vr(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Dt(){return!dt||j!==null&&j.l===null}var Ot=[];function kt(){var e=Ot;Ot=[],ee(e)}function M(e){if(Ot.length===0&&!Tn){var t=Ot;queueMicrotask(()=>{t===Ot&&kt()})}Ot.push(e)}function At(){for(;Ot.length>0;)kt()}function jt(e){var t=q;if(t===null)return W.f|=_e,e;if(!(t.f&32768)&&!(t.f&4))throw e;Mt(e,t)}function Mt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Nt=~(w|ie|C);function N(e,t){e.f=e.f&Nt|t}function Pt(e){e.f&512||e.deps===null?N(e,C):N(e,ie)}function Ft(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=me,Ft(t.deps))}function It(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ft(e.deps),N(e,C)}function Lt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),S;let r=Q(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var Rt=[];function zt(e,t){return{subscribe:Bt(e,t).subscribe}}function Bt(e,t=S){let n=null,r=new Set;function i(t){if(lt(e,t)&&(e=t,n)){let t=!Rt.length;for(let t of r)t[1](),Rt.push(t,e);if(t){for(let e=0;e<Rt.length;e+=2)Rt[e][0](Rt[e+1]);Rt.length=0}}}function a(t){i(t(e))}function o(o,s=S){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||S),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Vt(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return zt(n,(e,n)=>{let o=!1,s=[],c=0,l=S,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:S},d=i.map((e,t)=>Lt(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){ee(d),l(),o=!1}})}function Ht(e){let t;return Lt(e,e=>t=e)(),t}var Ut=!1,Wt=!1,Gt=Symbol(`unmounted`);function Kt(e,t,n){let r=n[t]??={store:null,source:Kn(void 0),unsubscribe:S};if(r.store!==e&&!(Gt in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=S;else{var i=!0;r.unsubscribe=Lt(e,e=>{i?r.source.v=e:L(r.source,e)}),i=!1}}return e&&Gt in n?Ht(e):Z(r.source)}function qt(e,t){return Yt(e,t),t}function Jt(){let e={};function t(){gr(()=>{for(var t in e)e[t].unsubscribe();m(e,Gt,{enumerable:!1,value:!0})})}return[e,t]}function Yt(e,t){Ut=!0;try{e.set(t)}finally{Ut=!1}}function Xt(){Wt=!0}function Zt(e){var t=Wt;try{return Wt=!1,[e(),Wt]}finally{Wt=t}}function Qt(e,t){if(t){let t=document.body;e.autofocus=!0,M(()=>{document.activeElement===t&&e.focus()})}}var $t=!1;function en(){$t||($t=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Ee]?.()})},{capture:!0}))}function tn(e){var t=W,n=q;K(null),Ur(null);try{return e()}finally{K(t),Ur(n)}}function nn(e,t,n,r=n){e.addEventListener(t,()=>tn(n));let i=e[Ee];e[Ee]=i?()=>{i(),r(!0)}:()=>r(!0),en()}function rn(e){let t=0,n=Wn(0),r;return()=>{hr()&&(Z(n),wr(()=>(t===0&&(r=Q(()=>e(()=>Yn(n)))),t+=1,()=>{M(()=>{--t,t===0&&(r?.(),r=void 0,Yn(n))})})))}}var an=le|de;function on(e,t,n,r){new sn(e,t,n,r)}var sn=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=rn(()=>(this.#m=Wn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Dr(()=>{if(E){let e=this.#t;A();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},an),E&&(this.#e=O)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);M(r),t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){rt();return}t=!0,n&&qe(),this.#s!==null&&Pr(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Mt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),M(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#S(()=>H(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Pr(this.#o,()=>{this.#o=null}),this.#x(P))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Rr(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#x(P)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){It(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=q,n=W,r=j;Ur(this.#i),K(this.#i),yt(this.#i.ctx);try{return jn.ensure(),e()}catch(e){return jt(e),null}finally{Ur(t),K(n),yt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Pr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,M(()=>{this.#d=!1,this.#m&&qn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;P?.is_fork?(this.#a&&P.skip_effect(this.#a),this.#o&&P.skip_effect(this.#o),this.#s&&P.skip_effect(this.#s),P.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),E&&(k(this.#t),at(),k(ot()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return H(()=>{var r=q;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Mt(e,this.#i.parent),null}}))};M(()=>{var t;try{t=this.transform_error(e)}catch(e){Mt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Mt(e,this.#i&&this.#i.parent)):n(t)})}};function cn(e,t,n,r){let i=Dt()?fn:gn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=q,c=ln(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Mt(e,s)}un()}}var d=dn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>mn(e))).then(u).catch(e=>Mt(e,s)).finally(d)}l?l.then(()=>{c(),f(),un()}):f()}function ln(){var e=q,t=W,n=j,r=P;return function(i=!0){Ur(e),K(t),yt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function un(e=!0){Ur(null),K(null),yt(null),e&&P?.deactivate()}function dn(){var e=q,t=e.b,n=P,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function fn(e){var t=2|w;return q!==null&&(q.f|=de),{ctx:j,deps:null,effects:null,equals:ct,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:q,ac:null}}var pn=Symbol(`obsolete`);function mn(e,t,n){let r=q;r===null&&Me();var i=void 0,a=Wn(T),o=!W,s=new Set;return Cr(()=>{var t=q,n=te();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==De&&n.reject(e)}).finally(un)}catch(e){n.reject(e),un()}var c=P;if(o){if(t.f&32768)var l=dn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(pn);else for(let e of s.values())e.reject(pn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==pn&&(c.activate(),t?(a.f|=_e,qn(a,t)):(a.f&8388608&&(a.f^=_e),qn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),gr(()=>{for(let e of s)e.reject(pn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function hn(e){let t=fn(e);return Gr(t),t}function gn(e){let t=fn(e);return t.equals=ut,t}function _n(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function vn(e){var t,n=q,r=e.parent;if(!Vr&&r!==null&&e.v!==T&&r.f&24576)return $e(),e.v;Ur(r);try{e.f&=~me,_n(e),t=ei(e)}finally{Ur(n)}return t}function yn(e){var t=vn(e);if(!e.equals(t)&&(e.wv=Zr(),(!P?.is_fork||e.deps===null)&&(P===null?e.v=t:(P.capture(e,t,!0),Cn?.capture(e,t,!0)),e.deps===null))){N(e,C);return}Vr||(F===null?Pt(e):(hr()||P?.is_fork)&&F.set(e,t))}function bn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&tn(()=>{t.ac.abort(De),t.ac=null}),t.fn!==null&&(t.teardown=S),ni(t,0),Ar(t))}function xn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&ri(t)}var Sn=null,P=null,Cn=null,F=null,wn=null,Tn=!1,En=!1,Dn=null,On=null,kn=0,An=1,jn=class e{id=An++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Sn===null?Sn=this:(Sn.#n=this,this.#t=Sn),Sn=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)N(r,w),t(r);for(r of n.m)N(r,ie),t(r)}this.#p.add(e)}#g(){this.#e=!0,kn++>1e3&&(this.#x(),Nn());for(let e of this.#u)this.#d.delete(e),N(e,w),this.schedule(e);for(let e of this.#d)N(e,ie),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Dn=[],r=[],i=On=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw zn(e),this.#h()||this.discard(),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Dn=null,On=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Rn(e,t);i.length>0&&P.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Cn=this,Fn(r),Fn(n),Cn=null,this.#s?.resolve();var s=P;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(I.clear(),s.#g())}#_(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):Qr(r)&&(i&16&&this.#d.add(r),ri(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),N(i,w),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),P=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)It(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==T&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),F?.set(e,t)),this.is_fork||(e.v=t)}activate(){P=this}deactivate(){P=null,F=null}flush(){try{En=!0,P=this,this.#g()}finally{kn=0,wn=null,Dn=null,On=null,En=!1,P=null,F=null,I.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(pn);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,M(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=te()).promise}static ensure(){if(P===null){let t=P=new e;!En&&!Tn&&M(()=>{t.#e||t.flush()})}return P}apply(){F=null}schedule(e){if(wn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Dn!==null&&t===q&&(W===null||!(W.f&2))&&!Ut)return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Sn=e:t.#t=e,this.linked=!1}}};function Mn(e){var t=Tn;Tn=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(At(),P===null)return n;P.flush()}}finally{Tn=t}}function Nn(){try{Le()}catch(e){Mt(e,wn)}}var Pn=null;function Fn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Qr(r)&&(Pn=new Set,ri(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Nr(r),Pn?.size>0)){I.clear();for(let e of Pn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Pn.has(n)&&(Pn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ri(n)}}Pn.clear()}}Pn=null}}function In(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?In(n,t):e&131072&&(N(n,w),t.add(n))}}function Ln(e){P.schedule(e)}function Rn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,C);for(var n=e.first;n!==null;)Rn(n,t),n=n.next}}function zn(e){N(e,C);for(var t=e.first;t!==null;)zn(t),t=t.next}function Bn(e){ke(`fork`),P!==null&&ze();var t=jn.ensure();t.is_fork=!0,F=new Map;var n=!1,r=t.settled();return Mn(e),{commit:async()=>{if(n){await r;return}t.linked||Re(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Zr();Mn(()=>{var e=new Set;for(var n of t.current.keys())In(n,e);Hn(e),Jn()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Zr();!n&&t.linked&&t.discard()}}}var Vn=new Set,I=new Map;function Hn(e){Vn=e}var Un=!1;function Wn(e,t){return{f:0,v:e,reactions:null,equals:ct,rv:0,wv:0}}function Gn(e,t){let n=Wn(e,t);return Gr(n),n}function Kn(e,t=!1,n=!0){let r=Wn(e);return t||(r.equals=ut),dt&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function L(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Dt()&&W.f&4325394&&(Wr===null||!Wr.has(e))&&Ke(),qn(e,n?Zn(t):t,On)}function qn(e,t,n=null){if(!e.equals(t)){Vr?I.set(e,t):I.has(e)||I.set(e,e.v);var r=jn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&vn(t),F===null&&Pt(t)}e.wv=Zr(),Xn(e,w,n),Dt()&&q!==null&&q.f&1024&&!(q.f&96)&&(X===null?Kr([e]):X.push(e)),!r.is_fork&&Vn.size>0&&!Un&&Jn()}return t}function Jn(){Un=!1;for(let e of Vn){e.f&1024&&N(e,ie);let t;try{t=Qr(e)}catch{t=!0}t&&ri(e)}Vn.clear()}function Yn(e){L(e,e.v+1)}function Xn(e,t,n){var r=e.reactions;if(r!==null)for(var i=Dt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&w)===0;if(l&&N(s,t),c&131072)Vn.add(s);else if(c&2){var u=s;F?.delete(u),c&65536||(c&512&&(q===null||!(q.f&2097152))&&(s.f|=me),Xn(u,ie,n))}else if(l){var d=s;c&16&&Pn!==null&&Pn.add(d),n===null?Ln(d):n.push(d)}}}}function Zn(e){if(typeof e!=`object`||!e||ve in e)return e;let t=y(e);if(t!==_&&t!==v)return e;var n=new Map,r=u(e),i=Gn(0),a=null,o=Yr,s=e=>{if(Yr===o)return e();var t=W,n=Yr;K(null),Xr(o);var r=e();return K(t),Xr(n),r};return r&&n.set(`length`,Gn(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&We();var i=n.get(t);return i===void 0?s(()=>{var e=Gn(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>Gn(T,a));n.set(t,e),Yn(i)}}else L(r,T),Yn(i);return!0},get(t,r,i){if(r===ve)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||h(t,r)?.writable)&&(o=s(()=>Gn(Zn(c?t[r]:T),a)),n.set(r,o)),o!==void 0){var l=Z(o);return l===T?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==T)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===ve)return!0;var r=n.get(t),i=r!==void 0&&r.v!==T||Reflect.has(e,t);return(r!==void 0||q!==null&&(!i||h(e,t)?.writable))&&(r===void 0&&(r=s(()=>Gn(i?Zn(e[t]):T,a)),n.set(t,r)),Z(r)===T)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>Gn(T,a)),n.set(d+``,f)):L(f,T)}if(l===void 0)(!u||h(e,t)?.writable)&&(l=s(()=>Gn(void 0,a)),L(l,Zn(o)),n.set(t,l));else{u=l.v!==T;var p=s(()=>Zn(o));L(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&L(g,_+1)}Yn(i)}return!0},ownKeys(e){Z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==T});for(var[r,a]of n)a.v!==T&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ge()}})}function Qn(e){try{if(typeof e==`object`&&e&&ve in e)return e[ve]}catch{}return e}function $n(e,t){return Object.is(Qn(e),Qn(t))}var er,tr,nr,rr,ir;function ar(){if(er===void 0){er=window,tr=document,nr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rr=h(t,`firstChild`).get,ir=h(t,`nextSibling`).get,b(e)&&(e[Ce]=void 0,e[Se]=null,e[we]=void 0,e.__e=void 0),b(n)&&(n[Te]=void 0)}}function R(e=``){return document.createTextNode(e)}function z(e){return rr.call(e)}function B(e){return ir.call(e)}function or(e,t){if(!E)return z(e);var n=z(O);if(n===null)n=O.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),k(r),r}return t&&fr(n),k(n),n}function sr(e,t=!1){if(!E){var n=z(e);return n instanceof Comment&&n.data===``?B(n):n}if(t){if(O?.nodeType!==3){var r=R();return O?.before(r),k(r),r}fr(O)}return O}function cr(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=B(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),k(a),a}fr(r)}return k(r),r}function lr(e){e.textContent=``}function ur(){return!1}function dr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function fr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function pr(e){q===null&&(W===null&&Ie(e),Fe()),Vr&&Pe(e)}function mr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=ae);var r={ctx:j,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)Dn===null?jn.ensure().schedule(r):Dn.push(r);else if(t!==null){try{ri(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=le))}if(i!==null&&(i.parent=n,n!==null&&mr(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function hr(){return W!==null&&!G}function gr(e){let t=V(8,null);return N(t,C),t.teardown=e,t}function _r(e){pr(`$effect`);var t=q.f;if(!W&&t&32&&j!==null&&!j.i){var n=j;(n.e??=[]).push(e)}else return vr(e)}function vr(e){return V(4|fe,e)}function yr(e){return pr(`$effect.pre`),V(8|fe,e)}function br(e){jn.ensure();let t=V(64|de,e);return()=>{U(t)}}function xr(e){jn.ensure();let t=V(64|de,e);return(e={})=>new Promise(n=>{e.outro?Pr(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function Sr(e){return V(4,e)}function Cr(e){return V(ge|de,e)}function wr(e,t=0){return V(8|t,e)}function Tr(e,t=[],n=[],r=[]){cn(r,t,n,t=>{V(8,()=>{e(...t.map(Z))})})}function Er(e,t=[],n=[],r=[]){cn(r,t,n,t=>{V(4,()=>e(...t.map(Z)))})}function Dr(e,t=0){return V(16|t,e)}function Or(e,t=0){return V(re|t,e)}function H(e){return V(32|de,e)}function kr(e){var t=e.teardown;if(t!==null){let e=Vr,n=W;Hr(!0),K(null);try{t.call(null)}finally{Hr(e),K(n)}}}function Ar(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&tn(()=>{e.abort(De)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function jr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Mr(e.nodes.start,e.nodes.end),n=!0),e.f|=ce,Ar(e,t&&!n),ni(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();kr(e),e.f^=ce,e.f|=oe;var i=e.parent;i!==null&&i.first!==null&&Nr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Mr(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function Nr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Pr(e,t,n=!0){var r=[];Fr(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Fr(e,t,n){if(!(e.f&8192)){e.f^=ae;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Fr(i,t,o?n:!1)}i=a}}}function Ir(e){Lr(e,!0)}function Lr(e,t){if(e.f&8192){e.f^=ae,e.f&1024||(N(e,w),jn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Lr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Rr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:B(n);t.append(n),n=i}}var zr=null,Br=!1,Vr=!1;function Hr(e){Vr=e}var W=null,G=!1;function K(e){W=e}var q=null;function Ur(e){q=e}var Wr=null;function Gr(e){W!==null&&(Wr??=new Set).add(e)}var J=null,Y=0,X=null;function Kr(e){X=e}var qr=1,Jr=0,Yr=Jr;function Xr(e){Yr=e}function Zr(){return++qr}function Qr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~me),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Qr(a)&&yn(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,C)}return!1}function $r(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Wr!==null&&Wr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?$r(a,t,!1):t===a&&(n?N(a,w):a.f&1024&&N(a,ie),Ln(a))}}function ei(e){var t=J,n=Y,r=X,i=W,a=Wr,o=j,s=G,c=Yr,l=e.f;J=null,Y=0,X=null,W=l&96?null:e,Wr=null,yt(e.ctx),G=!1,Yr=++Jr,e.ac!==null&&(tn(()=>{e.ac.abort(De)}),e.ac=null);try{e.f|=he;var u=e.fn,d=u();e.f|=se;var f=e.deps,p=P?.is_fork;if(J!==null){var m;if(p||ni(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(hr()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Y<f.length&&(ni(e,Y),f.length=Y);if(Dt()&&X!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)$r(X[m],e);if(i!==null&&i!==e){if(Jr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Jr;if(t!==null)for(let e of t)e.rv=Jr;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=_e),d}catch(e){return jt(e)}finally{e.f^=he,J=t,Y=n,X=r,W=i,Wr=a,yt(o),G=s,Yr=c}}function ti(e,t){let n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(J===null||!f.call(J,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~me),a.v!==T&&Pt(a),a.ac!==null&&tn(()=>{a.ac.abort(De),a.ac=null,N(a,w)}),bn(a),ni(a,0)}}function ni(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ti(e,n[r])}function ri(e){var t=e.f;if(!(t&16384)){N(e,C);var n=q,r=Br;q=e,Br=!(t&96);try{t&16777232?jr(e):Ar(e),kr(e);var i=ei(e);e.teardown=typeof i==`function`?i:null,e.wv=qr}finally{Br=r,q=n}}}async function ii(){await Promise.resolve(),Mn()}function ai(){return jn.ensure().settled()}function Z(e){var t=!!(e.f&2);if(zr?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Wr===null||!Wr.has(e))){var n=W.deps;if(W.f&2097152)e.rv<Jr&&(e.rv=Jr,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{W.deps??=[],f.call(W.deps,e)||W.deps.push(e);var r=e.reactions;r===null?e.reactions=[W]:f.call(r,W)||r.push(W)}}if(Vr&&I.has(e))return I.get(e);if(t){var i=e;if(Vr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||si(i))&&(a=vn(i)),I.set(i,a),a}var o=!(i.f&512)&&!G&&W!==null&&(Br||!!(W.f&512)),s=(i.f&se)===0;Qr(i)&&(o&&(i.f|=512),yn(i)),o&&!s&&(xn(i),oi(i))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function oi(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(xn(t),oi(t))}function si(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(I.has(t)||t.f&2&&si(t))return!0;return!1}function Q(e){var t=G;try{return G=!0,e()}finally{G=t}}function ci(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ve in e)li(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ve in n&&li(n)}}}function li(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{li(e[n],t)}catch{}let n=y(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=g(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function ui(){return Symbol(Qe)}function di(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var fi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function pi(e){return fi.includes(e)}var mi=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),hi={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function gi(e){return e=e.toLowerCase(),hi[e]??e}[...mi];var _i=[`touchstart`,`touchmove`];function vi(e){return _i.includes(e)}var yi=[`textarea`,`script`,`style`,`title`];function bi(e){return yi.includes(e)}var xi=Symbol(`events`),Si=new Set,Ci=new Set;function wi(e,t,n,r={}){function i(e){if(r.capture||ji.call(t,e),!e.cancelBubble)return tn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?M(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ti(e,t,n,r={}){var i=wi(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function Ei(e,t,n,r,i){var a={capture:r,passive:i},o=wi(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&gr(()=>{t.removeEventListener(e,o,a)})}function Di(e,t,n){(t[xi]??={})[e]=n}function Oi(e){for(var t=0;t<e.length;t++)Si.add(e[t]);for(var n of Ci)n(e)}var ki=null,Ai=!1;function ji(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ki=e,Ai||(Ai=!0,setTimeout(()=>{Ai=!1,ki=null}));var o=0,s=ki===e&&e[xi];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[xi]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){m(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=W,d=q;K(null),Ur(null);try{for(var f,p=[];a!==null&&a!==t;){try{var h=a[xi]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[xi]=t,delete e.currentTarget,K(u),Ur(d)}}}var Mi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Ni(e){return Mi?.createHTML(e)??e}function Pi(e){var t=dr(`template`);return t.innerHTML=Ni(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Fi(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return $(O,null),O;i===void 0&&(i=Pi(a?e:`<!>`+e),n||(i=z(i)));var t=r||nr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=z(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function Ii(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return $(O,null),O;if(!o){var e=z(Pi(a));if(i)for(o=document.createDocumentFragment();z(e);)o.appendChild(z(e));else o=z(e)}var t=o.cloneNode(!0);if(i){var n=z(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function Li(e,t){return Ii(e,t,`svg`)}function Ri(e=``){if(!E){var t=R(e+``);return $(t,t),t}var n=O;return n.nodeType===3?fr(n):(n.before(n=R()),k(n)),$(n,n),n}function zi(){if(E)return $(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),$(t,n),e}function Bi(e,t){if(E){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),A();return}e!==null&&e.before(t)}function Vi(){if(E&&O&&O.nodeType===8&&O.textContent?.startsWith(`$`)){let e=O.textContent.substring(1);return A(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Hi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Te]??=e.nodeValue)&&(e[Te]=n,e.nodeValue=`${n}`)}function Ui(e,t){return Ki(e,t)}function Wi(e,t){ar(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=z(n);a&&(a.nodeType!==8||a.data!==`[`);)a=B(a);if(!a)throw Je;D(!0),k(a);let r=Ki(e,{...t,anchor:a});return D(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Je&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ve(),ar(),lr(n),D(!1),Ui(e,t)}finally{D(r),k(i)}}var Gi=new Map;function Ki(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){ar();var c=void 0,l=xr(()=>{var o=n??t.appendChild(R());on(o,{pending:()=>{}},t=>{Tt({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),E&&$(t,null),c=e(t,r)||{},E&&(q.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw tt(),Je;Et()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=vi(r);for(let e of[t,document]){var a=Gi.get(e);a===void 0&&(a=new Map,Gi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ji,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(p(Si)),Ci.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=Gi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ji),r.delete(e),r.size===0&&Gi.delete(n)):r.set(e,i)}Ci.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return qi.set(c,l),c}var qi=new WeakMap;function Ji(e,t){let n=qi.get(e);return n?(qi.delete(e),n(t)):Promise.resolve()}var Yi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Ir(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Ir(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(U(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Rr(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Pr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=ur();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}};function Xi(e,t,n=!1){var r;E&&(r=O,A());var i=new Yi(e),a=n?le:0;function o(e,t){if(E){var n=st(r);if(e!==parseInt(n.substring(1))){var a=ot();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}Dr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Zi=Symbol(`NaN`);function Qi(e,t,n){E&&A();var r=new Yi(e),i=!Dt();Dr(()=>{var e=t();e!==e&&(e=Zi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function $i(e,t){return t}function ea(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Pr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;ta(e,p(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;lr(u),u.append(l),e.items.clear()}ta(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function ta(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=pe,Rr(a,document.createDocumentFragment())):U(t[i],n)}}var na;function ra(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=E?k(z(c)):c.appendChild(R())}E&&A();var l=null,d=gn(()=>{var e=n();return u(e)?e:e==null?[]:p(e)}),f,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,aa(v,f,o,t,r),l!==null&&(f.length===0?l.f&33554432?(l.f^=pe,sa(l,null,o)):Ir(l):Pr(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:Dr(()=>{f=Z(d);var e=f.length;let c=!1;E&&st(o)===`[!`!=(e===0)&&(o=ot(),k(o),D(!1),c=!0);for(var u=new Set,p=P,v=ur(),y=0;y<e;y+=1){E&&O.nodeType===8&&O.data===`]`&&(o=O,c=!0,D(!1));var b=f[y],x=r(b,y),S=h?null:s.get(x);S?(S.v&&qn(S.v,b),S.i&&qn(S.i,y),v&&p.unskip_effect(S.e)):(S=oa(s,h?o:na??=R(),b,x,y,i,t,n),h||(S.e.f|=pe),s.set(x,S)),u.add(x)}if(e===0&&a&&!l&&(h?l=H(()=>a(o)):(l=H(()=>a(na??=R())),l.f|=pe)),e>u.size&&Ne(``,``,``),E&&e>0&&k(ot()),!h){if(m.set(p,u),v){for(let[e,t]of s)u.has(e)||p.skip_effect(t.e);p.oncommit(g),p.ondiscard(_)}else g(p)}c&&D(!0),Z(d)}),flags:t,items:s,pending:m,outrogroups:null,fallback:l};h=!1,E&&(o=O)}function ia(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function aa(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=ia(e.effect.first),l,u=null,d,f=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Ir(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432){if(_.f^=pe,_===c)sa(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),ca(e,u,_),ca(e,_,y),sa(_,y,n),u=_,f=[],m=[],c=ia(u.next);continue}}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<m.length){var b=m[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)sa(f[x],b,n);for(x=0;x<m.length;x+=1)l.delete(m[x]);ca(e,S.prev,ee.next),ca(e,u,S),ca(e,ee,b),c=b,u=ee,--v,f=[],m=[]}else l.delete(_),sa(_,c,n),ca(e,_.prev,_.next),ca(e,_,u===null?e.effect.first:u.next),ca(e,u,_),u=_;continue}for(f=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=ia(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=ia(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(ta(e,p(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(_ of l)_.f&8192||te.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=ia(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}ea(e,te,re)}}a&&M(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function oa(e,t,n,r,i,a,o,s){var c=o&1?o&16?Wn(n):Kn(n,!1,!1):null,l=o&2?Wn(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function sa(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=B(r);if(a.before(r),r===i)return;r=o}}function ca(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function la(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=k(z(c)))}Tr(()=>{var e=q;if(s===(s=t()??``)){E&&A();return}if(n&&!E){e.nodes=null,c.innerHTML=s,s!==``&&$(z(c),c.lastChild);return}if(e.nodes!==null&&(Mr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(E){for(var a=O.data,l=A(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=B(l);if(l===null)throw tt(),Je;$(O,u),o=k(l);return}var d=dr(r?`svg`:i?`math`:`template`,r?Xe:i?Ze:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(z(f),f.lastChild),r||i)for(;z(f);)o.before(z(f));else o.before(f)}})}function ua(e,t,...n){var r=new Yi(e);Dr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},le)}function da(e){return(t,...n)=>{var r=e(...n),i;E?(i=O,A()):(i=z(Pi(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&gr(a)}}function fa(e,t,n){var r;E&&(r=O,A());var i=new Yi(e);Dr(()=>{var e=t()??null;if(E&&st(r)===`[`!=(e!==null)){var a=ot();k(a),i.anchor=a,D(!1),i.ensure(e,e&&(t=>n(t,e))),D(!0);return}i.ensure(e,e&&(t=>n(t,e)))},le)}function pa(e,t,n,r,i,a){let o=E;E&&A();var s=null;E&&O.nodeType===1&&(s=O,A());var c=E?O:e,l=new Yi(c,!1);Dr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Xe:void 0;if(e===null){l.ensure(null,null);return}return l.ensure(e,t=>{if(e){if(s=E?s:dr(e,a),$(s,s),r){var n=null;E&&bi(e)&&s.append(n=document.createComment(``));var i=E?z(s):s.appendChild(R());E&&(i===null?D(!1):k(i)),r(s,i),n?.remove()}q.nodes.end=s,t.before(s)}E&&k(t)}),()=>{}},le),gr(()=>{}),o&&(D(!0),k(c))}function ma(e,t){let n=null,r=E;var i;if(E){n=O;for(var a=z(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=B(a);if(a===null)D(!1);else{var o=B(a);a.remove(),k(o)}}E||(i=document.head.appendChild(R()));try{Dr(()=>{var e=H(()=>t(i));e.f|=ue})}finally{r&&(D(!0),k(n))}}function ha(e,t,n){Sr(()=>{var r=Q(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};wr(()=>{var e=n();ci(e),i&<(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function ga(e,t){var n=void 0,r;Or(()=>{n!==(n=t())&&(r&&=(U(r),null),n&&(r=H(()=>{Sr(()=>n(e))})))})}function _a(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_a(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function va(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_a(e))&&(r&&(r+=` `),r+=t);return r}function ya(e){return typeof e==`object`?va(e):e??``}var ba=[...`
|
|
3
|
+
\r\f\xA0\v`];function xa(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ba.includes(r[o-1]))&&(s===r.length||ba.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Sa(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Ca(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function wa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Ca)),i&&c.push(...Object.keys(i).map(Ca));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Ca(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Sa(r)),i&&(n+=Sa(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Ta(e,t,n,r,i,a){var o=e[Ce];if(E||o!==n||o===void 0){var s=xa(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Ce]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Ea(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Da(e,t,n,r){var i=e[we];if(E||i!==t){var a=wa(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[we]=t}else r&&(Array.isArray(r)?(Ea(e,n?.[0],r[0]),Ea(e,n?.[1],r[1],`important`)):Ea(e,n,r));return r}function Oa(e,t,n=!1){if(e.multiple){if(t==null)return;if(!u(t))return nt();for(var r of e.options)r.selected=t.includes(Aa(r));return}for(r of e.options)if($n(Aa(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ka(e){var t=new MutationObserver(()=>{`__value`in e&&Oa(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),gr(()=>{t.disconnect()})}function Aa(e){return`__value`in e?e.__value:e.value}var ja=Symbol(`class`),Ma=Symbol(`style`),Na=Symbol(`is custom element`),Pa=Symbol(`is html`),Fa=Oe?`link`:`LINK`,Ia=Oe?`input`:`INPUT`,La=Oe?`option`:`OPTION`,Ra=Oe?`select`:`SELECT`;function za(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Va(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Va(e,`checked`,null),e.checked=r}}};e[Ee]=n,M(n),en()}}function Ba(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Va(e,t,n,r){var i=Wa(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Fa)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[be]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ka(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ha(e,t,n,r,i=!1,a=!1){if(E&&i&&e.nodeName===Ia){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||za(o)}var s=Wa(e),c=s[Na],l=!s[Pa];let u=E&&c;u&&D(!1);var d=t||{},f=e.nodeName===La;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=ya(n.class):(r||n[ja])&&(n.class=null),n[Ma]&&(n.style??=null);var m=Ka(e);if(e.nodeName===Ia&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,Va(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){Ta(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[ja],n[ja]),d[i]=o,d[ja]=n[ja];continue}if(i===`style`){Da(e,o,t?.[Ma],n[Ma]),d[i]=o,d[Ma]=n[Ma];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=pi(r);if(di(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)Di(r,e,o),Oi([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=wi(r,e,a,t)}}else if(i===`style`)Va(e,i,o);else if(i===`autofocus`)Qt(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Ba(e,o);else{var y=i;l||(y=gi(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b){if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||m.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=T)):typeof o!=`function`&&Va(e,y,o,a)}}}}return u&&D(!0),d}function Ua(e,t,n=[],r=[],i=[],a,o=!1,s=!1){cn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ra,l=!1;if(Or(()=>{var u=t(...n.map(Z)),d=Ha(e,r,u,a,o,s);l&&c&&`value`in u&&Oa(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||U(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&U(i[t]),i[t]=H(()=>ga(e,()=>f))),d[t]=f}r=d}),c){var u=e;Sr(()=>{Oa(u,r.value,!0),ka(u)})}l=!0})}function Wa(e){return e[Se]??={[Na]:e.nodeName.includes(`-`),[Pa]:e.namespaceURI===Ye}}var Ga=new Map;function Ka(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ga.get(t);if(n)return n;Ga.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=g(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=y(i)}return n}function qa(e,t,n=t){var r=new WeakSet;nn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ja(e)?Ya(a):a,n(a),P!==null&&r.add(P),await ii(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(n(Ja(e)?Ya(e.value):e.value),P!==null&&r.add(P)),wr(()=>{var n=t();if(e===document.activeElement){var i=P;if(r.has(i))return}Ja(e)&&n===Ya(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ja(e){var t=e.type;return t===`number`||t===`range`}function Ya(e){return e===``?null:+e}function Xa(e,t,n=t){nn(e,`change`,()=>{n(e.files)}),E&&e.files&&n(e.files),wr(()=>{e.files=t()})}var Za=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function Qa(e,t,n){var r=Za.observe(e,()=>n(e[t]));Sr(()=>(Q(()=>n(e[t])),r))}function $a(e,t){return e===t||e?.[ve]===t}function eo(e={},t,n,r){var i=j.r,a=q;return Sr(()=>{var o,s;return wr(()=>{o=s,s=r?.()||[],Q(()=>{$a(n(...s),e)||(t(e,...s),o&&$a(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&$a(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var to={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function no(e,t,n){return new Proxy({props:e,exclude:t},to)}var ro={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(x(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];x(i)&&(i=i());let a=h(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(x(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=h(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===ve||t===ye)return!1;for(let n of e.props)if(x(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(x(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function io(...e){return new Proxy({props:e},ro)}function ao(e,t,n,r){var i=!dt||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=fn(r),Z(l)):(c&&(c=!1,s=o?Q(r):r),s);let d;if(a){var f=ve in e||ye in e;d=h(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Zt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Ue(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||m)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?fn:gn)(()=>(v=!1,g()));a&&Z(y);var b=q;return(function(e,t){if(arguments.length>0){let n=t?Z(y):i&&a?Zn(e):e;return L(y,n),v=!0,s!==void 0&&(s=n),e}return Vr&&v||b.f&16384?y.v:Z(y)})}function oo(e){return class extends so{constructor(t){super({component:e,...t})}}}var so=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Kn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ye||(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Wi:Ui)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Mn(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&m(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Ji(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function co(e,t){if(ke(`hydratable`),E){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);et(e)}return t()}var lo=s({afterUpdate:()=>_o,beforeUpdate:()=>go,createContext:()=>bt,createEventDispatcher:()=>ho,createRawSnippet:()=>da,flushSync:()=>Mn,fork:()=>Bn,getAbortSignal:()=>uo,getAllContexts:()=>wt,getContext:()=>xt,hasContext:()=>Ct,hydratable:()=>co,hydrate:()=>Wi,mount:()=>Ui,onDestroy:()=>po,onMount:()=>fo,setContext:()=>St,settled:()=>ai,tick:()=>ii,unmount:()=>Ji,untrack:()=>Q});function uo(){return W===null&&Be(),(W.ac??=new AbortController).signal}function fo(e){j===null&&Ae(`onMount`),dt&&j.l!==null?vo(j).m.push(e):_r(()=>{let t=Q(e);if(typeof t==`function`)return t})}function po(e){j===null&&Ae(`onDestroy`),fo(()=>()=>Q(e))}function mo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ho(){let e=j;return e===null&&Ae(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=u(i)?i.slice():[i],o=mo(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function go(e){j===null&&Ae(`beforeUpdate`),j.l===null&&He(`beforeUpdate`),vo(j).b.push(e)}function _o(e){j===null&&Ae(`afterUpdate`),j.l===null&&He(`afterUpdate`),vo(j).a.push(e)}function vo(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{sr as $,Fi as A,ai as B,ra as C,at as Ct,Hi as D,o as Dt,Xi as E,ne as Et,Di as F,Sr as G,Q as H,Ei as I,_r as J,br as K,Ti as L,Vi as M,Ri as N,Bi as O,s as Ot,Oi as P,or as Q,ui as R,la as S,ft as St,Qi as T,S as Tt,Yr as U,ii as V,Er as W,tr as X,yr as Y,er as Z,ha as _,Et as _t,no as a,Gn as at,fa as b,ht as bt,Qa as c,Xt as ct,Ua as d,qt as dt,cr as et,Va as f,Vt as ft,va as g,Ct as gt,ya as h,xt as ht,ao as i,Wn as it,Li as j,zi as k,l as kt,Xa as l,Jt as lt,Ta as m,Bt as mt,fo as n,Yn as nt,io as o,hn as ot,Da as p,Ht as pt,Tr as q,oo as r,L as rt,eo as s,rn as st,lo as t,Zn as tt,qa as u,Kt as ut,ma as v,Tt as vt,$i as w,it as wt,ua as x,pt as xt,pa as y,St as yt,Z as z};
|