@layers-app/editor 0.0.21 → 0.0.23
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/README.md +47 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +195 -2
- package/dist/index.js +2 -2
- package/dist/layers.-RxAm5pH.js +795 -0
- package/dist/layers.-rS-aTo2.js +33 -0
- package/dist/layers.2ODaB2Pd.js +8 -0
- package/dist/layers.5BbX0Xoz.js +769 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.9QK1wiQj.js +1 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.B-6oGNjd.js +40 -0
- package/dist/layers.B-ie1_cm.js +6 -0
- package/dist/layers.B0EkntbT.js +32 -0
- package/dist/layers.B0pdr1hX.js +1619 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B39TZ2WV.js +11 -0
- package/dist/layers.B3odqoHb.js +9 -0
- package/dist/layers.B64g6Zx2.js +1 -0
- package/dist/layers.B6UkAKu5.js +434 -0
- package/dist/layers.B8i9d7Qz.js +192 -0
- package/dist/layers.B9NSFeaj.js +35 -0
- package/dist/layers.B9zrmkst.js +11 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BBB7YGK1.js +3 -0
- package/dist/layers.BBU3ik5q.js +51 -0
- package/dist/layers.BBwDvE6l.js +9122 -0
- package/dist/layers.BCFHxkpM.js +6 -0
- package/dist/layers.BD5uUnI2.js +1265 -0
- package/dist/layers.BDhuxbhX.js +44 -0
- package/dist/layers.BDxQSquK.js +10 -0
- package/dist/layers.BEE5yqs5.js +9 -0
- package/dist/layers.BFLg4UGe.js +8 -0
- package/dist/layers.BFOl7cA-.js +41 -0
- package/dist/layers.BHDiP2sq.js +21836 -0
- package/dist/layers.BIDnkNut.js +1510 -0
- package/dist/layers.BIVmclKv.js +41 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BJMMuP5r.js +9 -0
- package/dist/layers.BK01wvsE.js +10 -0
- package/dist/layers.BLB-feoT.js +8 -0
- package/dist/layers.BLSqqbWP.js +207 -0
- package/dist/layers.BO3dqWyO.js +10 -0
- package/dist/layers.BPe9NQzP.js +2963 -0
- package/dist/layers.BPnpanwd.js +39 -0
- package/dist/layers.BQLZhz6B.js +6 -0
- package/dist/layers.BST6tR9a.js +4 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BUSnd1Ro.js +5 -0
- package/dist/layers.BUkDq4ln.js +84 -0
- package/dist/layers.BUsBCyiL.js +202 -0
- package/dist/layers.BXGiOI1Z.js +7 -0
- package/dist/layers.BYVHkqLR.js +39 -0
- package/dist/layers.BYzN4Zxz.js +7 -0
- package/dist/layers.BZcZF6Ct.js +41 -0
- package/dist/layers.B_Hf0SF-.js +1359 -0
- package/dist/{layers.BYmCD0mp.js → layers.Ba97nTEK.js} +1 -1
- package/dist/layers.Bbl6qitU.js +40 -0
- package/dist/layers.BdanmQPF.js +11 -0
- package/dist/layers.Bfd5bOAD.js +37 -0
- package/dist/layers.BhM2iCwB.js +5 -0
- package/dist/layers.BjZInKjA.js +2 -0
- package/dist/layers.Bk2PdkMX.js +10 -0
- package/dist/layers.BkMfeJ9R.js +41 -0
- package/dist/layers.BkjjkAwW.js +2 -0
- package/dist/layers.Blho0qwc.js +1 -0
- package/dist/layers.BoabOlrX.js +36 -0
- package/dist/layers.BpXiFzvR.js +36 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.BuQ1nJmP.js +1 -0
- package/dist/layers.Bv0tGvGl.js +40 -0
- package/dist/layers.BvZFIFgz.js +9 -0
- package/dist/layers.BwfB_nzW.js +8 -0
- package/dist/layers.Bwpn7zKE.js +9 -0
- package/dist/layers.Bz0ApNUe.js +70 -0
- package/dist/layers.C-G7-Jg3.js +7 -0
- package/dist/layers.C0bumYdC.js +7 -0
- package/dist/layers.C1KhBpGU.js +7 -0
- package/dist/layers.C3K_Whht.js +42 -0
- package/dist/layers.C51kZnWr.js +37 -0
- package/dist/layers.C5rttXXy.js +10 -0
- package/dist/{layers.CKC0lJDn.js → layers.C5uR7AiN.js} +1 -1
- package/dist/layers.C6Rn8zoI.js +42 -0
- package/dist/layers.C7lIplJU.js +247 -0
- package/dist/layers.CBXpUMze.js +96 -0
- package/dist/layers.CCRe_IA7.js +36 -0
- package/dist/{layers.CFJiIrku.js → layers.CClfR9Rs.js} +14180 -12682
- package/dist/layers.CDLdte-o.js +9 -0
- package/dist/layers.CDzPpnhN.js +52 -0
- package/dist/layers.CEXVJbhn.js +8 -0
- package/dist/layers.CGX7Piy7.js +1 -0
- package/dist/layers.CGc04km7.js +42 -0
- package/dist/layers.CH23k4XD.js +6 -0
- package/dist/layers.CHHqQlm1.js +9 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CMS1o_sE.js +40 -0
- package/dist/layers.CO4NHmK3.js +40 -0
- package/dist/layers.COAF7f8g.js +1 -0
- package/dist/layers.CPV5PaJ7.js +33 -0
- package/dist/layers.CPqqkX8Z.js +23 -0
- package/dist/layers.CQXDzk5h.js +1 -0
- package/dist/layers.CQv0GMRl.js +1 -0
- package/dist/layers.CR10RAJi.js +116 -0
- package/dist/layers.CR4riLSc.js +2235 -0
- package/dist/layers.CSjWzlk9.js +1 -0
- package/dist/layers.CTmkjIN6.js +5 -0
- package/dist/layers.CZMy0ug4.js +6 -0
- package/dist/layers.CZh7NZyl.js +42 -0
- package/dist/layers.C_dOgKfE.js +10 -0
- package/dist/layers.CcJ28sUd.js +9 -0
- package/dist/layers.CeMe5scF.js +1 -0
- package/dist/layers.CeVpKhli.js +122 -0
- package/dist/layers.Ch7C0MR9.js +39 -0
- package/dist/layers.ChAMqLmE.js +160 -0
- package/dist/layers.ChJyurjQ.js +7 -0
- package/dist/layers.ChPHYv68.js +41 -0
- package/dist/layers.ChykDTOy.js +11 -0
- package/dist/layers.Ci0QS82_.js +1 -0
- package/dist/layers.Ci0x4aAi.js +139 -0
- package/dist/layers.CiNAQOA-.js +50 -0
- package/dist/layers.Ck0iJfoW.js +39 -0
- package/dist/layers.Ckbp-T9r.js +32 -0
- package/dist/layers.Cl9Tl2nd.js +1 -0
- package/dist/layers.ClQj75nc.js +11 -0
- package/dist/layers.ClaqpFnu.js +233 -0
- package/dist/layers.CmHSmrZm.js +40 -0
- package/dist/layers.Cn6OfRlw.js +40 -0
- package/dist/layers.CnD3z0eZ.js +8 -0
- package/dist/layers.CnloMtKN.js +268 -0
- package/dist/layers.Cp82yltX.js +32 -0
- package/dist/layers.CphCG076.js +6 -0
- package/dist/layers.CqM3rL4-.js +5 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.CvJxfPxo.js +9 -0
- package/dist/layers.CwPFdFUT.js +34 -0
- package/dist/layers.Cx14IKzN.js +4 -0
- package/dist/layers.Cxmncz59.js +32 -0
- package/dist/layers.D-ZYFolm.js +1 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D18RSmmQ.js +7 -0
- package/dist/layers.D1cZq8tq.js +373 -0
- package/dist/layers.D2q8ZYi2.js +425 -0
- package/dist/layers.D2vOkfMK.js +38 -0
- package/dist/layers.D3Hkinja.js +5 -0
- package/dist/layers.D4fGb2cV.js +1272 -0
- package/dist/layers.D68FZk66.js +39 -0
- package/dist/layers.D7HvMBb6.js +39 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.D90-hSDT.js +4 -0
- package/dist/layers.D9A031XO.js +803 -0
- package/dist/layers.DARK07JA.js +42 -0
- package/dist/layers.DAx0hT2g.js +32 -0
- package/dist/layers.DCvUAfE1.js +40 -0
- package/dist/layers.DDRgaMwu.js +10 -0
- package/dist/layers.DEfJs03Z.js +1 -0
- package/dist/layers.DElpVOY-.js +8 -0
- package/dist/layers.DFd9A85i.js +14 -0
- package/dist/layers.DGZUGztZ.js +220 -0
- package/dist/layers.DHbdkCCU.js +38 -0
- package/dist/layers.DIrkcLlA.js +790 -0
- package/dist/layers.DKPzrygv.js +1 -0
- package/dist/layers.DK_t52oS.js +1126 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DMvWe0pJ.js +7 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DO-G3uLL.js +8 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DQCPMqIN.js +9 -0
- package/dist/layers.DTDpNGfk.js +1 -0
- package/dist/layers.DXTPaWjN.js +37 -0
- package/dist/layers.DXaSAlDN.js +13 -0
- package/dist/layers.DYx3Ot6h.js +139 -0
- package/dist/layers.D_MU5WlI.js +40 -0
- package/dist/layers.DalYdEkL.js +19 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.Dbuivk7d.js +36 -0
- package/dist/layers.DdTLZZKb.js +48146 -0
- package/dist/layers.DeB3waPT.js +8 -0
- package/dist/layers.Dg8Wbn90.js +35 -0
- package/dist/layers.DhiFm4jW.js +10 -0
- package/dist/layers.DhzTwBn5.js +37 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.Dk9dbz6F.js +118 -0
- package/dist/layers.Dklz2JqP.js +41 -0
- package/dist/layers.Dol0x5Jd.js +61 -0
- package/dist/layers.DrtkQKK7.js +1 -0
- package/dist/layers.Ds95POLS.js +1 -0
- package/dist/layers.DsAtBUs-.js +1283 -0
- package/dist/layers.DtoCH9Nn.js +1 -0
- package/dist/layers.DwLw5o0M.js +38 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.DxGDxkXA.js +164 -0
- package/dist/layers.Dxrm0nEM.js +2479 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.Dyor8Hot.js +186 -0
- package/dist/layers.Dyqg_e4P.js +41 -0
- package/dist/layers.DzaH7mDC.js +65 -0
- package/dist/layers.Dzc83sE7.js +1 -0
- package/dist/layers.FstVqdQC.js +804 -0
- package/dist/layers.HcI9cOEd.js +1089 -0
- package/dist/layers.I-MG0ir4.js +21461 -0
- package/dist/layers.I5-pSyca.js +1 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.LOjND5R4.js +320 -0
- package/dist/{layers.BKFthpnI.js → layers.L_XjkGw6.js} +24 -24
- package/dist/layers.Lhl12ohc.js +1 -0
- package/dist/layers.N4wL2Xyj.js +1083 -0
- package/dist/layers.OEP2K3db.js +4 -0
- package/dist/layers.PO65UmTA.js +10 -0
- package/dist/layers.PhLwHKUM.js +40 -0
- package/dist/layers.Tatx7z0m.js +55 -0
- package/dist/layers.UbqG2dp_.js +10 -0
- package/dist/layers.WsdOSV4y.js +2 -0
- package/dist/{layers.C99LCymA.js → layers.Y41CVpLS.js} +70 -70
- package/dist/layers.Ym7pRGM7.js +84 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/layers.c_QDfgff.js +257 -0
- package/dist/layers.cp645rbn.js +7 -0
- package/dist/layers.dqI-yLmM.js +41 -0
- package/dist/layers.fTcEk1do.js +261 -0
- package/dist/layers.gRKbOYG-.js +960 -0
- package/dist/layers.gaT5_-NN.js +32 -0
- package/dist/layers.gzGcAwbO.js +904 -0
- package/dist/layers.h0tSRttU.js +1 -0
- package/dist/layers.hkFN-BS0.js +39 -0
- package/dist/layers.iw01AOuQ.js +931 -0
- package/dist/layers.k2UyvrHI.js +35 -0
- package/dist/layers.kY3ZYtED.js +1 -0
- package/dist/layers.kthR742N.js +39 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.lLRqycMO.js +39 -0
- package/dist/layers.oFAtdeQ1.js +501 -0
- package/dist/layers.p9hSNB6N.js +1 -0
- package/dist/layers.paz6tc0L.js +1034 -0
- package/dist/layers.rRMBW9ET.js +1580 -0
- package/dist/layers.tbRLuldN.js +1 -0
- package/dist/layers.x6Qk2Mwl.js +8 -0
- package/dist/layers.x6ioP3u0.js +423 -0
- package/dist/layers.za1sylgg.js +11692 -0
- package/package.json +6 -5
- package/dist/layers.F7W7VvW1.js +0 -164
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./layers.CBXpUMze.js"),cn=require("./layers.CHZsXQcr.js");function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function C(n){let t,e,r;n.length!==2?(t=F,e=(a,c)=>F(n(a),c),r=(a,c)=>n(a)-c):(t=n===F||n===hn?n:ln,e=n,r=n);function i(a,c,o=0,s=a.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(a[h],c)<0?o=h+1:s=h}while(o<s)}return o}function f(a,c,o=0,s=a.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(a[h],c)<=0?o=h+1:s=h}while(o<s)}return o}function u(a,c,o=0,s=a.length){const h=i(a,c,o,s-1);return h>o&&r(a[h-1],c)>-r(a[h],c)?h-1:h}return{left:i,center:u,right:f}}function ln(){return 0}function mn(n){return n===null?NaN:+n}const sn=C(F),dn=sn.right;C(mn).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function E(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),u=f>=gn?10:f>=yn?5:f>=Mn?2:1;let a,c,o;return i<0?(o=Math.pow(10,-i)/u,a=Math.round(n*o),c=Math.round(t*o),a/o<n&&++a,c/o>t&&--c,o=-o):(o=Math.pow(10,i)*u,a=Math.round(n/o),c=Math.round(t/o),a*o<n&&++a,c*o>t&&--c),c<a&&.5<=e&&e<2?E(n,t,e*2):[a,c,o]}function pn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,f,u]=r?E(t,n,e):E(n,t,e);if(!(f>=i))return[];const a=f-i+1,c=new Array(a);if(r)if(u<0)for(let o=0;o<a;++o)c[o]=(f-o)/-u;else for(let o=0;o<a;++o)c[o]=(f-o)*u;else if(u<0)for(let o=0;o<a;++o)c[o]=(i+o)/-u;else for(let o=0;o<a;++o)c[o]=(i+o)*u;return c}function I(n,t,e){return t=+t,n=+n,e=+e,E(n,t,e)[2]}function W(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?I(t,n,e):I(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function wn(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(f){for(i=0;i<e;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}}function Nn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function kn(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),f=new Array(e),u;for(u=0;u<r;++u)i[u]=B(n[u],t[u]);for(;u<e;++u)f[u]=t[u];return function(a){for(u=0;u<r;++u)f[u]=i[u](a);return f}}function xn(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function An(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=B(n[i],t[i]):r[i]=t[i];return function(f){for(i in e)r[i]=e[i](f);return r}}function B(n,t){var e=typeof t,r;return t==null||e==="boolean"?p.constant(t):(e==="number"?p.interpolateNumber:e==="string"?(r=p.color(t))?(t=r,p.interpolateRgb):p.interpolateString:t instanceof p.color?p.interpolateRgb:t instanceof Date?xn:Nn(t)?wn:Array.isArray(t)?kn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?An:p.interpolateNumber)(n,t)}function vn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function Sn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function q(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function S(n){return n=q(Math.abs(n)),n?n[1]:NaN}function bn(n,t){return function(e,r){for(var i=e.length,f=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),f.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return f.reverse().join(t)}}function jn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var Pn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=Pn.exec(n)))throw new Error("invalid format: "+n);var t;return new G({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=G.prototype;function G(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}G.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function zn(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var _;function Rn(n,t){var e=q(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=r.length;return f===u?r:f>u?r+new Array(f-u+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+q(n,Math.max(0,t+f-1))[0]}function Y(n,t){var e=q(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Z={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Sn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Y(n*100,t),r:Y,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function H(n){return n}var J=Array.prototype.map,K=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $n(n){var t=n.grouping===void 0||n.thousands===void 0?H:bn(J.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?H:jn(J.call(n.numerals,String)),u=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var m=h.fill,w=h.align,y=h.sign,b=h.symbol,x=h.zero,j=h.width,T=h.comma,N=h.precision,O=h.trim,d=h.type;d==="n"?(T=!0,d="g"):Z[d]||(N===void 0&&(N=12),O=!0,d="g"),(x||m==="0"&&w==="=")&&(x=!0,m="0",w="=");var un=b==="$"?e:b==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",an=b==="$"?r:/[%p]/.test(d)?u:"",V=Z[d],fn=/[defgprs%]/.test(d);N=N===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function X(l){var k=un,g=an,A,U,P;if(d==="c")g=V(l)+g,l="";else{l=+l;var z=l<0||1/l<0;if(l=isNaN(l)?c:V(Math.abs(l),N),O&&(l=zn(l)),z&&+l==0&&y!=="+"&&(z=!1),k=(z?y==="("?y:a:y==="-"||y==="("?"":y)+k,g=(d==="s"?K[8+_/3]:"")+g+(z&&y==="("?")":""),fn){for(A=-1,U=l.length;++A<U;)if(P=l.charCodeAt(A),48>P||P>57){g=(P===46?i+l.slice(A+1):l.slice(A))+g,l=l.slice(0,A);break}}}T&&!x&&(l=t(l,1/0));var R=k.length+l.length+g.length,M=R<j?new Array(j-R+1).join(m):"";switch(T&&x&&(l=t(M+l,M.length?j-g.length:1/0),M=""),w){case"<":l=k+l+g+M;break;case"=":l=k+M+l+g;break;case"^":l=M.slice(0,R=M.length>>1)+k+l+g+M.slice(R);break;default:l=M+k+l+g;break}return f(l)}return X.toString=function(){return h+""},X}function s(h,m){var w=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(S(m)/3)))*3,b=Math.pow(10,-y),x=K[8+y/3];return function(j){return w(b*j)+x}}return{format:o,formatPrefix:s}}var $,nn,tn;Fn({thousands:",",grouping:[3],currency:["$",""]});function Fn(n){return $=$n(n),nn=$.format,tn=$.formatPrefix,$}function En(n){return Math.max(0,-S(Math.abs(n)))}function qn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(S(t)/3)))*3-S(Math.abs(n)))}function Dn(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,S(t)-S(n))+1}function Tn(n){return function(){return n}}function In(n){return+n}var Q=[0,1];function v(n){return n}function L(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Tn(isNaN(t)?NaN:.5)}function Ln(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Cn(n,t,e){var r=n[0],i=n[1],f=t[0],u=t[1];return i<r?(r=L(i,r),f=e(u,f)):(r=L(r,i),f=e(f,u)),function(a){return f(r(a))}}function Bn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),f=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)i[u]=L(n[u],n[u+1]),f[u]=e(t[u],t[u+1]);return function(a){var c=dn(n,a,1,r)-1;return f[c](i[c](a))}}function rn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Gn(){var n=Q,t=Q,e=B,r,i,f,u=v,a,c,o;function s(){var m=Math.min(n.length,t.length);return u!==v&&(u=Ln(n[0],n[m-1])),a=m>2?Bn:Cn,c=o=null,h}function h(m){return m==null||isNaN(m=+m)?f:(c||(c=a(n.map(r),t,e)))(r(u(m)))}return h.invert=function(m){return u(i((o||(o=a(t,n.map(r),p.interpolateNumber)))(m)))},h.domain=function(m){return arguments.length?(n=Array.from(m,In),s()):n.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),s()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),e=vn,s()},h.clamp=function(m){return arguments.length?(u=m?!0:v,s()):u!==v},h.interpolate=function(m){return arguments.length?(e=m,s()):e},h.unknown=function(m){return arguments.length?(f=m,h):f},function(m,w){return r=m,i=w,s()}}function en(){return Gn()(v,v)}function On(n,t,e,r){var i=W(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=qn(i,u))&&(r.precision=f),tn(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Dn(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=En(i))&&(r.precision=f-(r.type==="%")*2);break}}return nn(r)}function Vn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return On(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,u=r[i],a=r[f],c,o,s=10;for(a<u&&(o=u,u=a,a=o,o=i,i=f,f=o);s-- >0;){if(o=I(u,a,e),o===c)return r[i]=u,r[f]=a,t(r);if(o>0)u=Math.floor(u/o)*o,a=Math.ceil(a/o)*o;else if(o<0)u=Math.ceil(u*o)/o,a=Math.floor(a*o)/o;else break;c=o}return n},n}function on(){var n=en();return n.copy=function(){return rn(n,on())},cn.initRange.apply(n,arguments),Vn(n)}exports.bisector=C;exports.continuous=en;exports.copy=rn;exports.linear=on;exports.tickStep=W;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{var R,m,C;(R=Path2D.prototype).roundRect??(R.roundRect=P),globalThis.CanvasRenderingContext2D&&((m=globalThis.CanvasRenderingContext2D.prototype).roundRect??(m.roundRect=P)),globalThis.OffscreenCanvasRenderingContext2D&&((C=globalThis.OffscreenCanvasRenderingContext2D.prototype).roundRect??(C.roundRect=P));function P(t,o,u,a,s){if(![t,o,u,a].every(n=>Number.isFinite(n)))return;s=O(s);let e,r,i,h;if(s.length===4)e=l(s[0]),r=l(s[1]),i=l(s[2]),h=l(s[3]);else if(s.length===3)e=l(s[0]),r=l(s[1]),h=l(s[1]),i=l(s[2]);else if(s.length===2)e=l(s[0]),i=l(s[0]),r=l(s[1]),h=l(s[1]);else if(s.length===1)e=l(s[0]),r=l(s[0]),i=l(s[0]),h=l(s[0]);else throw new RangeError(`${b(this)} ${s.length} is not a valid size for radii sequence.`);const g=[e,r,i,h],p=g.find(({x:n,y:f})=>n<0||f<0);if((p==null?void 0:p.x)<0?p.x:p==null||p.y,g.some(({x:n,y:f})=>!Number.isFinite(n)||!Number.isFinite(f)))return;if(p)throw new RangeError(`${b(this)} Radius value ${p} is negative.`);v(g),u<0&&a<0?(this.moveTo(t-e.x,o),this.ellipse(t+u+r.x,o-r.y,r.x,r.y,0,-Math.PI*1.5,-Math.PI),this.ellipse(t+u+i.x,o+a+i.y,i.x,i.y,0,-Math.PI,-Math.PI/2),this.ellipse(t-h.x,o+a+h.y,h.x,h.y,0,-Math.PI/2,0),this.ellipse(t-e.x,o-e.y,e.x,e.y,0,0,-Math.PI/2)):u<0?(this.moveTo(t-e.x,o),this.ellipse(t+u+r.x,o+r.y,r.x,r.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(t+u+i.x,o+a-i.y,i.x,i.y,0,-Math.PI,-Math.PI*1.5,1),this.ellipse(t-h.x,o+a-h.y,h.x,h.y,0,Math.PI/2,0,1),this.ellipse(t-e.x,o+e.y,e.x,e.y,0,0,-Math.PI/2,1)):a<0?(this.moveTo(t+e.x,o),this.ellipse(t+u-r.x,o-r.y,r.x,r.y,0,Math.PI/2,0,1),this.ellipse(t+u-i.x,o+a+i.y,i.x,i.y,0,0,-Math.PI/2,1),this.ellipse(t+h.x,o+a+h.y,h.x,h.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(t+e.x,o-e.y,e.x,e.y,0,-Math.PI,-Math.PI*1.5,1)):(this.moveTo(t+e.x,o),this.ellipse(t+u-r.x,o+r.y,r.x,r.y,0,-Math.PI/2,0),this.ellipse(t+u-i.x,o+a-i.y,i.x,i.y,0,0,Math.PI/2),this.ellipse(t+h.x,o+a-h.y,h.x,h.y,0,Math.PI/2,Math.PI),this.ellipse(t+e.x,o+e.y,e.x,e.y,0,Math.PI,Math.PI*1.5)),this.closePath(),this.moveTo(t,o);function N(n){const{x:f,y:c,z:x,w:M}=n;return{x:f,y:c,z:x,w:M}}function O(n){const f=typeof n;return f==="undefined"||n===null?[0]:f==="function"?[NaN]:f==="object"?typeof n[Symbol.iterator]=="function"?[...n].map(c=>{const x=typeof c;return x==="undefined"||c===null?0:x==="function"?NaN:x==="object"?N(c):y(c)}):[N(n)]:[y(n)]}function y(n){return+n}function l(n){const f=y(n);return Number.isFinite(f)?{x:f,y:f}:Object(n)===n?{x:y(n.x??0),y:y(n.y??0)}:{x:NaN,y:NaN}}function v(n){const[f,c,x,M]=n,F=[Math.abs(u)/(f.x+c.x),Math.abs(a)/(c.y+x.y),Math.abs(u)/(x.x+M.x),Math.abs(a)/(f.y+M.y)],I=Math.min(...F);if(I<=1)for(const D of n)D.x*=I,D.y*=I}}function b(t){return`Failed to execute 'roundRect' on '${T(t)}':`}function T(t){return Object(t)===t&&t instanceof Path2D?"Path2D":t instanceof(globalThis==null?void 0:globalThis.CanvasRenderingContext2D)?"CanvasRenderingContext2D":t instanceof(globalThis==null?void 0:globalThis.OffscreenCanvasRenderingContext2D)?"OffscreenCanvasRenderingContext2D":(t==null?void 0:t.constructor.name)||t}})();
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { l as Y, A as D, e as M } from "./layers.BBwDvE6l.js";
|
|
2
|
+
import "./layers.I-MG0ir4.js";
|
|
3
|
+
var O = function() {
|
|
4
|
+
var a = function(u, t, e, n) {
|
|
5
|
+
for (e = e || {}, n = u.length; n--; e[u[n]] = t)
|
|
6
|
+
;
|
|
7
|
+
return e;
|
|
8
|
+
}, f = [6, 9, 10], m = {
|
|
9
|
+
trace: function() {
|
|
10
|
+
},
|
|
11
|
+
yy: {},
|
|
12
|
+
symbols_: { error: 2, start: 3, info: 4, document: 5, EOF: 6, line: 7, statement: 8, NL: 9, showInfo: 10, $accept: 0, $end: 1 },
|
|
13
|
+
terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
|
|
14
|
+
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
|
|
15
|
+
performAction: function(t, e, n, s, r, i, d) {
|
|
16
|
+
switch (i.length - 1, r) {
|
|
17
|
+
case 1:
|
|
18
|
+
return s;
|
|
19
|
+
case 4:
|
|
20
|
+
break;
|
|
21
|
+
case 6:
|
|
22
|
+
s.setInfo(!0);
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, a(f, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, a(f, [2, 3]), a(f, [2, 4]), a(f, [2, 5]), a(f, [2, 6])],
|
|
27
|
+
defaultActions: { 4: [2, 1] },
|
|
28
|
+
parseError: function(t, e) {
|
|
29
|
+
if (e.recoverable)
|
|
30
|
+
this.trace(t);
|
|
31
|
+
else {
|
|
32
|
+
var n = new Error(t);
|
|
33
|
+
throw n.hash = e, n;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
parse: function(t) {
|
|
37
|
+
var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
|
|
38
|
+
for (var E in this.yy)
|
|
39
|
+
Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
|
|
40
|
+
o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc > "u" && (o.yylloc = {});
|
|
41
|
+
var I = o.yylloc;
|
|
42
|
+
i.push(I);
|
|
43
|
+
var z = o.options && o.options.ranges;
|
|
44
|
+
typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
45
|
+
function U() {
|
|
46
|
+
var y;
|
|
47
|
+
return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
|
|
48
|
+
}
|
|
49
|
+
for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
|
|
50
|
+
if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l > "u") && (l = U()), h = d[g] && d[g][l]), typeof h > "u" || !h.length || !h[0]) {
|
|
51
|
+
var A = "";
|
|
52
|
+
S = [];
|
|
53
|
+
for (b in d[g])
|
|
54
|
+
this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
|
|
55
|
+
o.showPosition ? A = "Parse error on line " + (v + 1) + `:
|
|
56
|
+
` + o.showPosition() + `
|
|
57
|
+
Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l == T ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
|
|
58
|
+
text: o.match,
|
|
59
|
+
token: this.terminals_[l] || l,
|
|
60
|
+
line: o.yylineno,
|
|
61
|
+
loc: I,
|
|
62
|
+
expected: S
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
if (h[0] instanceof Array && h.length > 1)
|
|
66
|
+
throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
|
|
67
|
+
switch (h[0]) {
|
|
68
|
+
case 1:
|
|
69
|
+
n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null, L = o.yyleng, P = o.yytext, v = o.yylineno, I = o.yylloc;
|
|
70
|
+
break;
|
|
71
|
+
case 2:
|
|
72
|
+
if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
|
|
73
|
+
first_line: i[i.length - (c || 1)].first_line,
|
|
74
|
+
last_line: i[i.length - 1].last_line,
|
|
75
|
+
first_column: i[i.length - (c || 1)].first_column,
|
|
76
|
+
last_column: i[i.length - 1].last_column
|
|
77
|
+
}, z && (_._$.range = [
|
|
78
|
+
i[i.length - (c || 1)].range[0],
|
|
79
|
+
i[i.length - 1].range[1]
|
|
80
|
+
]), w = this.performAction.apply(_, [
|
|
81
|
+
P,
|
|
82
|
+
L,
|
|
83
|
+
v,
|
|
84
|
+
p.yy,
|
|
85
|
+
h[1],
|
|
86
|
+
r,
|
|
87
|
+
i
|
|
88
|
+
].concat(R)), typeof w < "u")
|
|
89
|
+
return w;
|
|
90
|
+
c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
|
|
91
|
+
break;
|
|
92
|
+
case 3:
|
|
93
|
+
return !0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return !0;
|
|
97
|
+
}
|
|
98
|
+
}, k = /* @__PURE__ */ function() {
|
|
99
|
+
var u = {
|
|
100
|
+
EOF: 1,
|
|
101
|
+
parseError: function(e, n) {
|
|
102
|
+
if (this.yy.parser)
|
|
103
|
+
this.yy.parser.parseError(e, n);
|
|
104
|
+
else
|
|
105
|
+
throw new Error(e);
|
|
106
|
+
},
|
|
107
|
+
// resets the lexer, sets new input
|
|
108
|
+
setInput: function(t, e) {
|
|
109
|
+
return this.yy = e || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
110
|
+
first_line: 1,
|
|
111
|
+
first_column: 0,
|
|
112
|
+
last_line: 1,
|
|
113
|
+
last_column: 0
|
|
114
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
115
|
+
},
|
|
116
|
+
// consumes and returns one char from the input
|
|
117
|
+
input: function() {
|
|
118
|
+
var t = this._input[0];
|
|
119
|
+
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
120
|
+
var e = t.match(/(?:\r\n?|\n).*/g);
|
|
121
|
+
return e ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
|
|
122
|
+
},
|
|
123
|
+
// unshifts one char (or a string) into the input
|
|
124
|
+
unput: function(t) {
|
|
125
|
+
var e = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
126
|
+
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e), this.offset -= e;
|
|
127
|
+
var s = this.match.split(/(?:\r\n?|\n)/g);
|
|
128
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
129
|
+
var r = this.yylloc.range;
|
|
130
|
+
return this.yylloc = {
|
|
131
|
+
first_line: this.yylloc.first_line,
|
|
132
|
+
last_line: this.yylineno + 1,
|
|
133
|
+
first_column: this.yylloc.first_column,
|
|
134
|
+
last_column: n ? (n.length === s.length ? this.yylloc.first_column : 0) + s[s.length - n.length].length - n[0].length : this.yylloc.first_column - e
|
|
135
|
+
}, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - e]), this.yyleng = this.yytext.length, this;
|
|
136
|
+
},
|
|
137
|
+
// When called from action, caches matched text and appends it on next action
|
|
138
|
+
more: function() {
|
|
139
|
+
return this._more = !0, this;
|
|
140
|
+
},
|
|
141
|
+
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
142
|
+
reject: function() {
|
|
143
|
+
if (this.options.backtrack_lexer)
|
|
144
|
+
this._backtrack = !0;
|
|
145
|
+
else
|
|
146
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
147
|
+
` + this.showPosition(), {
|
|
148
|
+
text: "",
|
|
149
|
+
token: null,
|
|
150
|
+
line: this.yylineno
|
|
151
|
+
});
|
|
152
|
+
return this;
|
|
153
|
+
},
|
|
154
|
+
// retain first n characters of the match
|
|
155
|
+
less: function(t) {
|
|
156
|
+
this.unput(this.match.slice(t));
|
|
157
|
+
},
|
|
158
|
+
// displays already matched input, i.e. for error messages
|
|
159
|
+
pastInput: function() {
|
|
160
|
+
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
161
|
+
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
162
|
+
},
|
|
163
|
+
// displays upcoming input, i.e. for error messages
|
|
164
|
+
upcomingInput: function() {
|
|
165
|
+
var t = this.match;
|
|
166
|
+
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
167
|
+
},
|
|
168
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
169
|
+
showPosition: function() {
|
|
170
|
+
var t = this.pastInput(), e = new Array(t.length + 1).join("-");
|
|
171
|
+
return t + this.upcomingInput() + `
|
|
172
|
+
` + e + "^";
|
|
173
|
+
},
|
|
174
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
175
|
+
test_match: function(t, e) {
|
|
176
|
+
var n, s, r;
|
|
177
|
+
if (this.options.backtrack_lexer && (r = {
|
|
178
|
+
yylineno: this.yylineno,
|
|
179
|
+
yylloc: {
|
|
180
|
+
first_line: this.yylloc.first_line,
|
|
181
|
+
last_line: this.last_line,
|
|
182
|
+
first_column: this.yylloc.first_column,
|
|
183
|
+
last_column: this.yylloc.last_column
|
|
184
|
+
},
|
|
185
|
+
yytext: this.yytext,
|
|
186
|
+
match: this.match,
|
|
187
|
+
matches: this.matches,
|
|
188
|
+
matched: this.matched,
|
|
189
|
+
yyleng: this.yyleng,
|
|
190
|
+
offset: this.offset,
|
|
191
|
+
_more: this._more,
|
|
192
|
+
_input: this._input,
|
|
193
|
+
yy: this.yy,
|
|
194
|
+
conditionStack: this.conditionStack.slice(0),
|
|
195
|
+
done: this.done
|
|
196
|
+
}, this.options.ranges && (r.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
|
|
197
|
+
first_line: this.yylloc.last_line,
|
|
198
|
+
last_line: this.yylineno + 1,
|
|
199
|
+
first_column: this.yylloc.last_column,
|
|
200
|
+
last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
201
|
+
}, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, e, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
202
|
+
return n;
|
|
203
|
+
if (this._backtrack) {
|
|
204
|
+
for (var i in r)
|
|
205
|
+
this[i] = r[i];
|
|
206
|
+
return !1;
|
|
207
|
+
}
|
|
208
|
+
return !1;
|
|
209
|
+
},
|
|
210
|
+
// return next match in input
|
|
211
|
+
next: function() {
|
|
212
|
+
if (this.done)
|
|
213
|
+
return this.EOF;
|
|
214
|
+
this._input || (this.done = !0);
|
|
215
|
+
var t, e, n, s;
|
|
216
|
+
this._more || (this.yytext = "", this.match = "");
|
|
217
|
+
for (var r = this._currentRules(), i = 0; i < r.length; i++)
|
|
218
|
+
if (n = this._input.match(this.rules[r[i]]), n && (!e || n[0].length > e[0].length)) {
|
|
219
|
+
if (e = n, s = i, this.options.backtrack_lexer) {
|
|
220
|
+
if (t = this.test_match(n, r[i]), t !== !1)
|
|
221
|
+
return t;
|
|
222
|
+
if (this._backtrack) {
|
|
223
|
+
e = !1;
|
|
224
|
+
continue;
|
|
225
|
+
} else
|
|
226
|
+
return !1;
|
|
227
|
+
} else if (!this.options.flex)
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
return e ? (t = this.test_match(e, r[s]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
231
|
+
` + this.showPosition(), {
|
|
232
|
+
text: "",
|
|
233
|
+
token: null,
|
|
234
|
+
line: this.yylineno
|
|
235
|
+
});
|
|
236
|
+
},
|
|
237
|
+
// return next match that has a token
|
|
238
|
+
lex: function() {
|
|
239
|
+
var e = this.next();
|
|
240
|
+
return e || this.lex();
|
|
241
|
+
},
|
|
242
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
243
|
+
begin: function(e) {
|
|
244
|
+
this.conditionStack.push(e);
|
|
245
|
+
},
|
|
246
|
+
// pop the previously active lexer condition state off the condition stack
|
|
247
|
+
popState: function() {
|
|
248
|
+
var e = this.conditionStack.length - 1;
|
|
249
|
+
return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
250
|
+
},
|
|
251
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
252
|
+
_currentRules: function() {
|
|
253
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
254
|
+
},
|
|
255
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
256
|
+
topState: function(e) {
|
|
257
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
258
|
+
},
|
|
259
|
+
// alias for begin(condition)
|
|
260
|
+
pushState: function(e) {
|
|
261
|
+
this.begin(e);
|
|
262
|
+
},
|
|
263
|
+
// return the number of states currently on the stack
|
|
264
|
+
stateStackSize: function() {
|
|
265
|
+
return this.conditionStack.length;
|
|
266
|
+
},
|
|
267
|
+
options: { "case-insensitive": !0 },
|
|
268
|
+
performAction: function(e, n, s, r) {
|
|
269
|
+
switch (s) {
|
|
270
|
+
case 0:
|
|
271
|
+
return 4;
|
|
272
|
+
case 1:
|
|
273
|
+
return 9;
|
|
274
|
+
case 2:
|
|
275
|
+
return "space";
|
|
276
|
+
case 3:
|
|
277
|
+
return 10;
|
|
278
|
+
case 4:
|
|
279
|
+
return 6;
|
|
280
|
+
case 5:
|
|
281
|
+
return "TXT";
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
|
|
285
|
+
conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 } }
|
|
286
|
+
};
|
|
287
|
+
return u;
|
|
288
|
+
}();
|
|
289
|
+
m.lexer = k;
|
|
290
|
+
function x() {
|
|
291
|
+
this.yy = {};
|
|
292
|
+
}
|
|
293
|
+
return x.prototype = m, m.Parser = x, new x();
|
|
294
|
+
}();
|
|
295
|
+
O.parser = O;
|
|
296
|
+
const B = O, j = {
|
|
297
|
+
info: !1
|
|
298
|
+
};
|
|
299
|
+
let $ = j.info;
|
|
300
|
+
const V = (a) => {
|
|
301
|
+
$ = a;
|
|
302
|
+
}, X = () => $, q = () => {
|
|
303
|
+
$ = j.info;
|
|
304
|
+
}, C = {
|
|
305
|
+
clear: q,
|
|
306
|
+
setInfo: V,
|
|
307
|
+
getInfo: X
|
|
308
|
+
}, G = (a, f, m) => {
|
|
309
|
+
Y.debug(`rendering info diagram
|
|
310
|
+
` + a);
|
|
311
|
+
const k = D(f);
|
|
312
|
+
M(k, 100, 400, !0), k.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${m}`);
|
|
313
|
+
}, H = { draw: G }, Q = {
|
|
314
|
+
parser: B,
|
|
315
|
+
db: C,
|
|
316
|
+
renderer: H
|
|
317
|
+
};
|
|
318
|
+
export {
|
|
319
|
+
Q as diagram
|
|
320
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsx as o, jsxs as V } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as $, useState as I, useContext as q, useEffect as w } from "react";
|
|
3
3
|
import { useTranslation as J } from "react-i18next";
|
|
4
|
-
import { l as Q, u as X, C as Y, a as Z, b as K,
|
|
4
|
+
import { l as Q, u as X, C as Y, a as Z, b as K, d as C, f as E, t as ee, I as te, g as ie, h as oe, i as ne, F as ae } from "./layers.CClfR9Rs.js";
|
|
5
5
|
import { LoadingOverlay as H, Flex as se, Alert as re } from "@mantine/core";
|
|
6
6
|
import { IconInfoCircle as le } from "@tabler/icons-react";
|
|
7
7
|
const T = (t) => {
|
|
@@ -16,7 +16,7 @@ const T = (t) => {
|
|
|
16
16
|
imageRef: b,
|
|
17
17
|
maxWidth: v
|
|
18
18
|
} = t;
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ V(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
22
|
className: "media-wrapper",
|
|
@@ -113,10 +113,10 @@ function pe({
|
|
|
113
113
|
create: v,
|
|
114
114
|
alignment: j
|
|
115
115
|
}) {
|
|
116
|
-
const P =
|
|
116
|
+
const P = $(null), [z, y] = I(!0), [k, _] = I(!1), { isCollabActive: A } = Q(), [h] = X(), [m, S] = I(!0), [r, W] = I({
|
|
117
117
|
width: 0,
|
|
118
118
|
height: 0
|
|
119
|
-
}), { fetchUploadMedia:
|
|
119
|
+
}), { fetchUploadMedia: F, fetchDeleteMedia: L } = q(Y), { t: M } = J();
|
|
120
120
|
w(() => {
|
|
121
121
|
if (!t || t.startsWith("data:image/")) {
|
|
122
122
|
y(!1);
|
|
@@ -133,15 +133,15 @@ function pe({
|
|
|
133
133
|
const l = C(a);
|
|
134
134
|
E(l) && l.setWidthAndHeight(e, n);
|
|
135
135
|
});
|
|
136
|
-
}, { historyState:
|
|
137
|
-
settings: { showNestedEditorTreeView:
|
|
136
|
+
}, { historyState: O } = Z(), {
|
|
137
|
+
settings: { showNestedEditorTreeView: R }
|
|
138
138
|
} = K(), [x, p] = I(!1);
|
|
139
|
-
function
|
|
139
|
+
function B(e) {
|
|
140
140
|
return e.endsWith(".svg") || e.includes("image/svg+xml");
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function G(e) {
|
|
143
143
|
return new Promise((n, l) => {
|
|
144
|
-
if (
|
|
144
|
+
if (B(e)) {
|
|
145
145
|
n(0);
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
@@ -157,7 +157,7 @@ function pe({
|
|
|
157
157
|
v && p(!0);
|
|
158
158
|
}, [v]), w(() => {
|
|
159
159
|
let e = s, n = d, l = 100;
|
|
160
|
-
t &&
|
|
160
|
+
t && G(t).then((i) => {
|
|
161
161
|
typeof e == "number" && e < l && i < l ? (S(!0), W({
|
|
162
162
|
width: e,
|
|
163
163
|
height: n
|
|
@@ -183,21 +183,21 @@ function pe({
|
|
|
183
183
|
width: r.width,
|
|
184
184
|
height: r.height,
|
|
185
185
|
isLoading: z,
|
|
186
|
-
isError:
|
|
186
|
+
isError: k,
|
|
187
187
|
isIcon: m,
|
|
188
188
|
src: t,
|
|
189
189
|
id: b,
|
|
190
190
|
editor: h,
|
|
191
191
|
nodeKey: a,
|
|
192
|
-
fetchDeleteMedia:
|
|
192
|
+
fetchDeleteMedia: L,
|
|
193
193
|
altText: c,
|
|
194
194
|
imageRef: P,
|
|
195
195
|
maxWidth: g,
|
|
196
196
|
showCaption: f,
|
|
197
197
|
caption: u,
|
|
198
|
-
isCollabActive:
|
|
199
|
-
historyState:
|
|
200
|
-
showNestedEditorTreeView:
|
|
198
|
+
isCollabActive: A,
|
|
199
|
+
historyState: O,
|
|
200
|
+
showNestedEditorTreeView: R,
|
|
201
201
|
t: M
|
|
202
202
|
}
|
|
203
203
|
) : /* @__PURE__ */ o(
|
|
@@ -217,21 +217,21 @@ function pe({
|
|
|
217
217
|
width: "inherit",
|
|
218
218
|
height: "inherit",
|
|
219
219
|
isLoading: z,
|
|
220
|
-
isError:
|
|
220
|
+
isError: k,
|
|
221
221
|
isIcon: m,
|
|
222
222
|
src: t,
|
|
223
223
|
id: b,
|
|
224
224
|
editor: h,
|
|
225
225
|
nodeKey: a,
|
|
226
|
-
fetchDeleteMedia:
|
|
226
|
+
fetchDeleteMedia: L,
|
|
227
227
|
altText: c,
|
|
228
228
|
imageRef: P,
|
|
229
229
|
maxWidth: g,
|
|
230
230
|
showCaption: f,
|
|
231
231
|
caption: u,
|
|
232
|
-
isCollabActive:
|
|
233
|
-
historyState:
|
|
234
|
-
showNestedEditorTreeView:
|
|
232
|
+
isCollabActive: A,
|
|
233
|
+
historyState: O,
|
|
234
|
+
showNestedEditorTreeView: R,
|
|
235
235
|
t: M
|
|
236
236
|
}
|
|
237
237
|
)
|
|
@@ -241,8 +241,8 @@ function pe({
|
|
|
241
241
|
{
|
|
242
242
|
uploading: !1,
|
|
243
243
|
onUpload: (e) => {
|
|
244
|
-
!
|
|
245
|
-
|
|
244
|
+
!F || !e.length || (e.forEach((n, l) => {
|
|
245
|
+
F(n, (i, D) => {
|
|
246
246
|
l === 0 ? h.update(() => {
|
|
247
247
|
const N = C(a);
|
|
248
248
|
E(N) && (N.setSrc(i), N.setId(D));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.B8i9d7Qz.js");var e={paste:"Yapışdır",pasteAsPlaintext:"Düz mətn kimi yapışdırın",pasteCharts:"Diaqramları yapışdırın",selectAll:"Hamısını seç",multiSelect:"Seçimə element əlavə edin",moveCanvas:"Kanvası köçürün",cut:"Kəs",copy:"Kopyala",copyAsPng:"PNG olaraq panoya kopyala",copyAsSvg:"SVG olaraq panoya kopyala",copyText:"Mətn olaraq panoya kopyala",copySource:"",convertToCode:"",bringForward:"Önə daşı",sendToBack:"Geriyə göndərin",bringToFront:"Önə gətirin",sendBackward:"Geriyə göndərin",delete:"Sil",copyStyles:"Stilləri kopyalayın",pasteStyles:"Stilləri yapışdırın",stroke:"Strok rəngi",background:"Arxa fon",fill:"Doldur",strokeWidth:"Strok eni",strokeStyle:"Strok stili",strokeStyle_solid:"Solid",strokeStyle_dashed:"Kəsik",strokeStyle_dotted:"Nöqtəli",sloppiness:"Səliqəsizlik",opacity:"Şəffaflıq",textAlign:"Mətni uyğunlaşdır",edges:"Kənarlar",sharp:"Kəskin",round:"Dəyirmi",arrowheads:"Ox ucları",arrowhead_none:"Heç biri",arrowhead_arrow:"Ox",arrowhead_bar:"Çubuq",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Üçbucaq",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Şrift ölçüsü",fontFamily:"Şrift qrupu",addWatermark:'"Made with Excalidraw" əlavə et',handDrawn:"Əllə çəkilmiş",normal:"Normal",code:"Kod",small:"Kiçik",medium:"Orta",large:"Böyük",veryLarge:"Çox böyük",solid:"Solid",hachure:"Ştrix",zigzag:"Ziqzaq",crossHatch:"Çarpaz dəlik",thin:"İncə",bold:"Qalın",left:"Sol",center:"Mərkəz",right:"Sağ",extraBold:"Ekstra qalın",architect:"Memar",artist:"Rəssam",cartoonist:"Karikaturaçı",fileTitle:"Fayl adı",colorPicker:"Rəng seçən",canvasColors:"Kanvas üzərində istifadə olunur",canvasBackground:"Kanvas arxa fonu",drawingCanvas:"Kanvas çəkmək",layers:"Qatlar",actions:"Hərəkətlər",language:"Dil",liveCollaboration:"Canlı əməkdaşlıq...",duplicateSelection:"Dublikat",untitled:"Başlıqsız",name:"Ad",yourName:"Adınız",madeWithExcalidraw:"Excalidraw ilə hazırlanmışdır",group:"Qrup şəklində seçim",ungroup:"Qrupsuz seçim",collaborators:"",showGrid:"",addToLibrary:"",removeFromLibrary:"",libraryLoadingMessage:"",libraries:"",loadingScene:"",align:"",alignTop:"",alignBottom:"",alignLeft:"",alignRight:"",centerVertically:"",centerHorizontally:"",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"",flipVertical:"",viewMode:"",share:"",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"",editEmbed:"",create:"",createEmbed:"",label:"",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"",unlock:"",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},r={clearReset:"",exportJSON:"",exportImage:"",export:"",copyToClipboard:"",save:"",saveAs:"",load:"",getShareableLink:"",close:"",selectLanguage:"",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"",done:"",edit:"",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"",darkMode:"",lightMode:"",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"",clear:"",remove:"",embed:"",publishLibrary:"",submit:"",confirm:"",embeddableInteractionButton:""},o={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},t={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"",cannotResolveCollabServer:"",importLibraryError:"",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"",image:"",rectangle:"",diamond:"",ellipse:"",arrow:"",line:"",freedraw:"",text:"",library:"",lock:"",penMode:"",link:"",eraser:"",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},l={canvasActions:"",selectedShapeActions:"",shapes:""},n={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},s={cannotShowPreview:"",canvasTooBig:"",canvasTooBigTip:""},d={headingMain:"",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"",sceneContent:""},u={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:""},m={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"",excalidrawplus_exportError:""},p={blog:"",click:"",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"",doubleClick:"",drag:"",editor:"",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"",preventBinding:"",tools:"",shortcuts:"",textFinish:"",textNewLine:"",title:"",view:"",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},g={title:""},b={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},y={title:"",content:""},x={resetLibrary:"",removeItemsFromLib:""},h={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},S={tooltip:"",link:""},k={angle:"",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"",total:"",version:"",versionCopy:"",versionNotAvailable:"",width:""},v={addedToLibrary:"",copyStyles:"",copyToClipboard:"",copyToClipboardAsPng:"",fileSaved:"",fileSavedToFilename:"",canvas:"",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},F={transparent:"",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},w={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},E={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},T={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},_={title:"",button:"",description:"",syntax:"",preview:""},C={labels:e,library:a,buttons:r,alerts:o,errors:t,toolBar:i,headings:l,hints:n,canvasError:s,errorSplash:d,roomDialog:u,errorDialog:c,exportDialog:m,helpDialog:p,clearCanvasDialog:g,publishDialog:b,publishSuccessDialog:y,confirmDialog:x,imageExportDialog:h,encrypted:S,stats:k,toast:v,colors:F,welcomeScreen:w,colorPicker:E,overwriteConfirm:T,mermaid:_};exports.alerts=o;exports.buttons=r;exports.canvasError=s;exports.clearCanvasDialog=g;exports.colorPicker=E;exports.colors=F;exports.confirmDialog=x;exports.default=C;exports.encrypted=S;exports.errorDialog=c;exports.errorSplash=d;exports.errors=t;exports.exportDialog=m;exports.headings=l;exports.helpDialog=p;exports.hints=n;exports.imageExportDialog=h;exports.labels=e;exports.library=a;exports.mermaid=_;exports.overwriteConfirm=T;exports.publishDialog=b;exports.publishSuccessDialog=y;exports.roomDialog=u;exports.stats=k;exports.toast=v;exports.toolBar=i;exports.welcomeScreen=w;
|