@atom.io/template-preact-svg-editor 0.0.30 → 0.0.32
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @atom.io/template-preact-svg-editor@0.0.
|
|
2
|
+
> @atom.io/template-preact-svg-editor@0.0.32 build /home/runner/work/wayforge/wayforge/templates/preact-svg-editor
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v7.3.0 [32mbuilding client environment for production...[36m[39m
|
|
@@ -9,5 +9,5 @@ rendering chunks...
|
|
|
9
9
|
computing gzip size...
|
|
10
10
|
[2mdist/[22m[32mindex.html [39m[1m[2m 0.52 kB[22m[1m[22m[2m │ gzip: 0.33 kB[22m
|
|
11
11
|
[2mdist/[22m[2massets/[22m[35mindex-jy4_OpZh.css [39m[1m[2m 1.60 kB[22m[1m[22m[2m │ gzip: 0.72 kB[22m
|
|
12
|
-
[2mdist/[22m[2massets/[22m[36mindex-
|
|
13
|
-
[32m✓ built in
|
|
12
|
+
[2mdist/[22m[2massets/[22m[36mindex-CAyWNAmp.js [39m[1m[2m73.34 kB[22m[1m[22m[2m │ gzip: 23.61 kB[22m
|
|
13
|
+
[32m✓ built in 763ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atom.io/template-preact-svg-editor
|
|
2
2
|
|
|
3
|
+
## 0.0.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [efcba16]
|
|
8
|
+
- Updated dependencies [efcba16]
|
|
9
|
+
- Updated dependencies [efcba16]
|
|
10
|
+
- atom.io@0.46.11
|
|
11
|
+
|
|
12
|
+
## 0.0.31
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [7aa3138]
|
|
17
|
+
- atom.io@0.46.10
|
|
18
|
+
|
|
3
19
|
## 0.0.30
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var Me,h,Gt,W,mt,Bt,Jt,Yt,ot,ze,Ge,qt,se={},Zt=[],Hn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ye=Array.isArray;function N(e,t){for(var n in t)e[n]=t[n];return e}function rt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Be(e,t,n){var o,r,s,i={};for(s in t)s=="key"?o=t[s]:s=="ref"?r=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Me.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return ke(e,i,o,r,null)}function ke(e,t,n,o,r){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++Gt,__i:-1,__u:0};return r==null&&h.vnode!=null&&h.vnode(s),s}function K(e){return e.children}function D(e,t){this.props=e,this.context=t}function X(e,t){if(t==null)return e.__?X(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?X(e):null}function Xt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Xt(e)}}function Je(e){(!e.__d&&(e.__d=!0)&&W.push(e)&&!Ce.__r++||mt!=h.debounceRendering)&&((mt=h.debounceRendering)||Bt)(Ce)}function Ce(){for(var e,t,n,o,r,s,i,l=1;W.length;)W.length>l&&W.sort(Jt),e=W.shift(),l=W.length,e.__d&&(n=void 0,o=void 0,r=(o=(t=e).__v).__e,s=[],i=[],t.__P&&((n=N({},o)).__v=o.__v+1,h.vnode&&h.vnode(n),st(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,s,r??X(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,tn(s,n,i),o.__e=o.__=null,n.__e!=r&&Xt(n)));Ce.__r=0}function Qt(e,t,n,o,r,s,i,l,c,u,f){var a,d,_,p,y,w,m,g=o&&o.__k||Zt,R=t.length;for(c=Wn(n,t,g,c,R),a=0;a<R;a++)(_=n.__k[a])!=null&&(d=_.__i==-1?se:g[_.__i]||se,_.__i=a,w=st(e,_,d,r,s,i,l,c,u,f),p=_.__e,_.ref&&d.ref!=_.ref&&(d.ref&&it(d.ref,null,_),f.push(_.ref,_.__c||p,_)),y==null&&p!=null&&(y=p),(m=!!(4&_.__u))||d.__k===_.__k?c=en(_,c,e,m):typeof _.type=="function"&&w!==void 0?c=w:p&&(c=p.nextSibling),_.__u&=-7);return n.__e=y,c}function Wn(e,t,n,o,r){var s,i,l,c,u,f=n.length,a=f,d=0;for(e.__k=new Array(r),s=0;s<r;s++)(i=t[s])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=e.__k[s]=ke(null,i,null,null,null):ye(i)?i=e.__k[s]=ke(K,{children:i},null,null,null):i.constructor==null&&i.__b>0?i=e.__k[s]=ke(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[s]=i,c=s+d,i.__=e,i.__b=e.__b+1,(u=i.__i=zn(i,n,c,a))!=-1&&(a--,(l=n[u])&&(l.__u|=2)),l==null||l.__v==null?(u==-1&&(r>f?d--:r<f&&d++),typeof i.type!="function"&&(i.__u|=4)):u!=c&&(u==c-1?d--:u==c+1?d++:(u>c?d--:d++,i.__u|=4))):e.__k[s]=null;if(a)for(s=0;s<f;s++)(l=n[s])!=null&&(2&l.__u)==0&&(l.__e==o&&(o=X(l)),on(l,l));return o}function en(e,t,n,o){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=en(r[s],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=X(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Te(e,t){return t=t||[],e==null||typeof e=="boolean"||(ye(e)?e.some(function(n){Te(n,t)}):t.push(e)),t}function zn(e,t,n,o){var r,s,i,l=e.key,c=e.type,u=t[n],f=u!=null&&(2&u.__u)==0;if(u===null&&l==null||f&&l==u.key&&c==u.type)return n;if(o>(f?1:0)){for(r=n-1,s=n+1;r>=0||s<t.length;)if((u=t[i=r>=0?r--:s++])!=null&&(2&u.__u)==0&&l==u.key&&c==u.type)return i}return-1}function gt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Hn.test(t)?n:n+"px"}function be(e,t,n,o,r){var s,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||gt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||gt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Yt,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?o?n.u=o.u:(n.u=ot,e.addEventListener(t,s?Ge:ze,s)):e.removeEventListener(t,s?Ge:ze,s);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function bt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ot++;else if(t.t<n.u)return;return n(h.event?h.event(t):t)}}}function st(e,t,n,o,r,s,i,l,c,u){var f,a,d,_,p,y,w,m,g,R,M,I,oe,ht,ge,re,Fe,A=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),s=[l=t.__e=n.__e]),(f=h.__b)&&f(t);e:if(typeof A=="function")try{if(m=t.props,g="prototype"in A&&A.prototype.render,R=(f=A.contextType)&&o[f.__c],M=f?R?R.props.value:f.__:o,n.__c?w=(a=t.__c=n.__c).__=a.__E:(g?t.__c=a=new A(m,M):(t.__c=a=new D(m,M),a.constructor=A,a.render=Bn),R&&R.sub(a),a.state||(a.state={}),a.__n=o,d=a.__d=!0,a.__h=[],a._sb=[]),g&&a.__s==null&&(a.__s=a.state),g&&A.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=N({},a.__s)),N(a.__s,A.getDerivedStateFromProps(m,a.__s))),_=a.props,p=a.state,a.__v=t,d)g&&A.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),g&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(g&&A.getDerivedStateFromProps==null&&m!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(m,M),t.__v==n.__v||!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(m,a.__s,M)===!1){for(t.__v!=n.__v&&(a.props=m,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(J){J&&(J.__=t)}),I=0;I<a._sb.length;I++)a.__h.push(a._sb[I]);a._sb=[],a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(m,a.__s,M),g&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,p,y)})}if(a.context=M,a.props=m,a.__P=e,a.__e=!1,oe=h.__r,ht=0,g){for(a.state=a.__s,a.__d=!1,oe&&oe(t),f=a.render(a.props,a.state,a.context),ge=0;ge<a._sb.length;ge++)a.__h.push(a._sb[ge]);a._sb=[]}else do a.__d=!1,oe&&oe(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++ht<25);a.state=a.__s,a.getChildContext!=null&&(o=N(N({},o),a.getChildContext())),g&&!d&&a.getSnapshotBeforeUpdate!=null&&(y=a.getSnapshotBeforeUpdate(_,p)),re=f,f!=null&&f.type===K&&f.key==null&&(re=nn(f.props.children)),l=Qt(e,ye(re)?re:[re],t,n,o,r,s,i,l,c,u),a.base=t.__e,t.__u&=-161,a.__h.length&&i.push(a),w&&(a.__E=a.__=null)}catch(J){if(t.__v=null,c||s!=null)if(J.then){for(t.__u|=c?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,t.__e=l}else{for(Fe=s.length;Fe--;)rt(s[Fe]);Ye(t)}else t.__e=n.__e,t.__k=n.__k,J.then||Ye(t);h.__e(J,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=Gn(n.__e,t,n,o,r,s,i,c,u);return(f=h.diffed)&&f(t),128&t.__u?void 0:l}function Ye(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ye)}function tn(e,t,n){for(var o=0;o<n.length;o++)it(n[o],n[++o],n[++o]);h.__c&&h.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(s){s.call(r)})}catch(s){h.__e(s,r.__v)}})}function nn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:ye(e)?e.map(nn):N({},e)}function Gn(e,t,n,o,r,s,i,l,c){var u,f,a,d,_,p,y,w=n.props||se,m=t.props,g=t.type;if(g=="svg"?r="http://www.w3.org/2000/svg":g=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),s!=null){for(u=0;u<s.length;u++)if((_=s[u])&&"setAttribute"in _==!!g&&(g?_.localName==g:_.nodeType==3)){e=_,s[u]=null;break}}if(e==null){if(g==null)return document.createTextNode(m);e=document.createElementNS(r,g,m.is&&m),l&&(h.__m&&h.__m(t,s),l=!1),s=null}if(g==null)w===m||l&&e.data==m||(e.data=m);else{if(s=s&&Me.call(e.childNodes),!l&&s!=null)for(w={},u=0;u<e.attributes.length;u++)w[(_=e.attributes[u]).name]=_.value;for(u in w)if(_=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")a=_;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;be(e,u,null,_,r)}}for(u in m)_=m[u],u=="children"?d=_:u=="dangerouslySetInnerHTML"?f=_:u=="value"?p=_:u=="checked"?y=_:l&&typeof _!="function"||w[u]===_||be(e,u,_,w[u],r);if(f)l||a&&(f.__html==a.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(a&&(e.innerHTML=""),Qt(t.type=="template"?e.content:e,ye(d)?d:[d],t,n,o,g=="foreignObject"?"http://www.w3.org/1999/xhtml":r,s,i,s?s[0]:n.__k&&X(n,0),l,c),s!=null)for(u=s.length;u--;)rt(s[u]);l||(u="value",g=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[u]||g=="progress"&&!p||g=="option"&&p!=w[u])&&be(e,u,p,w[u],r),u="checked",y!=null&&y!=e[u]&&be(e,u,y,w[u],r))}return e}function it(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(r){h.__e(r,n)}}function on(e,t,n){var o,r;if(h.unmount&&h.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||it(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){h.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&on(o[r],t,n||typeof e.type!="function");n||rt(e.__e),e.__c=e.__=e.__e=void 0}function Bn(e,t,n){return this.constructor(e,n)}function Jn(e,t,n){var o,r,s,i;t==document&&(t=document.documentElement),h.__&&h.__(e,t),r=(o=!1)?null:t.__k,s=[],i=[],st(t,e=t.__k=Be(K,null,[e]),r||se,se,t.namespaceURI,r?null:t.firstChild?Me.call(t.childNodes):null,s,r?r.__e:t.firstChild,o,i),tn(s,e,i)}function Yn(e){function t(n){var o,r;return this.getChildContext||(o=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(i){i.__e=!0,Je(i)})},this.sub=function(s){o.add(s);var i=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),i&&i.call(s)}}),n.children}return t.__c="__cC"+qt++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}Me=Zt.slice,h={__e:function(e,t,n,o){for(var r,s,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),i=r.__d),i)return r.__E=r}catch(l){e=l}throw e}},Gt=0,D.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=N({},this.state),typeof e=="function"&&(e=e(N({},n),this.props)),e&&N(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Je(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Je(this))},D.prototype.render=K,W=[],Bt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jt=function(e,t){return e.__v.__b-t.__v.__b},Ce.__r=0,Yt=/(PointerCapture)$|Capture$/i,ot=0,ze=bt(!1),Ge=bt(!0),qt=0;var qn=0;function b(e,t,n,o,r,s){t||(t={});var i,l,c=t;if("ref"in c)for(l in c={},t)l=="ref"?i=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--qn,__i:-1,__u:0,__source:r,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(l in i)c[l]===void 0&&(c[l]=i[l]);return h.vnode&&h.vnode(u),u}function te(e){return JSON.parse(e)}const T=e=>JSON.stringify(e);function rn(e=Math.random){return e().toString(36).slice(2)}function v(e){for(;e.child!==null;)e=e.child;return e}function Zn(e){for(;e.parent!==null;)e=e.parent;return e}const Xn=/^\[object (?:Async|Generator|AsyncGenerator)?Function\]$/;function U(e){const t=Object.prototype.toString.call(e);return Xn.test(t)}function wt(e,t){return U(e)?e(t):e}var qe=class extends Promise{fate;resolve;reject;done=!1;constructor(e){let t,n;super((o,r)=>{t=o,n=r}),this.resolve=t,this.reject=n,this.use(e instanceof Promise?e:new Promise(e))}pass(e,t){e===this.fate&&(this.resolve(t),this.done=!0)}fail(e,t){e===this.fate&&(this.reject(t),this.done=!0)}use(e){if(this!==e)if(e instanceof Promise){const t=e;this.fate=t,t.then(n=>{this.pass(t,n)},n=>{this.fail(t,n)})}else this.resolve(e),this.fate=void 0}},S=class{Subscriber;subscribers=new Map;subscribe(e,t){return this.subscribers.set(e,t),()=>{this.unsubscribe(e)}}unsubscribe(e){this.subscribers.delete(e)}next(e){const t=this.subscribers.values();for(const n of t)n(e)}},Qn=class extends S{state;constructor(e){super(),this.state=e}next(e){this.state=e,super.next(e)}},eo=class sn{_buffer;_index=0;constructor(t){let n;typeof t=="number"?n=t:n=t.length,this._buffer=Array.from({length:n})}get buffer(){return this._buffer}get index(){return this._index}add(t){this._buffer[this._index]=t,this._index=(this._index+1)%this._buffer.length}copy(){const t=new sn([...this._buffer]);return t._index=this._index,t}};function Q(e){const t={key:e.key,type:e.type};return"family"in e&&(t.family=e.family),t}var E=class extends Map{deleted=new Set;changed=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e))return this.source.get(e)}set(e,t){return this.deleted.delete(e),this.source.has(e)&&this.changed.add(e),super.set(e,t)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)&&(this.deleted.add(e),this.changed.delete(e)),super.delete(e)}clear(){this.deleted=new Set(this.source.keys()),this.changed.clear(),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const[e,t]of this.source)!this.deleted.has(e)&&!this.changed.has(e)&&(yield[e,t])}*entries(){yield*this[Symbol.iterator]()}*keys(){yield*super.keys();for(const e of this.source.keys())!this.deleted.has(e)&&!this.changed.has(e)&&(yield e)}*values(){for(const[,e]of this[Symbol.iterator]())yield e}forEach(e){for(const[t,n]of this[Symbol.iterator]())e(n,t,this)}get size(){return super.size+this.source.size-this.changed.size-this.deleted.size}},ln=class extends Set{deleted=new Set;source;constructor(e){super(),this.source=e}add(e){return this.source.has(e)?(this.deleted.delete(e),this):super.add(e)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)?(this.deleted.add(e),!0):super.delete(e)}clear(){this.deleted=new Set(this.source),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const e of this.source)this.deleted.has(e)||(yield e)}*iterateOwn(){yield*super[Symbol.iterator]()}get size(){return super.size+this.source.size-this.deleted.size}},to=class extends Map{deleted=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e)){const t=new ln(this.source.get(e));return super.set(e,t),t}}set(e,t){return this.deleted.delete(e),super.set(e,t)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.deleted.add(e),super.delete(e)}},V=class an{a;b;cardinality;relations=new Map;contents=new Map;isAType;isBType;isContent;makeContentKey=(t,n)=>`${t}:${n}`;warn;getRelatedKeys(t){return this.relations.get(t)}addRelation(t,n){let o=this.relations.get(t),r=this.relations.get(n);o?o.add(n):(o=new Set([n]),this.relations.set(t,o)),r?r.add(t):(r=new Set([t]),this.relations.set(n,r))}deleteRelation(t,n){const o=this.relations.get(t);if(o){o.delete(n),o.size===0&&this.relations.delete(t);const r=this.relations.get(n);r&&(r.delete(t),r.size===0&&this.relations.delete(n))}}replaceRelationsUnsafely(t,n){this.relations.set(t,new Set(n));for(const o of n){const r=new Set().add(t);this.relations.set(o,r)}}replaceRelationsSafely(t,n){const o=this.relations.get(t);let r=this.isAType?.(t)?t:void 0,s=r===void 0?t:void 0;if(o)for(const i of o){r??=i,s??=i;const l=this.relations.get(i);l&&(l.size===1?this.relations.delete(i):l.delete(t),this.contents.delete(this.makeContentKey(r,s)))}this.relations.set(t,new Set(n));for(const i of n){let l=this.relations.get(i);l?l.add(t):(l=new Set().add(t),this.relations.set(i,l))}}getContentInternal(t){return this.contents.get(t)}setContent(t,n){this.contents.set(t,n)}deleteContent(t){this.contents.delete(t)}constructor(t,n){if(this.a=t.between[0],this.b=t.between[1],this.cardinality=t.cardinality,this.isAType=n?.isAType??null,this.isBType=n?.isBType??null,this.isContent=n?.isContent??null,n?.makeContentKey&&(this.makeContentKey=n.makeContentKey),!n?.externalStore){const o=n?.source;o===void 0&&(this.relations=new Map(t.relations?.map(([r,s])=>[r,new Set(s)])),this.contents=new Map(t.contents)),o&&(this.relations=new to(o.relations),this.contents=new E(o.contents))}if(n?.externalStore){const o=n.externalStore;this.has=(r,s)=>o.has(r,s),this.addRelation=(r,s)=>{o.addRelation(r,s)},this.deleteRelation=(r,s)=>{o.deleteRelation(r,s)},this.replaceRelationsSafely=(r,s)=>{o.replaceRelationsSafely(r,s)},this.replaceRelationsUnsafely=(r,s)=>{o.replaceRelationsUnsafely(r,s)},this.getRelatedKeys=(r=>o.getRelatedKeys(r)),o.getContent&&(this.getContentInternal=r=>o.getContent(r),this.setContent=(r,s)=>{o.setContent(r,s)},this.deleteContent=r=>{o.deleteContent(r)});for(const[r,s]of t.relations??[]){let i=this.isAType?.(r)?r:void 0,l=i===void 0?r:void 0;for(const c of s)i??=c,l??=c,this.addRelation(i,l)}for(const[r,s]of t.contents??[])this.setContent(r,s)}n?.warn&&(this.warn=n.warn)}toJSON(){return{between:[this.a,this.b],cardinality:this.cardinality,relations:[...this.relations.entries()].map(([t,n])=>[t,[...n]]),contents:[...this.contents.entries()]}}set(...t){let n,o,r;switch(t.length){case 1:{const s=t[0];n=s[this.a],o=s[this.b],r=void 0;break}case 2:{const s=t[0];typeof s=="string"?[n,o]=t:(n=s[this.a],o=s[this.b],r=t[1]);break}default:n=t[0],o=t[1],r=t[2];break}switch(this.cardinality){case"1:1":{const s=this.getRelatedKey(n);s&&s!==o&&this.delete(n,s)}case"1:n":{const s=this.getRelatedKey(o);s&&s!==n&&this.delete(s,o)}break}if(r){const s=this.makeContentKey(n,o);this.setContent(s,r)}return this.addRelation(n,o),this}delete(t,n){n=typeof n=="string"?n:t[this.b];const o=typeof t=="string"?t:t[this.a];if(o===void 0&&typeof n=="string"){const r=this.getRelatedKeys(n);if(r)for(const s of r)this.delete(s,n)}else if(typeof o=="string"&&n===void 0){const r=this.getRelatedKeys(o);if(r)for(const s of r)this.delete(o,s)}else if(typeof o=="string"&&typeof n=="string"){this.deleteRelation(o,n);const r=this.makeContentKey(o,n);this.deleteContent(r)}return this}getRelatedKey(t){const n=this.getRelatedKeys(t);if(n){n.size>1&&this.warn?.(`${n.size} related keys were found for key "${t}": (${[...n].map(r=>`"${r}"`).join(", ")}). Only one related key was expected.`);let o;for(const r of n){o=r;break}return o}}replaceRelations(t,n,o){const r=!Array.isArray(n),s=r?Object.keys(n):n;if(o?.reckless?this.replaceRelationsUnsafely(t,s):this.replaceRelationsSafely(t,s),r)for(const i of s){const l=this.makeContentKey(t,i),c=n[i];this.setContent(l,c)}return this}getContent(t,n){const o=this.makeContentKey(t,n);return this.getContentInternal(o)}getRelationEntries(t){const n=t[this.a],o=t[this.b];if(n!==void 0&&o===void 0){const r=this.getRelatedKeys(n);if(r)return[...r].map(s=>[s,this.getContent(n,s)])}if(n===void 0&&o!==void 0){const r=this.getRelatedKeys(o);if(r)return[...r].map(s=>[s,this.getContent(s,o)])}return[]}has(t,n){return n?this.getRelatedKeys(t)?.has(n)??!1:this.relations.has(t)}overlay(){const t={source:this,makeContentKey:this.makeContentKey};return this.isAType&&(t.isAType=this.isAType),this.isBType&&(t.isBType=this.isBType),this.isContent&&(t.isContent=this.isContent),this.warn&&(t.warn=this.warn),new an({between:[this.a,this.b],cardinality:this.cardinality},t)}incorporate(t){const{relations:n,contents:o}=t;for(const[r,s]of n)if(s instanceof ln){const{source:i}=s;for(const l of s.iterateOwn())i.add(l)}else this.relations.set(r,s);for(const r of n.deleted)this.relations.delete(r);for(const[r,s]of o)this.contents.set(r,s);for(const r of o.deleted)this.contents.delete(r)}};function no(e){return e.startsWith("🔍 ")}const oo=e=>{e.logger.info("🪂","transaction",e.transactionMeta.update.token.key,"Aborting transaction"),e.parent.child=null};function cn(e,t,n){return(...o)=>C(e,t).run(o,n)}function ro(e,t,n){const{token:o,update:{newValue:r,oldValue:s}}=t;L(e,o,r)}function so(e){const{stack:t}=e;return t?`
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var Me,h,Gt,W,mt,Bt,Jt,Yt,ot,ze,Ge,qt,se={},Zt=[],Hn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ye=Array.isArray;function N(e,t){for(var n in t)e[n]=t[n];return e}function rt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Be(e,t,n){var o,r,s,i={};for(s in t)s=="key"?o=t[s]:s=="ref"?r=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Me.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return ke(e,i,o,r,null)}function ke(e,t,n,o,r){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++Gt,__i:-1,__u:0};return r==null&&h.vnode!=null&&h.vnode(s),s}function K(e){return e.children}function D(e,t){this.props=e,this.context=t}function X(e,t){if(t==null)return e.__?X(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?X(e):null}function Xt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Xt(e)}}function Je(e){(!e.__d&&(e.__d=!0)&&W.push(e)&&!Ce.__r++||mt!=h.debounceRendering)&&((mt=h.debounceRendering)||Bt)(Ce)}function Ce(){for(var e,t,n,o,r,s,i,l=1;W.length;)W.length>l&&W.sort(Jt),e=W.shift(),l=W.length,e.__d&&(n=void 0,o=void 0,r=(o=(t=e).__v).__e,s=[],i=[],t.__P&&((n=N({},o)).__v=o.__v+1,h.vnode&&h.vnode(n),st(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,s,r??X(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,tn(s,n,i),o.__e=o.__=null,n.__e!=r&&Xt(n)));Ce.__r=0}function Qt(e,t,n,o,r,s,i,l,c,u,f){var a,d,_,p,y,w,m,g=o&&o.__k||Zt,R=t.length;for(c=Wn(n,t,g,c,R),a=0;a<R;a++)(_=n.__k[a])!=null&&(d=_.__i==-1?se:g[_.__i]||se,_.__i=a,w=st(e,_,d,r,s,i,l,c,u,f),p=_.__e,_.ref&&d.ref!=_.ref&&(d.ref&&it(d.ref,null,_),f.push(_.ref,_.__c||p,_)),y==null&&p!=null&&(y=p),(m=!!(4&_.__u))||d.__k===_.__k?c=en(_,c,e,m):typeof _.type=="function"&&w!==void 0?c=w:p&&(c=p.nextSibling),_.__u&=-7);return n.__e=y,c}function Wn(e,t,n,o,r){var s,i,l,c,u,f=n.length,a=f,d=0;for(e.__k=new Array(r),s=0;s<r;s++)(i=t[s])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=e.__k[s]=ke(null,i,null,null,null):ye(i)?i=e.__k[s]=ke(K,{children:i},null,null,null):i.constructor==null&&i.__b>0?i=e.__k[s]=ke(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[s]=i,c=s+d,i.__=e,i.__b=e.__b+1,l=null,(u=i.__i=zn(i,n,c,a))!=-1&&(a--,(l=n[u])&&(l.__u|=2)),l==null||l.__v==null?(u==-1&&(r>f?d--:r<f&&d++),typeof i.type!="function"&&(i.__u|=4)):u!=c&&(u==c-1?d--:u==c+1?d++:(u>c?d--:d++,i.__u|=4))):e.__k[s]=null;if(a)for(s=0;s<f;s++)(l=n[s])!=null&&(2&l.__u)==0&&(l.__e==o&&(o=X(l)),on(l,l));return o}function en(e,t,n,o){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=en(r[s],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=X(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Te(e,t){return t=t||[],e==null||typeof e=="boolean"||(ye(e)?e.some(function(n){Te(n,t)}):t.push(e)),t}function zn(e,t,n,o){var r,s,i,l=e.key,c=e.type,u=t[n],f=u!=null&&(2&u.__u)==0;if(u===null&&l==null||f&&l==u.key&&c==u.type)return n;if(o>(f?1:0)){for(r=n-1,s=n+1;r>=0||s<t.length;)if((u=t[i=r>=0?r--:s++])!=null&&(2&u.__u)==0&&l==u.key&&c==u.type)return i}return-1}function gt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Hn.test(t)?n:n+"px"}function be(e,t,n,o,r){var s,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||gt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||gt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Yt,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?o?n.u=o.u:(n.u=ot,e.addEventListener(t,s?Ge:ze,s)):e.removeEventListener(t,s?Ge:ze,s);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function bt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ot++;else if(t.t<n.u)return;return n(h.event?h.event(t):t)}}}function st(e,t,n,o,r,s,i,l,c,u){var f,a,d,_,p,y,w,m,g,R,M,I,oe,ht,ge,re,Fe,A=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),s=[l=t.__e=n.__e]),(f=h.__b)&&f(t);e:if(typeof A=="function")try{if(m=t.props,g="prototype"in A&&A.prototype.render,R=(f=A.contextType)&&o[f.__c],M=f?R?R.props.value:f.__:o,n.__c?w=(a=t.__c=n.__c).__=a.__E:(g?t.__c=a=new A(m,M):(t.__c=a=new D(m,M),a.constructor=A,a.render=Bn),R&&R.sub(a),a.state||(a.state={}),a.__n=o,d=a.__d=!0,a.__h=[],a._sb=[]),g&&a.__s==null&&(a.__s=a.state),g&&A.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=N({},a.__s)),N(a.__s,A.getDerivedStateFromProps(m,a.__s))),_=a.props,p=a.state,a.__v=t,d)g&&A.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),g&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(g&&A.getDerivedStateFromProps==null&&m!==_&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(m,M),t.__v==n.__v||!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(m,a.__s,M)===!1){for(t.__v!=n.__v&&(a.props=m,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(J){J&&(J.__=t)}),I=0;I<a._sb.length;I++)a.__h.push(a._sb[I]);a._sb=[],a.__h.length&&i.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(m,a.__s,M),g&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(_,p,y)})}if(a.context=M,a.props=m,a.__P=e,a.__e=!1,oe=h.__r,ht=0,g){for(a.state=a.__s,a.__d=!1,oe&&oe(t),f=a.render(a.props,a.state,a.context),ge=0;ge<a._sb.length;ge++)a.__h.push(a._sb[ge]);a._sb=[]}else do a.__d=!1,oe&&oe(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++ht<25);a.state=a.__s,a.getChildContext!=null&&(o=N(N({},o),a.getChildContext())),g&&!d&&a.getSnapshotBeforeUpdate!=null&&(y=a.getSnapshotBeforeUpdate(_,p)),re=f,f!=null&&f.type===K&&f.key==null&&(re=nn(f.props.children)),l=Qt(e,ye(re)?re:[re],t,n,o,r,s,i,l,c,u),a.base=t.__e,t.__u&=-161,a.__h.length&&i.push(a),w&&(a.__E=a.__=null)}catch(J){if(t.__v=null,c||s!=null)if(J.then){for(t.__u|=c?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,t.__e=l}else{for(Fe=s.length;Fe--;)rt(s[Fe]);Ye(t)}else t.__e=n.__e,t.__k=n.__k,J.then||Ye(t);h.__e(J,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=Gn(n.__e,t,n,o,r,s,i,c,u);return(f=h.diffed)&&f(t),128&t.__u?void 0:l}function Ye(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ye)}function tn(e,t,n){for(var o=0;o<n.length;o++)it(n[o],n[++o],n[++o]);h.__c&&h.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(s){s.call(r)})}catch(s){h.__e(s,r.__v)}})}function nn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:ye(e)?e.map(nn):N({},e)}function Gn(e,t,n,o,r,s,i,l,c){var u,f,a,d,_,p,y,w=n.props||se,m=t.props,g=t.type;if(g=="svg"?r="http://www.w3.org/2000/svg":g=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),s!=null){for(u=0;u<s.length;u++)if((_=s[u])&&"setAttribute"in _==!!g&&(g?_.localName==g:_.nodeType==3)){e=_,s[u]=null;break}}if(e==null){if(g==null)return document.createTextNode(m);e=document.createElementNS(r,g,m.is&&m),l&&(h.__m&&h.__m(t,s),l=!1),s=null}if(g==null)w===m||l&&e.data==m||(e.data=m);else{if(s=s&&Me.call(e.childNodes),!l&&s!=null)for(w={},u=0;u<e.attributes.length;u++)w[(_=e.attributes[u]).name]=_.value;for(u in w)if(_=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")a=_;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;be(e,u,null,_,r)}}for(u in m)_=m[u],u=="children"?d=_:u=="dangerouslySetInnerHTML"?f=_:u=="value"?p=_:u=="checked"?y=_:l&&typeof _!="function"||w[u]===_||be(e,u,_,w[u],r);if(f)l||a&&(f.__html==a.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(a&&(e.innerHTML=""),Qt(t.type=="template"?e.content:e,ye(d)?d:[d],t,n,o,g=="foreignObject"?"http://www.w3.org/1999/xhtml":r,s,i,s?s[0]:n.__k&&X(n,0),l,c),s!=null)for(u=s.length;u--;)rt(s[u]);l||(u="value",g=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[u]||g=="progress"&&!p||g=="option"&&p!=w[u])&&be(e,u,p,w[u],r),u="checked",y!=null&&y!=e[u]&&be(e,u,y,w[u],r))}return e}function it(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(r){h.__e(r,n)}}function on(e,t,n){var o,r;if(h.unmount&&h.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||it(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){h.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&on(o[r],t,n||typeof e.type!="function");n||rt(e.__e),e.__c=e.__=e.__e=void 0}function Bn(e,t,n){return this.constructor(e,n)}function Jn(e,t,n){var o,r,s,i;t==document&&(t=document.documentElement),h.__&&h.__(e,t),r=(o=!1)?null:t.__k,s=[],i=[],st(t,e=t.__k=Be(K,null,[e]),r||se,se,t.namespaceURI,r?null:t.firstChild?Me.call(t.childNodes):null,s,r?r.__e:t.firstChild,o,i),tn(s,e,i)}function Yn(e){function t(n){var o,r;return this.getChildContext||(o=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(i){i.__e=!0,Je(i)})},this.sub=function(s){o.add(s);var i=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),i&&i.call(s)}}),n.children}return t.__c="__cC"+qt++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}Me=Zt.slice,h={__e:function(e,t,n,o){for(var r,s,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),i=r.__d),i)return r.__E=r}catch(l){e=l}throw e}},Gt=0,D.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=N({},this.state),typeof e=="function"&&(e=e(N({},n),this.props)),e&&N(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Je(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Je(this))},D.prototype.render=K,W=[],Bt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jt=function(e,t){return e.__v.__b-t.__v.__b},Ce.__r=0,Yt=/(PointerCapture)$|Capture$/i,ot=0,ze=bt(!1),Ge=bt(!0),qt=0;var qn=0;function b(e,t,n,o,r,s){t||(t={});var i,l,c=t;if("ref"in c)for(l in c={},t)l=="ref"?i=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--qn,__i:-1,__u:0,__source:r,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(l in i)c[l]===void 0&&(c[l]=i[l]);return h.vnode&&h.vnode(u),u}function te(e){return JSON.parse(e)}const T=e=>JSON.stringify(e);function rn(e=Math.random){return e().toString(36).slice(2)}function v(e){for(;e.child!==null;)e=e.child;return e}function Zn(e){for(;e.parent!==null;)e=e.parent;return e}const Xn=/^\[object (?:Async|Generator|AsyncGenerator)?Function\]$/;function U(e){const t=Object.prototype.toString.call(e);return Xn.test(t)}function wt(e,t){return U(e)?e(t):e}var qe=class extends Promise{fate;resolve;reject;done=!1;constructor(e){let t,n;super((o,r)=>{t=o,n=r}),this.resolve=t,this.reject=n,this.use(e instanceof Promise?e:new Promise(e))}pass(e,t){e===this.fate&&(this.resolve(t),this.done=!0)}fail(e,t){e===this.fate&&(this.reject(t),this.done=!0)}use(e){if(this!==e)if(e instanceof Promise){const t=e;this.fate=t,t.then(n=>{this.pass(t,n)},n=>{this.fail(t,n)})}else this.resolve(e),this.fate=void 0}},S=class{Subscriber;subscribers=new Map;subscribe(e,t){return this.subscribers.set(e,t),()=>{this.unsubscribe(e)}}unsubscribe(e){this.subscribers.delete(e)}next(e){const t=this.subscribers.values();for(const n of t)n(e)}},Qn=class extends S{state;constructor(e){super(),this.state=e}next(e){this.state=e,super.next(e)}},eo=class sn{_buffer;_index=0;constructor(t){let n;typeof t=="number"?n=t:n=t.length,this._buffer=Array.from({length:n})}get buffer(){return this._buffer}get index(){return this._index}add(t){this._buffer[this._index]=t,this._index=(this._index+1)%this._buffer.length}copy(){const t=new sn([...this._buffer]);return t._index=this._index,t}};function Q(e){const t={key:e.key,type:e.type};return"family"in e&&(t.family=e.family),t}var E=class extends Map{deleted=new Set;changed=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e))return this.source.get(e)}set(e,t){return this.deleted.delete(e),this.source.has(e)&&this.changed.add(e),super.set(e,t)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)&&(this.deleted.add(e),this.changed.delete(e)),super.delete(e)}clear(){this.deleted=new Set(this.source.keys()),this.changed.clear(),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const[e,t]of this.source)!this.deleted.has(e)&&!this.changed.has(e)&&(yield[e,t])}*entries(){yield*this[Symbol.iterator]()}*keys(){yield*super.keys();for(const e of this.source.keys())!this.deleted.has(e)&&!this.changed.has(e)&&(yield e)}*values(){for(const[,e]of this[Symbol.iterator]())yield e}forEach(e){for(const[t,n]of this[Symbol.iterator]())e(n,t,this)}get size(){return super.size+this.source.size-this.changed.size-this.deleted.size}},ln=class extends Set{deleted=new Set;source;constructor(e){super(),this.source=e}add(e){return this.source.has(e)?(this.deleted.delete(e),this):super.add(e)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)?(this.deleted.add(e),!0):super.delete(e)}clear(){this.deleted=new Set(this.source),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const e of this.source)this.deleted.has(e)||(yield e)}*iterateOwn(){yield*super[Symbol.iterator]()}get size(){return super.size+this.source.size-this.deleted.size}},to=class extends Map{deleted=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e)){const t=new ln(this.source.get(e));return super.set(e,t),t}}set(e,t){return this.deleted.delete(e),super.set(e,t)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.deleted.add(e),super.delete(e)}},V=class an{a;b;cardinality;relations=new Map;contents=new Map;isAType;isBType;isContent;makeContentKey=(t,n)=>`${t}:${n}`;warn;getRelatedKeys(t){return this.relations.get(t)}addRelation(t,n){let o=this.relations.get(t),r=this.relations.get(n);o?o.add(n):(o=new Set([n]),this.relations.set(t,o)),r?r.add(t):(r=new Set([t]),this.relations.set(n,r))}deleteRelation(t,n){const o=this.relations.get(t);if(o){o.delete(n),o.size===0&&this.relations.delete(t);const r=this.relations.get(n);r&&(r.delete(t),r.size===0&&this.relations.delete(n))}}replaceRelationsUnsafely(t,n){this.relations.set(t,new Set(n));for(const o of n){const r=new Set().add(t);this.relations.set(o,r)}}replaceRelationsSafely(t,n){const o=this.relations.get(t);let r=this.isAType?.(t)?t:void 0,s=r===void 0?t:void 0;if(o)for(const i of o){r??=i,s??=i;const l=this.relations.get(i);l&&(l.size===1?this.relations.delete(i):l.delete(t),this.contents.delete(this.makeContentKey(r,s)))}this.relations.set(t,new Set(n));for(const i of n){let l=this.relations.get(i);l?l.add(t):(l=new Set().add(t),this.relations.set(i,l))}}getContentInternal(t){return this.contents.get(t)}setContent(t,n){this.contents.set(t,n)}deleteContent(t){this.contents.delete(t)}constructor(t,n){if(this.a=t.between[0],this.b=t.between[1],this.cardinality=t.cardinality,this.isAType=n?.isAType??null,this.isBType=n?.isBType??null,this.isContent=n?.isContent??null,n?.makeContentKey&&(this.makeContentKey=n.makeContentKey),!n?.externalStore){const o=n?.source;o===void 0&&(this.relations=new Map(t.relations?.map(([r,s])=>[r,new Set(s)])),this.contents=new Map(t.contents)),o&&(this.relations=new to(o.relations),this.contents=new E(o.contents))}if(n?.externalStore){const o=n.externalStore;this.has=(r,s)=>o.has(r,s),this.addRelation=(r,s)=>{o.addRelation(r,s)},this.deleteRelation=(r,s)=>{o.deleteRelation(r,s)},this.replaceRelationsSafely=(r,s)=>{o.replaceRelationsSafely(r,s)},this.replaceRelationsUnsafely=(r,s)=>{o.replaceRelationsUnsafely(r,s)},this.getRelatedKeys=(r=>o.getRelatedKeys(r)),o.getContent&&(this.getContentInternal=r=>o.getContent(r),this.setContent=(r,s)=>{o.setContent(r,s)},this.deleteContent=r=>{o.deleteContent(r)});for(const[r,s]of t.relations??[]){let i=this.isAType?.(r)?r:void 0,l=i===void 0?r:void 0;for(const c of s)i??=c,l??=c,this.addRelation(i,l)}for(const[r,s]of t.contents??[])this.setContent(r,s)}n?.warn&&(this.warn=n.warn)}toJSON(){return{between:[this.a,this.b],cardinality:this.cardinality,relations:[...this.relations.entries()].map(([t,n])=>[t,[...n]]),contents:[...this.contents.entries()]}}set(...t){let n,o,r;switch(t.length){case 1:{const s=t[0];n=s[this.a],o=s[this.b],r=void 0;break}case 2:{const s=t[0];typeof s=="string"?[n,o]=t:(n=s[this.a],o=s[this.b],r=t[1]);break}default:n=t[0],o=t[1],r=t[2];break}switch(this.cardinality){case"1:1":{const s=this.getRelatedKey(n);s&&s!==o&&this.delete(n,s)}case"1:n":{const s=this.getRelatedKey(o);s&&s!==n&&this.delete(s,o)}break}if(r){const s=this.makeContentKey(n,o);this.setContent(s,r)}return this.addRelation(n,o),this}delete(t,n){n=typeof n=="string"?n:t[this.b];const o=typeof t=="string"?t:t[this.a];if(o===void 0&&typeof n=="string"){const r=this.getRelatedKeys(n);if(r)for(const s of r)this.delete(s,n)}else if(typeof o=="string"&&n===void 0){const r=this.getRelatedKeys(o);if(r)for(const s of r)this.delete(o,s)}else if(typeof o=="string"&&typeof n=="string"){this.deleteRelation(o,n);const r=this.makeContentKey(o,n);this.deleteContent(r)}return this}getRelatedKey(t){const n=this.getRelatedKeys(t);if(n){n.size>1&&this.warn?.(`${n.size} related keys were found for key "${t}": (${[...n].map(r=>`"${r}"`).join(", ")}). Only one related key was expected.`);let o;for(const r of n){o=r;break}return o}}replaceRelations(t,n,o){const r=!Array.isArray(n),s=r?Object.keys(n):n;if(o?.reckless?this.replaceRelationsUnsafely(t,s):this.replaceRelationsSafely(t,s),r)for(const i of s){const l=this.makeContentKey(t,i),c=n[i];this.setContent(l,c)}return this}getContent(t,n){const o=this.makeContentKey(t,n);return this.getContentInternal(o)}getRelationEntries(t){const n=t[this.a],o=t[this.b];if(n!==void 0&&o===void 0){const r=this.getRelatedKeys(n);if(r)return[...r].map(s=>[s,this.getContent(n,s)])}if(n===void 0&&o!==void 0){const r=this.getRelatedKeys(o);if(r)return[...r].map(s=>[s,this.getContent(s,o)])}return[]}has(t,n){return n?this.getRelatedKeys(t)?.has(n)??!1:this.relations.has(t)}overlay(){const t={source:this,makeContentKey:this.makeContentKey};return this.isAType&&(t.isAType=this.isAType),this.isBType&&(t.isBType=this.isBType),this.isContent&&(t.isContent=this.isContent),this.warn&&(t.warn=this.warn),new an({between:[this.a,this.b],cardinality:this.cardinality},t)}incorporate(t){const{relations:n,contents:o}=t;for(const[r,s]of n)if(s instanceof ln){const{source:i}=s;for(const l of s.iterateOwn())i.add(l)}else this.relations.set(r,s);for(const r of n.deleted)this.relations.delete(r);for(const[r,s]of o)this.contents.set(r,s);for(const r of o.deleted)this.contents.delete(r)}};function no(e){return e.startsWith("🔍 ")}const oo=e=>{e.logger.info("🪂","transaction",e.transactionMeta.update.token.key,"Aborting transaction"),e.parent.child=null};function cn(e,t,n){return(...o)=>C(e,t).run(o,n)}function ro(e,t,n){const{token:o,update:{newValue:r,oldValue:s}}=t;L(e,o,r)}function so(e){const{stack:t}=e;return t?`
|
|
2
2
|
`+t.split(`
|
|
3
3
|
`)?.slice(1)?.join(`
|
|
4
4
|
`):""}function un(e,t,n,o="any"){const r=t,s=T(n),i=[],l=v(e);if(Array.isArray(r))for(const f of r){const a=T(f);l.molecules.get(a)?e.moleculeGraph.set(a,s,{source:a}):i.push(a)}else{const f=T(r);l.molecules.get(f)?e.moleculeGraph.set(f,s,{source:f}):i.push(f)}const c=new S;i.length===0&&l.molecules.set(s,{key:n,stringKey:s,dependsOn:o,subject:c});const u={type:"molecule_creation",key:n,provenance:r,timestamp:Date.now()};x(l)&&l.transactionMeta.phase==="building"?l.transactionMeta.update.subEvents.push(u):l.on.moleculeCreation.next(u);for(const f of i){const a=e.disposalTraces.buffer.find(d=>d?.key===f);e.logger.error("❌","key",n,"allocation failed:",`Could not allocate to ${f} in store "${e.config.name}".`,a?`
|
package/dist/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<meta name="color-scheme" content="light dark" />
|
|
8
8
|
<title>Vite + Preact + Atom.io</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-CAyWNAmp.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-jy4_OpZh.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom.io/template-preact-svg-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"preact": "10.28.
|
|
9
|
+
"preact": "10.28.1",
|
|
10
10
|
"react": "npm:@preact/compat@18.3.1",
|
|
11
11
|
"react-dom": "npm:@preact/compat@18.3.1",
|
|
12
|
-
"atom.io": "0.46.
|
|
12
|
+
"atom.io": "0.46.11"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@preact/preset-vite": "2.10.2",
|
|
16
|
-
"@typescript-eslint/eslint-plugin": "8.50.
|
|
17
|
-
"@typescript-eslint/parser": "8.50.
|
|
16
|
+
"@typescript-eslint/eslint-plugin": "8.50.1",
|
|
17
|
+
"@typescript-eslint/parser": "8.50.1",
|
|
18
18
|
"eslint-config-preact": "2.0.0",
|
|
19
19
|
"eslint-plugin-import-x": "4.16.1",
|
|
20
20
|
"eslint-plugin-simple-import-sort": "12.1.1",
|