@layers-app/editor 0.7.16 → 0.7.18
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/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -77
- package/dist/index.js +9 -15
- package/dist/layers.94hwidA2.js +198 -0
- package/dist/layers.B4l6ta1Q.js +1 -0
- package/dist/layers.BMrOAD_P.js +1 -0
- package/dist/{layers.CfISeAkt.js → layers.D99OBX9u.js} +86 -88
- package/dist/layers.DOzLBYZr.js +304 -0
- package/dist/layers.YRyXopy_.js +151 -0
- package/dist/layers.usKC_Id5.js +1 -0
- package/dist/layers.zu-IYGYU.js +47463 -0
- package/package.json +1 -1
- package/dist/layers.-fM6L_z3.js +0 -1
- package/dist/layers.0KANPDnB.js +0 -9
- package/dist/layers.1Nv-nANB.js +0 -271
- package/dist/layers.1bdyQGVP.js +0 -8
- package/dist/layers.49H_5LNr.js +0 -41
- package/dist/layers.4HZb3jXk.js +0 -9
- package/dist/layers.4RmaHEsu.js +0 -36
- package/dist/layers.52famHy6.js +0 -1
- package/dist/layers.5WzirB7G.js +0 -960
- package/dist/layers.5bSjIKfg.js +0 -8
- package/dist/layers.7JqFgE4-.js +0 -15
- package/dist/layers.7oLFJZ8l.js +0 -36
- package/dist/layers.7xkZRnuM.js +0 -40
- package/dist/layers.9pNaFvaX.js +0 -1
- package/dist/layers.ABhWEnmQ.js +0 -37
- package/dist/layers.B-8gEV_E.js +0 -373
- package/dist/layers.B-9QQMGw.js +0 -9
- package/dist/layers.B0sBopW9.js +0 -10
- package/dist/layers.B19hGmey.js +0 -1
- package/dist/layers.B1ySJNCM.js +0 -40
- package/dist/layers.B2BhJZ0D.js +0 -42
- package/dist/layers.B2iVWMcm.js +0 -9
- package/dist/layers.B3D4g2HH.js +0 -1
- package/dist/layers.B6Va7v9s.js +0 -207
- package/dist/layers.B7K7JjK6.js +0 -1510
- package/dist/layers.B82wcYq0.js +0 -271
- package/dist/layers.BAU0IeY7.js +0 -1
- package/dist/layers.BAtv1CM7.js +0 -1
- package/dist/layers.BCD7sjs8.js +0 -1
- package/dist/layers.BEUJQJGq.js +0 -35
- package/dist/layers.BGDCJs-p.js +0 -1
- package/dist/layers.BHz2k1im.js +0 -7
- package/dist/layers.BIM8NeWS.js +0 -40
- package/dist/layers.BIbdMSbX.js +0 -772
- package/dist/layers.BIeVwYKL.js +0 -1
- package/dist/layers.BJDrjORS.js +0 -244
- package/dist/layers.BJhjIY5r.js +0 -37
- package/dist/layers.BJmaj5SY.js +0 -39
- package/dist/layers.BKy18lBk.js +0 -10
- package/dist/layers.BL3wEq7M.js +0 -32
- package/dist/layers.BLKD1Tiy.js +0 -39
- package/dist/layers.BLd2spTm.js +0 -1
- package/dist/layers.BNR6f37h.js +0 -160
- package/dist/layers.BNkwxNgt.js +0 -39
- package/dist/layers.BOMC5c1j.js +0 -2
- package/dist/layers.BQL01Vq6.js +0 -4
- package/dist/layers.BQm21WlP.js +0 -4
- package/dist/layers.BRGRJfuK.js +0 -41
- package/dist/layers.BSTBZrFn.js +0 -1
- package/dist/layers.BXDV2XaW.js +0 -425
- package/dist/layers.B_Vwa8Hx.js +0 -42
- package/dist/layers.B_jUVHTe.js +0 -32
- package/dist/layers.BakV9gnD.js +0 -42
- package/dist/layers.BbCfEXyj.js +0 -55
- package/dist/layers.BbbyE_Pc.js +0 -9
- package/dist/layers.Bd6ptC9U.js +0 -84
- package/dist/layers.BeCuix4V.js +0 -10
- package/dist/layers.BeFEsW5q.js +0 -1
- package/dist/layers.BfVGjstp.js +0 -42
- package/dist/layers.BgEbqAdb.js +0 -4
- package/dist/layers.Bk40urId.js +0 -1126
- package/dist/layers.Blc4R7F2.js +0 -41
- package/dist/layers.Bny7BWT9.js +0 -41
- package/dist/layers.BpilXLfW.js +0 -6
- package/dist/layers.Bpnbfq-r.js +0 -1
- package/dist/layers.BrbcqGdA.js +0 -48149
- package/dist/layers.BvGgfImM.js +0 -52
- package/dist/layers.BywviGiP.js +0 -11
- package/dist/layers.C-_ynqvr.js +0 -1
- package/dist/layers.C1actZbK.js +0 -11
- package/dist/layers.C3DRx9On.js +0 -10
- package/dist/layers.C3SAUwXb.js +0 -8
- package/dist/layers.C3yLkCio.js +0 -7
- package/dist/layers.C6fD5O8g.js +0 -6
- package/dist/layers.C8YD8pwl.js +0 -11
- package/dist/layers.C8_lu5UH.js +0 -23
- package/dist/layers.C92R-ENv.js +0 -39
- package/dist/layers.C9QCrDzm.js +0 -1
- package/dist/layers.C9_vX7IO.js +0 -139
- package/dist/layers.CA_fw2Dw.js +0 -32
- package/dist/layers.CB61rfHO.js +0 -1225
- package/dist/layers.CCur6VEj.js +0 -65
- package/dist/layers.CFLfRAu0.js +0 -14
- package/dist/layers.CFcHk-z5.js +0 -1268
- package/dist/layers.CFmNZSAJ.js +0 -1
- package/dist/layers.CGajZ1Yz.js +0 -42
- package/dist/layers.CHZsXQcr.js +0 -1
- package/dist/layers.CHhFVTiW.js +0 -10
- package/dist/layers.CJ1YRhUh.js +0 -6
- package/dist/layers.CJtE2LxP.js +0 -2482
- package/dist/layers.CJyO2xrs.js +0 -5
- package/dist/layers.CMyb9_FE.js +0 -40
- package/dist/layers.COjckA33.js +0 -10
- package/dist/layers.CPJSmpbw.js +0 -1
- package/dist/layers.CQvaw3yb.js +0 -5
- package/dist/layers.CRht5Nqq.js +0 -907
- package/dist/layers.CSXAHvGG.js +0 -33
- package/dist/layers.CTaitOnb.js +0 -11
- package/dist/layers.CV8UgwCq.js +0 -198
- package/dist/layers.CVJOismf.js +0 -6
- package/dist/layers.CXWtqfTe.js +0 -794
- package/dist/layers.CYPfnKfS.js +0 -96
- package/dist/layers.CYdP1IhC.js +0 -38
- package/dist/layers.CYneLciB.js +0 -1286
- package/dist/layers.CZLVHOh5.js +0 -8
- package/dist/layers.C_IvrzZ3.js +0 -7
- package/dist/layers.CbBTbZIx.js +0 -5
- package/dist/layers.CcP6Z-gZ.js +0 -118
- package/dist/layers.CcTyCqqv.js +0 -3
- package/dist/layers.Cd3kGFCJ.js +0 -32
- package/dist/layers.Ce7-wBOK.js +0 -11
- package/dist/layers.Cf5sVqJX.js +0 -39
- package/dist/layers.Cg3Hqyp6.js +0 -35
- package/dist/layers.Cg60w1Fn.js +0 -806
- package/dist/layers.Chd1p2rt.js +0 -26645
- package/dist/layers.CiTNX3uh.js +0 -32
- package/dist/layers.CkwenT1M.js +0 -8
- package/dist/layers.CnN8JfiX.js +0 -805
- package/dist/layers.Coh6z7rV.js +0 -8
- package/dist/layers.CpJSdiMb.js +0 -1
- package/dist/layers.CqVTtuYm.js +0 -6
- package/dist/layers.Cryqj610.js +0 -2238
- package/dist/layers.Cs-83js7.js +0 -1089
- package/dist/layers.CsivQuv1.js +0 -9
- package/dist/layers.Cud-IArB.js +0 -8
- package/dist/layers.CwL02t3J.js +0 -41
- package/dist/layers.CwsNJfmi.js +0 -10
- package/dist/layers.CxIhyFb7.js +0 -2966
- package/dist/layers.Cxh-oez0.js +0 -437
- package/dist/layers.Cyzu9PKQ.js +0 -1
- package/dist/layers.D-uio-rN.js +0 -423
- package/dist/layers.D0RX234F.js +0 -84
- package/dist/layers.D0zn4_Mx.js +0 -1
- package/dist/layers.D176Ljko.js +0 -116
- package/dist/layers.D2cVaX5z.js +0 -205
- package/dist/layers.D4Bw_BrO.js +0 -1
- package/dist/layers.D4T8fTcj.js +0 -1223
- package/dist/layers.D7jGxypv.js +0 -8
- package/dist/layers.D8fFj0P_.js +0 -34
- package/dist/layers.D9N3lSue.js +0 -7
- package/dist/layers.DAmxkO9p.js +0 -41
- package/dist/layers.DBwG7x-W.js +0 -8
- package/dist/layers.DDFbkCJT.js +0 -39
- package/dist/layers.DDnI7-13.js +0 -41
- package/dist/layers.DE6w34F3.js +0 -1
- package/dist/layers.DEaAvR_W.js +0 -189
- package/dist/layers.DEtMl_i3.js +0 -1034
- package/dist/layers.DHNIckw6.js +0 -39
- package/dist/layers.DHVcgZzL.js +0 -257
- package/dist/layers.DHcbExrH.js +0 -35
- package/dist/layers.DIpDvY-A.js +0 -40
- package/dist/layers.DJM_OF_R.js +0 -32
- package/dist/layers.DLJtS0JJ.js +0 -7
- package/dist/layers.DLwuMfdd.js +0 -84
- package/dist/layers.DMkBISW1.js +0 -1
- package/dist/layers.DN9HoVxI.js +0 -18
- package/dist/layers.DNJtYtN1.js +0 -9
- package/dist/layers.DOrgOHBr.js +0 -1
- package/dist/layers.DUlTmlus.js +0 -213
- package/dist/layers.DUutOP8h.js +0 -37
- package/dist/layers.DVWaIKgr.js +0 -21941
- package/dist/layers.D_WwW4Fn.js +0 -1
- package/dist/layers.D_fPGQ6i.js +0 -139
- package/dist/layers.D_faABvp.js +0 -21620
- package/dist/layers.DaIprEGs.js +0 -39
- package/dist/layers.Db0NyGA-.js +0 -1619
- package/dist/layers.DbaKVP5e.js +0 -1
- package/dist/layers.DdMy9cRx.js +0 -1088
- package/dist/layers.De35CioU.js +0 -44
- package/dist/layers.DgO3Q5mW.js +0 -4
- package/dist/layers.Di-PcJK6.js +0 -6
- package/dist/layers.DjCXWv2m.js +0 -38
- package/dist/layers.DjUOC4st.js +0 -16
- package/dist/layers.Dk2S8boy.js +0 -33
- package/dist/layers.DkBjWcDH.js +0 -504
- package/dist/layers.DnRaD217.js +0 -8583
- package/dist/layers.DnvnGxUC.js +0 -10
- package/dist/layers.DrarpmaN.js +0 -323
- package/dist/layers.DukGouVT.js +0 -39
- package/dist/layers.DvYYNhUp.js +0 -1
- package/dist/layers.Dv_6xN7s.js +0 -2
- package/dist/layers.DwWUZK6s.js +0 -129
- package/dist/layers.DwzO2zcv.js +0 -40
- package/dist/layers.DxA6ocdw.js +0 -70
- package/dist/layers.Dy1naDTQ.js +0 -14
- package/dist/layers.DzD-lWXV.js +0 -934
- package/dist/layers.E0TLXdrR.js +0 -40
- package/dist/layers.EcqLW9Mh.js +0 -1
- package/dist/layers.F4d4ILBH.js +0 -796
- package/dist/layers.G3enfHRT.js +0 -13
- package/dist/layers.HFONz6O9.js +0 -61
- package/dist/layers.IUqwmZRd.js +0 -122
- package/dist/layers.IbJq0D6U.js +0 -10
- package/dist/layers.Ic3KgoPg.js +0 -9
- package/dist/layers.JNgL8WWu.js +0 -10
- package/dist/layers.JWCLFILJ.js +0 -1
- package/dist/layers.KT-QFgdb.js +0 -7
- package/dist/layers.LCfVvo3T.js +0 -7
- package/dist/layers.LR-nMBU_.js +0 -1583
- package/dist/layers.Qt2qr0-t.js +0 -76
- package/dist/layers.R8mPlCA0.js +0 -261
- package/dist/layers.SCsPWeXb.js +0 -7
- package/dist/layers.U4NCf2-l.js +0 -70
- package/dist/layers.UewvnK33.js +0 -6
- package/dist/layers.VfVZmEbK.js +0 -8
- package/dist/layers.Vh-KvhZg.js +0 -1
- package/dist/layers.Y3D9xjCC.js +0 -9
- package/dist/layers.YT6D6D2x.js +0 -36
- package/dist/layers._y8hExIw.js +0 -223
- package/dist/layers.a8-4vDzD.js +0 -22
- package/dist/layers.aGzHUJ1W.js +0 -7
- package/dist/layers.b0h5ZBmD.js +0 -61
- package/dist/layers.b9B2NY7n.js +0 -11690
- package/dist/layers.ck9pUJ0W.js +0 -51
- package/dist/layers.d3HoUueQ.js +0 -2
- package/dist/layers.dWB4bggP.js +0 -1
- package/dist/layers.dh8xLSwh.js +0 -40
- package/dist/layers.eT_ZPmHS.js +0 -1
- package/dist/layers.fumrrA0i.js +0 -295
- package/dist/layers.gVfRcFrJ.js +0 -5
- package/dist/layers.js7-Kn9p.js +0 -36
- package/dist/layers.kW7XFPN_.js +0 -5
- package/dist/layers.lCpg7dOn.js +0 -21
- package/dist/layers.mobYTQXI.js +0 -1
- package/dist/layers.mvotlTNZ.js +0 -40
- package/dist/layers.n1dibO8I.js +0 -8
- package/dist/layers.nRPZ1e3g.js +0 -1
- package/dist/layers.o2u1uDM3.js +0 -1
- package/dist/layers.oJ31-KOl.js +0 -6
- package/dist/layers.ojcNGNgi.js +0 -1
- package/dist/layers.otxU0wtq.js +0 -40
- package/dist/layers.rE9xnPLC.js +0 -1
- package/dist/layers.s0KLXd5N.js +0 -41
- package/dist/layers.sqH5TpK8.js +0 -1
- package/dist/layers.t_MFWlU6.js +0 -9
- package/dist/layers.xrt74v23.js +0 -38
- package/dist/layers.zNb0110W.js +0 -37
package/dist/layers.CZLVHOh5.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./layers.CYPfnKfS.js");require("./layers.CV8UgwCq.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const pt=require("./layers.B19hGmey.js"),mt=require("./layers.BIeVwYKL.js");function rt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function ft(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function kt(t){return t.target.depth}function _t(t){return t.depth}function xt(t,n){return n-1-t.height}function yt(t,n){return t.sourceLinks.length?t.depth:n-1}function vt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ft(t.sourceLinks,kt)-1:0}function G(t){return function(){return t}}function ot(t,n){return Y(t.source,n.source)||t.index-n.index}function lt(t,n){return Y(t.target,n.target)||t.index-n.index}function Y(t,n){return t.y0-n.y0}function J(t){return t.value}function bt(t){return t.index}function wt(t){return t.nodes}function St(t){return t.links}function at(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ct({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Lt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=bt,i=yt,o,c,m=wt,b=St,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return A(e),E(e),T(e),C(e),S(e),ct(e),e}x.update=function(e){return ct(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:G(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:G(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:G(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:G(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function A({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=at(l,k)),typeof v!="object"&&(v=r.target=at(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function E({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function T({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function C({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function O({nodes:e}){const f=rt(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=ft(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}$(l)}}function S(e){const f=O(e);g=Math.min(_,(a-n)/(rt(f,l=>l.length)-1)),j(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);D(f,h,r),N(f,h,r)}}function N(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,z=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=M(W,v)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function D(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,z=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,z+=F}if(!(z>0))continue;let U=(R/z-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function P(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),I(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),I(e,n,0,f)}function I(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(lt);for(const{target:{targetLinks:l}}of e)l.sort(ot)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(lt),l.sort(ot)}function M(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,B=1e-6,Et=et-B;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new nt}nt.prototype=dt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>B)if(!(Math.abs(c*p-i*o)>B)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,A=b*b+y*y,E=Math.sqrt(x),T=Math.sqrt(m),C=u*Math.tan((tt-Math.acos((x+m-A)/(2*E*T)))/2),O=C/T,j=C/E;Math.abs(O-1)>B&&(this._+="L"+(t+O*o)+","+(n+O*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>B||Math.abs(this._y1-o)>B)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>Et?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>B&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function At(t){return t[0]}function Tt(t){return t[1]}var Mt=Array.prototype.slice;function Nt(t){return t.source}function Ct(t){return t.target}function Pt(t){var n=Nt,s=Ct,a=At,u=Tt,_=null;function g(){var p,i=Mt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=dt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ut(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ut(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function It(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Ot(){return Pt(It)}function $t(t){return[t.source.x1,t.y0]}function Dt(t){return[t.target.x0,t.y1]}function jt(){return Ot().source($t).target(Dt)}var it=(function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var A=y.length-1;switch(b){case 7:const E=m.findOrCreateNode(y[A-4].trim().replaceAll('""','"')),T=m.findOrCreateNode(y[A-2].trim().replaceAll('""','"')),C=parseFloat(y[A].trim());m.addLink(E,T,C);break;case 8:case 9:case 11:this.$=y[A];break;case 10:this.$=y[A-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,A="",E=0,T=0,C=2,O=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(N.yy[D]=this.yy[D]);S.setInput(i,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var I=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||O,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,M,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),M=x[$]&&x[$][w]),typeof M>"u"||!M.length||!M[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>C&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(E+1)+`:
|
|
2
|
-
`+S.showPosition()+`
|
|
3
|
-
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(E+1)+": Unexpected "+(w==O?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:P,expected:r})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(M[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(M[1]),w=null,T=S.yyleng,A=S.yytext,E=S.yylineno,P=S.yylloc;break;case 2:if(l=this.productions_[M[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},I&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[A,T,E,N.yy,M[1],b,y].concat(j)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[M[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=(function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
-
`+o+"^"},test_match:function(i,o){var c,m,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(i=this.test_match(c,b[y]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,b[m]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return p})();u.lexer=_;function g(){this.yy={}}return g.prototype=u,u.Parser=g,new g})();it.parser=it;const H=it;let X=[],Q=[],q={};const zt=()=>{X=[],Q=[],q={},L.clear()};class Bt{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}}const qt=(t,n,s)=>{X.push(new Bt(t,n,s))};class Vt{constructor(n){this.ID=n}}const Rt=t=>(t=L.common$1.sanitizeText(t,L.getConfig()),q[t]||(q[t]=new Vt(t),Q.push(q[t])),q[t]),Ut=()=>Q,Wt=()=>X,Ft=()=>({nodes:Q.map(t=>({id:t.ID})),links:X.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),Gt={nodesMap:q,getConfig:()=>L.getConfig().sankey,getNodes:Ut,getLinks:Wt,getGraph:Ft,addLink:qt,findOrCreateNode:Rt,getAccTitle:L.getAccTitle,setAccTitle:L.setAccTitle,getAccDescription:L.getAccDescription,setAccDescription:L.setAccDescription,getDiagramTitle:L.getDiagramTitle,setDiagramTitle:L.setDiagramTitle,clear:zt},gt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};gt.count=0;let ht=gt;const Yt={left:_t,right:xt,center:vt,justify:yt},Ht=function(t,n,s,a){const{securityLevel:u,sankey:_}=L.getConfig(),g=L.defaultConfig.sankey;let p;u==="sandbox"&&(p=L.select("#i"+n));const i=u==="sandbox"?L.select(p.nodes()[0].contentDocument.body):L.select("body"),o=u==="sandbox"?i.select(`[id="${n}"]`):L.select(`[id="${n}"]`),c=(_==null?void 0:_.width)??g.width,m=(_==null?void 0:_.height)??g.width,b=(_==null?void 0:_.useMaxWidth)??g.useMaxWidth,y=(_==null?void 0:_.nodeAlignment)??g.nodeAlignment,x=(_==null?void 0:_.prefix)??g.prefix,A=(_==null?void 0:_.suffix)??g.suffix,E=(_==null?void 0:_.showValues)??g.showValues,T=a.db.getGraph(),C=Yt[y];Lt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(E?15:0)).nodeAlign(C).extent([[0,0],[c,m]])(T);const S=pt.ordinal(mt.schemeTableau10);o.append("g").attr("class","nodes").selectAll(".node").data(T.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ht.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const N=({id:d,value:w})=>E?`${d}
|
|
7
|
-
${x}${Math.round(w*100)/100}${A}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(T.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${E?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(N);const D=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(T.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),P=(_==null?void 0:_.linkColor)||"gradient";if(P==="gradient"){const d=D.append("linearGradient").attr("id",w=>(w.uid=ht.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let I;switch(P){case"gradient":I=d=>d.uid;break;case"source":I=d=>S(d.source.id);break;case"target":I=d=>S(d.target.id);break;default:I=P}D.append("path").attr("d",jt()).attr("stroke",I).attr("stroke-width",d=>Math.max(1,d.width)),L.setupGraphViewbox$1(void 0,o,0,b)},Xt={draw:Ht},Qt=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
-
`).trim(),Kt=H.parse.bind(H);H.parse=t=>Kt(Qt(t));const Zt={parser:H,db:Gt,renderer:Xt};exports.diagram=Zt;
|
package/dist/layers.C_IvrzZ3.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*! image-blob-reduce 3.0.1 https://github.com/nodeca/image-blob-reduce @license MIT */var K=function(I){for(var d,h=1;h<arguments.length;h++){d=Object(arguments[h]);for(var x in d)Object.prototype.hasOwnProperty.call(d,x)&&(I[x]=d[x])}return I};function N(A,I){var d={};return I.forEach(function(h){Object.prototype.hasOwnProperty.call(A,h)&&(d[h]=A[h])}),d}function V(A){return N(A,["alpha","unsharpAmount","unsharpRadius","unsharpThreshold","cancelToken"])}var $=N,J=V,W={assign:K,pick:$,pick_pica_resize_options:J};function q(A){var I={exports:{}};return A(I,I.exports),I.exports}function H(A){throw new Error('Could not dynamically require "'+A+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}/*!
|
|
2
|
-
|
|
3
|
-
pica
|
|
4
|
-
https://github.com/nodeca/pica
|
|
5
|
-
|
|
6
|
-
*/var X=q(function(A,I){(function(d){A.exports=d()})(function(){return(function(){function d(h,x,g){function c(e,i){if(!x[e]){if(!h[e]){var a=typeof H=="function"&&H;if(!i&&a)return a(e,!0);if(r)return r(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var s=x[e]={exports:{}};h[e][0].call(s.exports,function(f){var u=h[e][1][f];return c(u||f)},s,s.exports,d,h,x,g)}return x[e].exports}for(var r=typeof H=="function"&&H,t=0;t<g.length;t++)c(g[t]);return c}return d})()({1:[function(d,h,x){var g=d("inherits"),c=d("multimath"),r=d("./mm_unsharp_mask"),t=d("./mm_resize");function e(i){var a=i||[],n={js:a.indexOf("js")>=0,wasm:a.indexOf("wasm")>=0};c.call(this,n),this.features={js:n.js,wasm:n.wasm&&this.has_wasm()},this.use(r),this.use(t)}g(e,c),e.prototype.resizeAndUnsharp=function(a,n){var s=this.resize(a,n);return a.unsharpAmount&&this.unsharp_mask(s,a.toWidth,a.toHeight,a.unsharpAmount,a.unsharpRadius,a.unsharpThreshold),s},h.exports=e},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(d,h,x){function g(t){return t<0?0:t>255?255:t}function c(t,e,i,a,n,s){var f,u,l,y,m,b,B,C,F,O,E,k=0,R=0;for(F=0;F<a;F++){for(m=0,O=0;O<n;O++){for(b=s[m++],B=s[m++],C=k+b*4|0,f=u=l=y=0;B>0;B--)E=s[m++],y=y+E*t[C+3]|0,l=l+E*t[C+2]|0,u=u+E*t[C+1]|0,f=f+E*t[C]|0,C=C+4|0;e[R+3]=g(y+8192>>14),e[R+2]=g(l+8192>>14),e[R+1]=g(u+8192>>14),e[R]=g(f+8192>>14),R=R+a*4|0}R=(F+1)*4|0,k=(F+1)*i*4|0}}function r(t,e,i,a,n,s){var f,u,l,y,m,b,B,C,F,O,E,k=0,R=0;for(F=0;F<a;F++){for(m=0,O=0;O<n;O++){for(b=s[m++],B=s[m++],C=k+b*4|0,f=u=l=y=0;B>0;B--)E=s[m++],y=y+E*t[C+3]|0,l=l+E*t[C+2]|0,u=u+E*t[C+1]|0,f=f+E*t[C]|0,C=C+4|0;e[R+3]=g(y+8192>>14),e[R+2]=g(l+8192>>14),e[R+1]=g(u+8192>>14),e[R]=g(f+8192>>14),R=R+a*4|0}R=(F+1)*4|0,k=(F+1)*i*4|0}}h.exports={convolveHorizontally:c,convolveVertically:r}},{}],3:[function(d,h,x){h.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(d,h,x){h.exports={name:"resize",fn:d("./resize"),wasm_fn:d("./resize_wasm"),wasm_src:d("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(d,h,x){var g=d("./resize_filter_gen"),c=d("./convolve").convolveHorizontally,r=d("./convolve").convolveVertically;function t(e,i,a){for(var n=3,s=i*a*4|0;n<s;)e[n]=255,n=n+4|0}h.exports=function(i){var a=i.src,n=i.width,s=i.height,f=i.toWidth,u=i.toHeight,l=i.scaleX||i.toWidth/i.width,y=i.scaleY||i.toHeight/i.height,m=i.offsetX||0,b=i.offsetY||0,B=i.dest||new Uint8Array(f*u*4),C=typeof i.quality>"u"?3:i.quality,F=i.alpha||!1,O=g(C,n,f,l,m),E=g(C,s,u,y,b),k=new Uint8Array(f*s*4);return c(a,k,n,s,f,O),r(k,B,s,f,u,E),F||t(B,f,u),B}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(d,h,x){var g=d("./resize_filter_info"),c=14;function r(t){return Math.round(t*((1<<c)-1))}h.exports=function(e,i,a,n,s){var f=g[e].filter,u=1/n,l=Math.min(1,n),y=g[e].win/l,m,b,B,C,F,O,E,k,R,D,T,j,G,o,p,_,v,w=Math.floor((y+1)*2),U=new Int16Array((w+2)*a),Q=0,M=!U.subarray||!U.set;for(m=0;m<a;m++){for(b=(m+.5)*u+s,B=Math.max(0,Math.floor(b-y)),C=Math.min(i-1,Math.ceil(b+y)),F=C-B+1,O=new Float32Array(F),E=new Int16Array(F),k=0,R=B,D=0;R<=C;R++,D++)T=f((R+.5-b)*l),k+=T,O[D]=T;for(j=0,D=0;D<O.length;D++)G=O[D]/k,j+=G,E[D]=r(G);for(E[a>>1]+=r(1-j),o=0;o<E.length&&E[o]===0;)o++;if(o<E.length){for(p=E.length-1;p>0&&E[p]===0;)p--;if(_=B+o,v=p-o+1,U[Q++]=_,U[Q++]=v,!M)U.set(E.subarray(o,p+1),Q),Q+=v;else for(D=o;D<=p;D++)U[Q++]=E[D]}else U[Q++]=0,U[Q++]=0}return U}},{"./resize_filter_info":7}],7:[function(d,h,x){h.exports=[{win:.5,filter:function(c){return c>=-.5&&c<.5?1:0}},{win:1,filter:function(c){if(c<=-1||c>=1)return 0;if(c>-11920929e-14&&c<11920929e-14)return 1;var r=c*Math.PI;return Math.sin(r)/r*(.54+.46*Math.cos(r/1))}},{win:2,filter:function(c){if(c<=-2||c>=2)return 0;if(c>-11920929e-14&&c<11920929e-14)return 1;var r=c*Math.PI;return Math.sin(r)/r*Math.sin(r/2)/(r/2)}},{win:3,filter:function(c){if(c<=-3||c>=3)return 0;if(c>-11920929e-14&&c<11920929e-14)return 1;var r=c*Math.PI;return Math.sin(r)/r*Math.sin(r/3)/(r/3)}}]},{}],8:[function(d,h,x){var g=d("./resize_filter_gen");function c(i,a,n){for(var s=3,f=a*n*4|0;s<f;)i[s]=255,s=s+4|0}function r(i){return new Uint8Array(i.buffer,0,i.byteLength)}var t=!0;try{t=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1}catch{}function e(i,a,n){if(t){a.set(r(i),n);return}for(var s=n,f=0;f<i.length;f++){var u=i[f];a[s++]=u&255,a[s++]=u>>8&255}}h.exports=function(a){var n=a.src,s=a.width,f=a.height,u=a.toWidth,l=a.toHeight,y=a.scaleX||a.toWidth/a.width,m=a.scaleY||a.toHeight/a.height,b=a.offsetX||0,B=a.offsetY||0,C=a.dest||new Uint8Array(u*l*4),F=typeof a.quality>"u"?3:a.quality,O=a.alpha||!1,E=g(F,s,u,y,b),k=g(F,f,l,m,B),R=0,D=this.__align(R+Math.max(n.byteLength,C.byteLength)),T=this.__align(D+f*u*4),j=this.__align(T+E.byteLength),G=j+k.byteLength,o=this.__instance("resize",G),p=new Uint8Array(this.__memory.buffer),_=new Uint32Array(this.__memory.buffer),v=new Uint32Array(n.buffer);_.set(v),e(E,p,T),e(k,p,j);var w=o.exports.convolveHV||o.exports._convolveHV;w(T,j,D,s,f,u,l);var U=new Uint32Array(C.buffer);return U.set(new Uint32Array(this.__memory.buffer,0,l*u)),O||c(C,u,l),C}},{"./resize_filter_gen":6}],9:[function(d,h,x){h.exports={name:"unsharp_mask",fn:d("./unsharp_mask"),wasm_fn:d("./unsharp_mask_wasm"),wasm_src:d("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(d,h,x){var g=d("glur/mono16");function c(r,t,e){for(var i=t*e,a=new Uint16Array(i),n,s,f,u,l=0;l<i;l++)n=r[4*l],s=r[4*l+1],f=r[4*l+2],u=n>=s&&n>=f?n:s>=f&&s>=n?s:f,a[l]=u<<8;return a}h.exports=function(t,e,i,a,n,s){var f,u,l,y,m;if(!(a===0||n<.5)){n>2&&(n=2);var b=c(t,e,i),B=new Uint16Array(b);g(B,e,i,n);for(var C=a/100*4096+.5|0,F=s<<8,O=e*i,E=0;E<O;E++)f=b[E],y=f-B[E],Math.abs(y)>=F&&(u=f+(C*y+2048>>12),u=u>65280?65280:u,u=u<0?0:u,f=f!==0?f:1,l=(u<<12)/f|0,m=E*4,t[m]=t[m]*l+2048>>12,t[m+1]=t[m+1]*l+2048>>12,t[m+2]=t[m+2]*l+2048>>12)}}},{"glur/mono16":18}],11:[function(d,h,x){h.exports=function(c,r,t,e,i,a){if(!(e===0||i<.5)){i>2&&(i=2);var n=r*t,s=n*4,f=n*2,u=n*2,l=Math.max(r,t)*4,y=32,m=0,b=s,B=b+f,C=B+u,F=C+u,O=F+l,E=this.__instance("unsharp_mask",s+f+u*2+l+y,{exp:Math.exp}),k=new Uint32Array(c.buffer),R=new Uint32Array(this.__memory.buffer);R.set(k);var D=E.exports.hsv_v16||E.exports._hsv_v16;D(m,b,r,t),D=E.exports.blurMono16||E.exports._blurMono16,D(b,B,C,F,O,r,t,i),D=E.exports.unsharp||E.exports._unsharp,D(m,m,b,B,r,t,e,a),k.set(new Uint32Array(this.__memory.buffer,0,n))}}},{}],12:[function(d,h,x){h.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(d,h,x){var g=100;function c(r,t){this.create=r,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=t||2e3}c.prototype.acquire=function(){var r=this,t;return this.available.length!==0?t=this.available.pop():(t=this.create(),t.id=this.lastId++,t.release=function(){return r.release(t)}),this.acquired[t.id]=t,t},c.prototype.release=function(r){var t=this;delete this.acquired[r.id],r.lastUsed=Date.now(),this.available.push(r),this.timeoutId===0&&(this.timeoutId=setTimeout(function(){return t.gc()},g))},c.prototype.gc=function(){var r=this,t=Date.now();this.available=this.available.filter(function(e){return t-e.lastUsed>r.idle?(e.destroy(),!1):!0}),this.available.length!==0?this.timeoutId=setTimeout(function(){return r.gc()},g):this.timeoutId=0},h.exports=c},{}],14:[function(d,h,x){var g=2;h.exports=function(r,t,e,i,a,n){var s=e/r,f=i/t,u=(2*n+g+1)/a;if(u>.5)return[[e,i]];var l=Math.ceil(Math.log(Math.min(s,f))/Math.log(u));if(l<=1)return[[e,i]];for(var y=[],m=0;m<l;m++){var b=Math.round(Math.pow(Math.pow(r,l-m-1)*Math.pow(e,m+1),1/l)),B=Math.round(Math.pow(Math.pow(t,l-m-1)*Math.pow(i,m+1),1/l));y.push([b,B])}return y}},{}],15:[function(d,h,x){var g=1e-5;function c(t){var e=Math.round(t);return Math.abs(t-e)<g?e:Math.floor(t)}function r(t){var e=Math.round(t);return Math.abs(t-e)<g?e:Math.ceil(t)}h.exports=function(e){var i=e.toWidth/e.width,a=e.toHeight/e.height,n=c(e.srcTileSize*i)-2*e.destTileBorder,s=c(e.srcTileSize*a)-2*e.destTileBorder;if(n<1||s<1)throw new Error("Internal error in pica: target tile width/height is too small.");var f,u,l,y,m,b,B=[],C;for(y=0;y<e.toHeight;y+=s)for(l=0;l<e.toWidth;l+=n)f=l-e.destTileBorder,f<0&&(f=0),m=l+n+e.destTileBorder-f,f+m>=e.toWidth&&(m=e.toWidth-f),u=y-e.destTileBorder,u<0&&(u=0),b=y+s+e.destTileBorder-u,u+b>=e.toHeight&&(b=e.toHeight-u),C={toX:f,toY:u,toWidth:m,toHeight:b,toInnerX:l,toInnerY:y,toInnerWidth:n,toInnerHeight:s,offsetX:f/i-c(f/i),offsetY:u/a-c(u/a),scaleX:i,scaleY:a,x:c(f/i),y:c(u/a),width:r(m/i),height:r(b/a)},B.push(C);return B}},{}],16:[function(d,h,x){function g(c){return Object.prototype.toString.call(c)}h.exports.isCanvas=function(r){var t=g(r);return t==="[object HTMLCanvasElement]"||t==="[object OffscreenCanvas]"||t==="[object Canvas]"},h.exports.isImage=function(r){return g(r)==="[object HTMLImageElement]"},h.exports.isImageBitmap=function(r){return g(r)==="[object ImageBitmap]"},h.exports.limiter=function(r){var t=0,e=[];function i(){t<r&&e.length&&(t++,e.shift()())}return function(n){return new Promise(function(s,f){e.push(function(){n().then(function(u){s(u),t--,i()},function(u){f(u),t--,i()})}),i()})}},h.exports.cib_quality_name=function(r){switch(r){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},h.exports.cib_support=function(r){return Promise.resolve().then(function(){if(typeof createImageBitmap>"u")return!1;var t=r(100,100);return createImageBitmap(t,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(e){var i=e.width===10;return e.close(),t=null,i})}).catch(function(){return!1})},h.exports.worker_offscreen_canvas_support=function(){return new Promise(function(r,t){if(typeof OffscreenCanvas>"u"){r(!1);return}function e(n){if(typeof createImageBitmap>"u"){n.postMessage(!1);return}Promise.resolve().then(function(){var s=new OffscreenCanvas(10,10),f=s.getContext("2d");return f.rect(0,0,1,1),createImageBitmap(s,0,0,1,1)}).then(function(){return n.postMessage(!0)},function(){return n.postMessage(!1)})}var i=btoa("(".concat(e.toString(),")(self);")),a=new Worker("data:text/javascript;base64,".concat(i));a.onmessage=function(n){return r(n.data)},a.onerror=t}).then(function(r){return r},function(){return!1})},h.exports.can_use_canvas=function(r){var t=!1;try{var e=r(2,1),i=e.getContext("2d"),a=i.createImageData(2,1);a.data[0]=12,a.data[1]=23,a.data[2]=34,a.data[3]=255,a.data[4]=45,a.data[5]=56,a.data[6]=67,a.data[7]=255,i.putImageData(a,0,0),a=null,a=i.getImageData(0,0,2,1),a.data[0]===12&&a.data[1]===23&&a.data[2]===34&&a.data[3]===255&&a.data[4]===45&&a.data[5]===56&&a.data[6]===67&&a.data[7]===255&&(t=!0)}catch{}return t},h.exports.cib_can_use_region=function(){return new Promise(function(r){if(typeof createImageBitmap>"u"){r(!1);return}var t=new Image;t.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",t.onload=function(){createImageBitmap(t,0,0,t.width,t.height).then(function(e){e.width===t.width&&e.height===t.height?r(!0):r(!1)},function(){return r(!1)})},t.onerror=function(){return r(!1)}})}},{}],17:[function(d,h,x){h.exports=function(){var g=d("./mathlib"),c;onmessage=function(t){var e=t.data.opts,i=!1;if(!e.src&&e.srcBitmap){var a=new OffscreenCanvas(e.width,e.height),n=a.getContext("2d",{alpha:!!e.alpha});n.drawImage(e.srcBitmap,0,0),e.src=n.getImageData(0,0,e.width,e.height).data,a.width=a.height=0,a=null,e.srcBitmap.close(),e.srcBitmap=null,i=!0}c||(c=new g(t.data.features));var s=c.resizeAndUnsharp(e);if(i){var f=new ImageData(new Uint8ClampedArray(s),e.toWidth,e.toHeight),u=new OffscreenCanvas(e.toWidth,e.toHeight),l=u.getContext("2d",{alpha:!!e.alpha});l.putImageData(f,0,0),createImageBitmap(u).then(function(y){postMessage({bitmap:y},[y])})}else postMessage({data:s},[s.buffer])}}},{"./mathlib":1}],18:[function(d,h,x){var g,c,r,t,e,i,a,n;function s(l){l<.5&&(l=.5);var y=Math.exp(.726*.726)/l,m=Math.exp(-y),b=Math.exp(-2*y),B=(1-m)*(1-m)/(1+2*y*m-b);return g=B,c=B*(y-1)*m,r=B*(y+1)*m,t=-B*b,e=2*m,i=-b,a=(g+c)/(1-e-i),n=(r+t)/(1-e-i),new Float32Array([g,c,r,t,e,i,a,n])}function f(l,y,m,b,B,C){var F,O,E,k,R,D,T,j,G,o,p,_,v,w;for(G=0;G<C;G++){for(D=G*B,T=G,j=0,F=l[D],R=F*b[6],k=R,p=b[0],_=b[1],v=b[4],w=b[5],o=0;o<B;o++)O=l[D],E=O*p+F*_+k*v+R*w,R=k,k=E,F=O,m[j]=k,j++,D++;for(D--,j--,T+=C*(B-1),F=l[D],R=F*b[7],k=R,O=F,p=b[2],_=b[3],o=B-1;o>=0;o--)E=O*p+F*_+k*v+R*w,R=k,k=E,F=O,O=l[D],y[T]=m[j]+k,D--,j--,T-=C}}function u(l,y,m,b){if(b){var B=new Uint16Array(l.length),C=new Float32Array(Math.max(y,m)),F=s(b);f(l,B,C,F,y,m),f(B,l,C,F,m,y)}}h.exports=u},{}],19:[function(d,h,x){typeof Object.create=="function"?h.exports=function(c,r){r&&(c.super_=r,c.prototype=Object.create(r.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}))}:h.exports=function(c,r){if(r){c.super_=r;var t=function(){};t.prototype=r.prototype,c.prototype=new t,c.prototype.constructor=c}}},{}],20:[function(d,h,x){var g=d("object-assign"),c=d("./lib/base64decode"),r=d("./lib/wa_detect"),t={js:!0,wasm:!0};function e(i){if(!(this instanceof e))return new e(i);var a=g({},t,i||{});if(this.options=a,this.__cache={},this.__init_promise=null,this.__modules=a.modules||{},this.__memory=null,this.__wasm={},this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1,!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}e.prototype.has_wasm=r,e.prototype.use=function(i){return this.__modules[i.name]=i,this.options.wasm&&this.has_wasm()&&i.wasm_fn?this[i.name]=i.wasm_fn:this[i.name]=i.fn,this},e.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error(`mathlib: only "wasm" was enabled, but it's not supported`));var i=this;return this.__init_promise=Promise.all(Object.keys(i.__modules).map(function(a){var n=i.__modules[a];return!i.options.wasm||!i.has_wasm()||!n.wasm_fn||i.__wasm[a]?null:WebAssembly.compile(i.__base64decode(n.wasm_src)).then(function(s){i.__wasm[a]=s})})).then(function(){return i}),this.__init_promise},e.prototype.__base64decode=c,e.prototype.__reallocate=function(a){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(a/(64*1024))}),this.__memory;var n=this.__memory.buffer.byteLength;return n<a&&this.__memory.grow(Math.ceil((a-n)/(64*1024))),this.__memory},e.prototype.__instance=function(a,n,s){if(n&&this.__reallocate(n),!this.__wasm[a]){var f=this.__modules[a];this.__wasm[a]=new WebAssembly.Module(this.__base64decode(f.wasm_src))}if(!this.__cache[a]){var u={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[a]=new WebAssembly.Instance(this.__wasm[a],{env:g(u,s||{})})}return this.__cache[a]},e.prototype.__align=function(a,n){n=n||8;var s=a%n;return a+(s?n-s:0)},h.exports=e},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(d,h,x){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";h.exports=function(r){for(var t=r.replace(/[\r\n=]/g,""),e=t.length,i=new Uint8Array(e*3>>2),a=0,n=0,s=0;s<e;s++)s%4===0&&s&&(i[n++]=a>>16&255,i[n++]=a>>8&255,i[n++]=a&255),a=a<<6|g.indexOf(t.charAt(s));var f=e%4*6;return f===0?(i[n++]=a>>16&255,i[n++]=a>>8&255,i[n++]=a&255):f===18?(i[n++]=a>>10&255,i[n++]=a>>2&255):f===12&&(i[n++]=a>>4&255),i}},{}],22:[function(d,h,x){var g;h.exports=function(){if(typeof g<"u"||(g=!1,typeof WebAssembly>"u"))return g;try{var r=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),t=new WebAssembly.Module(r),e=new WebAssembly.Instance(t,{});return e.exports.test(4)!==0&&(g=!0),g}catch{}return g}},{}],23:[function(d,h,x){var g=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function t(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function e(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},n=0;n<10;n++)a["_"+String.fromCharCode(n)]=n;var s=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(s.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(u){f[u]=u}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}h.exports=e()?Object.assign:function(i,a){for(var n,s=t(i),f,u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var l in n)c.call(n,l)&&(s[l]=n[l]);if(g){f=g(n);for(var y=0;y<f.length;y++)r.call(n,f[y])&&(s[f[y]]=n[f[y]])}}return s}},{}],24:[function(d,h,x){var g=arguments[3],c=arguments[4],r=arguments[5],t=JSON.stringify;h.exports=function(e,i){for(var a,n=Object.keys(r),s=0,f=n.length;s<f;s++){var u=n[s],l=r[u].exports;if(l===e||l&&l.default===e){a=u;break}}if(!a){a=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var y={},s=0,f=n.length;s<f;s++){var u=n[s];y[u]=u}c[a]=["function(require,module,exports){"+e+"(self); }",y]}var m=Math.floor(Math.pow(16,8)*Math.random()).toString(16),b={};b[a]=a,c[m]=["function(require,module,exports){var f = require("+t(a)+");(f.default ? f.default : f)(self);}",b];var B={};C(m);function C(D){B[D]=!0;for(var T in c[D][1]){var j=c[D][1][T];B[j]||C(j)}}var F="("+g+")({"+Object.keys(B).map(function(D){return t(D)+":["+c[D][0]+","+t(c[D][1])+"]"}).join(",")+"},{},["+t(m)+"])",O=window.URL||window.webkitURL||window.mozURL||window.msURL,E=new Blob([F],{type:"text/javascript"});if(i&&i.bare)return E;var k=O.createObjectURL(E),R=new Worker(k);return R.objectURL=k,R}},{}],"/index.js":[function(d,h,x){function g(o,p){return i(o)||e(o,p)||r(o,p)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r(o,p){if(o){if(typeof o=="string")return t(o,p);var _=Object.prototype.toString.call(o).slice(8,-1);if(_==="Object"&&o.constructor&&(_=o.constructor.name),_==="Map"||_==="Set")return Array.from(o);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return t(o,p)}}function t(o,p){(p==null||p>o.length)&&(p=o.length);for(var _=0,v=new Array(p);_<p;_++)v[_]=o[_];return v}function e(o,p){var _=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(_!=null){var v=[],w=!0,U=!1,Q,M;try{for(_=_.call(o);!(w=(Q=_.next()).done)&&(v.push(Q.value),!(p&&v.length===p));w=!0);}catch(P){U=!0,M=P}finally{try{!w&&_.return!=null&&_.return()}finally{if(U)throw M}}return v}}function i(o){if(Array.isArray(o))return o}var a=d("object-assign"),n=d("webworkify"),s=d("./lib/mathlib"),f=d("./lib/pool"),u=d("./lib/utils"),l=d("./lib/worker"),y=d("./lib/stepper"),m=d("./lib/tiler"),b={},B=!1;try{typeof navigator<"u"&&navigator.userAgent&&(B=navigator.userAgent.indexOf("Safari")>=0)}catch{}var C=1;typeof navigator<"u"&&(C=Math.min(navigator.hardwareConcurrency||1,4));var F={tile:1024,concurrency:C,features:["js","wasm","ww"],idle:2e3,createCanvas:function(p,_){var v=document.createElement("canvas");return v.width=p,v.height=_,v}},O={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},E=!1,k=!1,R=!1,D=!1,T=!1;function j(){return{value:n(l),destroy:function(){if(this.value.terminate(),typeof window<"u"){var p=window.URL||window.webkitURL||window.mozURL||window.msURL;p&&p.revokeObjectURL&&this.value.objectURL&&p.revokeObjectURL(this.value.objectURL)}}}}function G(o){if(!(this instanceof G))return new G(o);this.options=a({},F,o||{});var p="lk_".concat(this.options.concurrency);this.__limit=b[p]||u.limiter(this.options.concurrency),b[p]||(b[p]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}G.prototype.init=function(){var o=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),E=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?k=!0:this.debug("ImageBitmap does not support .close(), disabled"));var p=this.options.features.slice();if(p.indexOf("all")>=0&&(p=["cib","wasm","js","ww"]),this.__requested_features=p,this.__mathlib=new s(p),p.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{var _=d("webworkify")(function(){});_.terminate(),this.features.ww=!0;var v="wp_".concat(JSON.stringify(this.options));b[v]?this.__workersPool=b[v]:(this.__workersPool=new f(j,this.options.idle),b[v]=this.__workersPool)}catch{}var w=this.__mathlib.init().then(function(P){a(o.features,P.features)}),U;k?U=u.cib_support(this.options.createCanvas).then(function(P){if(o.features.cib&&p.indexOf("cib")<0){o.debug("createImageBitmap() resize supported, but disabled by config");return}p.indexOf("cib")>=0&&(o.features.cib=P)}):U=Promise.resolve(!1),R=u.can_use_canvas(this.options.createCanvas);var Q;k&&E&&p.indexOf("ww")!==-1?Q=u.worker_offscreen_canvas_support():Q=Promise.resolve(!1),Q=Q.then(function(P){D=P});var M=u.cib_can_use_region().then(function(P){T=P});return this.__initPromise=Promise.all([w,U,Q,M]).then(function(){return o}),this.__initPromise},G.prototype.__invokeResize=function(o,p){var _=this;return p.__mathCache=p.__mathCache||{},Promise.resolve().then(function(){return _.features.ww?new Promise(function(v,w){var U=_.__workersPool.acquire();p.cancelToken&&p.cancelToken.catch(function(M){return w(M)}),U.value.onmessage=function(M){U.release(),M.data.err?w(M.data.err):v(M.data)};var Q=[];o.src&&Q.push(o.src.buffer),o.srcBitmap&&Q.push(o.srcBitmap),U.value.postMessage({opts:o,features:_.__requested_features,preload:{wasm_nodule:_.__mathlib.__}},Q)}):{data:_.__mathlib.resizeAndUnsharp(o,p.__mathCache)}})},G.prototype.__extractTileData=function(o,p,_,v,w){if(this.features.ww&&D&&(u.isCanvas(p)||T))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(v.srcImageBitmap||p,o.x,o.y,o.width,o.height).then(function(M){return w.srcBitmap=M,w});if(u.isCanvas(p))return v.srcCtx||(v.srcCtx=p.getContext("2d",{alpha:!!_.alpha})),this.debug("Get tile pixel data"),w.src=v.srcCtx.getImageData(o.x,o.y,o.width,o.height).data,w;this.debug("Draw tile imageBitmap/image to temporary canvas");var U=this.options.createCanvas(o.width,o.height),Q=U.getContext("2d",{alpha:!!_.alpha});return Q.globalCompositeOperation="copy",Q.drawImage(v.srcImageBitmap||p,o.x,o.y,o.width,o.height,0,0,o.width,o.height),this.debug("Get tile pixel data"),w.src=Q.getImageData(0,0,o.width,o.height).data,U.width=U.height=0,w},G.prototype.__landTileData=function(o,p,_){var v;if(this.debug("Convert raw rgba tile result to ImageData"),p.bitmap)return _.toCtx.drawImage(p.bitmap,o.toX,o.toY),null;if(E)v=new ImageData(new Uint8ClampedArray(p.data),o.toWidth,o.toHeight);else if(v=_.toCtx.createImageData(o.toWidth,o.toHeight),v.data.set)v.data.set(p.data);else for(var w=v.data.length-1;w>=0;w--)v.data[w]=p.data[w];return this.debug("Draw tile"),B?_.toCtx.putImageData(v,o.toX,o.toY,o.toInnerX-o.toX,o.toInnerY-o.toY,o.toInnerWidth+1e-5,o.toInnerHeight+1e-5):_.toCtx.putImageData(v,o.toX,o.toY,o.toInnerX-o.toX,o.toInnerY-o.toY,o.toInnerWidth,o.toInnerHeight),null},G.prototype.__tileAndResize=function(o,p,_){var v=this,w={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},U=function(M){return v.__limit(function(){if(_.canceled)return _.cancelToken;var P={width:M.width,height:M.height,toWidth:M.toWidth,toHeight:M.toHeight,scaleX:M.scaleX,scaleY:M.scaleY,offsetX:M.offsetX,offsetY:M.offsetY,quality:_.quality,alpha:_.alpha,unsharpAmount:_.unsharpAmount,unsharpRadius:_.unsharpRadius,unsharpThreshold:_.unsharpThreshold};return v.debug("Invoke resize math"),Promise.resolve(P).then(function(S){return v.__extractTileData(M,o,_,w,S)}).then(function(S){return v.debug("Invoke resize math"),v.__invokeResize(S,_)}).then(function(S){return _.canceled?_.cancelToken:(w.srcImageData=null,v.__landTileData(M,S,w))})})};return Promise.resolve().then(function(){if(w.toCtx=p.getContext("2d",{alpha:!!_.alpha}),u.isCanvas(o))return null;if(u.isImageBitmap(o))return w.srcImageBitmap=o,w.isImageBitmapReused=!0,null;if(u.isImage(o))return k?(v.debug("Decode image via createImageBitmap"),createImageBitmap(o).then(function(Q){w.srcImageBitmap=Q}).catch(function(Q){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(_.canceled)return _.cancelToken;v.debug("Calculate tiles");var Q=m({width:_.width,height:_.height,srcTileSize:v.options.tile,toWidth:_.toWidth,toHeight:_.toHeight,destTileBorder:_.__destTileBorder}),M=Q.map(function(S){return U(S)});function P(S){S.srcImageBitmap&&(S.isImageBitmapReused||S.srcImageBitmap.close(),S.srcImageBitmap=null)}return v.debug("Process tiles"),Promise.all(M).then(function(){return v.debug("Finished!"),P(w),p},function(S){throw P(w),S})})},G.prototype.__processStages=function(o,p,_,v){var w=this;if(v.canceled)return v.cancelToken;var U=o.shift(),Q=g(U,2),M=Q[0],P=Q[1],S=o.length===0;v=a({},v,{toWidth:M,toHeight:P,quality:S?v.quality:Math.min(1,v.quality)});var z;return S||(z=this.options.createCanvas(M,P)),this.__tileAndResize(p,S?_:z,v).then(function(){return S?_:(v.width=M,v.height=P,w.__processStages(o,z,_,v))}).then(function(Z){return z&&(z.width=z.height=0),Z})},G.prototype.__resizeViaCreateImageBitmap=function(o,p,_){var v=this,w=p.getContext("2d",{alpha:!!_.alpha});return this.debug("Resize via createImageBitmap()"),createImageBitmap(o,{resizeWidth:_.toWidth,resizeHeight:_.toHeight,resizeQuality:u.cib_quality_name(_.quality)}).then(function(U){if(_.canceled)return _.cancelToken;if(!_.unsharpAmount)return w.drawImage(U,0,0),U.close(),w=null,v.debug("Finished!"),p;v.debug("Unsharp result");var Q=v.options.createCanvas(_.toWidth,_.toHeight),M=Q.getContext("2d",{alpha:!!_.alpha});M.drawImage(U,0,0),U.close();var P=M.getImageData(0,0,_.toWidth,_.toHeight);return v.__mathlib.unsharp_mask(P.data,_.toWidth,_.toHeight,_.unsharpAmount,_.unsharpRadius,_.unsharpThreshold),w.putImageData(P,0,0),Q.width=Q.height=0,P=M=Q=w=null,v.debug("Finished!"),p})},G.prototype.resize=function(o,p,_){var v=this;this.debug("Start resize...");var w=a({},O);if(isNaN(_)?_&&(w=a(w,_)):w=a(w,{quality:_}),w.toWidth=p.width,w.toHeight=p.height,w.width=o.naturalWidth||o.width,w.height=o.naturalHeight||o.height,p.width===0||p.height===0)return Promise.reject(new Error("Invalid output size: ".concat(p.width,"x").concat(p.height)));w.unsharpRadius>2&&(w.unsharpRadius=2),w.canceled=!1,w.cancelToken&&(w.cancelToken=w.cancelToken.then(function(Q){throw w.canceled=!0,Q},function(Q){throw w.canceled=!0,Q}));var U=3;return w.__destTileBorder=Math.ceil(Math.max(U,2.5*w.unsharpRadius|0)),this.init().then(function(){if(w.canceled)return w.cancelToken;if(v.features.cib)return v.__resizeViaCreateImageBitmap(o,p,w);if(!R){var Q=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw Q.code="ERR_GET_IMAGE_DATA",Q}var M=y(w.width,w.height,w.toWidth,w.toHeight,v.options.tile,w.__destTileBorder);return v.__processStages(M,o,p,w)})},G.prototype.resizeBuffer=function(o){var p=this,_=a({},O,o);return this.init().then(function(){return p.__mathlib.resizeAndUnsharp(_)})},G.prototype.toBlob=function(o,p,_){return p=p||"image/png",new Promise(function(v){if(o.toBlob){o.toBlob(function(P){return v(P)},p,_);return}if(o.convertToBlob){v(o.convertToBlob({type:p,quality:_}));return}for(var w=atob(o.toDataURL(p,_).split(",")[1]),U=w.length,Q=new Uint8Array(U),M=0;M<U;M++)Q[M]=w.charCodeAt(M);v(new Blob([Q],{type:p}))})},G.prototype.debug=function(){},h.exports=G},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")})}),Y=q(function(A){function I(r,t){var e=new Error(r);return e.code=t,e}function d(r){for(var t=r.toString(16).toUpperCase(),e=2-t.length;e>0;e--)t="0"+t;return"0x"+t}function h(r){try{return unescape(encodeURIComponent(r))}catch{return r}}function x(r){try{return decodeURIComponent(escape(r))}catch{return r}}function g(r){return Object.prototype.toString.call(r)==="[object Uint8Array]"}function c(r,t,e){this.input=r.subarray(t,e),this.start=t;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(i!=="II*\0"&&i!=="MM\0*")throw I("invalid TIFF signature","EBADDATA");this.big_endian=i[0]==="M"}c.prototype.each=function(r){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var e=this.ifds_to_read.shift();e.offset&&this.scan_ifd(e.id,e.offset,r)}},c.prototype.filter=function(r){var t={};t.ifd0={id:0,entries:[]},this.each(function(n){r(n)===!1&&!n.is_subifd_link||n.is_subifd_link&&n.count!==1&&n.format!==4||(t["ifd"+n.ifd]||(t["ifd"+n.ifd]={id:n.ifd,entries:[]}),t["ifd"+n.ifd].entries.push(n))}),delete t.ifd1;var e=8;Object.keys(t).forEach(function(n){e+=2,t[n].entries.forEach(function(s){e+=12+(s.data_length>4?Math.ceil(s.data_length/2)*2:0)}),e+=4}),this.output=new Uint8Array(e),this.output[0]=this.output[1]=(this.big_endian?"M":"I").charCodeAt(0),this.write_uint16(2,42);var i=8,a=this;if(this.write_uint32(4,i),Object.keys(t).forEach(function(n){t[n].written_offset=i;var s=i,f=s+2+t[n].entries.length*12+4;i=f,a.write_uint16(s,t[n].entries.length),t[n].entries.sort(function(l,y){return l.tag-y.tag}).forEach(function(l,y){var m=s+2+y*12;a.write_uint16(m,l.tag),a.write_uint16(m+2,l.format),a.write_uint32(m+4,l.count),l.is_subifd_link?t["ifd"+l.tag]&&(t["ifd"+l.tag].link_offset=m+8):l.data_length<=4?a.output.set(a.input.subarray(l.data_offset-a.start,l.data_offset-a.start+4),m+8):(a.write_uint32(m+8,i),a.output.set(a.input.subarray(l.data_offset-a.start,l.data_offset-a.start+l.data_length),i),i+=Math.ceil(l.data_length/2)*2)});var u=t["ifd"+(t[n].id+1)];u&&(u.link_offset=f-4)}),Object.keys(t).forEach(function(n){t[n].written_offset&&t[n].link_offset&&a.write_uint32(t[n].link_offset,t[n].written_offset)}),this.output.length!==i)throw I("internal error: incorrect buffer size allocated");return this.output},c.prototype.read_uint16=function(r){var t=this.input;if(r+2>t.length)throw I("unexpected EOF","EBADDATA");return this.big_endian?t[r]*256+t[r+1]:t[r]+t[r+1]*256},c.prototype.read_uint32=function(r){var t=this.input;if(r+4>t.length)throw I("unexpected EOF","EBADDATA");return this.big_endian?t[r]*16777216+t[r+1]*65536+t[r+2]*256+t[r+3]:t[r]+t[r+1]*256+t[r+2]*65536+t[r+3]*16777216},c.prototype.write_uint16=function(r,t){var e=this.output;this.big_endian?(e[r]=t>>>8&255,e[r+1]=t&255):(e[r]=t&255,e[r+1]=t>>>8&255)},c.prototype.write_uint32=function(r,t){var e=this.output;this.big_endian?(e[r]=t>>>24&255,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=t&255):(e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255)},c.prototype.is_subifd_link=function(r,t){return r===0&&t===34665||r===0&&t===34853||r===34665&&t===40965},c.prototype.exif_format_length=function(r){switch(r){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},c.prototype.exif_format_read=function(r,t){var e;switch(r){case 1:case 2:return e=this.input[t],e;case 6:return e=this.input[t],e|(e&128)*33554430;case 3:return e=this.read_uint16(t),e;case 8:return e=this.read_uint16(t),e|(e&32768)*131070;case 4:return e=this.read_uint32(t),e;case 9:return e=this.read_uint32(t),e|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},c.prototype.scan_ifd=function(r,t,e){var i=this.read_uint16(t);t+=2;for(var a=0;a<i;a++){var n=this.read_uint16(t),s=this.read_uint16(t+2),f=this.read_uint32(t+4),u=this.exif_format_length(s),l=f*u,y=l<=4?t+8:this.read_uint32(t+8),m=!1;if(y+l>this.input.length)throw I("unexpected EOF","EBADDATA");for(var b=[],B=y,C=0;C<f;C++,B+=u){var F=this.exif_format_read(s,B);if(F===null){b=null;break}b.push(F)}if(Array.isArray(b)&&s===2){try{b=x(String.fromCharCode.apply(null,b))}catch{b=null}b&&b[b.length-1]==="\0"&&(b=b.slice(0,-1))}this.is_subifd_link(r,n)&&Array.isArray(b)&&Number.isInteger(b[0])&&b[0]>0&&(this.ifds_to_read.push({id:n,offset:b[0]}),m=!0);var O={is_big_endian:this.big_endian,ifd:r,tag:n,format:s,count:f,entry_offset:t+this.start,data_length:l,data_offset:y+this.start,value:b,is_subifd_link:m};if(e(O)===!1){this.aborted=!0;return}t+=12}r===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})},A.exports.is_jpeg=function(r){return r.length>=4&&r[0]===255&&r[1]===216&&r[2]===255},A.exports.jpeg_segments_each=function(r,t){if(!g(r))throw I("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof t!="function")throw I("Invalid argument (on_segment), Function expected","EINVAL");if(!A.exports.is_jpeg(r))throw I("Unknown file format","ENOTJPEG");for(var e=0,i=r.length,a=!1;;){var n,s;if(e+1>=i)throw I("Unexpected EOF","EBADDATA");var f=r[e],u=r[e+1];if(f===255&&u===255)n=255,s=1;else if(f===255&&u!==0){if(n=u,s=2,!(208<=n&&n<=217||n===1)){if(e+3>=i)throw I("Unexpected EOF","EBADDATA");if(s+=r[e+2]*256+r[e+3],s<2)throw I("Invalid segment length","EBADDATA");if(e+s-1>=i)throw I("Unexpected EOF","EBADDATA")}a&&(n>=208&&n<=215||(a=!1)),n===218&&(a=!0)}else if(a)for(var l=e+1;;l++){if(l>=i)throw I("Unexpected EOF","EBADDATA");if(r[l]===255){if(l+1>=i)throw I("Unexpected EOF","EBADDATA");if(r[l+1]!==0){n=0,s=l-e;break}}}else throw I("Unexpected byte at segment start: "+d(f)+" (offset "+d(e)+")","EBADDATA");if(t({code:n,offset:e,length:s})===!1||n===217)break;e+=s}},A.exports.jpeg_segments_filter=function(r,t){if(!g(r))throw I("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof t!="function")throw I("Invalid argument (on_segment), Function expected","EINVAL");var e=[],i=0;A.exports.jpeg_segments_each(r,function(s){var f=t(s);if(g(f))e.push({data:f}),i+=f.length;else if(Array.isArray(f))f.filter(g).forEach(function(l){e.push({data:l}),i+=l.length});else if(f!==!1){var u={start:s.offset,end:s.offset+s.length};e.length>0&&e[e.length-1].end===u.start?e[e.length-1].end=u.end:e.push(u),i+=s.length}});var a=new Uint8Array(i),n=0;return e.forEach(function(s){var f=s.data||r.subarray(s.start,s.end);a.set(f,n),n+=f.length}),a},A.exports.jpeg_exif_tags_each=function(r,t){if(!g(r))throw I("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof t!="function")throw I("Invalid argument (on_exif_entry), Function expected","EINVAL");A.exports.jpeg_segments_each(r,function(e){if(e.code===218)return!1;if(e.code===225&&e.length>=10&&r[e.offset+4]===69&&r[e.offset+5]===120&&r[e.offset+6]===105&&r[e.offset+7]===102&&r[e.offset+8]===0&&r[e.offset+9]===0)return new c(r,e.offset+10,e.offset+e.length).each(t),!1})},A.exports.jpeg_exif_tags_filter=function(r,t){if(!g(r))throw I("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof t!="function")throw I("Invalid argument (on_exif_entry), Function expected","EINVAL");var e=!1;return A.exports.jpeg_segments_filter(r,function(i){if(!e&&(i.code===218&&(e=!0),i.code===225&&i.length>=10&&r[i.offset+4]===69&&r[i.offset+5]===120&&r[i.offset+6]===105&&r[i.offset+7]===102&&r[i.offset+8]===0&&r[i.offset+9]===0)){var a=new c(r,i.offset+10,i.offset+i.length).filter(t);if(!a)return!1;var n=new Uint8Array(10);return n.set(r.slice(i.offset,i.offset+10)),n[2]=a.length+8>>>8&255,n[3]=a.length+8&255,e=!0,[n,a]}})},A.exports.jpeg_add_comment=function(r,t){var e=!1,i=0;return A.exports.jpeg_segments_filter(r,function(a){if(i++,!(i===1&&a.code===216)&&!(i===2&&a.code===224)&&!e){t=h(t);var n=new Uint8Array(5+t.length),s=0;return n[s++]=255,n[s++]=254,n[s++]=t.length+3>>>8&255,n[s++]=t.length+3&255,t.split("").forEach(function(f){n[s++]=f.charCodeAt(0)&255}),n[s++]=0,e=!0,[n,r.subarray(a.offset,a.offset+a.length)]}})}});function tt(A){return this._getUint8Array(A.blob).then(function(I){if(A.is_jpeg=Y.is_jpeg(I),!A.is_jpeg)return Promise.resolve(A);A.orig_blob=A.blob;try{var d,h;if(Y.jpeg_exif_tags_each(I,function(g){if(g.ifd===0&&g.tag===274&&Array.isArray(g.value))return A.orientation=g.value[0]||1,d=g.is_big_endian,h=g.data_offset,!1}),h){var x=d?new Uint8Array([0,1]):new Uint8Array([1,0]);A.blob=new Blob([I.slice(0,h),x,I.slice(h+2)],{type:"image/jpeg"})}}catch{}return A})}function et(A){if(!A.is_jpeg)return Promise.resolve(A);var I=A.orientation-1;if(!I)return Promise.resolve(A);var d;I&4?d=this.pica.options.createCanvas(A.out_canvas.height,A.out_canvas.width):d=this.pica.options.createCanvas(A.out_canvas.width,A.out_canvas.height);var h=d.getContext("2d");return h.save(),I&1&&h.transform(-1,0,0,1,d.width,0),I&2&&h.transform(-1,0,0,-1,d.width,d.height),I&4&&h.transform(0,1,1,0,0,0),h.drawImage(A.out_canvas,0,0),h.restore(),A.out_canvas.width=A.out_canvas.height=0,A.out_canvas=d,Promise.resolve(A)}function rt(A){return A.is_jpeg?Promise.all([this._getUint8Array(A.blob),this._getUint8Array(A.out_blob)]).then(function(I){var d=I[0],h=I[1];if(!Y.is_jpeg(d))return Promise.resolve(A);var x=[];return Y.jpeg_segments_each(d,function(g){if(g.code===218)return!1;x.push(g)}),x=x.filter(function(g){return g.code===226?!1:g.code>=224&&g.code<240||g.code===254}).map(function(g){return d.slice(g.offset,g.offset+g.length)}),A.out_blob=new Blob([h.slice(0,2)].concat(x).concat([h.slice(20)]),{type:"image/jpeg"}),A}):Promise.resolve(A)}function at(A){A.before("_blob_to_image",tt),A.after("_transform",et),A.after("_create_blob",rt)}var it=at,nt={assign:it};function L(A){if(!(this instanceof L))return new L(A);A=A||{},this.pica=A.pica||X({}),this.initialized=!1,this.utils=W}L.prototype.use=function(A){var I=[this].concat(Array.prototype.slice.call(arguments,1));return A.apply(A,I),this};L.prototype.init=function(){this.use(nt.assign)};L.prototype.toBlob=function(A,I){var d=W.assign({max:1/0},I),h={blob:A,opts:d};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(h).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(this._create_blob).then(function(x){return x.out_canvas.width=x.out_canvas.height=0,x.out_blob})};L.prototype.toCanvas=function(A,I){var d=W.assign({max:1/0},I),h={blob:A,opts:d};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(h).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(function(x){return x.out_canvas})};L.prototype.before=function(A,I){if(!this[A])throw new Error('Method "'+A+'" does not exist');if(typeof I!="function")throw new Error('Invalid argument "fn", function expected');var d=this[A],h=this;return this[A]=function(x){return I.call(h,x).then(function(g){return d.call(h,g)})},this};L.prototype.after=function(A,I){if(!this[A])throw new Error('Method "'+A+'" does not exist');if(typeof I!="function")throw new Error('Invalid argument "fn", function expected');var d=this[A],h=this;return this[A]=function(x){return d.call(h,x).then(function(g){return I.call(h,g)})},this};L.prototype._blob_to_image=function(A){var I=window.URL||window.webkitURL||window.mozURL||window.msURL;return A.image=document.createElement("img"),A.image_url=I.createObjectURL(A.blob),A.image.src=A.image_url,new Promise(function(d,h){A.image.onerror=function(){h(new Error("ImageBlobReduce: failed to create Image() from blob"))},A.image.onload=function(){d(A)}})};L.prototype._calculate_size=function(A){var I=A.opts.max/Math.max(A.image.width,A.image.height);return I>1&&(I=1),A.transform_width=Math.max(Math.round(A.image.width*I),1),A.transform_height=Math.max(Math.round(A.image.height*I),1),A.scale_factor=I,Promise.resolve(A)};L.prototype._transform=function(A){A.out_canvas=this.pica.options.createCanvas(A.transform_width,A.transform_height),A.transform_width=null,A.transform_height=null;var I={alpha:A.blob.type==="image/png"};return this.utils.assign(I,this.utils.pick_pica_resize_options(A.opts)),this.pica.resize(A.image,A.out_canvas,I).then(function(){return A})};L.prototype._cleanup=function(A){A.image.src="",A.image=null;var I=window.URL||window.webkitURL||window.mozURL||window.msURL;return I.revokeObjectURL&&I.revokeObjectURL(A.image_url),A.image_url=null,Promise.resolve(A)};L.prototype._create_blob=function(A){return this.pica.toBlob(A.out_canvas,A.blob.type).then(function(I){return A.out_blob=I,A})};L.prototype._getUint8Array=function(A){return A.arrayBuffer?A.arrayBuffer().then(function(I){return new Uint8Array(I)}):new Promise(function(I,d){var h=new FileReader;h.readAsArrayBuffer(A),h.onload=function(){I(new Uint8Array(h.result))},h.onerror=function(){d(new Error("ImageBlobReduce: failed to load data from input blob")),h.abort()},h.onabort=function(){d(new Error("ImageBlobReduce: failed to load data from input blob (aborted)"))}})};L.pica=X;var ot=L;exports.default=ot;
|
package/dist/layers.CbBTbZIx.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.CV8UgwCq.js");var u={paste:"পেস্ট করুন",pasteAsPlaintext:"প্লেইনটেক্সট হিসাবে পেস্ট করুন",pasteCharts:"চার্ট পেস্ট করুন",selectAll:"সবটা সিলেক্ট করুন",multiSelect:"একাধিক সিলেক্ট করুন",moveCanvas:"ক্যানভাস সরান",cut:"কাট করুন",copy:"কপি করুন",copyAsPng:"পীএনজী ছবির মতন কপি করুন",copyAsSvg:"এসভীজী ছবির মতন কপি করুন",copyText:"লিখিত তথ্যের মতন কপি করুন",copySource:"",convertToCode:"",bringForward:"অধিকতর সামনে আনুন",sendToBack:"অধিকতর পিছনে নিয়ে যান",bringToFront:"সবার সামনে আনুন",sendBackward:"সবার পিছনে নিয়ে যান",delete:"মুছা",copyStyles:"ডিজাইন কপি করুন",pasteStyles:"ডিজাইন পেস্ট করুন",stroke:"রেখাংশ",background:"পটভূমি",fill:"রং",strokeWidth:"রেখাংশের বেধ",strokeStyle:"রেখাংশের ডিজাইন",strokeStyle_solid:"পুরু",strokeStyle_dashed:"পাতলা",strokeStyle_dotted:"বিন্দুবিন্দু",sloppiness:"ভ্রান্তি",opacity:"দৃশ্যমানতা",textAlign:"লেখ অনুভূমি",edges:"কোণ",sharp:"তীক্ষ্ণ",round:"গোল",arrowheads:"তীরের শীর্ষভাগ",arrowhead_none:"কিছু না",arrowhead_arrow:"তীর",arrowhead_bar:"রেখাংশ",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"ত্রিভূজ",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"লেখনীর মাত্রা",fontFamily:"লেখনীর হরফ",addWatermark:"এক্সক্যালিড্র দ্বারা প্রস্তুত",handDrawn:"হাতে আঁকা",normal:"স্বাভাবিক",code:"কোড",small:"ছোট",medium:"মাঝারি",large:"বড়",veryLarge:"অনেক বড়",solid:"দৃঢ়",hachure:"ভ্রুলেখা",zigzag:"আঁকাবাঁকা",crossHatch:"ক্রস হ্যাচ",thin:"পাতলা",bold:"পুরু",left:"বাম",center:"কেন্দ্র",right:"ডান",extraBold:"অতি পুরু",architect:"স্থপতি",artist:"শিল্পী",cartoonist:"চিত্রকার",fileTitle:"ফাইলের নাম",colorPicker:"রং পছন্দ করুন",canvasColors:"ক্যানভাসের রং",canvasBackground:"ক্যানভাসের পটভূমি",drawingCanvas:"ব্যবহৃত ক্যানভাস",layers:"মাত্রা",actions:"ক্রিয়া",language:"ভাষা",liveCollaboration:"সরাসরি পারস্পরিক সহযোগিতা...",duplicateSelection:"সদৃশ সিলেক্ট",untitled:"অনামী",name:"নাম",yourName:"আপনার নাম",madeWithExcalidraw:"এক্সক্যালিড্র দ্বারা তৈরি",group:"দল গঠন করুন",ungroup:"দল বিভেদ করুন",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:""},B={noItems:"সংগ্রহে কিছু যোগ করা হয়নি",hint_emptyLibrary:"এখানে যোগ করার জন্য ক্যানভাসে একটি বস্তু নির্বাচন করুন, অথবা নীচে, প্রকাশ্য সংগ্রহশালা থেকে একটি সংগ্রহ ইনস্টল করুন৷",hint_emptyPrivateLibrary:"এখানে যোগ করার জন্য ক্যানভাসে একটি বস্তু নির্বাচন করুন"},A={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:""},C={clearReset:"এটি পুরো ক্যানভাস সাফ করবে। আপনি কি নিশ্চিত?",couldNotCreateShareableLink:"ভাগ করা যায় এমন লিঙ্ক তৈরি করা যায়নি।",couldNotCreateShareableLinkTooBig:"ভাগ করা যায় এমন লিঙ্ক তৈরি করা যায়নি: দৃশ্যটি খুব বড়",couldNotLoadInvalidFile:"অবৈধ ফাইল লোড করা যায়নি",importBackendFailed:"ব্যাকেন্ড থেকে আপলোড ব্যর্থ হয়েছে।",cannotExportEmptyCanvas:"খালি ক্যানভাস নিবদ্ধ করা যাবে না।",couldNotCopyToClipboard:"ক্লিপবোর্ডে কপি করা যায়নি।",decryptFailed:"তথ্য ডিক্রিপ্ট করা যায়নি।",uploadedSecurly:"আপলোডটি এন্ড-টু-এন্ড এনক্রিপশনের মাধ্যমে সুরক্ষিত করা হয়েছে, যার অর্থ হল এক্সক্যালিড্র সার্ভার এবং তৃতীয় পক্ষের দ্বারা পড়তে পারা সম্ভব নয়।",loadSceneOverridePrompt:"বাহ্যিক অঙ্কন লোড করা আপনার বিদ্যমান দৃশ্য প্রতিস্থাপন করবে। আপনি কি অবিরত করতে চান?",collabStopOverridePrompt:`অধিবেশন বন্ধ করা আপনার পূর্ববর্তী, স্থানীয়ভাবে সঞ্চিত অঙ্কন ওভাররাইট করবে। আপনি কি নিশ্চিত?
|
|
2
|
-
|
|
3
|
-
(যদি আপনি আপনার স্থানীয় অঙ্কন রাখতে চান, তাহলে শুধু ব্রাউজার ট্যাবটি বন্ধ করুন।)`,errorAddingToLibrary:"বস্তুটি সংগ্রহে যোগ করা যায়নি",errorRemovingFromLibrary:"বস্তুটি সংগ্রহ থেকে বিয়োগ করা যায়নি",confirmAddLibrary:"এটি আপনার সংগ্রহে {{numShapes}} আকার(গুলি) যোগ করবে। আপনি কি নিশ্চিত?",imageDoesNotContainScene:"এই ছবিতে কোনো দৃশ্যের তথ্য আছে বলে মনে হয় না৷ আপনি কি নিবদ্ধ করার সময় দৃশ্য এমবেডিং করতে সক্ষম?",cannotRestoreFromImage:"এই ফাইল থেকে দৃশ্য পুনরুদ্ধার করা যায়নি",invalidSceneUrl:"সরবরাহ করা লিঙ্ক থেকে দৃশ্য লোড করা যায়নি৷ এটি হয় বিকৃত, অথবা বৈধ এক্সক্যালিড্র জেসন তথ্য নেই৷",resetLibrary:"এটি আপনার সংগ্রহ পরিষ্কার করবে। আপনি কি নিশ্চিত?",removeItemsFromsLibrary:"সংগ্রহ থেকে {{count}} বস্তু বিয়োগ করা হবে। আপনি কি নিশ্চিত?",invalidEncryptionKey:"অবৈধ এনক্রীপশন কী।",collabOfflineWarning:""},e={unsupportedFileType:"অসমর্থিত ফাইল।",imageInsertError:"ছবি সন্নিবেশ করা যায়নি। পরে আবার চেষ্টা করুন...",fileTooBig:"ফাইলটি খুব বড়। সর্বাধিক অনুমোদিত আকার হল {{maxSize}}৷",svgImageInsertError:"এসভীজী ছবি সন্নিবেশ করা যায়নি। এসভীজী মার্কআপটি অবৈধ মনে হচ্ছে৷",failedToFetchImage:"",invalidSVGString:"এসভীজী মার্কআপটি অবৈধ মনে হচ্ছে৷",cannotResolveCollabServer:"কোল্যাব সার্ভারের সাথে সংযোগ করা যায়নি। পৃষ্ঠাটি পুনরায় লোড করে আবার চেষ্টা করুন।",importLibraryError:"সংগ্রহ লোড করা যায়নি",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},F={selection:"বাছাই",image:"চিত্র সন্নিবেশ",rectangle:"আয়তক্ষেত্র",diamond:"রুহিতন",ellipse:"উপবৃত্ত",arrow:"তীর",line:"রেখা",freedraw:"কলম",text:"লেখা",library:"সংগ্রহ",lock:"আঁকার পরে নির্বাচিত টুল সক্রিয় রাখুন",penMode:"",link:"একটি নির্বাচিত আকৃতির জন্য লিঙ্ক যোগ বা আপডেট করুন",eraser:"ঝাড়ন",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},E={canvasActions:"ক্যানভাস কার্যকলাপ",selectedShapeActions:"বাছাই করা আকার(গুলি)র কার্যকলাপ",shapes:"আকার(গুলি)"},D={canvasPanning:"",linearElement:"একাধিক বিন্দু শুরু করতে ক্লিক করুন, একক লাইনের জন্য টেনে আনুন",freeDraw:"ক্লিক করুন এবং টেনে আনুন, আপনার কাজ শেষ হলে ছেড়ে দিন",text:"বিশেষ্য: আপনি নির্বাচন টুলের সাথে যে কোনো জায়গায় ডাবল-ক্লিক করে পাঠ্য যোগ করতে পারেন",embeddable:"",text_selected:"লেখা সম্পাদনা করতে ডাবল-ক্লিক করুন বা এন্টার টিপুন",text_editing:"লেখা সম্পাদনা শেষ করতে এসকেপ বা কন্ট্রোল/কম্যান্ড যোগে এন্টার টিপুন",linearElementMulti:"শেষ বিন্দুতে ক্লিক করুন অথবা শেষ করতে এসকেপ বা এন্টার টিপুন",lockAngle:"ঘোরানোর সময় আপনি শিফ্ট ধরে রেখে কোণ সীমাবদ্ধ করতে পারেন",resize:`আপনি আকার পরিবর্তন করার সময় শিফ্ট ধরে রেখে অনুপাতকে সীমাবদ্ধ করতে পারেন,
|
|
4
|
-
কেন্দ্র থেকে আকার পরিবর্তন করতে অল্ট ধরে রাখুন`,resizeImage:"আপনি শিফ্ট ধরে রেখে অবাধে আকার পরিবর্তন করতে পারেন, কেন্দ্র থেকে আকার পরিবর্তন করতে অল্ট ধরুন",rotate:"আপনি ঘোরানোর সময় শিফ্ট ধরে রেখে কোণগুলিকে সীমাবদ্ধ করতে পারেন",lineEditor_info:"",lineEditor_pointSelected:"বিন্দু(গুলি) মুছতে ডিলিট টিপুন, কন্ট্রোল/কম্যান্ড যোগে ডি টিপুন নকল করতে অথবা সরানোর জন্য টানুন",lineEditor_nothingSelected:`সম্পাদনা করার জন্য একটি বিন্দু নির্বাচন করুন (একাধিক নির্বাচন করতে শিফ্ট ধরে রাখুন),
|
|
5
|
-
অথবা অল্ট ধরে রাখুন এবং নতুন বিন্দু যোগ করতে ক্লিক করুন`,placeImage:"ছবিটি স্থাপন করতে ক্লিক করুন, অথবা নিজে আকার সেট করতে ক্লিক করুন এবং টেনে আনুন",publishLibrary:"আপনার নিজস্ব সংগ্রহ প্রকাশ করুন",bindTextToElement:"লেখা যোগ করতে এন্টার টিপুন",deepBoxSelect:"",eraserRevert:"মুছে ফেলার জন্য চিহ্নিত উপাদানগুলিকে ফিরিয়ে আনতে অল্ট ধরে রাখুন",firefox_clipboard_write:"",disableSnapping:""},o={cannotShowPreview:"প্রিভিউ দেখাতে অপারগ",canvasTooBig:"ক্যানভাস অনেক বড়।",canvasTooBigTip:"বিশেষ্য: দূরতম উপাদানগুলোকে একটু কাছাকাছি নিয়ে যাওয়ার চেষ্টা করুন।"},t={headingMain:"একটি ত্রুটির সম্মুখীন হয়েছে৷ চেষ্টা করুন <button>পৃষ্ঠাটি পুনরায় লোড করার।</button>",clearCanvasMessage:"যদি পুনরায় লোড করা কাজ না করে, চেষ্টা করুন <button>ক্যানভাস পরিষ্কার করার।</button>",clearCanvasCaveat:" এর ফলে কাজের ক্ষতি হবে ",trackedToSentry:"ত্রুটি {{eventId}} আমাদের সিস্টেমে ট্র্যাক করা হয়েছিল।",openIssueMessage:"আমরা ত্রুটিতে আপনার দৃশ্যের তথ্য অন্তর্ভুক্ত না করার জন্য খুব সতর্ক ছিলাম। আপনার দৃশ্য ব্যক্তিগত না হলে, আমাদের অনুসরণ করার কথা বিবেচনা করুন <button>ত্রুটি ইতিবৃত্ত।</button> অনুগ্রহ করে GitHub ইস্যুতে অনুলিপি এবং পেস্ট করে নীচের তথ্য অন্তর্ভুক্ত করুন।",sceneContent:"দৃশ্য বিষয়বস্তু:"},r={desc_intro:"আপনি আপনার সাথে সহযোগিতা করার জন্য আপনার বর্তমান দৃশ্যে লোকেদের আমন্ত্রণ জানাতে পারেন৷",desc_privacy:"চিন্তা করবেন না, সেশনটি এন্ড-টু-এন্ড এনক্রিপশন ব্যবহার করে, তাই আপনি যা আঁকবেন তা গোপন থাকবে। এমনকি আমাদের সার্ভার আপনি যা নিয়ে এসেছেন তা দেখতে সক্ষম হবে না।",button_startSession:"সেশন শুরু করুন",button_stopSession:"সেশন বন্ধ করুন",desc_inProgressIntro:"লাইভ-সহযোগীতার সেশন এখন চলছে।",desc_shareLink:"আপনি যার সাথে সহযোগিতা করতে চান তাদের সাথে এই লিঙ্কটি ভাগ করুন: ",desc_exitSession:"অধিবেশন বন্ধ করা আপনাকে রুম থেকে সংযোগ বিচ্ছিন্ন করবে, কিন্তু আপনি স্থানীয়ভাবে দৃশ্যের সাথে কাজ চালিয়ে যেতে সক্ষম হবেন। মনে রাখবেন যে এটি অন্য লোকেদের প্রভাবিত করবে না এবং তারা এখনও তাদের সংস্করণে সহযোগিতা করতে সক্ষম হবে।",shareTitle:"এক্সক্যালিড্র লাইভ সহযোগিতা সেশনে যোগ দিন"},a={title:"ত্রুটি"},i={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"নিবদ্ধ",excalidrawplus_exportError:""},l={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:""},n={title:""},s={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},d={title:"",content:""},c={resetLibrary:"",removeItemsFromLib:""},m={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},p={tooltip:"",link:""},b={angle:"কোণ",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"",total:"",version:"",versionCopy:"",versionNotAvailable:"",width:"প্রস্থ"},g={addedToLibrary:"সংগ্রহশালায় যুক্ত হয়েছে",copyStyles:"",copyToClipboard:"ক্লিপবোর্ডে কপি করা হয়েছে।",copyToClipboardAsPng:"",fileSaved:"",fileSavedToFilename:"",canvas:"",selection:"বাছাই",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},h={transparent:"",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},y={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},v={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},S={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},w={title:"",button:"",description:"",syntax:"",preview:""},k={labels:u,library:B,buttons:A,alerts:C,errors:e,toolBar:F,headings:E,hints:D,canvasError:o,errorSplash:t,roomDialog:r,errorDialog:a,exportDialog:i,helpDialog:l,clearCanvasDialog:n,publishDialog:s,publishSuccessDialog:d,confirmDialog:c,imageExportDialog:m,encrypted:p,stats:b,toast:g,colors:h,welcomeScreen:y,colorPicker:v,overwriteConfirm:S,mermaid:w};exports.alerts=C;exports.buttons=A;exports.canvasError=o;exports.clearCanvasDialog=n;exports.colorPicker=v;exports.colors=h;exports.confirmDialog=c;exports.default=k;exports.encrypted=p;exports.errorDialog=a;exports.errorSplash=t;exports.errors=e;exports.exportDialog=i;exports.headings=E;exports.helpDialog=l;exports.hints=D;exports.imageExportDialog=m;exports.labels=u;exports.library=B;exports.mermaid=w;exports.overwriteConfirm=S;exports.publishDialog=s;exports.publishSuccessDialog=d;exports.roomDialog=r;exports.stats=b;exports.toast=g;exports.toolBar=F;exports.welcomeScreen=y;
|
package/dist/layers.CcP6Z-gZ.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./layers.CYPfnKfS.js"),Le=require("lodash-es/clone.js"),Y=require("./layers.DgO3Q5mW.js"),_e=require("./layers.BLd2spTm.js");require("./layers.CV8UgwCq.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const me=require("./layers.nRPZ1e3g.js"),ye=require("./layers.B19hGmey.js"),Ee=require("./layers.BIeVwYKL.js");var ae,le,ee=(function(){var e=function(D,o,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=o);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],l=[1,16],b=[1,17],x=[1,18],p=[8,30],S=[8,21,28,29,30,31,32,40,44,47],y=[1,23],O=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],E=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(o,s,i,u,h,t,_){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],o),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),W=u.generateId();this.$={id:W,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:b,47:x},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:l,44:b,47:x}),e(S,[2,16],{14:22,15:y,16:O}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(v,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:b,47:x},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:y,16:O,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:l,44:b,47:x},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{37:[1,47]},{34:48,35:E},{15:[1,50]},e(S,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:E,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(o,s){if(s.recoverable)this.trace(o);else{var i=new Error(o);throw i.hash=s,i}},parse:function(o){var s=this,i=[0],u=[],h=[null],t=[],_=this.table,r="",R=0,W=0,F=2,C=1,be=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(o,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var xe=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var T,M,z,Q,j={},X,B,ne,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((T===null||typeof T>"u")&&(T=Se()),z=_[M]&&_[M][T]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in _[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
|
|
2
|
-
`+w.showPosition()+`
|
|
3
|
-
Expecting `+G.join(", ")+", got '"+(this.terminals_[T]||T)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(T==C?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError($,{text:w.match,token:this.terminals_[T]||T,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+T);switch(z[0]){case 1:i.push(T),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),T=null,W=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],j.$=h[h.length-B],j._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},xe&&(j._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[r,W,R,K.yy,z[1],h,t].concat(be)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(j.$),t.push(j._$),ne=_[i[i.length-2]][i[i.length-1]],i.push(ne);break;case 3:return!0}}return!0}},A=(function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(o,s){return this.yy=s||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var s=o.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var s=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
-
`+s+"^"},test_match:function(o,s){var i,u,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,s,i,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;t<h.length;t++)if(i=this._input.match(this.rules[h[t]]),i&&(!s||i[0].length>s[0].length)){if(s=i,u=t,this.options.backtrack_lexer){if(o=this.test_match(i,h[t]),o!==!1)return o;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(o=this.test_match(s,h[u]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,i,u,h){switch(u){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return D})();L.lexer=A;function k(){this.yy={}}return k.prototype=L,L.Parser=k,new k})();ee.parser=ee;const we=ee;let I={},se=[],q={};const oe="color",ce="fill",De="bgFill",de=",",ve=f.getConfig();let V={};const Ne=e=>f.common$1.sanitizeText(e,ve),ke=function(e,a=""){V[e]===void 0&&(V[e]={id:e,styles:[],textStyles:[]});const d=V[e];a!=null&&a.split(de).forEach(c=>{const n=c.replace(/([^;]*);/,"$1").trim();if(c.match(oe)){const l=n.replace(ce,De).replace(oe,ce);d.textStyles.push(l)}d.styles.push(n)})},Te=function(e,a=""){const d=I[e];a!=null&&(d.styles=a.split(de))},Ie=function(e,a){e.split(",").forEach(function(d){let c=I[d];if(c===void 0){const n=d.trim();I[n]={id:n,type:"na",children:[]},c=I[n]}c.classes||(c.classes=[]),c.classes.push(a)})},he=(e,a)=>{const d=e.flat(),c=[];for(const n of d){if(n.label&&(n.label=Ne(n.label)),n.type==="classDef"){ke(n.id,n.css);continue}if(n.type==="applyClass"){Ie(n.id,(n==null?void 0:n.styleClass)||"");continue}if(n.type==="applyStyles"){n!=null&&n.stylesStr&&Te(n.id,n==null?void 0:n.stylesStr);continue}if(n.type==="column-setting")a.columns=n.columns||-1;else if(n.type==="edge")q[n.id]?q[n.id]++:q[n.id]=1,n.id=q[n.id]+"-"+n.id,se.push(n);else{n.label||(n.type==="composite"?n.label="":n.label=n.id);const g=!I[n.id];if(g?I[n.id]=n:(n.type!=="na"&&(I[n.id].type=n.type),n.label!==n.id&&(I[n.id].label=n.label)),n.children&&he(n.children,n),n.type==="space"){const l=n.width||1;for(let b=0;b<l;b++){const x=Le(n);x.id=x.id+"-"+b,I[x.id]=x,c.push(x)}}else g&&c.push(n)}}a.children=c};let ie=[],U={id:"root",type:"composite",children:[],columns:-1};const Oe=()=>{f.log$1.debug("Clear called"),f.clear(),U={id:"root",type:"composite",children:[],columns:-1},I={root:U},ie=[],V={},se=[],q={}};function ze(e){switch(f.log$1.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return f.log$1.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Ce(e){switch(f.log$1.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function Ae(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let ue=0;const Re=()=>(ue++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ue),Be=e=>{U.children=e,he(e,U),ie=U.children},Pe=e=>{const a=I[e];return a?a.columns?a.columns:a.children?a.children.length:-1:-1},Fe=()=>[...Object.values(I)],Ke=()=>ie||[],Me=()=>se,Ye=e=>I[e],We=e=>{I[e.id]=e},je=()=>console,qe=function(){return V},Ve={getConfig:()=>f.getConfig$1().block,typeStr2Type:ze,edgeTypeStr2Type:Ce,edgeStrToEdgeData:Ae,getLogger:je,getBlocksFlat:Fe,getBlocks:Ke,getEdges:Me,setHierarchy:Be,getBlock:Ye,setBlock:We,getColumns:Pe,getClasses:qe,clear:Oe,generateId:Re},Ue=Ve,H=(e,a)=>{const d=me.channel,c=d(e,"r"),n=d(e,"g"),g=d(e,"b");return f.rgba(c,n,g,a)},Xe=e=>`.label {
|
|
7
|
-
font-family: ${e.fontFamily};
|
|
8
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
9
|
-
}
|
|
10
|
-
.cluster-label text {
|
|
11
|
-
fill: ${e.titleColor};
|
|
12
|
-
}
|
|
13
|
-
.cluster-label span,p {
|
|
14
|
-
color: ${e.titleColor};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.label text,span,p {
|
|
20
|
-
fill: ${e.nodeTextColor||e.textColor};
|
|
21
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.node rect,
|
|
25
|
-
.node circle,
|
|
26
|
-
.node ellipse,
|
|
27
|
-
.node polygon,
|
|
28
|
-
.node path {
|
|
29
|
-
fill: ${e.mainBkg};
|
|
30
|
-
stroke: ${e.nodeBorder};
|
|
31
|
-
stroke-width: 1px;
|
|
32
|
-
}
|
|
33
|
-
.flowchart-label text {
|
|
34
|
-
text-anchor: middle;
|
|
35
|
-
}
|
|
36
|
-
// .flowchart-label .text-outer-tspan {
|
|
37
|
-
// text-anchor: middle;
|
|
38
|
-
// }
|
|
39
|
-
// .flowchart-label .text-inner-tspan {
|
|
40
|
-
// text-anchor: start;
|
|
41
|
-
// }
|
|
42
|
-
|
|
43
|
-
.node .label {
|
|
44
|
-
text-align: center;
|
|
45
|
-
}
|
|
46
|
-
.node.clickable {
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.arrowheadPath {
|
|
51
|
-
fill: ${e.arrowheadColor};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.edgePath .path {
|
|
55
|
-
stroke: ${e.lineColor};
|
|
56
|
-
stroke-width: 2.0px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.flowchart-link {
|
|
60
|
-
stroke: ${e.lineColor};
|
|
61
|
-
fill: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.edgeLabel {
|
|
65
|
-
background-color: ${e.edgeLabelBackground};
|
|
66
|
-
rect {
|
|
67
|
-
opacity: 0.5;
|
|
68
|
-
background-color: ${e.edgeLabelBackground};
|
|
69
|
-
fill: ${e.edgeLabelBackground};
|
|
70
|
-
}
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* For html labels only */
|
|
75
|
-
.labelBkg {
|
|
76
|
-
background-color: ${H(e.edgeLabelBackground,.5)};
|
|
77
|
-
// background-color:
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.node .cluster {
|
|
81
|
-
// fill: ${H(e.mainBkg,.5)};
|
|
82
|
-
fill: ${H(e.clusterBkg,.5)};
|
|
83
|
-
stroke: ${H(e.clusterBorder,.2)};
|
|
84
|
-
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
85
|
-
stroke-width: 1px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.cluster text {
|
|
89
|
-
fill: ${e.titleColor};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.cluster span,p {
|
|
93
|
-
color: ${e.titleColor};
|
|
94
|
-
}
|
|
95
|
-
/* .cluster div {
|
|
96
|
-
color: ${e.titleColor};
|
|
97
|
-
} */
|
|
98
|
-
|
|
99
|
-
div.mermaidTooltip {
|
|
100
|
-
position: absolute;
|
|
101
|
-
text-align: center;
|
|
102
|
-
max-width: 200px;
|
|
103
|
-
padding: 2px;
|
|
104
|
-
font-family: ${e.fontFamily};
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
background: ${e.tertiaryColor};
|
|
107
|
-
border: 1px solid ${e.border2};
|
|
108
|
-
border-radius: 2px;
|
|
109
|
-
pointer-events: none;
|
|
110
|
-
z-index: 100;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.flowchartTitleText {
|
|
114
|
-
text-anchor: middle;
|
|
115
|
-
font-size: 18px;
|
|
116
|
-
fill: ${e.textColor};
|
|
117
|
-
}
|
|
118
|
-
`,Ge=Xe;function ge(e,a,d=!1){var c,n,g;const l=e;let b="default";(((c=l==null?void 0:l.classes)==null?void 0:c.length)||0)>0&&(b=((l==null?void 0:l.classes)||[]).join(" ")),b=b+" flowchart-label";let x=0,p="",S;switch(l.type){case"round":x=5,p="rect";break;case"composite":x=0,p="composite",S=0;break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"block_arrow":p="block_arrow";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"rect_left_inv_arrow":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}const y=f.getStylesFromArray((l==null?void 0:l.styles)||[]),O=l.label,v=l.size||{width:0,height:0,x:0,y:0};return{labelStyle:y.labelStyle,shape:p,labelText:O,rx:x,ry:x,class:b,style:y.style,id:l.id,directions:l.directions,width:v.width,height:v.height,x:v.x,y:v.y,positioned:d,intersect:void 0,type:l.type,padding:S??(((g=(n=f.getConfig$1())==null?void 0:n.block)==null?void 0:g.padding)||0)}}async function He(e,a,d){const c=ge(a,d,!1);if(c.type==="group")return;const n=await Y.insertNode(e,c),g=n.node().getBBox(),l=d.getBlock(c.id);l.size={width:g.width,height:g.height,x:0,y:0,node:n},d.setBlock(l),n.remove()}async function Ze(e,a,d){const c=ge(a,d,!0);d.getBlock(c.id).type!=="space"&&(await Y.insertNode(e,c),a.intersect=c==null?void 0:c.intersect,Y.positionNode(c))}async function re(e,a,d,c){for(const n of a)await c(e,n,d),n.children&&await re(e,n.children,d,c)}async function Je(e,a,d){await re(e,a,d,He)}async function Qe(e,a,d){await re(e,a,d,Ze)}async function $e(e,a,d,c,n){const g=new _e.Graph({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const l of d)l.size&&g.setNode(l.id,{width:l.size.width,height:l.size.height,intersect:l.intersect});for(const l of a)if(l.start&&l.end){const b=c.getBlock(l.start),x=c.getBlock(l.end);if(b!=null&&b.size&&(x!=null&&x.size)){const p=b.size,S=x.size,y=[{x:p.x,y:p.y},{x:p.x+(S.x-p.x)/2,y:p.y+(S.y-p.y)/2},{x:S.x,y:S.y}];await Y.insertEdge(e,{v:l.start,w:l.end,name:l.id},{...l,arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart,points:y,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",g,n),l.label&&(await Y.insertEdgeLabel(e,{...l,label:l.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart}),await Y.positionEdgeLabel({...l,x:y[1].x,y:y[1].y},{originalPath:y}))}}}const m=((le=(ae=f.getConfig())==null?void 0:ae.block)==null?void 0:le.padding)||8;function et(e,a){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(e<0)return{px:a,py:0};if(e===1)return{px:0,py:a};const d=a%e,c=Math.floor(a/e);return{px:d,py:c}}const tt=e=>{let a=0,d=0;for(const c of e.children){const{width:n,height:g,x:l,y:b}=c.size||{width:0,height:0,x:0,y:0};f.log$1.debug("getMaxChildSize abc95 child:",c.id,"width:",n,"height:",g,"x:",l,"y:",b,c.type),c.type!=="space"&&(n>a&&(a=n/(e.widthInColumns||1)),g>d&&(d=g))}return{width:a,height:d}};function te(e,a,d=0,c=0){var n,g,l,b,x,p,S,y,O,v,N;f.log$1.debug("setBlockSizes abc95 (start)",e.id,(n=e==null?void 0:e.size)==null?void 0:n.x,"block width =",e==null?void 0:e.size,"sieblingWidth",d),(g=e==null?void 0:e.size)!=null&&g.width||(e.size={width:d,height:c,x:0,y:0});let E=0,L=0;if(((l=e.children)==null?void 0:l.length)>0){for(const h of e.children)te(h,a);const A=tt(e);E=A.width,L=A.height,f.log$1.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",E,L);for(const h of e.children)h.size&&(f.log$1.debug(`abc95 Setting size of children of ${e.id} id=${h.id} ${E} ${L} ${h.size}`),h.size.width=E*(h.widthInColumns||1)+m*((h.widthInColumns||1)-1),h.size.height=L,h.size.x=0,h.size.y=0,f.log$1.debug(`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${E} maxHeight:${L}`));for(const h of e.children)te(h,a,E,L);const k=e.columns||-1;let D=0;for(const h of e.children)D+=h.widthInColumns||1;let o=e.children.length;k>0&&k<D&&(o=k),e.widthInColumns;const s=Math.ceil(D/o);let i=o*(E+m)+m,u=s*(L+m)+m;if(i<d){f.log$1.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${d} sieblingHeight ${c} width ${i}`),i=d,u=c;const h=(d-o*m-m)/o,t=(c-s*m-m)/s;f.log$1.debug("Size indata abc88",e.id,"childWidth",h,"maxWidth",E),f.log$1.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",L),f.log$1.debug("Size indata abc88 xSize",o,"padding",m);for(const _ of e.children)_.size&&(_.size.width=h,_.size.height=t,_.size.x=0,_.size.y=0)}if(f.log$1.debug(`abc95 (finale calc) ${e.id} xSize ${o} ySize ${s} columns ${k}${e.children.length} width=${Math.max(i,((b=e.size)==null?void 0:b.width)||0)}`),i<(((x=e==null?void 0:e.size)==null?void 0:x.width)||0)){i=((p=e==null?void 0:e.size)==null?void 0:p.width)||0;const h=k>0?Math.min(e.children.length,k):e.children.length;if(h>0){const t=(i-h*m-m)/h;f.log$1.debug("abc95 (growing to fit) width",e.id,i,(S=e.size)==null?void 0:S.width,t);for(const _ of e.children)_.size&&(_.size.width=t)}}e.size={width:i,height:u,x:0,y:0}}f.log$1.debug("setBlockSizes abc94 (done)",e.id,(y=e==null?void 0:e.size)==null?void 0:y.x,(O=e==null?void 0:e.size)==null?void 0:O.width,(v=e==null?void 0:e.size)==null?void 0:v.y,(N=e==null?void 0:e.size)==null?void 0:N.height)}function pe(e,a){var d,c,n,g,l,b,x,p,S,y,O,v,N,E,L,A,k;f.log$1.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(d=e==null?void 0:e.size)==null?void 0:d.x} y: ${(c=e==null?void 0:e.size)==null?void 0:c.y} width: ${(n=e==null?void 0:e.size)==null?void 0:n.width}`);const D=e.columns||-1;if(f.log$1.debug("layoutBlocks columns abc95",e.id,"=>",D,e),e.children&&e.children.length>0){const o=((l=(g=e==null?void 0:e.children[0])==null?void 0:g.size)==null?void 0:l.width)||0,s=e.children.length*o+(e.children.length-1)*m;f.log$1.debug("widthOfChildren 88",s,"posX");let i=0;f.log$1.debug("abc91 block?.size?.x",e.id,(b=e==null?void 0:e.size)==null?void 0:b.x);let u=(x=e==null?void 0:e.size)!=null&&x.x?((p=e==null?void 0:e.size)==null?void 0:p.x)+(-((S=e==null?void 0:e.size)==null?void 0:S.width)/2||0):-m,h=0;for(const t of e.children){const _=e;if(!t.size)continue;const{width:r,height:R}=t.size,{px:W,py:F}=et(D,i);if(F!=h&&(h=F,u=(y=e==null?void 0:e.size)!=null&&y.x?((O=e==null?void 0:e.size)==null?void 0:O.x)+(-((v=e==null?void 0:e.size)==null?void 0:v.width)/2||0):-m,f.log$1.debug("New row in layout for block",e.id," and child ",t.id,h)),f.log$1.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${W},${F} (${(N=_==null?void 0:_.size)==null?void 0:N.x},${(E=_==null?void 0:_.size)==null?void 0:E.y}) parent: ${_.id} width: ${r}${m}`),_.size){const C=r/2;t.size.x=u+m+C,f.log$1.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${u} new startingPosX${t.size.x} ${C} padding=${m} width=${r} halfWidth=${C} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${r*((t==null?void 0:t.widthInColumns)||1)/2}`),u=t.size.x+C,t.size.y=_.size.y-_.size.height/2+F*(R+m)+R/2+m,f.log$1.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${u}${m}${C}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${r*((t==null?void 0:t.widthInColumns)||1)/2}`)}t.children&&pe(t),i+=(t==null?void 0:t.widthInColumns)||1,f.log$1.debug("abc88 columnsPos",t,i)}}f.log$1.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(L=e==null?void 0:e.size)==null?void 0:L.x} y: ${(A=e==null?void 0:e.size)==null?void 0:A.y} width: ${(k=e==null?void 0:e.size)==null?void 0:k.width}`)}function fe(e,{minX:a,minY:d,maxX:c,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:g,y:l,width:b,height:x}=e.size;g-b/2<a&&(a=g-b/2),l-x/2<d&&(d=l-x/2),g+b/2>c&&(c=g+b/2),l+x/2>n&&(n=l+x/2)}if(e.children)for(const g of e.children)({minX:a,minY:d,maxX:c,maxY:n}=fe(g,{minX:a,minY:d,maxX:c,maxY:n}));return{minX:a,minY:d,maxX:c,maxY:n}}function st(e){const a=e.getBlock("root");if(!a)return;te(a,e,0,0),pe(a),f.log$1.debug("getBlocks",JSON.stringify(a,null,2));const{minX:d,minY:c,maxX:n,maxY:g}=fe(a),l=g-c,b=n-d;return{x:d,y:c,width:b,height:l}}const it=function(e,a){return a.db.getClasses()},rt=async function(e,a,d,c){const{securityLevel:n,block:g}=f.getConfig$1(),l=c.db;let b;n==="sandbox"&&(b=f.select("#i"+a));const x=n==="sandbox"?f.select(b.nodes()[0].contentDocument.body):f.select("body"),p=n==="sandbox"?x.select(`[id="${a}"]`):f.select(`[id="${a}"]`),S=["point","circle","cross"];Y.insertMarkers$1(p,S,c.type,a);const y=l.getBlocks(),O=l.getBlocksFlat(),v=l.getEdges(),N=p.insert("g").attr("class","block");await Je(N,y,l);const E=st(l);if(await Qe(N,y,l),await $e(N,v,O,l,a),E){const L=E,A=Math.max(1,Math.round(.125*(L.width/L.height))),k=L.height+A+10,D=L.width+10,{useMaxWidth:o}=g;f.configureSvgSize(p,k,D,!!o),f.log$1.debug("Here Bounds",E,L),p.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}ye.ordinal(Ee.schemeTableau10)},nt={draw:rt,getClasses:it},at={parser:we,db:Ue,renderer:nt,styles:Ge};exports.diagram=at;
|
package/dist/layers.CcTyCqqv.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.CV8UgwCq.js");var i={paste:"Įklijuoti",pasteAsPlaintext:"Įklijuoti kaip paprastą tekstą",pasteCharts:"Įklijuoti diagramas",selectAll:"Pažymėti viską",multiSelect:"Pridėkite elementą prie pasirinktų",moveCanvas:"Judinti drobę",cut:"Iškirpti",copy:"Kopijuoti",copyAsPng:"Kopijuoti į iškarpinę kaip PNG",copyAsSvg:"Kopijuoti į iškarpinę kaip SVG",copyText:"Kopijuoti į iškarpinę kaip tekstą",copySource:"",convertToCode:"",bringForward:"Kelti priekio link",sendToBack:"Nustumti į užnugarį",bringToFront:"Iškelti į priekį",sendBackward:"Nustumti link užnugario",delete:"Ištrinti",copyStyles:"Kopijuoti stilius",pasteStyles:"Įklijuoti stilius",stroke:"Linija",background:"Fonas",fill:"Užpildymas",strokeWidth:"Linijos storis",strokeStyle:"Linijos stilius",strokeStyle_solid:"Ištisinė",strokeStyle_dashed:"Brūkšniuota",strokeStyle_dotted:"Taškuota",sloppiness:"Netvarkingumas",opacity:"Nepermatomumas",textAlign:"Teksto lygiavimas",edges:"Kraštai",sharp:"Aštrus",round:"Užapvalintas",arrowheads:"Rodyklės viršūnės",arrowhead_none:"Jokios",arrowhead_arrow:"Rodyklė",arrowhead_bar:"Brukšnys",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Trikampis",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Šrifto dydis",fontFamily:"Šriftas",addWatermark:"Sukurta su Excalidraw",handDrawn:"Ranka rašytas",normal:"Normalus",code:"Kodas",small:"Mažas",medium:"Vidutinis",large:"Didelis",veryLarge:"Labai didelis",solid:"",hachure:"",zigzag:"",crossHatch:"",thin:"Plonas",bold:"Pastorintas",left:"Kairėje",center:"Centre",right:"Dešinėje",extraBold:"Labiau pastorintas",architect:"Architektas",artist:"Menininkas",cartoonist:"Karikatūristas",fileTitle:"Failo pavadinimas",colorPicker:"Spalvos parinkiklis",canvasColors:"",canvasBackground:"Drobės fonas",drawingCanvas:"",layers:"Sluoksniai",actions:"Veiksmai",language:"Kalba",liveCollaboration:"Bendradarbiavimas gyvai...",duplicateSelection:"",untitled:"",name:"",yourName:"Jūsų vardas",madeWithExcalidraw:"Sukurta su Excalidraw",group:"Grupuoti pasirinkimą",ungroup:"Išgrupuoti pasirinkimą",collaborators:"Bendradarbiautojai",showGrid:"Rodyti tinklelį",addToLibrary:"Pridėti į biblioteką",removeFromLibrary:"Pašalinti iš bibliotekos",libraryLoadingMessage:"",libraries:"Naršyti bibliotekas",loadingScene:"",align:"Lygiuoti",alignTop:"Lygiuoti viršuje",alignBottom:"Lygiuoti apačioje",alignLeft:"Lygiuoti kairėje",alignRight:"Lygiuoti dešinėje",centerVertically:"Centruoti vertikaliai",centerHorizontally:"Centruoti horizontaliai",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"Apversti horizontaliai",flipVertical:"Apversti vertikaliai",viewMode:"",share:"Dalintis",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"Asmeninė biblioteka",excalidrawLib:"Exaclidraw biblioteka",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"Redeguoti nuorodą",editEmbed:"",create:"Sukurti nuorodą",createEmbed:"",label:"Nuoroda",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"Užrakinti",unlock:"Atrakinti",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},e={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},a={clearReset:"",exportJSON:"Eksportuoti į failą",exportImage:"",export:"",copyToClipboard:"Kopijuoti į iškarpinę",save:"",saveAs:"Išsaugoti kaip",load:"",getShareableLink:"Gauti nuorodą dalinimuisi",close:"Uždaryti",selectLanguage:"Pasirinkite kalbą",scrollBackToContent:"",zoomIn:"Priartinti",zoomOut:"Nutolinti",resetZoom:"",menu:"Meniu",done:"",edit:"Redaguoti",undo:"Anuliuoti",redo:"",resetLibrary:"Atstatyti biblioteką",createNewRoom:"Sukurti naują kambarį",fullScreen:"Visas ekranas",darkMode:"Tamsus režimas",lightMode:"Šviesus režimas",zenMode:"„Zen“ režimas",objectsSnapMode:"",exitZenMode:"Išeiti iš „Zen“ režimo",cancel:"Atšaukti",clear:"Išvalyti",remove:"Pašalinti",embed:"",publishLibrary:"Paskelbti",submit:"Pateikti",confirm:"Patvirtinti",embeddableInteractionButton:""},t={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:`Sesijos nutraukimas perrašys ankstesnį, lokaliai išsaugotą piešinį. Ar tikrai to nori?
|
|
2
|
-
|
|
3
|
-
(Jei nori išlaikyti lokalų piešinį, tiesiog uždaryk naršyklės skirtuką.)`,errorAddingToLibrary:"Nepavyko įtraukti elemento į biblioteką",errorRemovingFromLibrary:"Nepavyko pašalinti elemento iš bibliotekos",confirmAddLibrary:"Tai įtrauks {{numShapes}} figūrą/-as į tavo biblioteką. Ar tikrai to nori?",imageDoesNotContainScene:"Panašu, jog šis paveiksliukas neturi scenos duomenų. Ar yra įjuntas scenos įtraukimas ekportavimo metu?",cannotRestoreFromImage:"Nepavyko atstatyti scenos iš šio nuotraukos failo",invalidSceneUrl:"Nepavyko suimportuoti scenos iš pateiktos nuorodos (URL). Ji arba blogai suformatuota, arba savyje neturi teisingų Excalidraw JSON duomenų.",resetLibrary:"Tai išvalys tavo biblioteką. Ar tikrai to nori?",removeItemsFromsLibrary:"Ištrinti {{count}} elementą/-us iš bibliotekos?",invalidEncryptionKey:"Šifravimo raktas turi būti iš 22 simbolių. Redagavimas gyvai yra išjungtas.",collabOfflineWarning:""},o={unsupportedFileType:"Nepalaikomas failo tipas.",imageInsertError:"Nepyko įkelti paveiksliuko. Pabandyk vėliau...",fileTooBig:"Per didelis failas. Didžiausias leidžiamas dydis yra {{maxSize}}.",svgImageInsertError:"Nepavyko įtraukti SVG paveiksliuko. Panašu, jog SVG yra nevalidus.",failedToFetchImage:"",invalidSVGString:"Nevalidus SVG.",cannotResolveCollabServer:"Nepavyko prisijungti prie serverio bendradarbiavimui. Perkrauk puslapį ir pabandyk prisijungti dar kartą.",importLibraryError:"Nepavyko įkelti bibliotekos",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},r={selection:"Žymėjimas",image:"Įkelti paveiksliuką",rectangle:"Stačiakampis",diamond:"Deimantas",ellipse:"Elipsė",arrow:"Rodyklė",line:"Linija",freedraw:"Piešti",text:"Tekstas",library:"Biblioteka",lock:"Baigus piešti, išlaikyti pasirinktą įrankį",penMode:"Rašyklio režimas - neleisti prisilietimų",link:"Pridėti / Atnaujinti pasirinktos figūros nuorodą",eraser:"Trintukas",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},u={canvasActions:"Veiksmai su drobe",selectedShapeActions:"Veiksmai su pasirinkta figūra",shapes:"Figūros"},s={canvasPanning:"",linearElement:"Paspaudimai sukurs papildomus taškus, nepertraukiamas tempimas sukurs liniją",freeDraw:"Spausk ir tempk, paleisk kai norėsi pabaigti",text:"Užuomina: tekstą taip pat galima pridėti bet kur su dvigubu pelės paspaudimu, kol parinkas žymėjimo įrankis",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:""},l={cannotShowPreview:"",canvasTooBig:"",canvasTooBigTip:""},n={headingMain:"",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"",sceneContent:""},d={desc_intro:"",desc_privacy:"",button_startSession:"Pradėti seansą",button_stopSession:"Sustabdyti seansą",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},k={title:"Klaida"},p={disk_title:"Įrašyti į diską",disk_details:"",disk_button:"Įrašyti į failą",link_title:"Nuoroda dalinimuisi",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"Eksportuoti",excalidrawplus_exportError:""},m={blog:"",click:"paspaudimas",deepSelect:"",deepBoxSelect:"",curvedArrow:"Banguota rodyklė",curvedLine:"Banguota linija",documentation:"Dokumentacija",doubleClick:"dvigubas paspaudimas",drag:"vilkti",editor:"Redaktorius",editLineArrowPoints:"",editText:"",github:"Radai klaidą? Pateik",howto:"Vadovaukis mūsų gidu",or:"arba",preventBinding:"",tools:"Įrankiai",shortcuts:"Spartieji klavišai",textFinish:"Baigti redagavimą (teksto redaktoriuje)",textNewLine:"Pridėti naują eilutę (tekto redaktoriuje)",title:"Pagalba",view:"",zoomToFit:"",zoomToSelection:"Priartinti iki pažymėtos vietos",toggleElementLock:"",movePageUpDown:"Pajudinti puslapį aukštyn/žemyn",movePageLeftRight:"Pajudinti puslapį kairėn/dešinėn"},c={title:"Išvalyti drobę"},b={title:"Paviešinti biblioteką",itemName:"Elemento pavadinimas",authorName:"Autoriaus vardas",githubUsername:"Github spalyvardis",twitterUsername:"Twitter slapyvardis",libraryName:"Bibliotekos pavadinimas",libraryDesc:"Bibliotekos aprašas",website:"Tinklalapis",placeholder:{authorName:"Tavo vardas arba spalyvardis",libraryName:"Tavo bibliotekos pavadinimas",libraryDesc:"Tavo bibliotekos aprašas, padėti žmonėms geriau suprasti jos paskirtį",githubHandle:"",twitterHandle:"",website:""},errors:{required:"Privalomas",website:"Įveskite teisingą nuorodą (URL)"},noteDescription:"Pateik savo biblioteką, jog ji galėtų būti įtraukta į <link></link>jog kiti žmonės galėtų tai naudoti savo piešiniuose.",noteGuidelines:"Visų pirma, biblioteka turi būti rankiniu būdu patvirtinta. Prašome paskaityti <link>gairės</link>",noteLicense:"<link>MIT licencija, </link>",noteItems:"",atleastOneLibItem:"",republishWarning:""},g={title:"Biblioteka pateikta",content:"Ačiū {{authorName}}. Tavo biblioteka buvo pateikta peržiūrai. Gali sekti būseną<link>čia</link>"},y={resetLibrary:"Atstatyti biblioteką",removeItemsFromLib:"Pašalinti pasirinktus elementus iš bibliotekos"},v={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},h={tooltip:"",link:""},S={angle:"",element:"Elementas",elements:"Elementai",height:"Aukštis",scene:"Scena",selected:"Pasirinkta",storage:"Saugykla",title:"Informacija moksliukams",total:"",version:"",versionCopy:"",versionNotAvailable:"",width:"Plotis"},E={addedToLibrary:"Pridėta į biblioteką",copyStyles:"",copyToClipboard:"Nukopijuota į iškarpinę.",copyToClipboardAsPng:"",fileSaved:"Failas išsaugotas.",fileSavedToFilename:"Išsaugota į {filename}",canvas:"drobė",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},F={transparent:"Permatoma",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},T={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},P={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},w={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},x={title:"",button:"",description:"",syntax:"",preview:""},j={labels:i,library:e,buttons:a,alerts:t,errors:o,toolBar:r,headings:u,hints:s,canvasError:l,errorSplash:n,roomDialog:d,errorDialog:k,exportDialog:p,helpDialog:m,clearCanvasDialog:c,publishDialog:b,publishSuccessDialog:g,confirmDialog:y,imageExportDialog:v,encrypted:h,stats:S,toast:E,colors:F,welcomeScreen:T,colorPicker:P,overwriteConfirm:w,mermaid:x};exports.alerts=t;exports.buttons=a;exports.canvasError=l;exports.clearCanvasDialog=c;exports.colorPicker=P;exports.colors=F;exports.confirmDialog=y;exports.default=j;exports.encrypted=h;exports.errorDialog=k;exports.errorSplash=n;exports.errors=o;exports.exportDialog=p;exports.headings=u;exports.helpDialog=m;exports.hints=s;exports.imageExportDialog=v;exports.labels=i;exports.library=e;exports.mermaid=x;exports.overwriteConfirm=w;exports.publishDialog=b;exports.publishSuccessDialog=g;exports.roomDialog=d;exports.stats=S;exports.toast=E;exports.toolBar=r;exports.welcomeScreen=T;
|
package/dist/layers.Cd3kGFCJ.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import "./layers.D_faABvp.js";
|
|
2
|
-
var e = { paste: "Qoyıw", pasteAsPlaintext: "Ápiwayı tekst retinde qoyıw", pasteCharts: "Diagrammalardı qoyıw", selectAll: "Barlıǵın tańlaw", multiSelect: "", moveCanvas: "", cut: "Qıyıw", copy: "Kóshirip alıw", copyAsPng: "Almasıw buferine PNG retinde kóshirip alıw", copyAsSvg: "Almasıw buferine SVG retinde kóshirip alıw", copyText: "Almasıw buferine tekst retinde kóshirip alıw", copySource: "", convertToCode: "", bringForward: "", sendToBack: "", bringToFront: "", sendBackward: "", delete: "Óshiriw", copyStyles: "", pasteStyles: "", stroke: "Jiyek", background: "Fon", fill: "", strokeWidth: "", strokeStyle: "", strokeStyle_solid: "", strokeStyle_dashed: "", strokeStyle_dotted: "", sloppiness: "", opacity: "", textAlign: "", edges: "Qırlar", sharp: "", round: "", arrowheads: "", arrowhead_none: "Joq", arrowhead_arrow: "Jebe", arrowhead_bar: "", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Shrift ólshemi", fontFamily: "Shrift toplamı", addWatermark: "", handDrawn: "", normal: "", code: "Kod", small: "", medium: "Ortasha", large: "Úlken", veryLarge: "Júdá úlken", solid: "", hachure: "", zigzag: "Zigzag", crossHatch: "", thin: "Jińishke", bold: "Qalıń", left: "", center: "", right: "", extraBold: "", architect: "", artist: "Súwretshi", cartoonist: "", fileTitle: "Fayl ataması", colorPicker: "Reńdi tańlaw", canvasColors: "", canvasBackground: "", drawingCanvas: "", layers: "Qatlamlar", actions: "Háreketler", language: "Til", liveCollaboration: "", duplicateSelection: "Nusqa", untitled: "Atamasız", name: "Ataması", yourName: "Atıńız", madeWithExcalidraw: "Excalidraw járdeminde islengen", group: "", ungroup: "", collaborators: "Qatnasıwshılar", showGrid: "", addToLibrary: "Kitapxanaǵa qosıw", removeFromLibrary: "Kitapxanadan alıp taslaw", libraryLoadingMessage: "Kitapxana júklenbekte…", libraries: "Kitapxanalardı kóriw", loadingScene: "Saxna júklenbekte…", align: "", alignTop: "", alignBottom: "", alignLeft: "", alignRight: "", centerVertically: "", centerHorizontally: "", distributeHorizontally: "", distributeVertically: "", flipHorizontal: "", flipVertical: "", viewMode: "Kóriw rejimi", share: "Bólisiw", showStroke: "", showBackground: "", toggleTheme: "Temanı ózgertiw", personalLib: "Jeke kitapxana", excalidrawLib: "Excalidraw kitapxanası", decreaseFontSize: "Shrift ólshemin kishireytiw", increaseFontSize: "Shrift ólshemin úlkeytiw", unbindText: "", bindText: "", createContainerFromText: "", link: { edit: "Siltemeni ózgertiw", editEmbed: "", create: "Siltemeni jaratıw", createEmbed: "", label: "Silteme", labelEmbed: "", empty: "" }, lineEditor: { edit: "Qatardı ózgertiw", exit: "Qatardı ózgertiw redaktorınan shıǵıw" }, elementLock: { lock: "Qulıplaw", unlock: "Qulıptan shıǵarıw", lockAll: "Barlıǵın qulıplaw", unlockAll: "Barlıǵın qulıptan shıǵarıw" }, statusPublished: "", sidebarLock: "", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, a = { noItems: "", hint_emptyLibrary: "", hint_emptyPrivateLibrary: "" }, r = { clearReset: "", exportJSON: "", exportImage: "Súwretti eksportlaw...", export: "Retinde saqlaw...", copyToClipboard: "Almasıw buferine kóshirip alındı", save: "Ámeldegi faylǵa saqlaw", saveAs: "Retinde saqlaw", load: "Ashıw", getShareableLink: "", close: "Jabıw", selectLanguage: "Tildi tańlaw", scrollBackToContent: "", zoomIn: "", zoomOut: "", resetZoom: "", menu: "Menyu", done: "Tayın", edit: "Ózgertiw", undo: "", redo: "", resetLibrary: "", createNewRoom: "", fullScreen: "Tolıq ekran", darkMode: "Qarańǵı tema", lightMode: "Jaqtı tema", zenMode: "", objectsSnapMode: "", exitZenMode: "", cancel: "Biykarlaw", clear: "Tazalaw", remove: "Óshiriw", embed: "", publishLibrary: "Jariyalaw", submit: "Jiberiw", confirm: "Tastıyıqlaw", embeddableInteractionButton: "" }, t = { clearReset: "", couldNotCreateShareableLink: "", couldNotCreateShareableLinkTooBig: "", couldNotLoadInvalidFile: "", importBackendFailed: "", cannotExportEmptyCanvas: "", couldNotCopyToClipboard: "Almasıw buferine kóshirip alıw ámelge aspadı.", decryptFailed: "", uploadedSecurly: "", loadSceneOverridePrompt: "", collabStopOverridePrompt: "", errorAddingToLibrary: "", errorRemovingFromLibrary: "", confirmAddLibrary: "", imageDoesNotContainScene: "", cannotRestoreFromImage: "", invalidSceneUrl: "", resetLibrary: "", removeItemsFromsLibrary: "", invalidEncryptionKey: "", collabOfflineWarning: "" }, i = { unsupportedFileType: "", imageInsertError: "", fileTooBig: "", svgImageInsertError: "", failedToFetchImage: "", invalidSVGString: "Jaramsız SVG.", cannotResolveCollabServer: "", importLibraryError: "Kitapxananı júklew ámelge aspadı", collabSaveFailed: "", collabSaveFailed_sizeExceeded: "", imageToolNotSupported: "", brave_measure_text_error: { line1: "", line2: "", line3: "", line4: "" }, libraryElementTypeError: { embeddable: "", iframe: "", image: "" }, asyncPasteFailedOnRead: "", asyncPasteFailedOnParse: "", copyToSystemClipboardFailed: "" }, l = { selection: "", image: "Súwret qoyıw", rectangle: "Tórt múyeshlik", diamond: "", ellipse: "", arrow: "", line: "Sızıq", freedraw: "Sızıw", text: "Tekst", library: "Kitapxana", lock: "", penMode: "", link: "", eraser: "Óshirgish", frame: "", magicframe: "", embeddable: "", laser: "", hand: "", extraTools: "", mermaidToExcalidraw: "", magicSettings: "" }, o = { canvasActions: "", selectedShapeActions: "", shapes: "Figuralar" }, n = { canvasPanning: "", linearElement: "", freeDraw: "", text: "", embeddable: "", text_selected: "", text_editing: "", linearElementMulti: "", lockAngle: "", resize: "", resizeImage: "", rotate: "", lineEditor_info: "", lineEditor_pointSelected: "", lineEditor_nothingSelected: "", placeImage: "", publishLibrary: "", bindTextToElement: "Tekst qosıw ushın Enter túymesin basıń", deepBoxSelect: "", eraserRevert: "", firefox_clipboard_write: "", disableSnapping: "" }, s = { cannotShowPreview: "Aldınnan kóriwdi kórsetiw múmkin emes", canvasTooBig: "", canvasTooBigTip: "" }, u = { headingMain: "", clearCanvasMessage: "", clearCanvasCaveat: "", trackedToSentry: "", openIssueMessage: "", sceneContent: "" }, d = { desc_intro: "", desc_privacy: "", button_startSession: "", button_stopSession: "", desc_inProgressIntro: "", desc_shareLink: "", desc_exitSession: "", shareTitle: "" }, c = { title: "Qátelik" }, m = { disk_title: "Diskke saqlaw", disk_details: "", disk_button: "Faylǵa saqlaw", link_title: "", link_details: "", link_button: "Siltemege eksportlaw", excalidrawplus_description: "", excalidrawplus_button: "Eksportlaw", excalidrawplus_exportError: "" }, p = { blog: "Biziń blogtı oqıń", click: "basıw", deepSelect: "", deepBoxSelect: "", curvedArrow: "", curvedLine: "", documentation: "Hújjetshilik", doubleClick: "", drag: "", editor: "Redaktor", editLineArrowPoints: "", editText: "", github: "", howto: "", or: "yamasa", preventBinding: "", tools: "Ásbaplar", shortcuts: "", textFinish: "", textNewLine: "", title: "Járdem", view: "Kóriw", zoomToFit: "", zoomToSelection: "", toggleElementLock: "", movePageUpDown: "", movePageLeftRight: "" }, w = { title: "" }, b = { title: "", itemName: "", authorName: "Avtor atı", githubUsername: "GitHub paydalanıwshı atı", twitterUsername: "Twitter paydalanıwshı atı", libraryName: "Kitapxana ataması", libraryDesc: "", website: "Veb-sayt", placeholder: { authorName: "Atıńız yamasa paydalanıwshı atı", libraryName: "Kitapxanańız ataması", libraryDesc: "", githubHandle: "", twitterHandle: "", website: "Jeke veb-saytıńız yamasa basqa saytqa silteme (májbúriy emes)" }, errors: { required: "Májbúriy", website: "Jaramlı URL mánzil kirgiziń" }, noteDescription: "", noteGuidelines: "", noteLicense: "", noteItems: "", atleastOneLibItem: "", republishWarning: "" }, g = { title: "Kitapxana jiberildi", content: "" }, x = { resetLibrary: "Kitapxananı qayta ornatıw", removeItemsFromLib: "" }, h = { header: "Súwretti eksportlaw", label: { withBackground: "Fon", onlySelected: "", darkMode: "Qarańǵı tema", embedScene: "", scale: "Kólem", padding: "" }, tooltip: { embedScene: "" }, title: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" }, button: { exportToPng: "PNG", exportToSvg: "SVG", copyPngToClipboard: "Almasıw buferine kóshirip alıw" } }, y = { tooltip: "", link: "" }, k = { angle: "", element: "Element", elements: "Elementler", height: "", scene: "Saxna", selected: "Tańlandı", storage: "", title: "", total: "", version: "Versiya", versionCopy: "Kóshirip alıw ushın basıń", versionNotAvailable: "", width: "Eni" }, F = { addedToLibrary: "Kitapxanaǵa qosıldı", copyStyles: "", copyToClipboard: "Almasıw buferine kóshirip alındı.", copyToClipboardAsPng: "", fileSaved: "Fayl saqlandı.", fileSavedToFilename: "{filename} saqlandı", canvas: "", selection: "", pasteAsSingleElement: "", unableToEmbed: "", unrecognizedLinkFormat: "" }, S = { transparent: "", black: "Qara", white: "Aq", red: "Qızıl", pink: "Qızǵılt", grape: "", violet: "Qızǵılt kók", gray: "", blue: "Kók", cyan: "Kók aspan", teal: "Piruza", green: "Jasıl", yellow: "Sarı", orange: "Qızǵılt sarı", bronze: "" }, v = { app: { center_heading: "", center_heading_plus: "Excalidraw+ ge ótiwdi qáleysiz be?", menuHint: "Eksportlaw, sazlawlar, tiller, ..." }, defaults: { menuHint: "Eksportlaw, sazlawlar hám basqa...", center_heading: "Diagrammalar. Ápiwayı.", toolbarHint: "", helpHint: "" } }, T = { mostUsedCustomColors: "Kóp qollanılatuǵın arnawlı reńler", colors: "Reńler", shades: "", hexCode: "", noShades: "" }, A = { action: { exportToImage: { title: "Súwret retinde eksportlaw", button: "Súwret retinde eksportlaw", description: "" }, saveToDisk: { title: "Diskke saqlaw", button: "Diskke saqlaw", description: "" }, excalidrawPlus: { title: "Excalidraw+", button: "", description: "" } }, modal: { loadFromFile: { title: "Fayldan júklew", button: "Fayldan júklew", description: "" }, shareableLink: { title: "Siltemeden júklew", button: "", description: "" } } }, E = { title: "", button: "", description: "", syntax: "", preview: "" }, f = { labels: e, library: a, buttons: r, alerts: t, errors: i, toolBar: l, headings: o, hints: n, canvasError: s, errorSplash: u, roomDialog: d, errorDialog: c, exportDialog: m, helpDialog: p, clearCanvasDialog: w, publishDialog: b, publishSuccessDialog: g, confirmDialog: x, imageExportDialog: h, encrypted: y, stats: k, toast: F, colors: S, welcomeScreen: v, colorPicker: T, overwriteConfirm: A, mermaid: E };
|
|
3
|
-
export {
|
|
4
|
-
t as alerts,
|
|
5
|
-
r as buttons,
|
|
6
|
-
s as canvasError,
|
|
7
|
-
w as clearCanvasDialog,
|
|
8
|
-
T as colorPicker,
|
|
9
|
-
S as colors,
|
|
10
|
-
x as confirmDialog,
|
|
11
|
-
f as default,
|
|
12
|
-
y as encrypted,
|
|
13
|
-
c as errorDialog,
|
|
14
|
-
u as errorSplash,
|
|
15
|
-
i as errors,
|
|
16
|
-
m as exportDialog,
|
|
17
|
-
o as headings,
|
|
18
|
-
p as helpDialog,
|
|
19
|
-
n as hints,
|
|
20
|
-
h as imageExportDialog,
|
|
21
|
-
e as labels,
|
|
22
|
-
a as library,
|
|
23
|
-
E as mermaid,
|
|
24
|
-
A as overwriteConfirm,
|
|
25
|
-
b as publishDialog,
|
|
26
|
-
g as publishSuccessDialog,
|
|
27
|
-
d as roomDialog,
|
|
28
|
-
k as stats,
|
|
29
|
-
F as toast,
|
|
30
|
-
l as toolBar,
|
|
31
|
-
v as welcomeScreen
|
|
32
|
-
};
|