retropilot-server/cabana/c7de2d6e38fac0f21bad.worker.js

2 lines
73 KiB
JavaScript

!function(t){var e={};function __webpack_require__(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}__webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.d=function(t,e,r){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},__webpack_require__.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.t=function(t,e){if(1&e&&(t=__webpack_require__(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(__webpack_require__.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)__webpack_require__.d(r,n,function(e){return t[e]}.bind(null,n));return r},__webpack_require__.n=function(t){var e=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="/cabana/",__webpack_require__(__webpack_require__.s=18)}([function(t,e,r){"use strict";function _slicedToArray(t,e){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(u){i=!0,a=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.d(e,"a",(function(){return _slicedToArray}))},function(t,e,r){"use strict";(function(t){var n=r(4);function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function createMessageSpec(t,e,r,n){var i=t.getMessageFrame(e),a=i?i.size:8;return{address:e,id:r,bus:n,entries:[],frame:i,byteColors:Array(a).fill(0),byteStateChangeCounts:Array(a).fill(0)}}function determineByteStateChangeTimes(t,e,r,n){var i,a=Array(r).fill(0);if(n){i=n.byteStateChangeTimes;for(var o=0;o<i.length;o++){t.substr(2*o,2)!==n.hexData.substr(2*o,2)&&(i[o]=e,a[o]=1)}}else i=Array(r).fill(e);return{byteStateChangeTimes:i,byteStateChangeCounts:a}}function createMessageEntry(e,r,n,i,a,o){return{signals:e.getSignalValues(r,a),address:r,data:a,time:n,relTime:i,hexData:t.from(a).toString("hex"),byteStateChangeTimes:o,updated:Date.now()}}function parseMessage(e,r,n,i,a,o){var s;"string"===typeof i?(s=i,i=t.from(i,"hex")):s=t.from(i).toString("hex");var u=e.getMessageFrame(n),f=r-a,h=determineByteStateChangeTimes(s,f,u?u.size:8,o),c=h.byteStateChangeTimes,l=h.byteStateChangeCounts;return{msgEntry:createMessageEntry(e,n,r,f,i,c),byteStateChangeCounts:l}}for(var i=[],a=0;a<64;a+=8)for(var o=7;o>-1;o--)i.push(a+o);e.a={bigEndianBitIndex:function bigEndianBitIndex(t){return i.indexOf(t)},addCanMessage:function addCanMessage(t,e,r,n,i,a){var o=t.address,s=t.busTime,u=t.data,f=t.bus,h="".concat(f,":").concat(o.toString(16));void 0===n[h]&&(n[h]=createMessageSpec(e,o,h,f));var c=n[h].entries.length>0?n[h].entries[n[h].entries.length-1]:i[h]||null;a[h]&&n[h].byteStateChangeCounts.every((function(t){return 0===t}))&&(n[h].byteStateChangeCounts=a[h]);var l=parseMessage(e,s,o,u,r,c),g=l.msgEntry,p=l.byteStateChangeCounts;return n[h].byteStateChangeCounts=p.map((function(t,e){return n[h].byteStateChangeCounts[e]+t})),n[h].entries.push(g),g},createMessageSpec:createMessageSpec,matrixBitNumber:function matrixBitNumber(t){return i[t]},parseMessage:parseMessage,reparseMessage:function reparseMessage(t,e,r){var i=t.getMessageFrame(e.address),a=i?i.size:8,o=determineByteStateChangeTimes(e.hexData,e.relTime,a,r),s=o.byteStateChangeTimes,u=o.byteStateChangeCounts;return{msgEntry:function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(r,!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{signals:t.getSignalValues(e.address,e.data),byteStateChangeTimes:s,updated:Date.now()}),byteStateChangeCounts:u}},findMaxByteStateChangeCount:function findMaxByteStateChangeCount(t){return Object.values(t).map((function(t){return t.byteStateChangeCounts})).reduce((function(t,e){return t.concat(e)}),[]).reduce((function(t,e){return t>e?t:e}),0)},setMessageByteColors:function setMessageByteColors(t,e){return t.byteColors=t.byteStateChangeCounts.map((function(t){return isNaN(t)?0:Math.min(255,75+t/e*180)})).map((function(t){return"rgb(".concat(Math.round(t),",0,0)")})),t},createMessageEntry:createMessageEntry}}).call(this,r(10).Buffer)},function(t,e,r){"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return _classCallCheck}))},function(t,e,r){"use strict";function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}r.d(e,"a",(function(){return _createClass}))},function(t,e,r){"use strict";function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return _defineProperty}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2),i=r(3),a=function(){function Frame(t){var e=t.name,r=t.id,i=void 0===r?0:r,a=t.size,o=void 0===a?0:a,s=t.transmitters,u=void 0===s?[]:s,f=t.extended,h=void 0===f?0:f,c=t.comment,l=void 0===c?null:c,g=t.signals,p=void 0===g?{}:g;Object(n.a)(this,Frame),Object.assign(this,{name:e,id:i,size:o,transmitters:u,extended:h,comment:l,signals:p})}return Object(i.a)(Frame,[{key:"nextNewTransmitterName",value:function nextNewTransmitterName(){var t,e=1;do{t="NEW_TRANSMITTER_".concat(e),e++}while(-1!==this.transmitters.indexOf(t));return t}},{key:"addTransmitter",value:function addTransmitter(){var t=this.nextNewTransmitterName();return this.transmitters.push(t),t}},{key:"header",value:function header(){return"BO_ ".concat(this.id," ").concat(this.name,": ").concat(this.size," ")+"".concat(this.transmitters[0]||"XXX")}},{key:"text",value:function text(){var t=Object.values(this.signals).map((function(t){return" ".concat(t.text())})).join("\n");return t.length>0?"".concat(this.header(),"\n").concat(t):this.header()}},{key:"copy",value:function copy(){var copy=Object.assign(Object.create(this),this);return copy}}]),Frame}()},function(t,e,r){"use strict";if("undefined"===typeof n)var n=self;var i=function _indexOf(t,e){for(var r=0;r<t.length;r++)if(e===t[r])return r;return-1},a=function _getAjaxObject(){return"undefined"!==typeof XDomainRequest?new XDomainRequest:new XMLHttpRequest};function LogStream(t){var e,r=t.trace?(Math.random()+Math.PI).toString(36).substring(2,10):null,o=t.page_info,s=t.token,u=t.print,f=t.no_format,h="undefined"===typeof XDomainRequest?t.ssl:"https:"===n.location.protocol;e=(h?"https://":"http://")+(e=n.LEENDPOINT?n.LEENDPOINT:f?"webhook.logentries.com/noformat":"js.logentries.com/v1")+"/logs/"+s;var c=[],l=!1,g=!1,p=function _apiCall(t,r){l=!0;var n=a();n.constructor===XMLHttpRequest?n.onreadystatechange=function(){4===n.readyState&&(n.status>=400?(console.error("Couldn't submit events."),410===n.status&&console.warn("This version of le_js is no longer supported!")):(301===n.status&&console.warn("This version of le_js is deprecated! Consider upgrading."),c.length>0?_apiCall(t,c.shift()):l=!1))}:n.onload=function(){c.length>0?_apiCall(t,c.shift()):l=!1},n.open("POST",e,!0),n.constructor===XMLHttpRequest&&(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.setRequestHeader("Content-type","application/json")),n.overrideMimeType&&n.overrideMimeType("text"),n.send(r)},d=function _getEvent(){var t=Array.prototype.slice.call(arguments);if(0===t.length)throw new Error("No arguments!");return 1===t.length?t[0]:t},_=function _agentInfo(){var t=n.navigator||{doNotTrack:void 0},e=n.screen||{};return{url:(n.location||{}).pathname,referrer:document.referrer,screen:{width:e.width,height:e.height},window:{width:n.innerWidth,height:n.innerHeight},browser:{name:t.appName,version:t.appVersion,cookie_enabled:t.cookieEnabled,do_not_track:t.doNotTrack},platform:t.platform}},m=function _rawLog(t){var e=d.apply(this,arguments),n={event:e};return"never"!==o&&(g&&"per-entry"!==o||(g=!0,"undefined"===typeof e.screen&&"undefined"===typeof e.browser&&_rawLog(_()).level("PAGE").send())),r&&(n.trace=r),{level:function level(t){if(u&&"undefined"!==typeof console&&"PAGE"!==t){var e=null;"undefined"!==typeof XDomainRequest&&(e=n.trace+" "+n.event);try{console[t.toLowerCase()].call(console,e||n)}catch(r){console.log(e||n)}}return n.level=t,{send:function send(){var t=[],e=JSON.stringify(n,(function(e,r){if("undefined"===typeof r)return"undefined";if("object"===typeof r&&null!==r){if(-1!==i(t,r))return"<?>";t.push(r)}return r}));l?c.push(e):p(s,e)}}}}};if(t.catchall){var y=n.onerror;n.onerror=function newHandler(t,e,r){return m({error:t,line:r,location:e}).level("ERROR").send(),!!y&&y(t,e,r)}}this.log=m}function Logger(t){var e,r={ssl:!0,catchall:!1,trace:!0,page_info:"never",print:!1,endpoint:null,token:null};if("object"!==typeof t)throw new Error("Invalid parameters for createLogStream()");for(var n in t)r[n]=t[n];if(null===r.token)throw new Error("Token not present.");e=new LogStream(r);var i=function _log(t){if(e)return e.log.apply(this,arguments);throw new Error("You must call LE.init(...) first.")};return{log:function log(){i.apply(this,arguments).level("LOG").send()},warn:function warn(){i.apply(this,arguments).level("WARN").send()},error:function error(){i.apply(this,arguments).level("ERROR").send()},info:function info(){i.apply(this,arguments).level("INFO").send()}}}var o={},s=function _createLogStream(t){if("string"!==typeof t.name)throw new Error("Name not present.");if(o.hasOwnProperty(t.name))throw new Error("A logger with that name already exists!");return o[t.name]=new Logger(t),!0};e.a={init:function _deprecatedInit(t){var e={name:"default"};if("object"===typeof t)for(var r in t)e[r]=t[r];else{if("string"!==typeof t)throw new Error("Invalid parameters for init()");e.token=t}return s(e)},createLogStream:s,to:function _getLogger(t){if(!o.hasOwnProperty(t))throw new Error("Invalid name for logStream");return o[t]},destroy:function _destroyLogStream(t){"undefined"===typeof t&&(t="default"),delete o[t]},log:function log(){for(var t in o)o[t].log.apply(this,arguments)},warn:function warn(){for(var t in o)o[t].warn.apply(this,arguments)},error:function error(){for(var t in o)o[t].error.apply(this,arguments)},info:function info(){for(var t in o)o[t].info.apply(this,arguments)}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(0),i=r(2),a=r(3),o=r(16),s=r.n(o),u=r(1),f=function(){function Signal(t){var e=t.name,r=t.startBit,n=void 0===r?0:r,a=t.size,o=void 0===a?0:a,s=t.isLittleEndian,u=void 0===s||s,f=t.isSigned,h=void 0!==f&&f,c=t.isFloat,l=void 0!==c&&c,g=t.factor,p=void 0===g?1:g,d=t.offset,_=void 0===d?0:d,m=t.unit,y=void 0===m?"":m,v=t.receiver,w=void 0===v?["XXX"]:v,b=t.comment,B=void 0===b?null:b,S=t.multiplex,I=void 0===S?null:S,E=t.min,T=void 0===E?null:E,U=t.max,x=void 0===U?null:U,O=t.valueDescriptions,C=void 0===O?new Map:O;Object(i.a)(this,Signal),Object.assign(this,{name:e,startBit:n,size:o,isLittleEndian:u,isSigned:h,isFloat:l,factor:p,offset:_,unit:y,receiver:w,comment:B,multiplex:I,valueDescriptions:C});var A=Math.random().toString(36);null==T&&(T=this.calculateMin()),null==x&&(x=this.calculateMax());var N=this.generateColors();Object.assign(this,{min:T,max:x,uid:A,_colors:N}),Object.defineProperty(this,"colors",{get:function get(){return console.error("Something is still using the old colors"),N},enumberable:!1})}return Object(a.a)(Signal,[{key:"text",value:function text(){var t=this.multiplex?" ".concat(this.multiplex):"",e=this.isLittleEndian?1:0,r=this.isSigned?"-":"+";return"SG_ ".concat(this.name).concat(t," : ")+"".concat(this.startBit,"|").concat(this.size,"@").concat(e).concat(r)+" (".concat(this.factor,",").concat(this.offset,")")+" [".concat(this.min,"|").concat(this.max,"]")+' "'.concat(this.unit,'" ').concat(this.receiver)}},{key:"valueDescriptionText",value:function valueDescriptionText(t){var e=Array.from(this.valueDescriptions.entries()).reduce((function(t,e){var r=Object(n.a)(e,2),i=r[0],a=r[1];return"".concat(t+i,' "').concat(a,'" ')}),"");return"VAL_ ".concat(t," ").concat(this.name," ").concat(e,";")}},{key:"lsbBitIndex",value:function lsbBitIndex(){if(this.isLittleEndian)return this.startBit;var t=this.lsbBitNumber();return u.a.matrixBitNumber(t)}},{key:"lsbBitNumber",value:function lsbBitNumber(){return u.a.bigEndianBitIndex(this.startBit)+this.size-1}},{key:"msbBitIndex",value:function msbBitIndex(){return this.isLittleEndian?this.startBit+this.size-1:this.startBit}},{key:"littleEndianBitDescription",value:function littleEndianBitDescription(t){var e=[this.startBit,this.startBit+this.size-1];return t<e[0]||t>e[1]?null:{bitNumber:t-e[0],isLsb:t===e[0],isMsb:t===e[1]}}},{key:"bigEndianBitDescription",value:function bigEndianBitDescription(t){var e=u.a.bigEndianBitIndex(this.startBit),r=[e,e+this.size-1],n=u.a.bigEndianBitIndex(t);return n<r[0]||n>r[1]?null:{bitNumber:n,isLsb:n===r[1],isMsb:t===this.startBit,range:r}}},{key:"bitDescription",value:function bitDescription(t){return this.isLittleEndian?this.littleEndianBitDescription(t):this.bigEndianBitDescription(t)}},{key:"calculateRawRange",value:function calculateRawRange(){var t=Math.pow(2,this.size);return this.isSigned&&(t/=2),[this.isSigned?-1*t:0,t-1]}},{key:"calculateMin",value:function calculateMin(){var t=this.calculateRawRange()[0];return this.offset+t*this.factor}},{key:"calculateMax",value:function calculateMax(){var t=this.calculateRawRange()[1];return this.offset+t*this.factor}},{key:"getColors",value:function getColors(t){var e=t.split(":").map((function(t){return 3*(3+Number.parseInt(t,16))%253})),r=this._colors||this.generateColors(),n=0;return r.map((function(t){return e=e.map((function(t){return t^n})),n=e.reduce((function(t,e){return t^e}),t)}))}},{key:"generateColors",value:function generateColors(){return s()({format:"rgbArray"})}},{key:"equals",value:function equals(t){var e=this;return t.name===this.name&&t.startBit===this.startBit&&t.size===this.size&&t.isLittleEndian===this.isLittleEndian&&t.isSigned===this.isSigned&&t.isFloat===this.isFloat&&t.factor===this.factor&&t.offset===this.offset&&t.unit===this.unit&&t.receiver.length===this.receiver.length&&t.receiver.every((function(t,r){return t===e.receiver[r]}))&&t.comment===this.comment&&t.multiplex===this.multiplex}}]),Signal}()},function(t,e,r){"use strict";r.d(e,"b",(function(){return isLogAddress})),r.d(e,"a",(function(){return frameForAddress}));var n=r(4),i=r(5),a=r(7);function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(r,!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var o={"CarState:WheelSpeeds":{FrontLeftWheel:shortSignal({index:0,factor:.001}),FrontRightWheel:shortSignal({index:1,factor:.001}),RearLeftWheel:shortSignal({index:2,factor:.001}),RearRightWheel:shortSignal({index:3,factor:.001})},"CarState:Ego":{VEgo:shortSignal({index:0,factor:.001}),AEgo:shortSignal({index:1,factor:.001}),VEgoRaw:shortSignal({index:2,factor:.001}),YawRate:shortSignal({index:3,factor:.001})},"CarState:Controls":{SteeringAngle:longSignal({index:0,factor:.001}),Brake:shortSignal({index:2,factor:.001}),Gas:shortSignal({index:3,factor:.001})},"CarState:Flags":{LeftBlinker:boolSignal({index:0}),RightBlinker:boolSignal({index:1}),GenericToggle:boolSignal({index:2}),DoorOpen:boolSignal({index:3}),SeatbeltUnlatched:boolSignal({index:4}),GasPressed:boolSignal({index:5}),BrakeLights:boolSignal({index:6}),SteeringPressed:boolSignal({index:7}),Standstill:boolSignal({index:8}),"CruiseState.Enabled":boolSignal({index:9}),"CruiseState.Available":boolSignal({index:10}),"CruiseState.Standstill":boolSignal({index:11}),GearShifter:{startBit:15,size:4,unsigned:!0},"CruiseState.Speed":charSignal({index:2})},"UbloxGnss:MeasurementReport":{RcvTow:longSignal({index:0}),GpsWeek:shortSignal({index:2}),LeapSeconds:{startBit:55,size:8},NumMeas:{startBit:63,size:8}},"Health:Data":{Voltage:shortSignal({index:0}),Current:charSignal({index:2}),Started:boolSignal({index:24}),ControlsAllowed:boolSignal({index:25}),GasInterceptorDetected:boolSignal({index:26}),StartedSignalDetected:boolSignal({index:27})},"Thermal:CPU":{Cpu0:shortSignal({index:0,unsigned:!0}),Cpu1:shortSignal({index:1,unsigned:!0}),Cpu2:shortSignal({index:2,unsigned:!0}),Cpu3:shortSignal({index:3,unsigned:!0})},"Thermal:Data":{Mem:shortSignal({index:0,unsigned:!0}),Gpu:shortSignal({index:1,unsigned:!0}),FanSpeed:shortSignal({index:2,unsigned:!0}),BatteryPercent:charSignal({index:6,unsigned:!0}),UsbOnline:boolSignal({index:56}),Started:boolSignal({index:57})},"Thermal:FreeSpace":{FreeSpace:longSignal({index:0,unsigned:!0,factor:1e-9})}},s=[];function longSignal(t){return _objectSpread({},t,{size:32,startBit:32*t.index+7})}function shortSignal(t){return _objectSpread({},t,{size:16,startBit:16*t.index+7})}function charSignal(t){return _objectSpread({},t,{size:8,startBit:8*t.index+7})}function boolSignal(t){return _objectSpread({},t,{size:1,startBit:t.index,unsigned:!0})}function nameForAddress(t){return t>=4096?s[t-4096]:null}function isLogAddress(t){return!!nameForAddress(t)}function frameForAddress(t){var e=nameForAddress(t);return new i.a({id:e,name:e,size:8,signals:o[e]})}Object.keys(o).forEach((function(t){Object.keys(o[t]).forEach((function(e){o[t][e]=function createSignalEntry(t){return new a.a({name:t.name,startBit:t.startBit,size:t.size,isLittleEndian:!1,isSigned:!t.unsigned,factor:t.factor||1,offset:t.offset||0,unit:t.unit||""})}(_objectSpread({name:e},o[t][e]))})),function addressForName(t){var e=s.indexOf(t);if(-1===e)return s.push(t),s.indexOf(t)+4096;return e+4096}(t)}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2),i=r(3),a=function(){function BoardUnit(t){Object(n.a)(this,BoardUnit),this.name=t,this.attributes={},this.comment=null}return Object(i.a)(BoardUnit,[{key:"text",value:function text(){return this.name}}]),BoardUnit}()},function(t,e,r){"use strict";(function(t){var n=r(19),i=r(20),a=r(21);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(t,e){if(kMaxLength()<e)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Buffer.prototype:(null===t&&(t=new Buffer(e)),t.length=e),t}function Buffer(t,e,r){if(!Buffer.TYPED_ARRAY_SUPPORT&&!(this instanceof Buffer))return new Buffer(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,t)}return from(this,t,e,r)}function from(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function fromArrayBuffer(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);Buffer.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Buffer.prototype:t=fromArrayLike(t,e);return t}(t,e,r,n):"string"===typeof e?function fromString(t,e,r){"string"===typeof r&&""!==r||(r="utf8");if(!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|byteLength(e,r),i=(t=createBuffer(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function fromObject(t,e){if(Buffer.isBuffer(e)){var r=0|checked(e.length);return 0===(t=createBuffer(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||function isnan(t){return t!==t}(e.length)?createBuffer(t,0):fromArrayLike(t,e);if("Buffer"===e.type&&a(e.data))return fromArrayLike(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function assertSize(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function allocUnsafe(t,e){if(assertSize(e),t=createBuffer(t,e<0?0:0|checked(e)),!Buffer.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function fromArrayLike(t,e){var r=e.length<0?0:0|checked(e.length);t=createBuffer(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function checked(t){if(t>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function byteLength(t,e){if(Buffer.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(t).length;default:if(n)return utf8ToBytes(t).length;e=(""+e).toLowerCase(),n=!0}}function slowToString(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return hexSlice(this,e,r);case"utf8":case"utf-8":return utf8Slice(this,e,r);case"ascii":return asciiSlice(this,e,r);case"latin1":case"binary":return latin1Slice(this,e,r);case"base64":return base64Slice(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function swap(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function bidirectionalIndexOf(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=Buffer.from(e,n)),Buffer.isBuffer(e))return 0===e.length?-1:arrayIndexOf(t,e,r,n,i);if("number"===typeof e)return e&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):arrayIndexOf(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function read(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;a<s;a++)if(read(t,a)===read(e,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,c=0;c<u;c++)if(read(t,a+c)!==read(e,c)){h=!1;break}if(h)return a}return-1}function hexWrite(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function utf8Write(t,e,r,n){return blitBuffer(utf8ToBytes(e,t.length-r),t,r,n)}function asciiWrite(t,e,r,n){return blitBuffer(function asciiToBytes(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function latin1Write(t,e,r,n){return asciiWrite(t,e,r,n)}function base64Write(t,e,r,n){return blitBuffer(base64ToBytes(e),t,r,n)}function ucs2Write(t,e,r,n){return blitBuffer(function utf16leToBytes(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function base64Slice(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function utf8Slice(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,s,u,f,h=t[i],c=null,l=h>239?4:h>223?3:h>191?2:1;if(i+l<=r)switch(l){case 1:h<128&&(c=h);break;case 2:128===(192&(a=t[i+1]))&&(f=(31&h)<<6|63&a)>127&&(c=f);break;case 3:a=t[i+1],s=t[i+2],128===(192&a)&&128===(192&s)&&(f=(15&h)<<12|(63&a)<<6|63&s)>2047&&(f<55296||f>57343)&&(c=f);break;case 4:a=t[i+1],s=t[i+2],u=t[i+3],128===(192&a)&&128===(192&s)&&128===(192&u)&&(f=(15&h)<<18|(63&a)<<12|(63&s)<<6|63&u)>65535&&f<1114112&&(c=f)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function decodeCodePointsArray(t){var e=t.length;if(e<=o)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=o));return r}(n)}e.Buffer=Buffer,e.SlowBuffer=function SlowBuffer(t){+t!=t&&(t=0);return Buffer.alloc(+t)},e.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}(),e.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,e,r){return from(null,t,e,r)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(t,e,r){return function alloc(t,e,r,n){return assertSize(e),e<=0?createBuffer(t,e):void 0!==r?"string"===typeof n?createBuffer(t,e).fill(r,n):createBuffer(t,e).fill(r):createBuffer(t,e)}(null,t,e,r)},Buffer.allocUnsafe=function(t){return allocUnsafe(null,t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(null,t)},Buffer.isBuffer=function isBuffer(t){return!(null==t||!t._isBuffer)},Buffer.compare=function compare(t,e){if(!Buffer.isBuffer(t)||!Buffer.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},Buffer.isEncoding=function isEncoding(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function concat(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Buffer.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=Buffer.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!Buffer.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)swap(this,e,e+1);return this},Buffer.prototype.swap32=function swap32(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)swap(this,e,e+3),swap(this,e+1,e+2);return this},Buffer.prototype.swap64=function swap64(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)swap(this,e,e+7),swap(this,e+1,e+6),swap(this,e+2,e+5),swap(this,e+3,e+4);return this},Buffer.prototype.toString=function toString(){var t=0|this.length;return 0===t?"":0===arguments.length?utf8Slice(this,0,t):slowToString.apply(this,arguments)},Buffer.prototype.equals=function equals(t){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Buffer.compare(this,t)},Buffer.prototype.inspect=function inspect(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},Buffer.prototype.compare=function compare(t,e,r,n,i){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),u=this.slice(n,i),f=t.slice(e,r),h=0;h<s;++h)if(u[h]!==f[h]){a=u[h],o=f[h];break}return a<o?-1:o<a?1:0},Buffer.prototype.includes=function includes(t,e,r){return-1!==this.indexOf(t,e,r)},Buffer.prototype.indexOf=function indexOf(t,e,r){return bidirectionalIndexOf(this,t,e,r,!0)},Buffer.prototype.lastIndexOf=function lastIndexOf(t,e,r){return bidirectionalIndexOf(this,t,e,r,!1)},Buffer.prototype.write=function write(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return hexWrite(this,t,e,r);case"utf8":case"utf-8":return utf8Write(this,t,e,r);case"ascii":return asciiWrite(this,t,e,r);case"latin1":case"binary":return latin1Write(this,t,e,r);case"base64":return base64Write(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var o=4096;function asciiSlice(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function latin1Slice(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function hexSlice(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=toHex(t[a]);return i}function utf16leSlice(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function checkOffset(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function checkInt(t,e,r,n,i,a){if(!Buffer.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function objectWriteUInt16(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function objectWriteUInt32(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function checkIEEE754(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(t,e,r,n,a){return a||checkIEEE754(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function writeDouble(t,e,r,n,a){return a||checkIEEE754(t,0,r,8),i.write(t,e,r,n,52,8),r+8}Buffer.prototype.slice=function slice(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),Buffer.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=Buffer.prototype;else{var i=e-t;r=new Buffer(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},Buffer.prototype.readUIntLE=function readUIntLE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},Buffer.prototype.readUIntBE=function readUIntBE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},Buffer.prototype.readUInt8=function readUInt8(t,e){return e||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function readUInt16LE(t,e){return e||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(t,e){return e||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(t,e){return e||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(t,e){return e||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function readIntLE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},Buffer.prototype.readIntBE=function readIntBE(t,e,r){t|=0,e|=0,r||checkOffset(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},Buffer.prototype.readInt8=function readInt8(t,e){return e||checkOffset(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Buffer.prototype.readInt16LE=function readInt16LE(t,e){e||checkOffset(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function readInt16BE(t,e){e||checkOffset(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function readInt32LE(t,e){return e||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(t,e){return e||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function readFloatLE(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(t,e,r,n){(t=+t,e|=0,r|=0,n)||checkInt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},Buffer.prototype.writeUIntBE=function writeUIntBE(t,e,r,n){(t=+t,e|=0,r|=0,n)||checkInt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},Buffer.prototype.writeUInt8=function writeUInt8(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeIntLE=function writeIntLE(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},Buffer.prototype.writeIntBE=function writeIntBE(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},Buffer.prototype.writeInt8=function writeInt8(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Buffer.prototype.writeInt16LE=function writeInt16LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeInt16BE=function writeInt16BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeInt32LE=function writeInt32LE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeInt32BE=function writeInt32BE(t,e,r){return t=+t,e|=0,r||checkInt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeFloatLE=function writeFloatLE(t,e,r){return writeFloat(this,t,e,!0,r)},Buffer.prototype.writeFloatBE=function writeFloatBE(t,e,r){return writeFloat(this,t,e,!1,r)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(t,e,r){return writeDouble(this,t,e,!0,r)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(t,e,r){return writeDouble(this,t,e,!1,r)},Buffer.prototype.copy=function copy(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},Buffer.prototype.fill=function fill(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!Buffer.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=Buffer.isBuffer(t)?t:utf8ToBytes(new Buffer(t,n).toString()),s=o.length;for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var s=/[^+\/0-9A-Za-z-_]/g;function toHex(t){return t<16?"0"+t.toString(16):t.toString(16)}function utf8ToBytes(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function base64ToBytes(t){return n.toByteArray(function base64clean(t){if((t=function stringtrim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(s,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function blitBuffer(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(11))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function extend(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return C}));var n=r(0),i=r(2),a=r(3),o=r(14),s=r.n(o),u=r(15),f=r(7),h=r(5),c=r(9),l=r(1),g=r(8),p=r(23).UINT64,d=/^CM_ *"(.*)";/,_=/^CM_ *"(.*)/,m=/^BO_ (\w+) (\w+) *: (\w+) (\w+)/,y=/^SG_ (\w+) : (\d+)\|(\d+)@(\d+)([+|-]) \(([0-9.+-eE]+),([0-9.+-eE]+)\) \[([0-9.+-eE]+)\|([0-9.+-eE]+)\] "(.*)" (.*)/,v=/^SG_ (\w+) (\w+) *: (\d+)\|(\d+)@(\d+)([+|-]) \(([0-9.+-eE]+),([0-9.+-eE]+)\) \[([0-9.+-eE]+)\|([0-9.+-eE]+)\] "(.*)" (.*)/,w=/^VAL_ (\w+) (\w+) (.*);/,b=/^VAL_TABLE_ (\w+) (.*);/,B=/^BO_TX_BU_ ([0-9]+) *: *(.+);/,S=/^CM_ SG_ *(\w+) *(\w+) *"(.*)";/,I=/^CM_ SG_ *(\w+) *(\w+) *"(.*)/,E=/^CM_ BO_ *(\w+) *"(.*)";/,T=/^CM_ BO_ *(\w+) *"(.*)/,U=/^BU_:(.*)/,x=/^CM_ BU_ *(\w+) *"(.*)";/,O=/^CM_ BU_ *(\w+) *"(.*)/;function floatOrInt(t){return Number.isInteger(t)?parseInt(t,10):parseFloat(t)}var C=function(){function DBC(t){Object(i.a)(this,DBC),this.boardUnits=[],this.comments=[],this.messages=new Map,void 0!==t&&(this.dbcText=t,this.importDbcString(t))}return Object(a.a)(DBC,[{key:"getMessageFrame",value:function getMessageFrame(t){return g.b(t)?g.a(t):this.messages.get(t)}},{key:"nextNewFrameName",value:function nextNewFrameName(){var t=[],e=!0,r=!1,n=void 0;try{for(var i,a=this.messages.values()[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){var o=i.value;t.push(o.name)}}catch(f){r=!0,n=f}finally{try{e||null==a.return||a.return()}finally{if(r)throw n}}var s,u=1;do{s="NEW_MSG_".concat(u),u++}while(-1!==t.indexOf(s));return s}},{key:"updateBoardUnits",value:function updateBoardUnits(){var t=this.boardUnits.map((function(t){return t.name})),e=Array.from(this.messages.entries()).map((function(t){var e=Object(n.a)(t,2),r=(e[0],e[1]);return Object.values(r.signals)})).reduce((function(t,e){return t.concat(e)}),[]).map((function(t){return t.receiver})).reduce((function(t,e){return t.concat(e)}),[]).filter((function(t,e,r){return r.indexOf(t)===e})).filter((function(e){return-1===t.indexOf(e)})).map((function(t){return new c.a(t)}));this.boardUnits=this.boardUnits.concat(e)}},{key:"text",value:function text(){this.updateBoardUnits();var t='VERSION ""\n\n\n';t+="NS_ :".concat(this._newSymbols()),t+="\n\nBS_:\n";var e=this.boardUnits.map((function(t){return t.text()})).join(" ");t+="\nBU_: ".concat(e,"\n\n\n");var r=[],i=!0,a=!1,o=void 0;try{for(var s,u=this.messages.values()[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var f=s.value;r.push(f)}}catch(l){a=!0,o=l}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}t+="".concat(r.map((function(t){return t.text()})).join("\n\n"),"\n\n");var h=r.map((function(t){return[t.id,t.transmitters.slice(1)]})).filter((function(t){var e=Object(n.a)(t,2);e[0];return e[1].length>0}));t+="".concat(h.map((function(t){var e=Object(n.a)(t,2),r=e[0],i=e[1];return"BO_TX_BU_ ".concat(r," : ").concat(i.join(","),";")})).join("\n"),"\n\n\n"),t+=this.boardUnits.filter((function(t){return null!==t.comment})).map((function(t){return"CM_ BU_ ".concat(t.name,' "').concat(t.comment,'";')})).join("\n"),t+=r.filter((function(t){return null!==t.comment})).map((function(t){return"CM_ BO_ ".concat(t.address,' "').concat(t.comment,'";')})).join("\n");var c=r.map((function(t){return Object.values(t.signals).map((function(e){return[t.id,e]}))})).reduce((function(t,e){return t.concat(e)}),[]);return t+="".concat(c.filter((function(t){var e=Object(n.a)(t,2);e[0];return null!==e[1].comment})).map((function(t){var e=Object(n.a)(t,2),r=e[0],i=e[1];return"CM_ SG_ ".concat(r," ").concat(i.name,' "').concat(i.comment,'";')})).join("\n"),"\n"),t+="".concat(c.filter((function(t){var e=Object(n.a)(t,2);e[0];return e[1].valueDescriptions.size>0})).map((function(t){var e=Object(n.a)(t,2),r=e[0];return e[1].valueDescriptionText(r)})).join("\n"),"\n"),t+=this.comments.map((function(t){return'CM_ "'.concat(t,'";')})).join("\n"),"".concat(t.trim(),"\n")}},{key:"getMessageName",value:function getMessageName(t){var e=this.getMessageFrame(t);return e&&e.frame?e.frame.name:null}},{key:"getSignals",value:function getSignals(t){var e=this.getMessageFrame(t);return e?e.signals:{}}},{key:"createFrame",value:function createFrame(t){var e=new h.a({name:this.nextNewFrameName(),id:t,size:8});return this.messages.set(t,e),e}},{key:"setSignals",value:function setSignals(t,e){var r=this.getMessageFrame(t);if(r){var n=Object.assign(Object.create(r),r);n.signals=e,this.messages.set(t,n)}else{var i=this.createFrame(t);i.signals=e,this.messages.set(t,i),this.updateBoardUnits()}}},{key:"addSignal",value:function addSignal(t,e){var r=this.getMessageFrame(t);r&&(r.signals[e.name]=e,this.updateBoardUnits())}},{key:"importDbcString",value:function importDbcString(t){for(var e=[],r=new Map,i=[],a=new Map,o=0,s=null,l=t.split("\n"),g=0;g<l.length;g++){var p=l[g].trim();if(0!==p.length){if(null!=s){var C=s,A=C.type,N=C.data;p=p.replace(/" *;/,"");var k="\n".concat(p.substr(0,p.length));if(-1!==p.indexOf('"')&&(s=null,k=k.substr(0,k.length-1)),"FollowUpSignalComment"===A)N.comment+=k;else if("FollowUpMsgComment"===A){N.comment+=k}else if("FollowUpBoardUnitComment"===A){N.comment+=k}else if("FollowUpDbcComment"===A){var M=this.comments[this.comments.length-1];this.comments[this.comments.length-1]=M+k}}if(0===p.indexOf("BO_ ")){var R=p.match(m);if(null===R){e.push("failed to parse message definition on line ".concat(g+1," -- ").concat(p));continue}var L=R.slice(1),j=Object(n.a)(L,4),P=j[0],D=j[1],F=j[2],Y=j[3];o=parseInt(P,0),F=parseInt(F,10);var z=new h.a({name:D,id:o,size:F,transmitters:[Y]});r.set(o,z)}else if(0===p.indexOf("SG_")){var H=p.match(y);if(null===H){if(null===(H=p.match(v))){e.push("failed to parse signal definition on line ".concat(g+1," -- ").concat(p));continue}H=H[1]+H.slice(3)}else H=H.slice(1);var W=H,q=Object(n.a)(W,11),G=q[0],V=q[1],X=q[2],K=q[3],J=q[4],$=q[5],Z=q[6],Q=q[7],tt=q[8],et=q[9],rt=q[10],nt={name:G,startBit:V=parseInt(V,10),size:X=parseInt(X,10),isLittleEndian:K=1===parseInt(K,10),isSigned:J="-"===J,factor:$=floatOrInt($),offset:Z=floatOrInt(Z),unit:et,min:Q=floatOrInt(Q),max:tt=floatOrInt(tt),receiver:rt.split(",").map((function(t){return t.trim()}))},it=new f.a(nt);void 0!==r.get(o)?r.get(o).signals[G]=it:u.a.warn("importDbcString: could not add signal: ".concat(G," due to missing message: ").concat(o))}else if(0===p.indexOf("VAL_ ")){var at=p.match(w);if(null!==at){var ot=at.slice(1),st=Object(n.a)(ot,3),ut=st[0],ft=st[1],ht=st[2];ht=ht.split('"').map((function(t){return t.trim()})).filter((function(t){return t.length>0})),ut=parseInt(ut,10);var ct=r.get(ut).signals[ft];if(void 0===ct){e.push("could not find signal for value description on line ".concat(g+1," -- ").concat(p));continue}for(var lt=0;lt<ht.length;lt+=2){var gt=ht[lt].trim(),pt=ht[lt+1].trim();ct.valueDescriptions.set(gt,pt)}}else e.push("failed to parse value description on line ".concat(g+1," -- ").concat(p))}else if(0===p.indexOf("VAL_TABLE_ ")){var dt=p.match(b);if(null!==dt){var _t=new Map,mt=dt.slice(1),yt=Object(n.a)(mt,2),vt=yt[0],wt=yt[1];wt=wt.split('"').map((function(t){return t.trim()})).filter((function(t){return t.length>0}));for(var bt=0;bt<wt.length;bt+=2){var Bt=wt[bt],St=wt[bt+1];_t.set(Bt,St)}a.set(vt,_t)}else e.push("failed to parse value table on line ".concat(g+1," -- ").concat(p))}else if(0===p.indexOf("BO_TX_BU_ ")){var It=p.match(B);if(null!==It){var Et=It.slice(1),Tt=Object(n.a)(Et,2),Ut=Tt[0],xt=Tt[1];Ut=parseInt(Ut,10);var Ot=r.get(Ut);Ot.transmitters.push(xt),r.set(Ut,Ot)}else e.push("failed to parse message transmitter definition on line ".concat(g+1," -- ").concat(p))}else if(0===p.indexOf("CM_ SG_ ")){var Ct=p.match(S),At=!1;if(null===Ct&&(Ct=p.match(I),At=!0),null===Ct){e.push("failed to parse signal comment on line ".concat(g+1," -- ").concat(p));continue}var Nt=Ct.slice(1),kt=Object(n.a)(Nt,3),Mt=kt[0],Rt=kt[1],Lt=kt[2];Mt=parseInt(Mt,10);var jt=r.get(Mt);if(void 0===jt){e.push("failed to parse signal comment on line ".concat(g+1," -- ").concat(p,":\n message id ").concat(Mt," does not exist prior to this line"));continue}var Pt=jt.signals[Rt];if(void 0===Pt){e.push("failed to parse signal comment on line ".concat(g+1," -- ").concat(p));continue}Pt.comment=Lt,r.set(Mt,jt),At&&(s={type:"FollowUpSignalComment",data:Pt})}else if(0===p.indexOf("CM_ BO_ ")){var Dt=p.match(E),Ft=!1;if(null===Dt&&(Ft=!0,null===(Dt=p.match(T)))){e.push("failed to message comment on line ".concat(g+1," -- ").concat(p));continue}var Yt=Dt.slice(1),zt=Object(n.a)(Yt,2),Ht=zt[0],Wt=zt[1];Ht=parseInt(Ht,10);var qt=r.get(Ht);qt.comment=Wt,Ft&&(s={type:"FollowUpMsgComment",data:qt})}else if(0===p.indexOf("BU_: ")){var Gt=p.match(U);if(null===Gt){e.push("failed to parse board unit definition on line ".concat(g+1," -- ").concat(p));continue}var Vt=Gt.slice(1),Xt=Object(n.a)(Vt,1)[0].split(" ").map((function(t){return t.trim()})).filter((function(t){return t.length>0})).map((function(t){return new c.a(t)}));i=i.concat(Xt)}else if(0===p.indexOf("CM_ BU_ ")){if("continue"===function(){var t=p.match(x),r=!1;if(null===t&&(r=!0,null===(t=p.match(O))))return e.push("failed to parse board unit comment on line ".concat(g+1," -- ").concat(p)),"continue";var a=t.slice(1),o=Object(n.a)(a,2),u=o[0],f=o[1],h=i.find((function(t){return t.name===u}));h&&(h.comment=f),r&&(s={type:"FollowUpBoardUnitComment",data:h})}())continue}else if(0===p.indexOf("CM_ ")){var Kt=p.match(d),Jt=!1;if(null===Kt){if(null===(Kt=p.match(_))){e.push("failed to parse dbc comment on line ".concat(g+1," -- ").concat(p));continue}Jt=!0}var $t=Kt.slice(1),Zt=Object(n.a)($t,1)[0];this.comments.push(Zt),Jt&&(s={type:"FollowUpDbcComment",data:Zt})}}}e.length,this.messages=r,this.boardUnits=i,this.valueTables=a}},{key:"valueForInt64Signal",value:function valueForInt64Signal(t,e){var r,n,i,a=4*e.length;if(t.isLittleEndian?(r=p(function swapOrder(t,e,r){for(var n=[],i=0;i<t.length;i+=e)for(var a=t.slice(i,i+e),o=e-r;o>-r;o-=r)n.push(a.slice(o,o+r));return n.join("")}(e,16,2),16),n=t.startBit,i=p(n)):(r=p(e,16),n=l.a.bigEndianBitIndex(t.startBit),i=p(a-(n+t.size))),i<0)return null;var o=p(Math.pow(2,t.size)-1),s=r.shiftr(i).and(o).toNumber();return t.isSigned&&s&Math.pow(2,t.size-1)&&(s-=Math.pow(2,t.size)),s=s*t.factor+t.offset}},{key:"valueForInt32Signal",value:function valueForInt32Signal(t,e){var r,n,i;if(t.isLittleEndian)r=64-t.startBit-t.size;else{var a=(-t.startBit-1)%8;a<0&&(a+=8),r=8*Math.floor(t.startBit/8)+a}var o=Math.min(4,Math.floor(t.startBit/8));return t.isLittleEndian?(i=e.readUInt32LE(o),n=t.startBit-8*o):(i=e.readUInt32BE(o),n=32-(r-8*o+t.size)),i=i>>>n&(1<<t.size)-1,t.isSigned&&i>>>t.size-1&&(i-=1<<t.size),i*t.factor+t.offset}},{key:"getSignalValues",value:function getSignalValues(e,r){var n=this;if(!this.messages.has(e)&&!g.b(e))return{};var i=this.getMessageFrame(e),a=t.from(r),o=a;if(8!==a.length){var u=s()(a.toString("hex"),16,"0");o=t.from(u,"hex")}var f=o.toString("hex"),h={};return Object.values(i.signals).forEach((function(t){var e;e=t.size>32?n.valueForInt64Signal(t,f):n.valueForInt32Signal(t,o),h[t.name]=e})),h}},{key:"getChffrMetricMappings",value:function getChffrMetricMappings(){var t=this.comments.find((function(t){return 0===t.indexOf("CHFFR_METRIC")}));return t?t.split(";").map((function(t){return t.trim().split(" ")})).reduce((function(t,e){var r=Object(n.a)(e,6),i=(r[0],r[1]),a=r[2],o=r[3],s=r[4],u=r[5];return t[o]={messageId:parseInt(i,10),signalName:a,factor:parseFloat(s),offset:parseFloat(u)},t}),{}):null}},{key:"_newSymbols",value:function _newSymbols(){return"\n NS_DESC_\n CM_\n BA_DEF_\n BA_\n VAL_\n CAT_DEF_\n CAT_\n FILTER\n BA_DEF_DEF_\n EV_DATA_\n ENVVAR_DATA_\n SGTYPE_\n SGTYPE_VAL_\n BA_DEF_SGTYPE_\n BA_SGTYPE_\n SIG_TYPE_REF_\n VAL_TABLE_\n SIG_GROUP_\n SIG_VALTYPE_\n SIGTYPE_VALTYPE_\n BO_TX_BU_\n BA_DEF_REL_\n BA_REL_\n BA_DEF_DEF_REL_\n BU_SG_REL_\n BU_EV_REL_\n BU_BO_REL_\n SG_MUL_VAL_"}}]),DBC}()}).call(this,r(10).Buffer)},function(t,e,r){"use strict";t.exports=function rightPad(t,e,r){if("string"!==typeof t)throw new Error("The string parameter must be a string.");if(t.length<1)throw new Error("The string parameter must be 1 character or longer.");if("number"!==typeof e)throw new Error("The length parameter must be a number.");if("string"!==typeof r&&r)throw new Error("The character parameter must be a string.");var n=-1;for(e-=t.length,r||0===r||(r=" ");++n<e;)t+=r;return t}},function(t,e,r){"use strict";(function(t){var n=r(2),i=r(3),a=r(6),o=r(17),s=function(){function CloudLog(){Object(n.a)(this,CloudLog),a.a.init({token:o.a,no_format:!0,catchall:!1}),this.context={}}return Object(i.a)(CloudLog,[{key:"bind",value:function bind(t){this.context.update(t)}},{key:"emit",value:function emit(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";if("undefined"===typeof t.__JEST__){var n={ctx:this.context,created:(new Date).getTime()/1e3,msg:e,src:"JSCloudLog"};"log"===r?a.a.log(n):"warn"===r?a.a.warn(n):"error"===r&&a.a.error(n)}}},{key:"log",value:function log(t){this.emit(t)}},{key:"warn",value:function warn(t){this.emit(t,"warn")}},{key:"error",value:function error(t){this.emit(t,"error")}}]),CloudLog}();e.a=new s}).call(this,r(11))},function(t,e,r){(function(t){!function(r,n){var i=function(){var t=null,e={};!function loadColorBounds(){defineColor("monochrome",null,[[0,0],[100,0]]),defineColor("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),defineColor("orange",[19,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),defineColor("yellow",[47,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),defineColor("green",[63,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),defineColor("blue",[179,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),defineColor("purple",[258,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),defineColor("pink",[283,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}();var r=[];function pickHue(t){if(r.length>0){var n=randomWithin(o=function getRealHueRange(t){if(isNaN(t)){if("string"===typeof t)if(e[t]){var r=e[t];if(r.hueRange)return r.hueRange}else if(t.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){return getColorInfo(HexToHSB(t)[0]).hueRange}}else{var n=parseInt(t);if(n<360&&n>0)return getColorInfo(t).hueRange}return[0,360]}(t.hue)),i=(o[1]-o[0])/r.length,a=parseInt((n-o[0])/i);return!0===r[a]?a=(a+2)%r.length:r[a]=!0,(n=randomWithin(o=[(o[0]+a*i)%359,(o[0]+(a+1)*i)%359]))<0&&(n=360+n),n}var o;return(n=randomWithin(o=function getHueRange(t){if("number"===typeof parseInt(t)){var r=parseInt(t);if(r<360&&r>0)return[r,r]}if("string"===typeof t)if(e[t]){var n=e[t];if(n.hueRange)return n.hueRange}else if(t.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var i=HexToHSB(t)[0];return[i,i]}return[0,360]}(t.hue)))<0&&(n=360+n),n}function pickSaturation(t,e){if("monochrome"===e.hue)return 0;if("random"===e.luminosity)return randomWithin([0,100]);var r=function getSaturationRange(t){return getColorInfo(t).saturationRange}(t),n=r[0],i=r[1];switch(e.luminosity){case"bright":n=55;break;case"dark":n=i-10;break;case"light":i=55}return randomWithin([n,i])}function pickBrightness(t,e,r){var n=function getMinimumBrightness(t,e){for(var r=getColorInfo(t).lowerBounds,n=0;n<r.length-1;n++){var i=r[n][0],a=r[n][1],o=r[n+1][0],s=r[n+1][1];if(e>=i&&e<=o){var u=(s-a)/(o-i);return u*e+(a-u*i)}}return 0}(t,e),i=100;switch(r.luminosity){case"dark":i=n+20;break;case"light":n=(i+n)/2;break;case"random":n=0,i=100}return randomWithin([n,i])}function setFormat(t,e){switch(e.format){case"hsvArray":return t;case"hslArray":return HSVtoHSL(t);case"hsl":var r=HSVtoHSL(t);return"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)";case"hsla":var n=HSVtoHSL(t),i=e.alpha||Math.random();return"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+i+")";case"rgbArray":return HSVtoRGB(t);case"rgb":return"rgb("+HSVtoRGB(t).join(", ")+")";case"rgba":var a=HSVtoRGB(t);i=e.alpha||Math.random();return"rgba("+a.join(", ")+", "+i+")";default:return function HSVtoHex(t){var e=HSVtoRGB(t);function componentToHex(t){var e=t.toString(16);return 1==e.length?"0"+e:e}return"#"+componentToHex(e[0])+componentToHex(e[1])+componentToHex(e[2])}(t)}}function getColorInfo(t){for(var r in t>=334&&t<=360&&(t-=360),e){var n=e[r];if(n.hueRange&&t>=n.hueRange[0]&&t<=n.hueRange[1])return e[r]}return"Color not found"}function randomWithin(e){if(null===t){var r=Math.random();return r+=.618033988749895,r%=1,Math.floor(e[0]+r*(e[1]+1-e[0]))}var n=e[1]||1,i=e[0]||0,a=(t=(9301*t+49297)%233280)/233280;return Math.floor(i+a*(n-i))}function defineColor(t,r,n){var i=n[0][0],a=n[n.length-1][0],o=n[n.length-1][1],s=n[0][1];e[t]={hueRange:r,lowerBounds:n,saturationRange:[i,a],brightnessRange:[o,s]}}function HSVtoRGB(t){var e=t[0];0===e&&(e=1),360===e&&(e=359),e/=360;var r=t[1]/100,n=t[2]/100,i=Math.floor(6*e),a=6*e-i,o=n*(1-r),s=n*(1-a*r),u=n*(1-(1-a)*r),f=256,h=256,c=256;switch(i){case 0:f=n,h=u,c=o;break;case 1:f=s,h=n,c=o;break;case 2:f=o,h=n,c=u;break;case 3:f=o,h=s,c=n;break;case 4:f=u,h=o,c=n;break;case 5:f=n,h=o,c=s}return[Math.floor(255*f),Math.floor(255*h),Math.floor(255*c)]}function HexToHSB(t){t=3===(t=t.replace(/^#/,"")).length?t.replace(/(.)/g,"$1$1"):t;var e=parseInt(t.substr(0,2),16)/255,r=parseInt(t.substr(2,2),16)/255,n=parseInt(t.substr(4,2),16)/255,i=Math.max(e,r,n),a=i-Math.min(e,r,n),o=i?a/i:0;switch(i){case e:return[(r-n)/a%6*60||0,o,i];case r:return[60*((n-e)/a+2)||0,o,i];case n:return[60*((e-r)/a+4)||0,o,i]}}function HSVtoHSL(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=(2-r)*n;return[e,Math.round(r*n/(i<1?i:2-i)*1e4)/100,i/2*100]}return function randomColor(e){if(void 0!==(e=e||{}).seed&&null!==e.seed&&e.seed===parseInt(e.seed,10))t=e.seed;else if("string"===typeof e.seed)t=function stringToInteger(t){for(var e=0,r=0;r!==t.length&&!(e>=Number.MAX_SAFE_INTEGER);r++)e+=t.charCodeAt(r);return e}(e.seed);else{if(void 0!==e.seed&&null!==e.seed)throw new TypeError("The seed value must be an integer or string");t=null}var n,i;if(null!==e.count&&void 0!==e.count){for(var a=e.count,o=[],s=0;s<e.count;s++)r.push(!1);for(e.count=null;a>o.length;)t&&e.seed&&(e.seed+=1),o.push(randomColor(e));return e.count=a,o}return setFormat([n=pickHue(e),i=pickSaturation(n,e),pickBrightness(n,i,e)],e)}}();t&&t.exports&&(e=t.exports=i),e.randomColor=i}()}).call(this,r(22)(t))},function(t,e,r){"use strict";r(4);r.d(e,"a",(function(){return n}));"undefined"!==typeof window&&function getUrlParameter(t){var e=window.location;t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]".concat(t,"=([^&#]*)")).exec(e.search);return null===r?null:decodeURIComponent(r[1].replace(/\+/g," "))}("unlogger");var n="4bc98019-8277-4fe0-867c-ed21ea843cc5"},function(t,e,r){"use strict";r.r(e);var n=r(12),i=r.n(n),a=r(13),o=r(1);self.onmessage=function(t){const{newCanMessages:e,prevMsgEntries:r,firstCanTime:n,dbcText:s,lastBusTime:u,byteStateChangeCountsByMessage:f,maxByteStateChangeCount:h}=t.data;!function processStreamedCanMessages(t,e,r,n,a,s,u){const f={};let h;for(let c=0;c<t.length;c++){let{time:l,canMessages:g}=t[c];g=g.sort((t,e)=>t[1]<e[1]?-1:t[1]>e[1]?1:0);let p=0;for(let t=0;t<g.length;t++){const{address:u,busTime:c,data:d,bus:_}=g[t];let m;p+=c>=(m=0===t?null===a?0:a:g[t-1].busTime)?c-m:65536-m+c;const y=i()(g[t]);y.busTime=l+p/5e5,0===r&&(r=y.busTime);const v=o.a.addCanMessage(y,n,r,f,e,s);t===g.length-1&&(h=v.relTime)}a=g[g.length-1].busTime;const d=o.a.findMaxByteStateChangeCount(f);d>u&&(u=d),Object.keys(f).forEach(t=>{f[t]=o.a.setMessageByteColors(f[t],u)})}self.postMessage({newMessages:f,seekTime:h,lastBusTime:a,firstCanTime:r,maxByteStateChangeCount:u})}(e,r,n,new a.a(s),u,f,h)}},function(t,e,r){"use strict";e.byteLength=function byteLength(t){var e=getLens(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function toByteArray(t){var e,r,n=getLens(t),o=n[0],s=n[1],u=new a(function _byteLength(t,e,r){return 3*(e+r)/4-r}(0,o,s)),f=0,h=s>0?o-4:o;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e);return u},e.fromByteArray=function fromByteArray(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(encodeChunk(t,o,o+16383>s?s:o+16383));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function getLens(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function encodeChunk(t,e,r){for(var i,a,o=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,f=u>>1,h=-7,c=r?i-1:0,l=r?-1:1,g=t[e+c];for(c+=l,a=g&(1<<-h)-1,g>>=-h,h+=s;h>0;a=256*a+t[e+c],c+=l,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=256*o+t[e+c],c+=l,h-=8);if(0===a)a=1-f;else{if(a===u)return o?NaN:1/0*(g?-1:1);o+=Math.pow(2,n),a-=f}return(g?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,f=8*a-i-1,h=(1<<f)-1,c=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,p=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+c>=1?l/u:l*Math.pow(2,1-c))*u>=2&&(o++,u/=2),o+c>=h?(s=0,o=h):o+c>=1?(s=(e*u-1)*Math.pow(2,i),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[r+g]=255&s,g+=p,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;t[r+g]=255&o,g+=p,o/=256,f-=8);t[r+g-p]|=128*d}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function get(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function get(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){e.UINT32=r(24),e.UINT64=r(25)},function(t,e,r){var n;!function(r){UINT32(Math.pow(36,5)),UINT32(Math.pow(16,7)),UINT32(Math.pow(10,9)),UINT32(Math.pow(2,30)),UINT32(36),UINT32(16),UINT32(10),UINT32(2);function UINT32(t,e){return this instanceof UINT32?(this._low=0,this._high=0,this.remainder=null,"undefined"==typeof e?fromNumber.call(this,t):"string"==typeof t?fromString.call(this,t,e):void fromBits.call(this,t,e)):new UINT32(t,e)}function fromBits(t,e){return this._low=0|t,this._high=0|e,this}function fromNumber(t){return this._low=65535&t,this._high=t>>>16,this}function fromString(t,e){var r=parseInt(t,e||10);return this._low=65535&r,this._high=r>>>16,this}UINT32.prototype.fromBits=fromBits,UINT32.prototype.fromNumber=fromNumber,UINT32.prototype.fromString=fromString,UINT32.prototype.toNumber=function(){return 65536*this._high+this._low},UINT32.prototype.toString=function(t){return this.toNumber().toString(t||10)},UINT32.prototype.add=function(t){var e=this._low+t._low,r=e>>>16;return r+=this._high+t._high,this._low=65535&e,this._high=65535&r,this},UINT32.prototype.subtract=function(t){return this.add(t.clone().negate())},UINT32.prototype.multiply=function(t){var e,r,n=this._high,i=this._low,a=t._high,o=t._low;return e=(r=i*o)>>>16,e+=n*o,e&=65535,e+=i*a,this._low=65535&r,this._high=65535&e,this},UINT32.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new UINT32(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new UINT32(0),this._low=1,this._high=0,this;for(var e=t.clone(),r=-1;!this.lt(e);)e.shiftLeft(1,!0),r++;for(this.remainder=this.clone(),this._low=0,this._high=0;r>=0;r--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),r>=16?this._high|=1<<r-16:this._low|=1<<r);return this},UINT32.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},UINT32.prototype.equals=UINT32.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},UINT32.prototype.greaterThan=UINT32.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},UINT32.prototype.lessThan=UINT32.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},UINT32.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},UINT32.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},UINT32.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},UINT32.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},UINT32.prototype.shiftRight=UINT32.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},UINT32.prototype.shiftLeft=UINT32.prototype.shiftl=function(t,e){return t>16?(this._high=this._low<<t-16,this._low=0,e||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,e||(this._high&=65535)),this},UINT32.prototype.rotateLeft=UINT32.prototype.rotl=function(t){var e=this._high<<16|this._low;return e=e<<t|e>>>32-t,this._low=65535&e,this._high=e>>>16,this},UINT32.prototype.rotateRight=UINT32.prototype.rotr=function(t){var e=this._high<<16|this._low;return e=e>>>t|e<<32-t,this._low=65535&e,this._high=e>>>16,this},UINT32.prototype.clone=function(){return new UINT32(this._low,this._high)},void 0===(n=function(){return UINT32}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){var n;!function(r){var i={16:UINT64(Math.pow(16,5)),10:UINT64(Math.pow(10,5)),2:UINT64(Math.pow(2,5))},a={16:UINT64(16),10:UINT64(10),2:UINT64(2)};function UINT64(t,e,r,n){return this instanceof UINT64?(this.remainder=null,"string"==typeof t?fromString.call(this,t,e):"undefined"==typeof e?fromNumber.call(this,t):void fromBits.apply(this,arguments)):new UINT64(t,e,r,n)}function fromBits(t,e,r,n){return"undefined"==typeof r?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&e,this._a48=e>>>16,this):(this._a00=0|t,this._a16=0|e,this._a32=0|r,this._a48=0|n,this)}function fromNumber(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function fromString(t,e){e=e||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var r=i[e]||new UINT64(Math.pow(e,5)),n=0,a=t.length;n<a;n+=5){var o=Math.min(5,a-n),s=parseInt(t.slice(n,n+o),e);this.multiply(o<5?new UINT64(Math.pow(e,o)):r).add(new UINT64(s))}return this}UINT64.prototype.fromBits=fromBits,UINT64.prototype.fromNumber=fromNumber,UINT64.prototype.fromString=fromString,UINT64.prototype.toNumber=function(){return 65536*this._a16+this._a00},UINT64.prototype.toString=function(t){var e=a[t=t||10]||new UINT64(t);if(!this.gt(e))return this.toNumber().toString(t);for(var r=this.clone(),n=new Array(64),i=63;i>=0&&(r.div(e),n[i]=r.remainder.toNumber().toString(t),r.gt(e));i--);return n[i-1]=r.toNumber().toString(t),n.join("")},UINT64.prototype.add=function(t){var e=this._a00+t._a00,r=e>>>16,n=(r+=this._a16+t._a16)>>>16,i=(n+=this._a32+t._a32)>>>16;return i+=this._a48+t._a48,this._a00=65535&e,this._a16=65535&r,this._a32=65535&n,this._a48=65535&i,this},UINT64.prototype.subtract=function(t){return this.add(t.clone().negate())},UINT64.prototype.multiply=function(t){var e=this._a00,r=this._a16,n=this._a32,i=this._a48,a=t._a00,o=t._a16,s=t._a32,u=e*a,f=u>>>16,h=(f+=e*o)>>>16;f&=65535,h+=(f+=r*a)>>>16;var c=(h+=e*s)>>>16;return h&=65535,c+=(h+=r*o)>>>16,h&=65535,c+=(h+=n*a)>>>16,c+=e*t._a48,c&=65535,c+=r*s,c&=65535,c+=n*o,c&=65535,c+=i*a,this._a00=65535&u,this._a16=65535&f,this._a32=65535&h,this._a48=65535&c,this},UINT64.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new UINT64(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new UINT64(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var e=t.clone(),r=-1;!this.lt(e);)e.shiftLeft(1,!0),r++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;r>=0;r--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),r>=48?this._a48|=1<<r-48:r>=32?this._a32|=1<<r-32:r>=16?this._a16|=1<<r-16:this._a00|=1<<r);return this},UINT64.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},UINT64.prototype.equals=UINT64.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},UINT64.prototype.greaterThan=UINT64.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},UINT64.prototype.lessThan=UINT64.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},UINT64.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},UINT64.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},UINT64.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},UINT64.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},UINT64.prototype.shiftRight=UINT64.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},UINT64.prototype.shiftLeft=UINT64.prototype.shiftl=function(t,e){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),e||(this._a48&=65535),this},UINT64.prototype.rotateLeft=UINT64.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var r=this._a48<<16|this._a32,n=this._a16<<16|this._a00,i=r<<t|n>>>32-t,a=n<<t|r>>>32-t;return this._a00=65535&a,this._a16=a>>>16,this._a32=65535&i,this._a48=i>>>16,this},UINT64.prototype.rotateRight=UINT64.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var r=this._a48<<16|this._a32,n=this._a16<<16|this._a00,i=r>>>t|n<<32-t,a=n>>>t|r<<32-t;return this._a00=65535&a,this._a16=a>>>16,this._a32=65535&i,this._a48=i>>>16,this},UINT64.prototype.clone=function(){return new UINT64(this._a00,this._a16,this._a32,this._a48)},void 0===(n=function(){return UINT64}.apply(e,[]))||(t.exports=n)}()}]);
//# sourceMappingURL=c7de2d6e38fac0f21bad.worker.js.map