{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.Watch = void 0;\n class Watch {\n constructor() {\n this.timestamps = new Map();\n }\n start(label) {\n if (this.timestamps.has(label)) {\n throw new Error(`Watch already started for label: ${label}`);\n }\n this.timestamps.set(label, {\n started: Date.now()\n });\n }\n stop(label) {\n const timestamp = this.get(label);\n if (typeof timestamp.elapsed !== \"undefined\") {\n throw new Error(`Watch already stopped for label: ${label}`);\n }\n const elapsed = Date.now() - timestamp.started;\n this.timestamps.set(label, {\n started: timestamp.started,\n elapsed\n });\n }\n get(label) {\n const timestamp = this.timestamps.get(label);\n if (typeof timestamp === \"undefined\") {\n throw new Error(`No timestamp found for label: ${label}`);\n }\n return timestamp;\n }\n elapsed(label) {\n const timestamp = this.get(label);\n const elapsed = timestamp.elapsed || Date.now() - timestamp.started;\n return elapsed;\n }\n }\n exports.Watch = Watch;\n exports.default = Watch;\n});","lineCount":46,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"Watch"],[7,15,3,13],[7,18,3,16],[7,23,3,21],[7,24,3,22],[8,2,4,0],[8,8,4,6,"Watch"],[8,13,4,11],[8,14,4,12],[9,4,5,4,"constructor"],[9,15,5,15,"constructor"],[9,16,5,15],[9,18,5,18],[10,6,6,8],[10,10,6,12],[10,11,6,13,"timestamps"],[10,21,6,23],[10,24,6,26],[10,28,6,30,"Map"],[10,31,6,33],[10,32,6,34],[10,33,6,35],[11,4,7,4],[12,4,8,4,"start"],[12,9,8,9,"start"],[12,10,8,10,"label"],[12,15,8,15],[12,17,8,17],[13,6,9,8],[13,10,9,12],[13,14,9,16],[13,15,9,17,"timestamps"],[13,25,9,27],[13,26,9,28,"has"],[13,29,9,31],[13,30,9,32,"label"],[13,35,9,37],[13,36,9,38],[13,38,9,40],[14,8,10,12],[14,14,10,18],[14,18,10,22,"Error"],[14,23,10,27],[14,24,10,28],[14,60,10,64,"label"],[14,65,10,69],[14,67,10,71],[14,68,10,72],[15,6,11,8],[16,6,12,8],[16,10,12,12],[16,11,12,13,"timestamps"],[16,21,12,23],[16,22,12,24,"set"],[16,25,12,27],[16,26,12,28,"label"],[16,31,12,33],[16,33,12,35],[17,8,12,37,"started"],[17,15,12,44],[17,17,12,46,"Date"],[17,21,12,50],[17,22,12,51,"now"],[17,25,12,54],[17,26,12,55],[18,6,12,57],[18,7,12,58],[18,8,12,59],[19,4,13,4],[20,4,14,4,"stop"],[20,8,14,8,"stop"],[20,9,14,9,"label"],[20,14,14,14],[20,16,14,16],[21,6,15,8],[21,12,15,14,"timestamp"],[21,21,15,23],[21,24,15,26],[21,28,15,30],[21,29,15,31,"get"],[21,32,15,34],[21,33,15,35,"label"],[21,38,15,40],[21,39,15,41],[22,6,16,8],[22,10,16,12],[22,17,16,19,"timestamp"],[22,26,16,28],[22,27,16,29,"elapsed"],[22,34,16,36],[22,39,16,41],[22,50,16,52],[22,52,16,54],[23,8,17,12],[23,14,17,18],[23,18,17,22,"Error"],[23,23,17,27],[23,24,17,28],[23,60,17,64,"label"],[23,65,17,69],[23,67,17,71],[23,68,17,72],[24,6,18,8],[25,6,19,8],[25,12,19,14,"elapsed"],[25,19,19,21],[25,22,19,24,"Date"],[25,26,19,28],[25,27,19,29,"now"],[25,30,19,32],[25,31,19,33],[25,32,19,34],[25,35,19,37,"timestamp"],[25,44,19,46],[25,45,19,47,"started"],[25,52,19,54],[26,6,20,8],[26,10,20,12],[26,11,20,13,"timestamps"],[26,21,20,23],[26,22,20,24,"set"],[26,25,20,27],[26,26,20,28,"label"],[26,31,20,33],[26,33,20,35],[27,8,20,37,"started"],[27,15,20,44],[27,17,20,46,"timestamp"],[27,26,20,55],[27,27,20,56,"started"],[27,34,20,63],[28,8,20,65,"elapsed"],[29,6,20,73],[29,7,20,74],[29,8,20,75],[30,4,21,4],[31,4,22,4,"get"],[31,7,22,7,"get"],[31,8,22,8,"label"],[31,13,22,13],[31,15,22,15],[32,6,23,8],[32,12,23,14,"timestamp"],[32,21,23,23],[32,24,23,26],[32,28,23,30],[32,29,23,31,"timestamps"],[32,39,23,41],[32,40,23,42,"get"],[32,43,23,45],[32,44,23,46,"label"],[32,49,23,51],[32,50,23,52],[33,6,24,8],[33,10,24,12],[33,17,24,19,"timestamp"],[33,26,24,28],[33,31,24,33],[33,42,24,44],[33,44,24,46],[34,8,25,12],[34,14,25,18],[34,18,25,22,"Error"],[34,23,25,27],[34,24,25,28],[34,57,25,61,"label"],[34,62,25,66],[34,64,25,68],[34,65,25,69],[35,6,26,8],[36,6,27,8],[36,13,27,15,"timestamp"],[36,22,27,24],[37,4,28,4],[38,4,29,4,"elapsed"],[38,11,29,11,"elapsed"],[38,12,29,12,"label"],[38,17,29,17],[38,19,29,19],[39,6,30,8],[39,12,30,14,"timestamp"],[39,21,30,23],[39,24,30,26],[39,28,30,30],[39,29,30,31,"get"],[39,32,30,34],[39,33,30,35,"label"],[39,38,30,40],[39,39,30,41],[40,6,31,8],[40,12,31,14,"elapsed"],[40,19,31,21],[40,22,31,24,"timestamp"],[40,31,31,33],[40,32,31,34,"elapsed"],[40,39,31,41],[40,43,31,45,"Date"],[40,47,31,49],[40,48,31,50,"now"],[40,51,31,53],[40,52,31,54],[40,53,31,55],[40,56,31,58,"timestamp"],[40,65,31,67],[40,66,31,68,"started"],[40,73,31,75],[41,6,32,8],[41,13,32,15,"elapsed"],[41,20,32,22],[42,4,33,4],[43,2,34,0],[44,2,35,0,"exports"],[44,9,35,7],[44,10,35,8,"Watch"],[44,15,35,13],[44,18,35,16,"Watch"],[44,23,35,21],[45,2,36,0,"exports"],[45,9,36,7],[45,10,36,8,"default"],[45,17,36,15],[45,20,36,18,"Watch"],[45,25,36,23],[46,0,36,24],[46,3]],"functionMap":{"names":["","Watch","Watch#constructor","Watch#start","Watch#stop","Watch#get","Watch#elapsed"],"mappings":"AAA;ACG;ICC;KDE;IEC;KFK;IGC;KHO;IIC;KJM;IKC;KLI;CDC"},"hasCjsExports":true},"type":"js/module"}]}