{"version":3,"sources":["webpack:///../WCC.UI/App/components/attachments/audio/audio.html?f29b","webpack:///../WCC.UI/App/components/attachments/audio/audio.scss?06fe","webpack:///../WCC.UI/App/components/attachments/audio/audio.ts","webpack:///../WCC.UI/App/libraries/videojs.js","webpack:///../WCC.UI/App/webpack/runtime/htmlExposer.js","webpack:///../WCC.UI/node_modules/class.extend/lib/class.js","webpack:///../WCC.UI/App/components/attachments/audio/audio.scss","webpack:///../WCC.UI/node_modules/global/document.js","webpack:///../WCC.UI/node_modules/global/window.js","webpack:///../WCC.UI/App/components/attachments/audio/audio.html","webpack:///../WCC.UI/node_modules/is-function/index.js","webpack:///../WCC.UI/node_modules/keycode/index.js","webpack:///../WCC.UI/node_modules/mux.js/lib/tools/parse-sidx.js","webpack:///../WCC.UI/node_modules/mux.js/lib/utils/clock.js","webpack:///../WCC.UI/node_modules/mux.js/lib/utils/numbers.js","webpack:///../WCC.UI/node_modules/safe-json-parse/tuple.js"],"names":["content","expose","__esModule","default","api","module","i","options","exports","locals","activePlayers","ko","observableArray","WCCAudioVM","constructor","config","info","effects","player","observable","labels","settings","audioNode","remove","_this$removeFunc","this","removeFunc","call","audio","flattenComputed","audioURL","pluck","a","fileUrl","fileState","file","f","state","fileName","canBeRemoved","pureComputed","undefined","hasControls","isProcessingFile","enums","UserFileState","Active","value","Preactivated","isWaitingToProcessFile","Unknown","isReady","register","node","videojs","controls","controlBar","children","on","forEach","otherPlayer","pause","_","delay","currentTime","withEffect","url","src","dispose","applyBindingsToNode","element","__decorate","injectable","__param","inject","wccModules","componentConfig","componentInfo","registerQualitySelector","system","SystemHelpers","html","getTemplatesAndResources","document","head","appendChild","initializing","fnTest","test","xyz","Class","extend","prop","_super","prototype","name","fn","tmp","ret","apply","arguments","init","callee","___CSS_LOADER_API_IMPORT___","push","doccy","window","minDoc","topLevel","win","global","self","string","toString","setTimeout","alert","confirm","prompt","Object","keyCode","searchInput","hasKeyCode","which","charCode","names","foundNamedKey","search","String","codes","toLowerCase","aliases","length","charCodeAt","isEventKey","event","nameOrCode","code","fromCharCode","title","alias","getUint64","data","view","DataView","buffer","byteOffset","byteLength","result","version","flags","Uint8Array","subarray","references","referenceId","getUint32","timescale","earliestPresentationTime","firstOffset","referenceCount","getUint16","referenceType","referencedSize","subsegmentDuration","startsWithSap","sapType","sapDeltaTime","secondsToVideoTs","secondsToAudioTs","videoTsToSeconds","audioTsToSeconds","audioTsToVideoTs","videoTsToAudioTs","metadataTsToSeconds","seconds","sampleRate","timestamp","timelineStartPts","keepOriginalTimestamps","ONE_SECOND_IN_TS","MAX_UINT32","Math","pow","uint8","dv","getBigUint64","Number","MAX_SAFE_INTEGER","obj","reviver","json","error","JSON","parse","err"],"mappings":";2IAAA,UAAO,CACC,2GACA,wDAIC,KAJ4C,EAAF,SAAYA,EAASC,GAG5D,OADAA,EADAD,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,GAE1CA,GACV,4B,wECNT,IAAII,EAAM,EAAQ,gFACFJ,EAAU,EAAQ,sJAIC,iBAFvBA,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,KAG/CA,EAAU,CAAC,CAACK,EAAOC,EAAIN,EAAS,MAG9C,IAAIO,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPH,EAAIJ,EAASO,GAI1BF,EAAOG,QAAUR,EAAQS,QAAU,I,i2BCRnC,MAAMC,EAAgBC,EAAGC,kBAQzB,IAAqBC,EAArB,MAeIC,YACwCC,EACFC,EACNC,GAjBxB,KAAAC,OAASP,EAAGQ,aAGpB,KAAAC,OAASA,EACT,KAAAC,SAAWA,EAEX,KAAAC,UAAYX,EAAGQ,aAgFf,KAAAI,OAAS,KAAK,IAAAC,EACK,OAAfA,EAAAC,KAAKC,aAALF,EAAAG,KAAAF,OApEA,MAAMG,EAAQjB,EAAGkB,gBAAgBd,EAAOa,OAClCE,EAAWF,EAAMG,MAAMC,GAAKA,EAAEC,WAG9BC,EADON,EAAMG,MAAMC,GAAKA,EAAEG,QACTJ,MAAMK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AC1B,OAAOA,EAlBY,KAqBrBN,EAAmB,SAASM,EAAWD,GACrC,OAAOC,EAAYD,GAGrBJ,EAAmB,SAASK,EAAWD,GACrC,OAAOR,EAAiBG,EAAiBM,EAAWD,KAGtDH,EAAmB,SAASI,EAAWD,GACrC,OAAOP,EAAiBC,EAAiBO,GAAYD,IAOvDF,EAAsB,SAASG,EAAWC,EAAkBC,GAC1D,OAAOT,EAAiBS,EAAyBF,EAAYA,EAAYC,IAG3E3K,EAAOG,QAAU,CACf0K,iBA1CmB,IA2CnBZ,iBAAkBA,EAClBC,iBAAkBA,EAClBC,iBAAkBA,EAClBC,iBAAkBA,EAClBC,iBAAkBA,EAClBC,iBAAkBA,EAClBC,oBAAqBA,I,mECxDvB,IAAIO,EAAaC,KAAKC,IAAI,EAAG,IAmB7BhL,EAAOG,QAAU,CACfoI,UAlBc,SAAS0C,GACvB,IACIvI,EADAwI,EAAK,IAAIxC,SAASuC,EAAMtC,OAAQsC,EAAMrC,WAAYqC,EAAMpC,YAG5D,OAAIqC,EAAGC,cACLzI,EAAQwI,EAAGC,aAAa,IAEZC,OAAOC,iBACVD,OAAO1I,GAGTA,EAGDwI,EAAG7B,UAAU,GAAKyB,EAAcI,EAAG7B,UAAU,IAKrDyB,WAAYA,I,gECrBd9K,EAAOG,QAEP,SAAwBmL,EAAKC,GACzB,IAAIC,EACAC,EAAQ,KAEZ,IACID,EAAOE,KAAKC,MAAML,EAAKC,GACzB,MAAOK,GACLH,EAAQG,EAGZ,MAAO,CAACH,EAAOD,K","file":"131.70a0ddc1267fbc9514e5.js","sourcesContent":["define([\n \"!!../../../../node_modules/html-loader/dist/cjs.js??ref--26-1!./audio.html\", \n \"!../../../webpack/runtime/htmlExposer.js\"], function (content, expose) {\n content = content.__esModule ? content.default : content;\n expose(content);\n return content;\n });","var api = require(\"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./audio.scss\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};","import { wccModules } from 'enums/wccModules';\r\nimport { inject, injectable } from 'inversify';\r\nimport { Subscribable, SubscribableOrNullableValue } from 'knockout';\r\nimport videojs from 'libraries/videojs';\r\nimport { withEffect } from 'mixins/withEffect';\r\nimport { EffectsContainer } from 'mixins/withEffects';\r\nimport WCCAudio from 'models/attachments/audio';\r\nimport './audio.html';\r\nimport './audio.scss';\r\n\r\nconst activePlayers = ko.observableArray();\r\n\r\nexport interface WCCAudioVMConfig {\r\n audio: SubscribableOrNullableValue\r\n remove?: Action\r\n}\r\n\r\n@injectable()\r\nexport default class WCCAudioVM {\r\n private player = ko.observable();\r\n private removeFunc?: Action\r\n\r\n labels = labels;\r\n settings = settings;\r\n\r\n audioNode = ko.observable();\r\n\r\n isReady: Subscribable\r\n isProcessingFile: Subscribable\r\n isWaitingToProcessFile: Subscribable\r\n hasControls: Subscribable\r\n canBeRemoved: Subscribable\r\n\r\n constructor(\r\n @inject(wccModules.componentConfig) config: WCCAudioVMConfig,\r\n @inject(wccModules.componentInfo) info: ko.components.ComponentInfo,\r\n @inject(wccModules.effects) effects: EffectsContainer\r\n ) {\r\n const audio = ko.flattenComputed(config.audio);\r\n const audioURL = audio.pluck(a => a.fileUrl());\r\n\r\n const file = audio.pluck(a => a.file());\r\n const fileState = file.pluck(f => f.state());\r\n const fileName = audio.pluck(f => f.fileName());\r\n\r\n this.removeFunc = config.remove;\r\n this.canBeRemoved = ko.pureComputed(() => this.removeFunc != undefined);\r\n this.hasControls = ko.pureComputed(() => this.canBeRemoved());\r\n\r\n this.isProcessingFile = ko.pureComputed(() => fileState() != enums.UserFileState.Active.value && fileState() != enums.UserFileState.Preactivated.value);\r\n // filestate undefined means that the file is not being processed and user needs to submit post\r\n this.isWaitingToProcessFile = ko.pureComputed(() => fileState() == undefined || fileState() == enums.UserFileState.Unknown.value);\r\n this.isReady = ko.pureComputed(() => audioURL != undefined);\r\n\r\n effects.register(node => {\r\n let player: any;\r\n\r\n if (node != undefined) {\r\n player = videojs(node, {\r\n controls: true,\r\n\r\n controlBar: {\r\n children: ['playToggle', 'progressControl']\r\n }\r\n });\r\n\r\n player.on('play', () => {\r\n activePlayers().forEach(otherPlayer => {\r\n otherPlayer.pause();\r\n _.delay(() => otherPlayer.currentTime(0), 100);\r\n });\r\n\r\n activePlayers([player]);\r\n }); \r\n\r\n player.on('pause', () => {\r\n activePlayers.remove(player);\r\n });\r\n\r\n player.on('ended', () => _.delay(() => player.currentTime(0), 100));\r\n\r\n return [\r\n withEffect(url => {\r\n if (url != undefined)\r\n player.src({ src: url });\r\n }, [audioURL]),\r\n\r\n () => activePlayers.remove(player),\r\n () => player.dispose() \r\n ];\r\n }\r\n\r\n this.player(player);\r\n }, [this.audioNode]);\r\n\r\n ko.applyBindingsToNode(info.element, {\r\n 'visible': this.isReady,\r\n\r\n 'css': {\r\n 'wcc-audio': true,\r\n 'wcc-audio--with-controls': this.hasControls \r\n }\r\n }, this);\r\n }\r\n\r\n remove = () => {\r\n this.removeFunc?.();\r\n }\r\n}","import videojs from 'video.js';\r\nimport 'video.js/dist/video-js.css';\r\n\r\nimport registerQualitySelector from '@silvermine/videojs-quality-selector';\r\nimport '@silvermine/videojs-quality-selector/dist/css/quality-selector.css';\r\n\r\nregisterQualitySelector(videojs);\r\n\r\nexport default videojs;","define(function () {\r\n const system = require('helpers/system').SystemHelpers;\r\n\r\n return function (html) {\r\n system.getTemplatesAndResources(html)\r\n .forEach(function (node) { document.head.appendChild(node) });\r\n }\r\n});","(function(){\n var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\\b_super\\b/ : /.*/;\n \n // The base Class implementation (does nothing)\n this.Class = function(){};\n \n // Create a new Class that inherits from this class\n Class.extend = function(prop) {\n var _super = this.prototype;\n \n // Instantiate a base class (but only create the instance,\n // don't run the init constructor)\n initializing = true;\n var prototype = new this();\n initializing = false;\n \n // Copy the properties over onto the new prototype\n for (var name in prop) {\n // Check if we're overwriting an existing function\n prototype[name] = typeof prop[name] == \"function\" &&\n typeof _super[name] == \"function\" && fnTest.test(prop[name]) ?\n (function(name, fn){\n return function() {\n var tmp = this._super;\n \n // Add a new ._super() method that is the same method\n // but on the super-class\n this._super = _super[name];\n \n // The method only need to be bound temporarily, so we\n // remove it when we're done executing\n var ret = fn.apply(this, arguments); \n this._super = tmp;\n \n return ret;\n };\n })(name, prop[name]) :\n prop[name];\n }\n \n // The dummy class constructor\n function Class() {\n // All construction is actually done in the init method\n if ( !initializing && this.init )\n this.init.apply(this, arguments);\n }\n \n // Populate our constructed prototype object\n Class.prototype = prototype;\n \n // Enforce the constructor to be what we expect\n Class.prototype.constructor = Class;\n \n // And make this class extendable\n Class.extend = arguments.callee;\n \n return Class;\n };\n\n //I only added this line\n module.exports = Class;\n})();\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".wcc-audio{display:block;border-radius:4px;overflow:hidden;display:flex;align-items:stretch;overflow:visible}.wcc-audio .video-js{width:100%;height:30px;border-radius:4px}.wcc-audio .video-js .vjs-big-play-button{display:none}.wcc-audio .video-js .vjs-control-bar{display:flex;border-radius:4px}.wcc-audio.wcc-audio--with-controls .video-js{border-top-right-radius:0;border-bottom-right-radius:0}.wcc-audio.wcc-audio--with-controls .video-js .vjs-control-bar{border-top-right-radius:0;border-bottom-right-radius:0}.wcc-audio__controls{display:flex;align-items:stretch}.wcc-audio__control{display:flex;justify-content:center;align-items:center;width:30px;transition:background ease-in-out 250ms;background-color:#1e242c;color:#fff;cursor:pointer}.wcc-audio__control:hover{background-color:#333d4a}.wcc-audio__control:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.wcc-audio-file-processing{display:flex;justify-content:center;width:100%;align-items:center;gap:10px;background:#1e242c;color:#fff;height:30px;border-radius:4px}.wcc-audio-file-processing.wcc-task-site{background:#475669}.wcc-audio--with-controls>.wcc-audio-file-processing{border-top-right-radius:0;border-bottom-right-radius:0}@media(max-width: 500px){.grid-new__item__body .wcc-audio.wcc-audio--with-controls .wcc-audio-file-processing.wcc-task-site .wcc-audio-file-processing-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var topLevel = typeof global !== 'undefined' ? global :\n typeof window !== 'undefined' ? window : {}\nvar minDoc = require('min-document');\n\nvar doccy;\n\nif (typeof document !== 'undefined') {\n doccy = document;\n} else {\n doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'];\n\n if (!doccy) {\n doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc;\n }\n}\n\nmodule.exports = doccy;\n","var win;\n\nif (typeof window !== \"undefined\") {\n win = window;\n} else if (typeof global !== \"undefined\") {\n win = global;\n} else if (typeof self !== \"undefined\"){\n win = self;\n} else {\n win = {};\n}\n\nmodule.exports = win;\n","// Module\nvar code = \"\";\n// Exports\nmodule.exports = code;","module.exports = isFunction\n\nvar toString = Object.prototype.toString\n\nfunction isFunction (fn) {\n if (!fn) {\n return false\n }\n var string = toString.call(fn)\n return string === '[object Function]' ||\n (typeof fn === 'function' && string !== '[object RegExp]') ||\n (typeof window !== 'undefined' &&\n // IE8 and below\n (fn === window.setTimeout ||\n fn === window.alert ||\n fn === window.confirm ||\n fn === window.prompt))\n};\n","// Source: http://jsfiddle.net/vWx8V/\n// http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes\n\n/**\n * Conenience method returns corresponding value for given keyName or keyCode.\n *\n * @param {Mixed} keyCode {Number} or keyName {String}\n * @return {Mixed}\n * @api public\n */\n\nfunction keyCode(searchInput) {\n // Keyboard Events\n if (searchInput && 'object' === typeof searchInput) {\n var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode\n if (hasKeyCode) searchInput = hasKeyCode\n }\n\n // Numbers\n if ('number' === typeof searchInput) return names[searchInput]\n\n // Everything else (cast to string)\n var search = String(searchInput)\n\n // check codes\n var foundNamedKey = codes[search.toLowerCase()]\n if (foundNamedKey) return foundNamedKey\n\n // check aliases\n var foundNamedKey = aliases[search.toLowerCase()]\n if (foundNamedKey) return foundNamedKey\n\n // weird character?\n if (search.length === 1) return search.charCodeAt(0)\n\n return undefined\n}\n\n/**\n * Compares a keyboard event with a given keyCode or keyName.\n *\n * @param {Event} event Keyboard event that should be tested\n * @param {Mixed} keyCode {Number} or keyName {String}\n * @return {Boolean}\n * @api public\n */\nkeyCode.isEventKey = function isEventKey(event, nameOrCode) {\n if (event && 'object' === typeof event) {\n var keyCode = event.which || event.keyCode || event.charCode\n if (keyCode === null || keyCode === undefined) { return false; }\n if (typeof nameOrCode === 'string') {\n // check codes\n var foundNamedKey = codes[nameOrCode.toLowerCase()]\n if (foundNamedKey) { return foundNamedKey === keyCode; }\n \n // check aliases\n var foundNamedKey = aliases[nameOrCode.toLowerCase()]\n if (foundNamedKey) { return foundNamedKey === keyCode; }\n } else if (typeof nameOrCode === 'number') {\n return nameOrCode === keyCode;\n }\n return false;\n }\n}\n\nexports = module.exports = keyCode;\n\n/**\n * Get by name\n *\n * exports.code['enter'] // => 13\n */\n\nvar codes = exports.code = exports.codes = {\n 'backspace': 8,\n 'tab': 9,\n 'enter': 13,\n 'shift': 16,\n 'ctrl': 17,\n 'alt': 18,\n 'pause/break': 19,\n 'caps lock': 20,\n 'esc': 27,\n 'space': 32,\n 'page up': 33,\n 'page down': 34,\n 'end': 35,\n 'home': 36,\n 'left': 37,\n 'up': 38,\n 'right': 39,\n 'down': 40,\n 'insert': 45,\n 'delete': 46,\n 'command': 91,\n 'left command': 91,\n 'right command': 93,\n 'numpad *': 106,\n 'numpad +': 107,\n 'numpad -': 109,\n 'numpad .': 110,\n 'numpad /': 111,\n 'num lock': 144,\n 'scroll lock': 145,\n 'my computer': 182,\n 'my calculator': 183,\n ';': 186,\n '=': 187,\n ',': 188,\n '-': 189,\n '.': 190,\n '/': 191,\n '`': 192,\n '[': 219,\n '\\\\': 220,\n ']': 221,\n \"'\": 222\n}\n\n// Helper aliases\n\nvar aliases = exports.aliases = {\n 'windows': 91,\n '⇧': 16,\n '⌥': 18,\n '⌃': 17,\n '⌘': 91,\n 'ctl': 17,\n 'control': 17,\n 'option': 18,\n 'pause': 19,\n 'break': 19,\n 'caps': 20,\n 'return': 13,\n 'escape': 27,\n 'spc': 32,\n 'spacebar': 32,\n 'pgup': 33,\n 'pgdn': 34,\n 'ins': 45,\n 'del': 46,\n 'cmd': 91\n}\n\n/*!\n * Programatically add the following\n */\n\n// lower case chars\nfor (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32\n\n// numbers\nfor (var i = 48; i < 58; i++) codes[i - 48] = i\n\n// function keys\nfor (i = 1; i < 13; i++) codes['f'+i] = i + 111\n\n// numpad keys\nfor (i = 0; i < 10; i++) codes['numpad '+i] = i + 96\n\n/**\n * Get by code\n *\n * exports.name[13] // => 'Enter'\n */\n\nvar names = exports.names = exports.title = {} // title for backward compat\n\n// Create reverse mapping\nfor (i in codes) names[codes[i]] = i\n\n// Add aliases\nfor (var alias in aliases) {\n codes[alias] = aliases[alias]\n}\n","var getUint64 = require('../utils/numbers.js').getUint64;\n\nvar parseSidx = function(data) {\n var view = new DataView(data.buffer, data.byteOffset, data.byteLength),\n result = {\n version: data[0],\n flags: new Uint8Array(data.subarray(1, 4)),\n references: [],\n referenceId: view.getUint32(4),\n timescale: view.getUint32(8)\n },\n i = 12;\n\n if (result.version === 0) {\n result.earliestPresentationTime = view.getUint32(i);\n result.firstOffset = view.getUint32(i + 4);\n i += 8;\n } else {\n // read 64 bits\n result.earliestPresentationTime = getUint64(data.subarray(i));\n result.firstOffset = getUint64(data.subarray(i + 8));\n i += 16;\n }\n\n i += 2; // reserved\n\n var referenceCount = view.getUint16(i);\n\n i += 2; // start of references\n\n for (; referenceCount > 0; i += 12, referenceCount--) {\n result.references.push({\n referenceType: (data[i] & 0x80) >>> 7,\n referencedSize: view.getUint32(i) & 0x7FFFFFFF,\n subsegmentDuration: view.getUint32(i + 4),\n startsWithSap: !!(data[i + 8] & 0x80),\n sapType: (data[i + 8] & 0x70) >>> 4,\n sapDeltaTime: view.getUint32(i + 8) & 0x0FFFFFFF\n });\n }\n\n return result;\n};\n\n\nmodule.exports = parseSidx;\n","/**\n * mux.js\n *\n * Copyright (c) Brightcove\n * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE\n */\nvar\n ONE_SECOND_IN_TS = 90000, // 90kHz clock\n secondsToVideoTs,\n secondsToAudioTs,\n videoTsToSeconds,\n audioTsToSeconds,\n audioTsToVideoTs,\n videoTsToAudioTs,\n metadataTsToSeconds;\n\nsecondsToVideoTs = function(seconds) {\n return seconds * ONE_SECOND_IN_TS;\n};\n\nsecondsToAudioTs = function(seconds, sampleRate) {\n return seconds * sampleRate;\n};\n\nvideoTsToSeconds = function(timestamp) {\n return timestamp / ONE_SECOND_IN_TS;\n};\n\naudioTsToSeconds = function(timestamp, sampleRate) {\n return timestamp / sampleRate;\n};\n\naudioTsToVideoTs = function(timestamp, sampleRate) {\n return secondsToVideoTs(audioTsToSeconds(timestamp, sampleRate));\n};\n\nvideoTsToAudioTs = function(timestamp, sampleRate) {\n return secondsToAudioTs(videoTsToSeconds(timestamp), sampleRate);\n};\n\n/**\n * Adjust ID3 tag or caption timing information by the timeline pts values\n * (if keepOriginalTimestamps is false) and convert to seconds\n */\nmetadataTsToSeconds = function(timestamp, timelineStartPts, keepOriginalTimestamps) {\n return videoTsToSeconds(keepOriginalTimestamps ? timestamp : timestamp - timelineStartPts);\n};\n\nmodule.exports = {\n ONE_SECOND_IN_TS: ONE_SECOND_IN_TS,\n secondsToVideoTs: secondsToVideoTs,\n secondsToAudioTs: secondsToAudioTs,\n videoTsToSeconds: videoTsToSeconds,\n audioTsToSeconds: audioTsToSeconds,\n audioTsToVideoTs: audioTsToVideoTs,\n videoTsToAudioTs: videoTsToAudioTs,\n metadataTsToSeconds: metadataTsToSeconds\n};\n","var MAX_UINT32 = Math.pow(2, 32);\n\nvar getUint64 = function(uint8) {\n var dv = new DataView(uint8.buffer, uint8.byteOffset, uint8.byteLength);\n var value;\n\n if (dv.getBigUint64) {\n value = dv.getBigUint64(0);\n\n if (value < Number.MAX_SAFE_INTEGER) {\n return Number(value);\n }\n\n return value;\n }\n\n return (dv.getUint32(0) * MAX_UINT32) + dv.getUint32(4);\n};\n\nmodule.exports = {\n getUint64: getUint64,\n MAX_UINT32: MAX_UINT32\n};\n","module.exports = SafeParseTuple\n\nfunction SafeParseTuple(obj, reviver) {\n var json\n var error = null\n\n try {\n json = JSON.parse(obj, reviver)\n } catch (err) {\n error = err\n }\n\n return [error, json]\n}\n"],"sourceRoot":""}