-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.js.map
13 lines (13 loc) · 24.8 KB
/
common.js.map
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"version": 3,
"file": "common.js",
"sourceRoot": "\\",
"sources": [
"src\\common.coffee"
],
"names": [],
"mappings": ";AAAA;;IAAA,UAAA,EAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,KAAA,EAAA,YAAA,EAAA,WAAA,EAAA,YAAA,EAAA,SAAA,EAAA,UAAA,EAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,WAAA,EAAA,QAAA,EAAA,WAAA,EAAA,cAAA,EAAA,UAAA,EAAA,WAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,eAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,eAAA,EAAA,OAAA,EAAA,IAAA,EAAA,OAAA,EAAA,SAAA,EAAA,WAAA,EAAA,KAAA,EAAA,QAAA,EAAA,GAAA,EAAA;;AAAA,QAAA,GAAW,CAAC,CAAD,CAAA,GAAA;SAAO;AAAP;;AACX,IAAA,GAAO,CAAA,CAAA,GAAA;SAAG;AAAH;;AAEP,MAAA,GAAS,CAAC,IAAD,CAAA,GAAA;SAAU,CAAC,CAAD,CAAA,GAAA;WAAO,OAAO,CAAP,KAAY;EAAnB;AAAV;;AACT,QAAA,GAAW,MAAA,CAAO,QAAP;;AACX,UAAA,GAAa,MAAA,CAAO,UAAP;;AAEb,SAAA,GAAY,CAAC,GAAD,EAAM,GAAN,CAAA,GAAA;SAAc,GAAG,CAAC,MAAJ,CAAc,KAAK,CAAC,OAAN,CAAc,GAAd,CAAH,GAA0B,GAA1B,GAAmC,CAAC,GAAD,CAA9C;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f,QA3Be,EA4Bf,MA5Be",
"sourcesContent": [
"identity = (x) => x\r\nNone = => undefined\r\n\r\nisType = (type) => (x) => typeof x is type\r\nisObject = isType 'object'\r\nisFunction = isType 'function'\r\n\r\nconcatArr = (arr, cur) => arr.concat if Array.isArray cur then cur else [cur]\r\n\r\nflatArray = (arr = []) => arr.reduce concatArr, []\r\n\r\nflatObject = (o) =>\r\n res = {}\r\n for key of o when o[key]? and o.hasOwnProperty key\r\n if (isObject o[key]) and (not Array.isArray o[key])\r\n Object.assign res, flatObject o[key]\r\n else if not res[key]? then res[key] = o[key]\r\n res\r\n\r\n# Synchronous function only\r\nisSymmetry = (f) =>\r\n if not isFunction f\r\n throw new TypeError 'Argument is not a Function'\r\n (...args) =>\r\n l = f ...args\r\n r = f ...args.reverse()\r\n l is r\r\n\r\nisIterable = (x) => isObject(x) and x[Symbol.iterator]\r\ngetIterator = (x) => x[Symbol.iterator]()\r\nisMultiIterable = (x) => isIterable(x) and not isSymmetry(getIterator) x\r\niterConstructor = (-> yield).prototype.constructor\r\nisGenerator = (g) => g and g.constructor is iterConstructor\r\nisGeneratorFunction = (g) => g and g[Symbol.toStringTag] is 'GeneratorFunction'\r\n\r\nmapList = (func) => (list) ->\r\n for item from list\r\n x = func list\r\n if isIterable x\r\n yield* x\r\n else\r\n yield x\r\n\r\ntco = (f) =>\r\n if not isGeneratorFunction f\r\n throw new TypeError 'Argument is not a GeneratorFunction'\r\n (...args) =>\r\n i = f ...args\r\n loop\r\n {value, done} = i.next()\r\n if isGenerator value\r\n i = value\r\n else if done\r\n break\r\n else res = value\r\n res\r\n\r\n# M constructs a Monad wrapping a deferred function using Promise\r\n# M(f) is lazy and reinvokable just like a plain function\r\n# with .then and .catch methods like a Promise\r\n# Monad Laws:\r\n# f: a -> M b\r\n# g: b -> M c\r\n# unit(a).then f = f a\r\n# unit unit x = unit x\r\n# m.then(f).then(g) = m.then a -> f(a).then g\r\nM = do =>\r\n # though this interface looks like Promise, but Promise isn't reinvokable,\r\n # so we do not accept a Promise here\r\n handler = (onFulfilled, onRejected) ->\r\n if onFulfilled and not isFunction onFulfilled\r\n throw new TypeError \"Parameter onFulfilled isn't a Function\"\r\n if onRejected and not isFunction onRejected\r\n throw new TypeError \"Parameter onRejected isn't a Function\"\r\n if onFulfilled or onRejected\r\n M (...args) => @(...args).then onFulfilled, onRejected\r\n else\r\n throw new TypeError 'Neither onFulfilled nor onRejected is a Function'\r\n\r\n reject = (onRejected) -> @then null, onRejected\r\n\r\n (f) =>\r\n if not isFunction f\r\n _t = f\r\n f = => _t\r\n if isFunction(f.then) and isFunction(f.catch)\r\n return f\r\n r = (...args) ->\r\n await f ...args\r\n Object.assign r,\r\n # since M(f) is just a function and\r\n # Promise.prototype.then will lift function to Promise, binding Promise as well.\r\n # we use .then alias for both .map and .bind in a typical Monad\r\n then: handler.bind r\r\n catch: reject.bind r\r\n\r\nbindObject = (o, name) => o[name].bind o\r\n\r\nallPromise = bindObject Promise, 'all'\r\nracePromise = bindObject Promise, 'race'\r\n\r\ninvokeAsync = (func) => (args...) -> await func args...\r\n\r\nexpandApply = (func) => (arr = []) => func arr...\r\nmapArr = (func) => (arr) => arr.map func\r\nzipApplyArr = (a1) => (a2 = []) => a1.map (f, i) => f a2[i]\r\ninvokePromises = (predicate) => (funcs) =>\r\n if not Array.isArray funcs\r\n throw new TypeError 'Functions is not an Array'\r\n if not funcs?.length\r\n throw new TypeError 'Functions is empty'\r\n if not funcs.every isFunction\r\n throw new TypeError 'Some handler is not a Function'\r\n g = (f) => expandApply invokeAsync f\r\n fz = zipApplyArr mapArr(g) funcs\r\n (arr) => predicate fz arr\r\nallAwait = invokePromises allPromise\r\nraceAwait = invokePromises racePromise\r\napply = (func) =>\r\n f = expandApply invokeAsync func\r\n (mapFunc) => mapFunc f\r\n\r\nmakeFrame = (keys = []) => (values) =>\r\n if not Array.isArray values\r\n return\r\n o = {}\r\n keys.forEach (key, i) =>\r\n if values[i] isnt undefined then o[key] = values[i]\r\n o\r\n\r\nfirstElement = (iterable = []) => iterable[Symbol.iterator]().next().value\r\n\r\nsequence = (f, memory = true) =>\r\n if memory\r\n (iterable = []) =>\r\n iter = iterable[Symbol.iterator]()\r\n while not (t = iter.next res).done\r\n res = await f t.value\r\n if res?\r\n res\r\n else\r\n break\r\n else\r\n (iterable = []) =>\r\n iter = iterable[Symbol.iterator]()\r\n while not (t = iter.next res).done\r\n res = await f t.value\r\n if not res?\r\n break\r\n return\r\n\r\npall = (fn) =>\r\n if not isFunction fn\r\n throw new TypeError 'Argument is not a Function'\r\n (items = []) => allPromise mapArr(fn) items\r\n\r\npushMap = (map) =>\r\n if not map instanceof Map\r\n throw new TypeError 'Argument is not a Map'\r\n (item) => (key) =>\r\n c = map.get key\r\n c ?= []\r\n c.push item\r\n map.set key, c\r\n\r\n# Let setTimeout converts timeout parameter, no check here\r\ndelay = (timeout) => (result) =>\r\n new Promise (resolve) =>\r\n setTimeout (=> resolve if result is undefined then timeout else result)\r\n , timeout\r\n\r\ndeadline = (timeout) => (reason) =>\r\n reason ?= new Error timeout\r\n new Promise (resolve, reject) =>\r\n setTimeout (=> reject reason), timeout\r\n\r\nretry = (f) =>\r\n if not isFunction f\r\n throw new TypeError 'Argument is not a Function'\r\n noTry = new Error 'try count is 0'\r\n (count = 1) =>\r\n count = +count\r\n if not(count >= 0)\r\n throw new Error 'Retry count is negative or NaN'\r\n (...args) =>\r\n c = count\r\n do g = (e = noTry) =>\r\n if c--\r\n Promise.resolve().then => f ...args\r\n .catch g\r\n else\r\n Promise.reject e\r\n\r\ngenWrap = (Class) =>\r\n if not (Class and Class.prototype and isFunction Class)\r\n throw new TypeError 'Argument is not a Class'\r\n (obj, ...rest) =>\r\n if obj instanceof Class\r\n obj\r\n else new Class obj, ...rest\r\n\r\neventPromise = (event, eventReject = null) => (emitter) =>\r\n new Promise((resolve, reject) =>\r\n if not emitter then return resolve()\r\n if eventReject\r\n emitter.on(eventReject, (...args) => reject(emitter, ...args))\r\n emitter.on(event, (...args) => resolve(emitter, ...args))\r\n )\r\n\r\nMinCapacity = 128\r\ngetCapacity = (length) =>\r\n if length < MinCapacity then MinCapacity else 1 << 32 - Math.clz32 length\r\n\r\ndefaultHeapOptions = {Type: Float64Array, simple: false}\r\n\r\nBinaryHeap = (options = defaultHeapOptions) ->\r\n {Type, simple} = Object.assign {}, defaultHeapOptions, options\r\n data = [null]\r\n capacity = MinCapacity\r\n length = 0\r\n keys = {length: 0}\r\n\r\n do newCapacity = =>\r\n capacity = getCapacity length\r\n if capacity is keys.length then return\r\n else if capacity > keys.length\r\n arr = new Type new ArrayBuffer(capacity * Type.BYTES_PER_ELEMENT)\r\n if keys\r\n arr.set keys\r\n else\r\n arr = new Type keys.buffer, 0, capacity\r\n keys = arr\r\n\r\n assign = if simple\r\n (i, j) =>\r\n keys[i] = keys[j]\r\n return\r\n else\r\n (i, j) =>\r\n keys[i] = keys[j]\r\n data[i] = data[j]\r\n return\r\n\r\n up = (i) =>\r\n k = keys[length]\r\n j = i >> 1\r\n while j and keys[j] > k\r\n assign i, j\r\n i = j\r\n j = j >> 1\r\n keys[i] = k\r\n return i\r\n\r\n insert = if simple\r\n None\r\n else\r\n (value, i) => data[i] = value\r\n\r\n push = (key, value) =>\r\n length += 1\r\n if length >= capacity\r\n newCapacity()\r\n keys[length] = key\r\n insert value, up length\r\n heap\r\n\r\n removeMin = (v) =>\r\n k = keys[1]\r\n i = 1\r\n j = 2\r\n while j < length\r\n t = if keys[j] > keys[j + 1] then 1 else 0\r\n j += t\r\n assign i, j\r\n i = j\r\n j = i << 1\r\n if i < length\r\n insert v, up i\r\n length -= 1\r\n if length < capacity / 2\r\n newCapacity()\r\n k\r\n\r\n pop = if simple\r\n =>\r\n if length < 1\r\n return undefined\r\n removeMin()\r\n else\r\n =>\r\n if length < 1\r\n return undefined\r\n res = [keys[1], data[1]]\r\n removeMin data[length]\r\n data.pop()\r\n res\r\n\r\n peek = if simple\r\n =>\r\n if length < 1\r\n undefined\r\n else keys[1]\r\n else\r\n =>\r\n if length < 1\r\n undefined\r\n else [keys[1], data[1]]\r\n\r\n heap = {push, pop, peek}\r\n\r\nlogLevel = 2\r\n\r\ngenLog = do (logLevel) => (level) => (func) =>\r\n if logLevel > level\r\n func\r\n else\r\n None\r\n\r\nnewMessageArray = (lengthBits, items, c, l, length, mod) =>\r\n l = 0\r\n (l++ if c) for c in items\r\n c = items?.length - 1\r\n c ?= 0\r\n length = 1 << lengthBits\r\n mod = length - 1\r\n items ?= []\r\n items.length = length\r\n next = => c = (c + 1) | 0\r\n\r\n [(message) =>\r\n if l >= length\r\n throw new Error 'Full'\r\n next()\r\n next() while items[c & mod]\r\n l += 1\r\n items[c & mod] = { id: c, message }\r\n\r\n (id) =>\r\n p = id & mod\r\n res = items[p]\r\n l -= 1 if res\r\n items[p] = undefined\r\n res\r\n\r\n (id) =>\r\n p = id & mod\r\n items[p]\r\n\r\n => l\r\n ]\r\n\r\nnewPool = (pool, timeout, inplace = false, queue, r, newP) =>\r\n queue = if inplace then pool else pool.slice()\r\n r = null\r\n newP = if timeout?\r\n => new Promise (resolve, reject) =>\r\n r = resolve\r\n setTimeout (=> reject timeout), timeout\r\n else => new Promise (resolve) => r = resolve\r\n [ ->\r\n while true\r\n while queue.length\r\n yield queue.pop()\r\n res = await newP()\r\n .catch (e) =>\r\n new Error e\r\n if res instanceof Error\r\n r = null\r\n yield res\r\n return\r\n\r\n (w) =>\r\n queue.push w\r\n r?()\r\n r = null]\r\n\r\n###eslint no-console: 0###\r\nlogInfo = genLog(1) bindObject console, 'log'\r\n\r\nlogError = genLog(-1) bindObject console, 'error'\r\n\r\nmodule.exports = {\r\n identity,\r\n None,\r\n M,\r\n concatArr,\r\n flatArray,\r\n flatObject,\r\n invokeAsync,\r\n allAwait,\r\n raceAwait,\r\n delay,\r\n deadline,\r\n retry,\r\n pall,\r\n makeFrame,\r\n firstElement,\r\n sequence,\r\n pushMap,\r\n isFunction,\r\n isGenerator,\r\n tco,\r\n BinaryHeap,\r\n genWrap,\r\n eventPromise,\r\n newMessageArray,\r\n newPool,\r\n logInfo,\r\n logError,\r\n genLog\r\n}"
]
}