{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport raf from \"rc-util/es/raf\";\nfunction throttleByAnimationFrame(fn) {\n  let requestId = null;\n  const later = args => () => {\n    requestId = null;\n    fn.apply(void 0, _toConsumableArray(args));\n  };\n  const throttled = function () {\n    if (requestId === null) {\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      requestId = raf(later(args));\n    }\n  };\n  throttled.cancel = () => {\n    raf.cancel(requestId);\n    requestId = null;\n  };\n  return throttled;\n}\nexport default throttleByAnimationFrame;","map":{"version":3,"names":["_toConsumableArray","raf","throttleByAnimationFrame","fn","requestId","later","args","apply","throttled","_len","arguments","length","Array","_key","cancel"],"sources":["/Users/nili/Documents/trae_projects/client/node_modules/antd/es/_util/throttleByAnimationFrame.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport raf from \"rc-util/es/raf\";\nfunction throttleByAnimationFrame(fn) {\n  let requestId = null;\n  const later = args => () => {\n    requestId = null;\n    fn.apply(void 0, _toConsumableArray(args));\n  };\n  const throttled = (...args) => {\n    if (requestId === null) {\n      requestId = raf(later(args));\n    }\n  };\n  throttled.cancel = () => {\n    raf.cancel(requestId);\n    requestId = null;\n  };\n  return throttled;\n}\nexport default throttleByAnimationFrame;"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAASC,wBAAwBA,CAACC,EAAE,EAAE;EACpC,IAAIC,SAAS,GAAG,IAAI;EACpB,MAAMC,KAAK,GAAGC,IAAI,IAAI,MAAM;IAC1BF,SAAS,GAAG,IAAI;IAChBD,EAAE,CAACI,KAAK,CAAC,KAAK,CAAC,EAAEP,kBAAkB,CAACM,IAAI,CAAC,CAAC;EAC5C,CAAC;EACD,MAAME,SAAS,GAAG,SAAAA,CAAA,EAAa;IAC7B,IAAIJ,SAAS,KAAK,IAAI,EAAE;MAAA,SAAAK,IAAA,GAAAC,SAAA,CAAAC,MAAA,EADJL,IAAI,OAAAM,KAAA,CAAAH,IAAA,GAAAI,IAAA,MAAAA,IAAA,GAAAJ,IAAA,EAAAI,IAAA;QAAJP,IAAI,CAAAO,IAAA,IAAAH,SAAA,CAAAG,IAAA;MAAA;MAEtBT,SAAS,GAAGH,GAAG,CAACI,KAAK,CAACC,IAAI,CAAC,CAAC;IAC9B;EACF,CAAC;EACDE,SAAS,CAACM,MAAM,GAAG,MAAM;IACvBb,GAAG,CAACa,MAAM,CAACV,SAAS,CAAC;IACrBA,SAAS,GAAG,IAAI;EAClB,CAAC;EACD,OAAOI,SAAS;AAClB;AACA,eAAeN,wBAAwB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}