{"version":3,"file":"CJKPbgAH-legacy.js","sources":["../../../../assets/js/nodes/index.ts"],"sourcesContent":["export const offsetTop = (result: number, container?: HTMLElement): number => {\n if (!container || container.offsetTop === undefined) return result;\n else {\n result += container.offsetTop;\n if (container.offsetParent) {\n return offsetTop(result, container.offsetParent as HTMLElement);\n } else {\n return result;\n }\n }\n};\n\nexport const offsetLeft = (result: number, container?: HTMLElement): number => {\n if (!container || container.offsetLeft === undefined) return result;\n else {\n result += container.offsetLeft;\n if (container.offsetParent) {\n return offsetLeft(result, container.offsetParent as HTMLElement);\n } else {\n return result;\n }\n }\n};\n"],"names":["offsetTop","exports","result","container","offsetParent","offsetLeft"],"mappings":"yEAAa,IAAAA,EAAYC,EAAA,KAAA,SAACC,EAAgBC,GACtC,OAAKA,QAAqC,IAAxBA,EAAUH,WAExBE,GAAUC,EAAUH,UAChBG,EAAUC,aACHJ,EAAUE,EAAQC,EAAUC,cAE5BF,GAN6CA,CAShE,IAEaG,EAAaJ,EAAA,KAAA,SAACC,EAAgBC,GACvC,OAAKA,QAAsC,IAAzBA,EAAUE,YAExBH,GAAUC,EAAUE,WAChBF,EAAUC,aACHC,EAAWH,EAAQC,EAAUC,cAE7BF,GAN8CA,CASjE"}