/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["require","exports","../../assets"],(function(t,a,o){"use strict";let e;function u(){return!!a._lclayout}function l(){return e||(e=new Promise(((a,o)=>t(["../../chunks/lclayout"],a,o))).then((t=>t.lclayout)).then((({default:t})=>t({locateFile:t=>o.getAssetUrl(`esri/libs/linkchartlayout/${t}`)}))).then((t=>{r(t)})),e)}function r(t){a._lclayout=t}function y(t,o,e,u,l){const r=o.length,y=u.length,n=Float64Array.BYTES_PER_ELEMENT,i=Uint32Array.BYTES_PER_ELEMENT,c=16,L=c-1+r*(2*n)+y*(2*i),p=a._lclayout._malloc(L);try{const L=p+c-p%c,s=L+r*n,_=s+r*n,d=_+y*i,f=()=>[a._lclayout.HEAPF64.subarray(L>>3,(L>>3)+r),a._lclayout.HEAPF64.subarray(s>>3,(s>>3)+r),a._lclayout.HEAPU32.subarray(_>>2,(_>>2)+y),a._lclayout.HEAPU32.subarray(d>>2,(d>>2)+y)],[C,m,E,T]=f();C.set(o),m.set(e),E.set(u),T.set(l);const S=t(r,L,s,y,_,d),[h,v,F,H]=f();return o.set(h),e.set(v),u.set(F),l.set(H),S}finally{a._lclayout._free(p)}}a._lclayout=null,a.LCForceDirectedLayout=void 0,function(t){function o(t,o,e,u){return y(a._lclayout.applyForceDirectedLayout,t,o,e,u)}t.apply=o}(a.LCForceDirectedLayout||(a.LCForceDirectedLayout={})),a.LCCommunityLayout=void 0,function(t){function o(t,o,e,u){return y(a._lclayout.applyCommunityLayout,t,o,e,u)}t.apply=o}(a.LCCommunityLayout||(a.LCCommunityLayout={})),a.LCSimpleLayout=void 0,function(t){function o(t,o,e,u){return y(a._lclayout.applySimpleLayout,t,o,e,u)}t.apply=o}(a.LCSimpleLayout||(a.LCSimpleLayout={})),a.LCHierarchicalLayout=void 0,function(t){function o(t,o,e,u){return y(a._lclayout.applyHierarchicalLayout,t,o,e,u)}t.apply=o}(a.LCHierarchicalLayout||(a.LCHierarchicalLayout={})),a.LCRadialTreeLayout=void 0,function(t){function o(t,o,e,u){return y(a._lclayout.applyRadialTreeLayout,t,o,e,u)}t.apply=o}(a.LCRadialTreeLayout||(a.LCRadialTreeLayout={})),a.LCSmartTreeLayout=void 0,function(t){function o(t,o,e,u){return y(a._lclayout.applySmartTreeLayout,t,o,e,u)}t.apply=o}(a.LCSmartTreeLayout||(a.LCSmartTreeLayout={})),a.isLoaded=u,a.load=l,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
