{"ast":null,"code":"var applyOffset = function applyOffset(from, to) {\n  var hasReceivedFrom = true;\n  if (to === undefined) {\n    to = from;\n    hasReceivedFrom = false;\n  }\n  return function (v) {\n    if (hasReceivedFrom) {\n      return v - from + to;\n    } else {\n      from = v;\n      hasReceivedFrom = true;\n      return to;\n    }\n  };\n};\nexport { applyOffset };","map":{"version":3,"names":["applyOffset","from","to","hasReceivedFrom","undefined","v"],"sources":["C:/ldt/LDT/Safemate_Management/node_modules/popmotion/dist/es/utils/apply-offset.js"],"sourcesContent":["var applyOffset = function (from, to) {\n    var hasReceivedFrom = true;\n    if (to === undefined) {\n        to = from;\n        hasReceivedFrom = false;\n    }\n    return function (v) {\n        if (hasReceivedFrom) {\n            return v - from + to;\n        }\n        else {\n            from = v;\n            hasReceivedFrom = true;\n            return to;\n        }\n    };\n};\n\nexport { applyOffset };\n"],"mappings":"AAAA,IAAIA,WAAW,GAAG,SAAdA,WAAWA,CAAaC,IAAI,EAAEC,EAAE,EAAE;EAClC,IAAIC,eAAe,GAAG,IAAI;EAC1B,IAAID,EAAE,KAAKE,SAAS,EAAE;IAClBF,EAAE,GAAGD,IAAI;IACTE,eAAe,GAAG,KAAK;EAC3B;EACA,OAAO,UAAUE,CAAC,EAAE;IAChB,IAAIF,eAAe,EAAE;MACjB,OAAOE,CAAC,GAAGJ,IAAI,GAAGC,EAAE;IACxB,CAAC,MACI;MACDD,IAAI,GAAGI,CAAC;MACRF,eAAe,GAAG,IAAI;MACtB,OAAOD,EAAE;IACb;EACJ,CAAC;AACL,CAAC;AAED,SAASF,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}