@kizmann/pico-js 0.3.21 → 0.3.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/utility/dom.js +5 -1
- package/src/utility/object.js +40 -13
package/dist/pico-js.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://Pico/webpack/universalModuleDefinition","webpack://Pico/webpack/bootstrap","webpack://Pico/./src/index.js","webpack://Pico/./src/utility/any.js","webpack://Pico/./src/utility/array.js","webpack://Pico/./src/utility/number.js","webpack://Pico/./src/utility/object.js","webpack://Pico/./src/utility/string.js","webpack://Pico/external {\"root\":\"moment\",\"commonjs2\":\"moment\",\"commonjs\":\"moment\",\"amd\":\"moment\"}","webpack://Pico/./src/utility/now.js","webpack://Pico/./src/utility/dom.js","webpack://Pico/./src/library/cookie.js","webpack://Pico/./src/library/data.js","webpack://Pico/./src/library/element.js","webpack://Pico/./src/library/event.js","webpack://Pico/./src/library/locale.js","webpack://Pico/./src/library/map.js","webpack://Pico/./src/library/queue.js","webpack://Pico/./src/library/route.js","webpack://Pico/./node_modules/uuid/index.js","webpack://Pico/(webpack)/buildin/global.js","webpack://Pico/./node_modules/uuid/lib/rng-browser.js","webpack://Pico/./node_modules/uuid/lib/bytesToUuid.js","webpack://Pico/./node_modules/uuid/v1.js","webpack://Pico/./node_modules/uuid/v4.js"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__6__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Pico","UUID","Arr","Obj","Num","Str","Now","Any","Dom","Cookie","Data","Element","Event","Locale","Map","Queue","Route","global","IE","navigator","userAgent","match","WIN","pi","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","isObject","constructor","Array","Date","String","empty","isEmpty","string","parseInt","parseFloat","result","yes","no","format","make","push","callback","args","setTimeout","delay","ref","debounce","undefined","__debouce","clearTimeout","throttle","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","fallback","isFunction","sort","a","b","integer","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","vals","indexOf","concat","clone","diff","reduce","chunk","res","accumulator","path","cascade","recursive","num","replace","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","toString","totals","minals","splits","split","reverse","join","shift","set","unset","has","matches","entries","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","units","unit","limit","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","regex","convertFromOptions","attr","real","convertFromParams","date","toDate","initialDate","moment","second","add","minute","hour","day","subtract","month","year","isValid","force","valid","before","code","after","equal","fromDate","subDecades","addDecades","prevMonth","decade","lastDate","target","range","targetNow","afterDate","equalDate","nextDate","beforeDate","dates","getDates","prev","prepend","prevDate","next","last","interval","el","NodeList","ready","document","readyState","find","on","globals","timer","required","element","querySelectorAll","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","ratio","viewport","width","height","scroll","offset","left","right","top","bottom","selector","parent","els","node","parentNode","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","complete","naturalWidth","clearInterval","event","e","paused","func","events","addEventListener","live","srcElement","location","clientX","clientY","inside","off","dispatchEvent","indexes","removeEventListener","removeIndex","unpause","pause","initial","observer","MutationObserver","mutation","observe","ResizeObserver","html","innerHTML","computed","getComputedStyle","styles","objectify","cls","intersect","addClass","removeClass","remove","toggleClass","hasClass","getAttribute","removeAttribute","setAttribute","style","offsetParent","boundry","loopOffsetParent","offsetTop","offsetLeft","scrollWidth","loopParent","scrollTop","pageYOffset","scrollLeft","pageXOffset","computedStyle","margin","marginTop","marginLeft","marginBottom","marginRight","padding","paddingTop","paddingLeft","paddingBottom","paddingRight","innerHeight","offsetHeight","actual","auto","display","css","innerWidth","offsetWidth","decode","pattern","cookie","plain","expire","setTime","getTime","expires","toUTCString","input","data","isEqual","fire","forceSet","id","instance","inis","getPrefix","console","error","cb","unbind","childList","subtree","attributes","attributeFilter","mounted","prefix","item","splitLength","locales","message","pickByCount","google","center","only","mapStyle","gestureHandling","scrollwheel","zoom","except","maps","extra","final","Size","origin","Point","anchor","url","scaledSize","hover","active","prop","markerStyles","allowCreate","cluster","MarkerClusterer","imagePath","clearMarkers","clusterFilter","markers","visible","getMarkerVisibility","marker","clusterOptions","type","getInfoVisibility","setIcon","getVisible","getPosition","hideMarker","showMarker","hidden","setVisible","closeInfo","styleMarker","info","getMap","openInfo","closeInfoWindows","open","close","extras","position","Marker","clusterMarkers","addListener","enterMarker","leaveMarker","InfoWindow","content","toggleInfo","setPosition","address","getLocationByAddress","setMarkerPosition","geocoderService","Geocoder","geocoderPromise","resolve","reject","geocode","response","status","Promise","hideMarkers","LatLngBounds","extend","maxZoom","getMarkerBoundry","setCenter","getCenter","fitBounds","getZoom","setZoom","directionsService","DirectionsService","directionsRenderer","DirectionsRenderer","travelMode","setMap","panel","setPanel","route","setDirections","queue","stopQueue","handler","activeQueue","routes","href","v1","v4","uuid","g","Function","getRandomValues","crypto","msCrypto","rnds8","Uint8Array","rnds","byteToHex","substr","buf","bth","_nodeId","_clockseq","rng","bytesToUuid","_lastMSecs","_lastNSecs","clockseq","seedBytes","msecs","nsecs","dt","Error","tl","tmh","ii"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,UAAWJ,GACO,iBAAZC,QACdA,QAAc,KAAID,EA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,IAAa,EAAI,IAG1B/Z,EAAEpH,KAAkB,IAAXmhB,EAGT,IAAK,IAAI1f,EAAI,EAAGA,EAAI,IAAKA,EACvB2F,EAAEpH,EAAIyB,GAAKuQ,EAAKvQ,GAGlB,OAAOkf,GAAYK,EAAY5Z,K,gBCzGjC,IAAI2Z,EAAM,EAAQ,IACdC,EAAc,EAAQ,IA2B1BzhB,EAAOD,QAzBP,SAAYwN,EAAS6T,EAAKnP,GACxB,IAAIxR,EAAI2gB,GAAOnP,GAAU,EAEF,iBAAb,IACRmP,EAAkB,WAAZ7T,EAAuB,IAAIvI,MAAM,IAAM,KAC7CuI,EAAU,MAIZ,IAAI0T,GAFJ1T,EAAUA,GAAW,IAEFxD,SAAWwD,EAAQiU,KAAOA,KAO7C,GAJAP,EAAK,GAAgB,GAAVA,EAAK,GAAa,GAC7BA,EAAK,GAAgB,GAAVA,EAAK,GAAa,IAGzBG,EACF,IAAK,IAAIgB,EAAK,EAAGA,EAAK,KAAMA,EAC1BhB,EAAI3gB,EAAI2hB,GAAMnB,EAAKmB,GAIvB,OAAOhB,GAAOK,EAAYR","file":"pico-js.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory(require(\"moment\"));\n\telse\n\t\troot[\"Pico\"] = factory(root[\"moment\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__6__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","\nimport Arr from \"./utility/array\";\nexport { Arr };\n\nimport Obj from \"./utility/object\";\nexport { Obj };\n\nimport Num from \"./utility/number\";\nexport { Num };\n\nimport Str from \"./utility/string\";\nexport { Str };\n\nimport Now from \"./utility/now\";\nexport { Now };\n\nimport Any from \"./utility/any\";\nexport { Any };\n\nimport Dom from \"./utility/dom\";\nexport { Dom };\n\nimport Cookie from \"./library/cookie\";\nexport { Cookie };\n\nimport Data from \"./library/data\";\nexport { Data };\n\nimport Element from \"./library/element\";\nexport { Element };\n\nimport Event from \"./library/event\";\nexport { Event };\n\nimport Locale from \"./library/locale\";\nexport { Locale };\n\nimport Map from \"./library/map\";\nexport { Map };\n\nimport Queue from \"./library/queue\";\nexport { Queue };\n\nimport Route from \"./library/route\";\nexport { Route };\n\nimport { v4 as UUID } from 'uuid'\nexport { UUID };\n\nexport const Pico = {\n\n UUID: UUID,\n\n Arr: Arr,\n Obj: Obj,\n Num: Num,\n Str: Str,\n Now: Now,\n Any: Any,\n Dom: Dom,\n\n Cookie: Cookie,\n Data: Data,\n Element: Element,\n Event: Event,\n Locale: Locale,\n Map: Map,\n Queue: Queue,\n Route: Route,\n}\n\n/**\n * @const global\n */\n\nif ( typeof global.IE === 'undefined' ) {\n global.IE = !! global.navigator.userAgent.match(/Edge\\/|Trident\\/|MSIE /);\n}\n\nif ( typeof global.WIN === 'undefined' ) {\n global.WIN = !! global.navigator.userAgent.match(/Windows/);\n}\n\nif ( typeof global.pi === 'undefined' ) {\n global.pi = Pico;\n}\n\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index\";\n\nexport class Any\n{\n static isEmpty(val)\n {\n if ( this.isNumber(val) ) {\n return false;\n }\n\n if ( this.isString(val) ) {\n return val === '';\n }\n\n if ( this.isBool(val) ) {\n return val === null;\n }\n\n if ( this.isPlain(val) ) {\n return Object.keys(val).length === 0;\n }\n\n if ( this.isArray(val) ) {\n return Object.keys(val).length === 0;\n }\n\n return val === null || val === undefined;\n }\n\n static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\n if ( obj instanceof Node ) {\n return obj.isEqualNode(val);\n }\n\n if ( this.isPlain(obj) ) {\n return Object.is(obj, val)\n }\n\n if ( this.isArray(obj) ) {\n return Object.is(obj, val)\n }\n\n return obj === val;\n }\n\n static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static integer(val)\n {\n return parseInt(val);\n }\n\n static float(val)\n {\n return parseFloat(val);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let debounce = null;\n\n if ( ! Any.isEmpty(ref) ) {\n debounce = ref();\n }\n\n if ( ref !== null && ref.__debouce !== undefined ) {\n debounce = ref.__debouce;\n }\n\n return (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n return (...args) => {\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = Arr.merge([], keys, index);\n\n if ( Any.isPlain(value) ) {\n return appendField(value, inner);\n }\n\n if ( Any.isArray(value) ) {\n return appendField(value, inner);\n }\n\n let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n } else {\n arr.push(val);\n }\n\n return arr;\n }\n\n static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static includes(arr, val)\n {\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let i = 20; i >= 0; i -- ) {\n if ( num >= (value = Math.pow(2, i)) ) {\n base.push(value);\n num -= value;\n }\n }\n\n return base;\n }\n\n static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n\n if ( dist > 1 ) {\n dist = 1;\n }\n\n dist = (Math.acos(dist) * 180) / Math.PI * 60 * 1.1515;\n\n if ( !miles ) {\n dist = dist * 1.609344;\n }\n\n return dist;\n }\n\n static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = num.toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let result = splits.reverse().join(thousand);\n\n if ( fixed !== - 1 && fixed !== 0 && value.match(/\\./) ) {\n result += decimal + minals;\n }\n\n return result;\n }\n}\n\nexport default Num;\n","import Arr from \"./array\";\nimport Any from \"./any\";\n\nexport class Obj\n{\n static has(obj, key)\n {\n return this.get(obj, key, - 1) !== - 1;\n }\n\n static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = null)\n {\n if ( obj === null || obj === undefined ) {\n return fallback;\n }\n\n if ( keys === null || keys === undefined ) {\n return obj;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length;\n\n while (obj !== undefined && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( typeof obj === 'undefined' ) {\n return fallback;\n }\n\n return obj;\n }\n\n static set(obj, keys, val)\n {\n keys = (typeof keys === 'string' && keys.match(/^[^\\.]+(\\.[^\\.]+)*$/)) ?\n keys.split('.') : keys;\n\n let key = keys.shift();\n\n if ( obj[key] === undefined || obj[key] === null ) {\n obj[key] = {};\n }\n\n if ( keys.length === 0 ) {\n return obj[key] = val;\n }\n\n return this.set(obj[key], keys, val);\n }\n\n static unset(obj, keys)\n {\n keys = (typeof keys === 'string' && keys.match(/^[^\\.]+(\\.[^\\.]+)*$/)) ?\n keys.split('.') : keys;\n\n let key = keys.shift();\n\n if ( typeof obj[key] === 'undefined' ) {\n return obj;\n }\n\n if ( keys.length === 0 ) {\n delete obj[key];\n return obj;\n }\n\n return this.unset(obj[key], keys);\n }\n\n static only(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === true ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static except(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === false ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static includes(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isPlain(obj[key]) || Any.isArray(obj[key]) ?\n this.includes(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static matches(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isObject(obj[key]) ?\n this.matches(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return (va < vb) ? - 1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static filter(obj, filter)\n {\n return Obj.each(Obj.filterIndex(obj, filter), (key) => {\n return obj[key];\n });\n }\n\n static filterIndex(obj, filter)\n {\n return Any.keys(obj).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, obj[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, obj[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, obj[key]);\n }\n\n return filter === obj[key];\n });\n }\n\n static find(arr, obj, fallback = null)\n {\n return Arr.first(Obj.filter(arr, obj)) || fallback;\n }\n\n static findIndex(arr, obj, fallback = - 1)\n {\n return Arr.first(Obj.filterIndex(arr, obj)) || fallback;\n }\n\n static clone(obj)\n {\n let clone;\n\n if ( Any.isArray(obj) === true ) {\n return Arr.clone(obj);\n }\n\n if ( Any.isPlain(obj) === true ) {\n\n clone = {};\n\n for ( let key of Any.keys(obj) ) {\n clone[key] = Obj.clone(obj[key]);\n }\n\n return clone;\n }\n\n return clone || obj;\n }\n\n static assign(...args)\n {\n return Object.assign(...args);\n }\n\n static remove(obj, keys)\n {\n Arr.each(keys, (key) => delete obj[key]);\n\n return obj;\n }\n\n static each(obj, callback)\n {\n let result = {};\n\n if ( obj instanceof FormData ) {\n\n for ( let [key, value] of obj.entries() ) {\n result[key] = callback(value, key);\n }\n\n return obj;\n }\n\n for ( let key of Any.keys(obj) ) {\n result[key] = callback(obj[key], key);\n }\n\n return result;\n }\n\n static map(obj, callback)\n {\n for ( let key of Any.keys(obj) ) {\n obj[key] = callback(obj[key], key);\n }\n\n return obj;\n }\n\n static values(obj)\n {\n let result = [];\n\n this.each(obj, val => result.push(val));\n\n return result;\n }\n\n}\n\nexport default Obj;\n","import Arr from \"./array\";\nimport Obj from \"./object\";\nimport Num from \"./number\";\nimport Any from \"./any\";\n\nexport class Str\n{\n static regexEscape(val)\n {\n return String(val).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n static upper(val)\n {\n return String(val).toUpperCase();\n }\n\n static lower(val)\n {\n return String(val).toLowerCase();\n }\n\n static camelcase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split, index) => {\n\n if ( index === 0 ) {\n return split;\n }\n\n return Str.ucfirst(split);\n });\n\n return slugSplits.join('');\n }\n\n static humancase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split) => {\n return Str.ucfirst(split);\n });\n\n return slugSplits.join(' ');\n }\n\n static slugify(val)\n {\n val = String(val).replace(/^\\s+|\\s+$/g, '')\n .toLowerCase();\n\n let sources = [\n 'à', 'á', 'â', 'è', 'é', 'ê', 'ì', 'í', 'ï', 'î', 'ò', 'ó', 'ô',\n 'ù', 'ú', 'û', 'ñ', 'ç', '·', '/', '_', ',', ':', ';', 'ä', 'ö', 'ü'\n ];\n\n let targets = [\n 'a', 'a', 'a', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'o', 'o', 'o',\n 'u', 'u', 'u', 'n', 'c', '-', '-', '-', '-', '-', '-', 'ae', 'oe', 'ue'\n ];\n\n Arr.each(sources, (source, index) => {\n val = val.replace(new RegExp(source.charAt(source), 'g'), targets[index]);\n });\n\n return val.replace(/[^a-z0-9 -]/g, '')\n .replace(/\\s+/g, '-').replace(/-+/g, '-');\n }\n\n static ucfirst(val)\n {\n return val.charAt(0).toUpperCase() + val.slice(1);\n }\n\n static lcfirst(val)\n {\n return val.charAt(0).toLowerCase() + val.slice(1);\n }\n\n static has(val, search)\n {\n return this.lower(val).indexOf(this.lower(search)) !== -1;\n }\n\n static filesize(val, decimals = 1)\n {\n let size = null;\n\n let units = [\n 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'\n ];\n\n Arr.each(units, (unit, count) => {\n\n let limit = Math.pow(1000, Any.integer(count));\n\n if ( val <= limit) {\n return;\n }\n\n size = Num.fixed(val / limit, decimals) + ' ' + unit;\n });\n\n return size;\n }\n\n static real(value)\n {\n if ( typeof value === 'string' && value.match(/^(null)$/i) ) {\n value = null;\n }\n\n if ( typeof value === 'string' && value.match(/^(true|false)$/i) ) {\n value = Any.bool(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+$/) ) {\n value = Num.int(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+\\\\.[0-9]+$/) ) {\n value = Num.float(value);\n }\n\n return value;\n }\n\n /**\n * Parse param string to object\n */\n static objectify(value, mode = 'options', isArray = false)\n {\n if ( Any.isObject(value) ) {\n return value;\n }\n\n if ( mode === 'params' ) {\n return Str.fromParams(value, isArray);\n }\n\n if ( mode === 'options' ) {\n return Str.fromOptions(value, isArray);\n }\n\n return JSON.parse(value);\n }\n\n /**\n * Parse param object to string\n */\n static stringify(value, mode = 'options')\n {\n if ( Any.isString(value) ) {\n return value;\n }\n if ( mode === 'params' ) {\n return Str.params(value);\n }\n\n if ( mode === 'options' ) {\n return Str.options(value);\n }\n\n return JSON.stringify(value);\n }\n\n /**\n * Parse object to string (e.g. foo:bar;test:lorem).\n */\n static options(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '.' + key;\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.options(value, key).replace(/;$/, ''));\n }\n\n result.push(String(key) + ':' + String(value));\n });\n\n return result.join(';') + ';';\n }\n\n /**\n * Parse string to object (e.g. foo:bar;test:lorem).\n */\n static fromOptions(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|;)(\\\\s*(.*?)\\\\s*:\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=;|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromOptions, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result;\n }\n\n static convertFromOptions(result, match)\n {\n // Get key and value from match\n let attr = match.match(/^;?\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, attr[1], val);\n\n return result;\n }\n\n /**\n * Parse object to string (e.g. foo=bar&test=lorem).\n */\n static params(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '[' + key + ']';\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.params(value, key));\n }\n\n result.push(String(key) + '=' + String(value));\n });\n\n return result.join('&');\n }\n\n /**\n * Parse string to object (e.g. foo=bar&test=lorem).\n */\n static fromParams(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|&)(\\\\s*(.*?)\\\\s*=\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=&|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromParams, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result\n }\n\n static convertFromParams(result, match) {\n\n // Get key and value from match\n let attr = match.match(/^&?\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let key = attr[1].replace(/(\\]\\[|\\[|\\])/g, '.')\n .replace(/\\.$/, '');\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, key, val);\n\n return result;\n }\n\n}\n\nexport default Str;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__6__;","import { Num, Arr, Any } from \"../index\";\nimport moment from \"moment\";\n\nexport class Now\n{\n initialDate = null;\n moment = null;\n\n constructor(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = moment(date.match(/^now/) ?\n new Date : date, format);\n\n let second = this.initialDate.match(/(\\+|-)([0-9]+)seconds?/);\n\n if ( Any.isEmpty(second) === false && second[1] === '+' ) {\n this.moment.add(second[2], 'second');\n }\n\n let minute = this.initialDate.match(/(\\+|-)([0-9]+)minutes?/);\n\n if ( Any.isEmpty(minute) === false && minute[1] === '+' ) {\n this.moment.add(minute[2], 'minute');\n }\n\n let hour = this.initialDate.match(/(\\+|-)([0-9]+)hours?/);\n\n if ( Any.isEmpty(hour) === false && hour[1] === '+' ) {\n this.moment.add(hour[2], 'hour');\n }\n\n let day = this.initialDate.match(/(\\+|-)([0-9]+)days?/);\n\n if ( Any.isEmpty(day) === false && day[1] === '+' ) {\n this.moment.add(day[2], 'day');\n }\n\n if ( Any.isEmpty(day) === false && day[1] === '-' ) {\n this.moment.subtract(day[2], 'day');\n }\n\n let month = this.initialDate.match(/(\\+|-)([0-9]+)months?/);\n\n if ( Any.isEmpty(month) === false && month[1] === '+' ) {\n this.moment.add(month[2], 'month');\n }\n\n if ( Any.isEmpty(month) === false && month[1] === '-' ) {\n this.moment.subtract(month[2], 'month');\n }\n\n let year = this.initialDate.match(/(\\+|-)([0-9]+)years?/);\n\n if ( Any.isEmpty(year) === false && year[1] === '+' ) {\n this.moment.add(year[2], 'year');\n }\n\n if ( Any.isEmpty(year) === false && year[1] === '-' ) {\n this.moment.subtract(year[2], 'year');\n }\n\n return this;\n }\n\n static make(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n return new Now(date, format);\n }\n\n get()\n {\n return this.moment;\n }\n\n valid()\n {\n return ! Any.isEmpty(this.initialDate) &&\n moment(this.initialDate).isValid();\n }\n\n clone()\n {\n return new Now(this.moment.toDate());\n }\n\n code(format = 'X')\n {\n return Num.int(this.format(format, true));\n }\n\n format(format = 'YYYY-MM-DD hh:mm:ss', force = false)\n {\n if ( ! this.valid() && ! force ) {\n return '';\n }\n\n return this.moment.format(format);\n }\n\n before(before = null)\n {\n return this.code() < Now.make(before).code();\n }\n\n beforeDate(before = null)\n {\n return this.code('YYYYMMDD') <\n Now.make(before).code('YYYYMMDD');\n }\n\n beforeTime(before = null)\n {\n return this.code('hhmmss') <\n Now.make(before).code('hhmmss');\n }\n\n after(after = null)\n {\n return this.code() > Now.make(after).code();\n }\n\n afterDate(after = null)\n {\n return this.code('YYYYMMDD') >\n Now.make(after).code('YYYYMMDD');\n }\n\n afterTime(after = null)\n {\n return this.code('hhmmss') >\n Now.make(after).code('hhmmss');\n }\n\n equal(equal = null, format = 'X')\n {\n return this.code(format) ===\n Now.make(equal).code(format);\n }\n\n equalDate(equal = null, format = 'YYYYMMDD')\n {\n return this.equal(equal, format);\n }\n\n equalTime(equal = null, format = 'hhmmss')\n {\n return this.equal(equal, format);\n }\n\n between(fromDate = null, toDate = null, format = 'YYYYMMDD')\n {\n if ( Now.make(toDate).code(format) < Now.make(fromDate).code(format) ) {\n return this.after(toDate, format) && this.before(fromDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n return this.after(fromDate, format) && this.before(toDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n decade()\n {\n return Math.floor(this.year() / 10) * 10;\n }\n\n prevDecade()\n {\n return this.clone().subDecades(1);\n }\n\n nextDecade()\n {\n return this.clone().addDecades(1);\n }\n\n addDecades(count = 1)\n {\n return this.year(this.moment.year() + (count * 10));\n }\n\n subDecades(count = 1)\n {\n return this.year(this.moment.year() - (count * 10));\n }\n\n year(year = null)\n {\n if ( year === null ) {\n return this.moment.year();\n }\n\n this.moment.year(year);\n\n return this;\n }\n\n prevYear()\n {\n return this.clone().year(this.year() - 1);\n }\n\n nextYear()\n {\n return this.clone().year(this.year() + 1);\n }\n\n addYears(count = 1)\n {\n return this.year(this.year() + count);\n }\n\n subYears(count = 1)\n {\n return this.year(this.year() - count);\n }\n\n month(month = null)\n {\n if ( month === null ) {\n return this.moment.month();\n }\n\n this.moment.month(month);\n\n return this;\n }\n\n addMonths(count = 1)\n {\n return this.month(this.month() + count);\n }\n\n subMonths(count = 1)\n {\n return this.month(this.month() - count);\n }\n\n prevMonth()\n {\n return this.clone().month(this.month() - 1);\n }\n\n nextMonth()\n {\n return this.clone().month(this.month() + 1);\n }\n\n date(date = null)\n {\n if ( date === null ) {\n return this.moment.date();\n }\n\n this.moment.date(date);\n\n return this;\n }\n\n addDates(count = 1)\n {\n return this.date(this.date() + count);\n }\n\n subDates(count = 1)\n {\n return this.date(this.date() - count);\n }\n\n prevDate()\n {\n return this.clone().date(this.date() - 1);\n }\n\n nextDate()\n {\n return this.clone().date(this.date() + 1);\n }\n\n lastDate()\n {\n return this.prevMonth().date(0).date();\n }\n\n day(day = null)\n {\n if ( day === null ) {\n return this.moment.day();\n }\n\n this.moment.day(day);\n\n return this;\n }\n\n hour(hour = null)\n {\n if ( hour === null ) {\n return this.moment.hour();\n }\n\n this.moment.hour(hour);\n\n return this;\n }\n\n addHour(count = 1)\n {\n return this.hour(this.hour() + count);\n }\n\n subHour(count = 1)\n {\n return this.hour(this.hour() - count);\n }\n\n prevHour()\n {\n return this.clone().hour(this.hour() - 1);\n }\n\n nextHour()\n {\n return this.clone().hour(this.hour() + 1);\n }\n\n minute(minute = null)\n {\n if ( minute === null ) {\n return this.moment.minute();\n }\n\n this.moment.minute(minute);\n\n return this;\n }\n\n addMinute(count = 1)\n {\n return this.minute(this.minute() + count);\n }\n\n subMinute(count = 1)\n {\n return this.minute(this.minute() - count);\n }\n\n prevMinute()\n {\n return this.clone().minute(this.minute() - 1);\n }\n\n nextMinute()\n {\n return this.clone().minute(this.minute() + 1);\n }\n\n second(second = null)\n {\n if ( second === null ) {\n return this.moment.second();\n }\n\n this.moment.second(second);\n\n return this;\n }\n\n addSecond(count = 1)\n {\n return this.second(this.second() + count);\n }\n\n subSecond(count = 1)\n {\n return this.second(this.second() - count);\n }\n\n prevSecond()\n {\n return this.clone().second(this.second() - 1);\n }\n\n nextSecond()\n {\n return this.clone().second(this.second() + 1);\n }\n\n humanDay()\n {\n return this.day();\n }\n\n humanMonth()\n {\n return this.month();\n }\n\n getMonths()\n {\n return Arr.make(12).map((month) => {\n return this.clone().month(month - 1);\n });\n }\n\n getYears()\n {\n return Arr.make(10).map((year) => {\n return this.clone().year(this.decade() + year - 1);\n });\n }\n\n getYearsGrid(size = 12)\n {\n return Arr.make(size).map((year) => {\n return this.clone().year((Math.floor(this.year() / size)\n * size) + year - 1);\n });\n }\n\n getDates()\n {\n return Arr.make(this.lastDate()).map((date) => {\n return this.clone().date(date);\n });\n }\n\n getDatesRange(target = null)\n {\n let range = [], targetNow = Now.make(target);\n\n if ( this.afterDate(target) ) {\n\n for ( let day = targetNow; ! day.equalDate(this); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, this);\n }\n\n if ( this.beforeDate(target) ) {\n\n for ( let day = this; ! day.equalDate(targetNow); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, targetNow);\n }\n\n if ( range.length === 0 ) {\n range = [this];\n }\n\n return range;\n }\n\n getDatesGrid(start = 1, end = 0)\n {\n let dates = this.getDates(), before = [], after = [];\n\n let prev = Arr.first(dates);\n\n for (let day = prev.day(); prev.day() !== start; day = prev.day()) {\n Arr.prepend(before, prev = prev.prevDate());\n }\n\n let next = Arr.last(dates);\n\n for (let day = next.day(); next.day() !== end; day = next.day()) {\n Arr.append(after, next = next.nextDate());\n }\n\n return Arr.merge(before, dates, after);\n }\n\n getHours(interval = 1)\n {\n return Arr.make(24 / interval).map((val, hour) => {\n return this.clone().hour(hour * interval);\n });\n }\n\n getMinutes(interval = 1)\n {\n return Arr.make(60 / interval).map((val, minute) => {\n return this.clone().minute(minute * interval);\n });\n }\n\n getSeconds(interval = 1)\n {\n return Arr.make(60 / interval).map((val, second) => {\n return this.clone().second(second * interval);\n });\n }\n\n}\n\nexport default Now;\n","import Arr from './array';\nimport Obj from './object';\nimport Str from './string';\nimport Num from './number';\nimport Any from './any';\n\nexport class Dom\n{\n el = null;\n\n static events = [];\n\n constructor(el)\n {\n if ( el instanceof NodeList ) {\n el = Array.prototype.slice.call(el);\n }\n\n this.el = el;\n }\n\n static ready(callback, delay = 0, count = 0)\n {\n let ready = document.readyState !== 'loading';\n\n if ( delay === 0 && (ready === false && count >= delay) ) {\n Dom.find(document).on('DOMContentLoaded', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count <= delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static complete(callback, delay = 0, count = 0)\n {\n let ready = document.readyState === 'complete';\n\n if ( delay === 0 && (ready === false || count < delay) ) {\n Dom.find(document).on('DOMContentLoaded', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count < delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static required(callback, globals = [], timer = 100) {\n\n let matches = Arr.each(globals, (key) => {\n return Obj.has(window, key);\n });\n\n if ( Arr.has(matches, false) ) {\n setTimeout(() => Dom.required(callback, globals, timer), timer);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static find(element)\n {\n let el = typeof element !== 'string' ?\n element : document.querySelectorAll(element);\n\n return new Dom(el);\n }\n\n static make(element, options = {})\n {\n let el = typeof element !== 'string' ?\n element : document.createElement(element);\n\n Obj.assign(el, options);\n\n return new Dom(el);\n }\n\n static location(posx, posy)\n {\n let el = null;\n\n if ( document.elementsFromPoint !== undefined ) {\n el = document.elementsFromPoint(posx, posy);\n }\n\n if ( document.msElementsFromPoint !== undefined ) {\n el = document.msElementsFromPoint(posx, posy);\n }\n\n return new Dom(el);\n }\n\n static title(text = null, glue = ' - ')\n {\n document.title = window.baseTitle !== undefined ?\n text + glue + window.baseTitle : text;\n\n return this;\n }\n\n length()\n {\n return Any.isArray(this.el) ?\n this.el.length : (Any.isEmpty(this.el) ? 0 : 1);\n }\n\n empty()\n {\n return this.length() === 0 || this.el === null;\n }\n\n visible()\n {\n return this.get(0) && this.get(0).is(':visible');\n }\n\n inviewX(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let left = offset.left + (ratio * element.width) -\n viewport.width;\n\n let right = offset.left + element.width -\n (ratio * element.width);\n\n return left <= scroll.left && scroll.left <= right;\n }\n\n inviewY(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let top = offset.top + (ratio * element.height) -\n viewport.height;\n\n let bottom = offset.top + element.height -\n (ratio * element.height);\n\n return top <= scroll.top && scroll.top <= bottom;\n }\n\n is(selector)\n {\n return this.matches(selector);\n }\n\n isParent(selector)\n {\n let el = this.parent();\n\n if ( Any.isEmpty(el) === true ) {\n return false;\n }\n\n return Any.isString(selector) ?\n Dom.find(el).matches(selector) : this.get(0) === selector;\n }\n\n first(offset = 0)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[offset];\n }\n\n last(offset = 1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[els.length - offset];\n }\n\n get(index = -1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return index !== -1 ? els[index] || null : els;\n }\n\n getNot(el)\n {\n for ( let node of this.el ) {\n if ( node !== el ) {\n return Dom.find(node);\n }\n }\n\n return null;\n }\n\n each(callback)\n {\n return Any.isArray(this.el) ? Arr.each(this.el, callback) :\n callback(this.el, 0);\n }\n\n matches(selector)\n {\n let source = this.get(0), target = null;\n\n Dom.find(selector).each((el) => {\n if ( el === source) target = el;\n });\n\n return target !== null;\n }\n\n closest(selector)\n {\n if ( this.get(0) === selector ) {\n return selector;\n }\n\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( Dom.find(el).is(selector) ) {\n return el;\n }\n }\n\n return null;\n }\n\n closestScrollable(fallback = document.body)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( el.scrollHeight > el.clientHeight + 1 ) {\n return el;\n }\n }\n\n return fallback;\n }\n\n contains(selector)\n {\n if ( Any.isString(selector) === true ) {\n return this.find(selector).get(0) !== null;\n }\n\n\n if ( selector instanceof Element === false ) {\n return false;\n }\n\n return this.get(0).contains(selector);\n }\n\n inside(selector)\n {\n return this.closest(selector) !== null;\n }\n\n parent()\n {\n let el = this.get(0);\n\n if ( el === null || el.parentNode === undefined ) {\n return Dom.find(null);\n }\n\n return Dom.find(el.parentNode);\n }\n\n child(selector)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes[0] || null);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes[0] || null);\n }\n\n childs(selector = null, filter = true)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 && filter === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n find(selector)\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) === true ) {\n return Dom.find(null);\n }\n\n let nodes = el.querySelectorAll(selector);\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n where(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n not(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n prepend(val)\n {\n this.each((el) => el.prepend(val));\n\n return this;\n }\n\n prependTo(el)\n {\n Dom.find(el).each((val) => val.prepend(this.el));\n\n return this;\n }\n\n append(val)\n {\n this.each((el) => {\n if ( el.append !== undefined ) {\n el.append(val);\n }\n });\n\n return this;\n }\n\n appendTo(el)\n {\n Dom.find(el).each((val) => {\n if ( val.append !== undefined ) {\n val.append(this.el);\n }\n });\n\n return this;\n }\n\n replace(el)\n {\n // Append node to element\n this.parent().get(0).insertBefore(el, this.get(0));\n\n // Remove existing element\n this.parent().get(0).removeChild(this.get(0));\n\n return this;\n }\n\n previous()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).previousSibling; el !== null; el = el.previousSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n next()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).nextSibling; el !== null; el = el.nextSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n loaded(callback)\n {\n let el = this.get(0), timeout = null;\n\n if ( ! el ) {\n return this;\n }\n\n timeout = setInterval(() => {\n\n if ( ! el.complete || el.naturalWidth === 0 ) {\n return;\n }\n\n callback(el);\n clearInterval(timeout);\n\n }, 100);\n\n return this;\n }\n\n bind(event, callback)\n {\n this.each((el) => el[event] = (e) => callback.call(el, e));\n\n return this;\n }\n\n unbind(event)\n {\n this.each((el) => delete el[event]);\n }\n\n on(event, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.on(e, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n callback.call(e.target, e, e.target);\n };\n\n let selector = null;\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n live(event, selector, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.live(e, selector, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n\n let target = e.srcElement || e.target;\n\n if ( event.match(/^(drag[a-z]*|drop$)/) ) {\n target = Dom.location(e.clientX, e.clientY).get(0);\n }\n\n if ( ! Dom.find(target).inside(selector) ) {\n return;\n }\n\n callback.call(target, e, Dom.find(target).closest(selector));\n };\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n one(event, callback, options = {})\n {\n this.on(event, (e) => {\n callback(e); this.off(event);\n }, options);\n\n return this;\n }\n\n fire(event)\n {\n let callback = new Event(event);\n\n this.each((el) => {\n el.dispatchEvent(callback);\n });\n\n return this;\n }\n\n delayed(event, callback, delay = 0, options = {})\n {\n this.on(event, Any.debounce(callback, delay), options);\n\n return this;\n }\n\n off(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.off(e, selector);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let indexes = Arr.filterIndex(Dom.events, {\n el, event, selector, options\n });\n\n if ( indexes.length === 0 ) {\n return;\n }\n\n Arr.each(indexes.reverse(), (index) => {\n\n el.removeEventListener(event, Dom.events[index].func,\n Dom.events[index].options);\n\n Arr.removeIndex(Dom.events, index);\n });\n });\n\n return this;\n }\n\n unpause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.unpause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.addEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n pause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.pause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.removeEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n observer(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el, {}));\n }\n\n let observer = new MutationObserver((mutation) => {\n this.each((el) => callback(el, mutation));\n });\n\n return (el, options) => {\n observer.observe(Dom.find(el).get(0), options);\n };\n }\n\n observerResize(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el));\n }\n\n let observer = new ResizeObserver(() => {\n this.each((el) => callback(el));\n });\n\n return (el) => {\n observer.observe(Dom.find(el).get(0));\n }\n }\n\n value(val)\n {\n this.each((el) => el.value = val);\n\n return this;\n }\n\n html(html)\n {\n this.each((el) => el.innerHTML = html);\n\n return this;\n }\n\n computed(key = null, fallback = null)\n {\n let el = this.get(0);\n\n if ( el === null || el === window || el === document) {\n return key !== null ? fallback : {};\n }\n\n let computed = getComputedStyle(el);\n\n return key !== null ? Obj.get(computed, key, fallback) : computed;\n }\n\n css(vals = undefined)\n {\n if ( vals === null ) {\n return this.attr('style', null);\n }\n\n let styles = Str.objectify(this.attr('style') || '');\n\n if ( vals === undefined ) {\n return styles;\n }\n\n this.attr('style', Obj.assign({}, styles, Str.objectify(vals)));\n }\n\n class(vals)\n {\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n this.attr('class', vals.join(' '));\n }\n\n hasClass(vals)\n {\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n return Arr.intersect(vals, cls).length !== 0;\n }\n\n addClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).addClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.add(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n removeClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).removeClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.remove(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n toggleClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).toggleClass(vals));\n }\n\n this.hasClass(vals) ? this.removeClass(vals) : this.addClass(vals);\n\n return this;\n }\n\n attr(attr, val = undefined)\n {\n if ( this.empty() ) {\n return null;\n }\n\n if ( Any.isPlain(attr) ) {\n return Obj.each(attr, (value, key) =>\n this.attr(key, value));\n }\n\n let res = this.get(0).getAttribute(attr);\n\n if ( val === undefined ) {\n return res;\n }\n\n if ( val === null ) {\n this.get(0).removeAttribute(attr);\n return res;\n }\n\n if ( Any.isPlain(val) ) {\n val = Str.options(val);\n }\n\n this.get(0).setAttribute(attr, val);\n return res;\n }\n\n actual(callback, val = null)\n {\n let style = this.attr('style');\n\n this.attr('style', val);\n\n let result = callback.call(this.get(0), this.get(0));\n\n this.attr('style', style);\n\n return result;\n }\n\n loopParent(callback, target = null)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n\n if ( Dom.find(el).computed('position') === 'fixed' ) {\n return true;\n }\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n loopOffsetParent(callback, target = document.body)\n {\n for (let el = this.get(0); el !== null && el.offsetParent !== undefined; el = el.offsetParent) {\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n offset(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n this.loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n source.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n source.left += Num.float(el.offsetLeft);\n }\n\n });\n\n source.bottom = Dom.find(document.body).scrollHeight() -\n source.top - this.height();\n\n source.right = Dom.find(document.body).scrollWidth() -\n source.left - this.width();\n\n let target = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n Dom.find(boundry).loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n target.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n target.left += Num.float(el.offsetLeft);\n }\n\n });\n\n target.bottom = Dom.find(document.body).scrollHeight() -\n target.top - Dom.find(boundry || document.body).scrollHeight();\n\n target.right = Dom.find(document.body).scrollWidth() -\n target.left - Dom.find(boundry || document.body).scrollWidth();\n\n let offset = {\n top: source.top - target.top,\n bottom: source.bottom - target.bottom,\n left: source.left - target.left,\n right: source.right - target.right\n };\n\n return key !== null ? Obj.get(offset, key, 0) : offset;\n }\n\n offsetTop(boundry = null)\n {\n return this.offset('top', boundry);\n }\n\n offsetBottom(boundry = null)\n {\n return this.offset('bottom', boundry);\n }\n\n offsetLeft(boundry = null)\n {\n return this.offset('left', boundry);\n }\n\n offsetRight(boundry = null)\n {\n return this.offset('right', boundry);\n }\n\n scroll(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0\n };\n\n this.loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n source.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n source.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n source.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n source.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let target = {\n top: 0, left: 0\n };\n\n Dom.find(boundry).loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n target.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n target.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n target.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n target.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let scroll = {\n top: source.top - target.top,\n left: source.left - target.left\n };\n\n return key !== null ? Obj.get(scroll, key, 0) : scroll;\n }\n\n scrollTop(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('top', boundry);\n }\n\n this.each((el) => el.scrollTop = val);\n\n return this;\n }\n\n scrollTopGlobal()\n {\n return this.scroll('top', document.body);\n }\n\n scrollLeft(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('left', boundry);\n }\n\n this.each((el) => el.scrollLeft = val);\n\n return this;\n }\n\n scrollLeftGlobal()\n {\n return this.scroll('left', document.body);\n }\n\n margin(key = null)\n {\n let computedStyle = this.computed();\n\n let margin = {\n top: Num.float(computedStyle.marginTop),\n left: Num.float(computedStyle.marginLeft),\n bottom: Num.float(computedStyle.marginBottom),\n right: Num.float(computedStyle.marginRight),\n } ;\n\n return key !== null ? Obj.get(margin, key, 0) : margin;\n }\n\n padding(key = null)\n {\n let computedStyle = this.computed();\n\n let padding = {\n top: Num.float(computedStyle.paddingTop),\n left: Num.float(computedStyle.paddingLeft),\n bottom: Num.float(computedStyle.paddingBottom),\n right: Num.float(computedStyle.paddingRight),\n };\n\n return key !== null ? Obj.get(padding, key, 0) : padding;\n }\n\n height()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerHeight;\n }\n\n return el.offsetHeight;\n }\n\n clientHeight()\n {\n return Any.integer(this.computed('height', '0px').replace(\"px\", \"\"));\n }\n\n scrollHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollHeight;\n }\n\n innerHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.height() - this.padding('top') -\n this.padding('bottom');\n }\n\n realHeight(styles = {})\n {\n let height = 'auto';\n\n this.actual(() => height = this.height(), styles);\n\n return height;\n }\n\n evaluateHeight(target = null, auto = true)\n {\n if ( Any.isString(target) ) {\n target = Dom.find(target);\n }\n\n if ( target === null ) {\n target = this.parent();\n }\n\n let height = 'auto';\n\n this.actual(() => {\n height = target.innerHeight();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ height: height + 'px' });\n }\n\n return height;\n }\n\n width()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerWidth;\n }\n\n return el.offsetWidth;\n }\n\n clientWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return Any.integer(this.computed('width', '0px').replace(\"px\", \"\"));\n }\n\n scrollWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollWidth;\n }\n\n innerWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.width() - this.padding('left') -\n this.padding('right');\n }\n\n realWidth(styles = {})\n {\n let width = 0;\n\n this.actual(() => width = this.width(), styles);\n\n return width;\n }\n\n evaluateWidth(target = null, auto = true)\n {\n if ( target === null ) {\n target = this.parent();\n }\n\n let width = 'auto';\n\n this.actual(() => {\n width = target.innerWidth();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ width: width + 'px' });\n }\n\n return width;\n }\n\n}\n\nexport default Dom;\n","import { Str, Arr, Obj, Num, Any, Event } from \"../index\";\n\nexport class Cookie\n{\n /**\n * Pattern to get the cookie desired\n *\n * @type {string}\n */\n static pattern = '(^|;)\\\\s*{key}\\\\s*=\\\\s*([^;]+)';\n\n /**\n * Get cookie from current session\n *\n * @param {string} key\n * @param {*} fallback\n * @param {'string','boolean','float','integer','object','array'} decode\n * @returns {*}\n */\n static get(key, fallback = null, decode = 'string')\n {\n let pattern = this.pattern\n .replace('{key}', key);\n\n let result = document.cookie\n .match(pattern);\n\n if ( ! result ) {\n return fallback;\n }\n\n let plain = result[2].replace(/\\{:\\}/g, ';');\n\n if ( decode === 'boolean' ) {\n return Any.boolean(plain);\n }\n\n if ( decode === 'float' ) {\n return Any.float(plain);\n }\n\n if ( decode === 'integer' ) {\n return Any.integer(plain);\n }\n\n if ( decode === 'object' ) {\n return Str.objectify(plain, 'params', false);\n }\n\n if ( decode === 'array' ) {\n return Str.objectify(plain, 'params', true);\n }\n\n return plain;\n }\n\n /**\n * Set cookie in current session\n *\n * @param {string} key\n * @param {*} value\n * @param {integer} expire\n * @param {object} options\n */\n static set(key, value, expire = null, options = {})\n {\n let date = new Date;\n\n if ( expire !== null ) {\n date.setTime(Date.now() + (expire || 0));\n }\n\n if ( Date.now() !== date.getTime() ) {\n options.expires = date.toUTCString();\n }\n\n if ( ! options.path ) {\n options.path = '/';\n }\n\n if ( Any.isObject(value) ) {\n value = Str.stringify(value, 'params');\n }\n\n if ( Any.isString(value) ) {\n value = value.replace(/;/g, '{:}');\n }\n\n let plain = `${key}=${value};`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n /**\n * Forget cookie from current session\n *\n * @param {string} key\n * @param {object} options\n */\n static forget(key, options = {})\n {\n if ( ! options.path ) {\n options.path = '/';\n }\n\n options.expires = 'Thu, 01 Jan 1970 00:00:01 GMT';\n\n let plain = `${key}=null;`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n}\n\nexport default Cookie;\n","import { Arr, Obj, Num, Any, Event } from \"../index\";\n\nexport class Data\n{\n static data = Obj.get(window, '_data', {});\n\n static has(input)\n {\n return Obj.has(this.data, Arr.first(input));\n }\n\n static set(input, value)\n {\n let clone = value, key = Arr.first(input);\n\n if ( Any.isEqual(Obj.get(this.data, key), clone) ) {\n return;\n }\n\n Obj.set(this.data, key, clone);\n\n Event.fire('store:' + key, clone, key);\n }\n\n static unset(input)\n {\n let key = Arr.first(input);\n\n Obj.unset(this.data, key);\n }\n\n static get (input, fallback = null, forceSet = false)\n {\n let key = Arr.first(input);\n\n if ( ! Obj.has(this.data, key) && ! forceSet ) {\n return fallback;\n }\n\n if ( Obj.has(this.data, key) && forceSet ) {\n Obj.set(this.data, key, fallback);\n }\n\n let value = Obj.get(this.data, key, fallback);\n\n if ( ! Any.isPlain(value) ) {\n return value;\n }\n\n return Obj.clone(value);\n }\n\n static find (input, value, fallback = null)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return fallback;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return fallback;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: value.id\n });\n\n if ( index === -1 ) {\n return fallback;\n }\n\n return this.get(key + '.' + index);\n }\n\n static replace (input, value)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: Num.int(value.id)\n });\n\n if ( index === -1 ) {\n return;\n }\n\n this.set(key + '.' + index, value);\n }\n\n static add (input, ...args)\n {\n this.set(input, Arr.concat(this.get(input, []), args));\n }\n\n static remove (input, ...args)\n {\n this.set(input, Arr.diff(this.get(input, []), args));\n }\n\n}\n\nexport default Data;\n","import { Str, Obj, Dom, Any } from \"../index\";\n\nexport class Element\n{\n /**\n * Prefix for attribute selector.\n */\n static prefix = 'js';\n\n /**\n * Mounted identifier.\n */\n static mount = 'mount';\n\n /**\n * Instance storage.\n */\n static inis = {};\n\n /**\n * Bind a class on selector.\n */\n static alias(key, instance)\n {\n Obj.set(this.inis, key, instance);\n\n return this;\n }\n\n static bind(key, selector, options = {})\n {\n let el = Dom.find(selector);\n\n // Add mounted class\n el.addClass(\n this.getPrefix(key)\n );\n\n let instance = Obj.get(this.inis, key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = new instance(\n el.get(0), options\n );\n\n return cb.bind !== undefined ?\n cb.bind() : cb;\n };\n\n // Bind option\n Dom.ready(() => callback.call({}, el, options));\n\n return this;\n }\n\n static unbind()\n {\n let el = Dom.find(selector);\n\n // Add mounted class\n el.removeClass(\n this.getPrefix(key)\n );\n\n let instance = Obj.get(this.inis, key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) =>\n new instance(el.get(0), options).unbind();\n\n // Bind option\n callback.call({}, el, {});\n\n return this;\n }\n\n /**\n * Bind callback on selector.\n */\n static observe(key)\n {\n let selector = this.getPrefix(key);\n\n let options = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [selector]\n };\n\n Dom.find(document.body).observer(() => {\n\n let mounted = Element.getPrefix(key);\n\n Dom.find('[' + selector + ']:not(.' + mounted + ')').each((el) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n this.bind(key, el, options)\n });\n\n })(document.body, options);\n\n return this;\n }\n\n\n\n /**\n * Return prefix with key.\n */\n static getPrefix(key)\n {\n return key ? this.prefix + '-' + key : this.prefix;\n }\n\n /**\n * Set prefix to given value.\n */\n static setPrefix(prefix)\n {\n this.prefix = prefix;\n }\n\n}\n\nexport default Element;\n","import { Arr, Any } from \"../index\";\n\nexport class Event\n{\n static events = [];\n\n static bind(name, callback, options = {}, paused = false)\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) =>\n this.bind(val, callback, options, paused));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n this.events = Arr.push(this.events, {\n name, callback, options, paused\n });\n\n return this;\n }\n\n static unbind(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unbind(val, options));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n Arr.remove(this.events, { name, options });\n\n return this;\n }\n\n static fire(name, ...args)\n {\n let events = this.events.filter((item) => {\n return item.name === name;\n });\n\n Arr.each(events, (event) => {\n if ( event.paused === false ) {\n event.callback.call({}, ...args);\n }\n });\n\n return this;\n }\n\n static pause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.pause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n return this;\n }\n\n static unpause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unpause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = false;\n\n return this;\n }\n\n}\n\nexport default Event;\n","import { Obj } from \"../index\";\n\nexport class Locale\n{\n /**\n * Get locales from window if present.\n */\n static locales = Obj.get(window, '_locales', {});\n\n static pickByCount(splits, count)\n {\n let splitLength = splits.length;\n\n if ( splitLength === 3 && count === 0 ) {\n return splits[0];\n }\n\n if ( splitLength === 3 && count === 1 ) {\n return splits[1];\n }\n\n if ( splitLength === 3 && count >= 2 ) {\n return splits[2];\n }\n\n if ( splitLength === 2 && count === 1 ) {\n return splits[0];\n }\n\n if ( splitLength === 2 && count !== 1 ) {\n return splits[1];\n }\n\n return splits[0];\n }\n\n static has(key)\n {\n return Obj.has(Locale.locales, key);\n }\n\n static get(key, fallback = null)\n {\n return Obj.get(Locale.locales, key, fallback || key);\n }\n\n static set(key, value)\n {\n Obj.set(Locale.locales, key, value);\n\n return this;\n }\n\n static trans(key, values = {})\n {\n let message = Obj.get(Locale.locales, key, key);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n static choice(key, count = 0, values = {})\n {\n let splits = Obj.get(Locale.locales, key, key).split('|');\n\n if ( typeof values.count === 'undefined' ) {\n values = Obj.assign({ count: count }, values);\n }\n\n let message = Locale.pickByCount(splits, count);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n}\n\nexport default Locale;\n","import { Obj, Arr, Any, Dom, UUID } from \"../index\";\n\n/**\n * @const {object} google\n */\n\nexport default class Map\n{\n map = null;\n\n static mapStyle = [];\n\n markers = {};\n\n static markerStyles = {};\n\n cluster = null;\n\n clusterFilter = null;\n\n clusterOptions = {};\n\n static hideMarkers = true;\n\n static closeInfoWindows = true;\n\n constructor(el, options = {})\n {\n if ( ! global.google ) {\n return console.error('Google Maps is not loaded.');\n }\n let center = Obj.only(options, ['lat', 'lng']);\n\n if ( ! Obj.has(options, 'styles') ) {\n options.styles = Map.mapStyle;\n }\n\n options = Obj.assign({ gestureHandling: 'cooperative', scrollwheel: null, zoom: 12, center },\n Obj.except(options, ['lat', 'lng']));\n\n this.map = new global.google.maps.Map(Dom.find(el).get(0), options)\n }\n\n static setMapStyle(style = [])\n {\n Map.mapStyle = style;\n\n return this;\n }\n\n static setMarkerStyle(key, style = {}, extra = {})\n {\n if ( ! Obj.has(style, 'default') ) {\n return console.error('Marker style requires default property')\n }\n\n if ( ! Obj.has(style, 'width') ) {\n style.width = 45;\n }\n\n if ( ! Obj.has(style, 'height') ) {\n style.height = 45;\n }\n\n let final = {};\n\n // Marker size\n let size = new global.google.maps.Size(style.width, style.height);\n\n // Point position\n let origin = new global.google.maps.Point(0, 0);\n\n // Point position\n let anchor = new global.google.maps.Point(style.width / 2, style.height);\n\n final.default = {\n url: style.default, size: size, origin: origin, anchor: anchor, scaledSize: size\n };\n\n if ( Obj.has(style, 'hover') ) {\n final.hover = Obj.assign({}, final.default, { url: style.hover });\n }\n\n if ( ! Obj.has(final, 'hover') ) {\n final.hover = final.default;\n }\n\n if ( Obj.has(style, 'active') ) {\n final.active = Obj.assign({}, final.default, { url: style.active });\n }\n\n if ( ! Obj.has(final, 'active') ) {\n final.active = final.default;\n }\n\n Obj.each(extra, (value, prop) => {\n final[prop] = Obj.assign({}, final.default, { url: value });\n });\n\n Obj.set(Map.markerStyles, key, final);\n\n return this;\n }\n\n clusterMarkers(options = {}, filter = null, allowCreate = true)\n {\n if ( ! this.cluster && ! allowCreate ) {\n return;\n }\n\n if ( typeof global.MarkerClusterer === \"undefined\" ) {\n return console.error('Google Maps Cluster library not laoded!');\n }\n\n if ( ! Obj.has(options, 'imagePath') && ! Obj.has(options, 'styles') ) {\n options.imagePath = '//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';\n }\n\n if ( this.cluster ) {\n this.cluster.clearMarkers();\n }\n\n if ( Any.isFunction(filter) ) {\n this.clusterFilter = filter;\n }\n\n let markers = Arr.filter(this.markers, (item) => {\n\n let visible = this.getMarkerVisibility(item.key);\n\n if ( ! Any.isFunction(this.clusterFilter) ) {\n return visible;\n }\n\n return visible && this.clusterFilter.call(this, item);\n });\n\n this.cluster = new global.MarkerClusterer(this.map, Arr.each(markers, (item) => item.marker),\n this.clusterOptions = options);\n }\n\n styleMarker(key, type = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( Any.isEmpty(type) ) {\n type = this.getInfoVisibility(key) ? 'active' : 'default';\n }\n\n if ( ! Obj.has(Map.markerStyles, [item.style, type]) ) {\n return;\n }\n\n item.marker.setIcon(Obj.get(Map.markerStyles, [item.style, type]));\n }\n\n getMarker(key)\n {\n return Obj.get(this.markers, key);\n }\n\n getMarkerVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getVisible();\n }\n\n getMarkerPositon(key, fallback = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getPosition();\n }\n\n toggleMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.marker.getVisible() ) {\n return this.hideMarker(key);\n }\n\n return this.showMarker(key);\n }\n\n showMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let hidden = ! item.marker.getVisible();\n\n if ( hidden ) {\n item.marker.setVisible(true);\n }\n\n return hidden;\n }\n\n hideMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let visible = !! item.marker.getVisible();\n\n if ( visible ) {\n item.marker.setVisible(false);\n }\n\n this.closeInfo(key);\n\n return visible;\n }\n\n enterMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'hover';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n leaveMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'default';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n getInfoVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) || ! Obj.has(item, 'info') ) {\n return fallback;\n }\n\n return !! item.info.getMap();\n }\n\n toggleInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.info.getMap() ) {\n return this.closeInfo(key);\n }\n\n return this.openInfo(key);\n }\n\n openInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return true;\n }\n\n let hidden = ! item.info.getMap();\n\n if ( Map.closeInfoWindows ) {\n Obj.each(Any.keys(this.markers), this.closeInfo.bind(this));\n }\n\n if ( hidden ) {\n item.info.open(this.map, item.marker);\n }\n\n this.styleMarker(key, 'active');\n\n return hidden;\n }\n\n closeInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return false;\n }\n\n let visible = !! item.info.getMap();\n\n if ( visible ) {\n item.info.close();\n }\n\n this.styleMarker(key, 'default');\n\n return visible;\n }\n\n createMarker(key = null, options = {})\n {\n if ( Any.isEmpty(key) ) {\n key = UUID();\n }\n\n let item = { key };\n\n item.extras = Obj.except(options, [\n 'map', 'position', 'lat', 'lng', 'html', 'style'\n ]);\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'positon') ) {\n options.position = Obj.only(options, ['lat', 'lng']);\n }\n\n if ( Obj.has(options, 'style') ) {\n item.style = options.style;\n }\n\n item.marker = new global.google.maps.Marker(options);\n\n Obj.set(this.markers, key, item);\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n if ( ! Obj.has(options, 'html') ) {\n return Obj.get(this.markers, key);\n }\n\n if ( ! Obj.has(item, 'style') ) {\n item.style = 'default';\n }\n\n // Style marker\n this.styleMarker(key);\n\n // Add marker hover style\n item.marker.addListener('mouseover', () => this.enterMarker(key));\n\n // Add marker default style\n item.marker.addListener('mouseout', () => this.leaveMarker(key));\n\n item.info = new global.google.maps.InfoWindow({\n content: '<div class=\"gw-i-html\">' + Obj.get(options, 'html') + '</div>'\n });\n\n item.marker.addListener('click', () => this.toggleInfo(key));\n item.info.addListener('closeclick', () => this.closeInfo(key));\n\n Obj.set(this.markers, key, item);\n\n return Obj.get(this.markers, key);\n }\n\n setMarkerPosition(key, options = {})\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n item.marker.setPosition(options);\n }\n\n setMarkerByAddress(key, address)\n {\n return this.getLocationByAddress(address, (res) => {\n this.setMarkerPosition(key, Obj.get(res, '0.geometry.location', {}));\n });\n }\n\n getLocationByAddress(address, callback = null)\n {\n let geocoderService = new global.google.maps.Geocoder();\n\n let geocoderPromise = (resolve, reject) => {\n\n let geocoderResult = (response, status) => {\n\n if ( status === 'OK' ) {\n callback(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n geocoderService.geocode({ address }, geocoderResult);\n };\n\n return new Promise(geocoderPromise);\n }\n\n showMarkers(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n if ( Map.hideMarkers ) {\n Obj.each(Any.keys(this.markers), this.hideMarker.bind(this));\n }\n\n Obj.each(markers, (item) => this.showMarker(item.key));\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n return this;\n }\n\n getMarkerBoundry(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n let boundry = new global.google.maps.LatLngBounds();\n\n Obj.each(markers, (item) => {\n if ( item.marker.getVisible() ) {\n boundry.extend(item.marker.getPosition());\n }\n });\n\n return boundry;\n }\n\n focusMarkers(filter = null, maxZoom = 14)\n {\n let boundry = this.getMarkerBoundry(filter);\n\n // Center map to boundry\n this.map.setCenter(boundry.getCenter());\n\n // Adapt viewport to boundry\n this.map.fitBounds(boundry, 15);\n\n if ( this.map.getZoom() > maxZoom ) {\n this.map.setZoom(maxZoom);\n }\n\n return this;\n }\n\n renderDirections(options)\n {\n // Get directions service\n let directionsService = new global.google.maps.DirectionsService();\n\n // Get directions renderer\n let directionsRenderer = new global.google.maps.DirectionsRenderer();\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'travelMode') ) {\n options.travelMode = 'DRIVING';\n }\n\n // Set directions map\n directionsRenderer.setMap(options.map);\n\n if ( Obj.has(options, 'panel') && ! Dom.find(options.panel).empty() ) {\n directionsRenderer.setPanel(Dom.find(options.panel).get(0));\n }\n\n options = Obj.only(options, ['origin', 'destination', 'travelMode']);\n\n let directionsPromise = (resolve, reject) => {\n\n let directionsResult = (response, status) => {\n\n if ( status === 'OK' ) {\n directionsRenderer.setDirections(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n directionsService.route(options, directionsResult);\n };\n\n return new Promise(directionsPromise);\n }\n\n}\n","import { Arr } from \"../index\";\n\nexport default class Queue\n{\n queue = [];\n stopQueue = false;\n activeQueue = false;\n\n constructor(queue = [])\n {\n this.queue = queue;\n }\n\n handler(queue, index)\n {\n return () => queue.length - 1 > index ++ && this.stopQueue === false ?\n queue[index](this.handler(queue, index)) : () => {};\n }\n\n stop()\n {\n this.stopQueue = true;\n this.activeQueue = false;\n\n this.queue = [];\n\n return this;\n }\n\n clear()\n {\n this.queue = [];\n\n return this;\n }\n\n add(cb)\n {\n this.queue.push(cb);\n\n return this;\n }\n\n run()\n {\n let instance = new Queue(this.queue);\n\n instance.add(() => {\n instance.activeQueue = false;\n });\n\n if ( instance.queue.length !== 0 ) {\n Arr.first(instance.queue)(instance.handler(instance.queue.slice(0), 0));\n }\n\n return instance;\n }\n\n active()\n {\n return this.activeQueue;\n }\n\n}\n","import { Obj, Str, Any } from \"../index\";\n\nexport default class Route\n{\n static routes = Obj.get(window, '_routes', {});\n\n static set (key, value)\n {\n this.routes[key] = value;\n }\n\n static get (key, values = null, params = null)\n {\n let route = key.match(/^https?:\\/\\//) ? key : this.routes[key] || key;\n\n Obj.each(values || {}, (value, key) => {\n route = route.replace(new RegExp('{' + key + '\\\\?*}', 'g'), value);\n });\n\n return route + (! Any.isEmpty(params) ? ('?' + Str.params(params)) : '');\n }\n\n static goto (key, values = null, params = null)\n {\n window.location.href = this.get(key, values, params);\n }\n\n}\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n"],"sourceRoot":""}
|
1
|
+
{"version":3,"sources":["webpack://Pico/webpack/universalModuleDefinition","webpack://Pico/webpack/bootstrap","webpack://Pico/./src/index.js","webpack://Pico/./src/utility/any.js","webpack://Pico/./src/utility/array.js","webpack://Pico/./src/utility/number.js","webpack://Pico/./src/utility/object.js","webpack://Pico/./src/utility/string.js","webpack://Pico/external {\"root\":\"moment\",\"commonjs2\":\"moment\",\"commonjs\":\"moment\",\"amd\":\"moment\"}","webpack://Pico/./src/utility/now.js","webpack://Pico/./src/utility/dom.js","webpack://Pico/./src/library/cookie.js","webpack://Pico/./src/library/data.js","webpack://Pico/./src/library/element.js","webpack://Pico/./src/library/event.js","webpack://Pico/./src/library/locale.js","webpack://Pico/./src/library/map.js","webpack://Pico/./src/library/queue.js","webpack://Pico/./src/library/route.js","webpack://Pico/./node_modules/uuid/index.js","webpack://Pico/(webpack)/buildin/global.js","webpack://Pico/./node_modules/uuid/lib/rng-browser.js","webpack://Pico/./node_modules/uuid/lib/bytesToUuid.js","webpack://Pico/./node_modules/uuid/v1.js","webpack://Pico/./node_modules/uuid/v4.js"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__6__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Pico","UUID","Arr","Obj","Num","Str","Now","Any","Dom","Cookie","Data","Element","Event","Locale","Map","Queue","Route","global","IE","navigator","userAgent","match","WIN","pi","val","this","isNumber","isString","isBool","isPlain","isArray","keys","length","obj","Node","isEqualNode","is","isObject","constructor","Array","Date","String","empty","isEmpty","string","parseInt","parseFloat","result","yes","no","format","make","push","callback","args","setTimeout","delay","ref","debounce","undefined","__debouce","clearTimeout","throttle","rate","latest","now","form","FormData","appendField","values","each","index","inner","merge","splice","append","count","map","fill","arr","fallback","isFunction","sort","a","b","integer","va","toLowerCase","vb","filter","filterIndex","includes","first","findIndex","finder","slice","vals","indexOf","concat","clone","diff","reduce","chunk","res","accumulator","path","cascade","recursive","num","replace","Math","ceil","round","floor","fixed","toFixed","start","end","random","base","pow","acc","cord1","cord2","miles","defaultCord","lat","lng","assign","radlat1","PI","radlat2","theta","radtheta","dist","sin","cos","acos","decimal","thousand","toString","totals","minals","splits","split","reverse","join","nested","shift","unset","has","matches","entries","toUpperCase","slug","slugify","ucfirst","targets","source","RegExp","charAt","search","lower","decimals","size","units","unit","limit","bool","fromParams","fromOptions","JSON","parse","params","options","stringify","quota","regex","convertFromOptions","attr","real","set","convertFromParams","date","toDate","initialDate","moment","second","add","minute","hour","day","subtract","month","year","isValid","force","valid","before","code","after","equal","fromDate","subDecades","addDecades","prevMonth","decade","lastDate","target","range","targetNow","afterDate","equalDate","nextDate","beforeDate","dates","getDates","prev","prepend","prevDate","next","last","interval","el","NodeList","ready","document","readyState","find","on","globals","timer","required","element","querySelectorAll","createElement","posx","posy","elementsFromPoint","msElementsFromPoint","text","glue","title","baseTitle","ratio","viewport","width","height","scroll","offset","left","right","top","bottom","selector","parent","els","node","parentNode","body","scrollHeight","clientHeight","contains","closest","nodes","childNodes","nodeType","insertBefore","removeChild","previousSibling","nextSibling","timeout","setInterval","complete","naturalWidth","clearInterval","event","e","paused","func","events","addEventListener","live","srcElement","location","clientX","clientY","inside","off","dispatchEvent","indexes","removeEventListener","removeIndex","unpause","pause","initial","observer","MutationObserver","mutation","observe","ResizeObserver","html","innerHTML","computed","getComputedStyle","styles","objectify","cls","intersect","addClass","removeClass","remove","toggleClass","hasClass","getAttribute","removeAttribute","setAttribute","style","offsetParent","boundry","loopOffsetParent","offsetTop","offsetLeft","scrollWidth","loopParent","scrollTop","pageYOffset","scrollLeft","pageXOffset","computedStyle","margin","marginTop","marginLeft","marginBottom","marginRight","padding","paddingTop","paddingLeft","paddingBottom","paddingRight","innerHeight","offsetHeight","actual","auto","display","css","innerWidth","offsetWidth","decode","pattern","cookie","plain","expire","setTime","getTime","expires","toUTCString","input","data","isEqual","fire","forceSet","id","instance","inis","getPrefix","console","error","cb","unbind","childList","subtree","attributes","attributeFilter","mounted","prefix","item","splitLength","locales","message","pickByCount","google","center","only","mapStyle","gestureHandling","scrollwheel","zoom","except","maps","extra","final","Size","origin","Point","anchor","url","scaledSize","hover","active","prop","markerStyles","allowCreate","cluster","MarkerClusterer","imagePath","clearMarkers","clusterFilter","markers","visible","getMarkerVisibility","marker","clusterOptions","type","getInfoVisibility","setIcon","getVisible","getPosition","hideMarker","showMarker","hidden","setVisible","closeInfo","styleMarker","info","getMap","openInfo","closeInfoWindows","open","close","extras","position","Marker","clusterMarkers","addListener","enterMarker","leaveMarker","InfoWindow","content","toggleInfo","setPosition","address","getLocationByAddress","setMarkerPosition","geocoderService","Geocoder","geocoderPromise","resolve","reject","geocode","response","status","Promise","hideMarkers","LatLngBounds","extend","maxZoom","getMarkerBoundry","setCenter","getCenter","fitBounds","getZoom","setZoom","directionsService","DirectionsService","directionsRenderer","DirectionsRenderer","travelMode","setMap","panel","setPanel","route","setDirections","queue","stopQueue","handler","activeQueue","routes","href","v1","v4","uuid","g","Function","getRandomValues","crypto","msCrypto","rnds8","Uint8Array","rnds","byteToHex","substr","buf","bth","_nodeId","_clockseq","rng","bytesToUuid","_lastMSecs","_lastNSecs","clockseq","seedBytes","msecs","nsecs","dt","Error","tl","tmh","ii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=== 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"moment\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"moment\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Pico\"] = factory(require(\"moment\"));\n\telse\n\t\troot[\"Pico\"] = factory(root[\"moment\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__6__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 21);\n","\nimport Arr from \"./utility/array\";\nexport { Arr };\n\nimport Obj from \"./utility/object\";\nexport { Obj };\n\nimport Num from \"./utility/number\";\nexport { Num };\n\nimport Str from \"./utility/string\";\nexport { Str };\n\nimport Now from \"./utility/now\";\nexport { Now };\n\nimport Any from \"./utility/any\";\nexport { Any };\n\nimport Dom from \"./utility/dom\";\nexport { Dom };\n\nimport Cookie from \"./library/cookie\";\nexport { Cookie };\n\nimport Data from \"./library/data\";\nexport { Data };\n\nimport Element from \"./library/element\";\nexport { Element };\n\nimport Event from \"./library/event\";\nexport { Event };\n\nimport Locale from \"./library/locale\";\nexport { Locale };\n\nimport Map from \"./library/map\";\nexport { Map };\n\nimport Queue from \"./library/queue\";\nexport { Queue };\n\nimport Route from \"./library/route\";\nexport { Route };\n\nimport { v4 as UUID } from 'uuid'\nexport { UUID };\n\nexport const Pico = {\n\n UUID: UUID,\n\n Arr: Arr,\n Obj: Obj,\n Num: Num,\n Str: Str,\n Now: Now,\n Any: Any,\n Dom: Dom,\n\n Cookie: Cookie,\n Data: Data,\n Element: Element,\n Event: Event,\n Locale: Locale,\n Map: Map,\n Queue: Queue,\n Route: Route,\n}\n\n/**\n * @const global\n */\n\nif ( typeof global.IE === 'undefined' ) {\n global.IE = !! global.navigator.userAgent.match(/Edge\\/|Trident\\/|MSIE /);\n}\n\nif ( typeof global.WIN === 'undefined' ) {\n global.WIN = !! global.navigator.userAgent.match(/Windows/);\n}\n\nif ( typeof global.pi === 'undefined' ) {\n global.pi = Pico;\n}\n\nexport default Pico;\n","import { Arr, Obj, Now } from \"../index\";\n\nexport class Any\n{\n static isEmpty(val)\n {\n if ( this.isNumber(val) ) {\n return false;\n }\n\n if ( this.isString(val) ) {\n return val === '';\n }\n\n if ( this.isBool(val) ) {\n return val === null;\n }\n\n if ( this.isPlain(val) ) {\n return Object.keys(val).length === 0;\n }\n\n if ( this.isArray(val) ) {\n return Object.keys(val).length === 0;\n }\n\n return val === null || val === undefined;\n }\n\n static isNull(val)\n {\n return val === null;\n }\n\n static isEqual(obj, val)\n {\n if ( obj instanceof Node ) {\n return obj.isEqualNode(val);\n }\n\n if ( this.isPlain(obj) ) {\n return Object.is(obj, val)\n }\n\n if ( this.isArray(obj) ) {\n return Object.is(obj, val)\n }\n\n return obj === val;\n }\n\n static isString(val)\n {\n return typeof val === 'string';\n }\n\n static isNumber(val)\n {\n return typeof val === 'number' ||\n (typeof val === 'string' && val.match(/^\\-?[0-9]+$/));\n }\n\n static isBool(val)\n {\n return typeof val === 'boolean' ||\n (typeof val === 'string' && val.match(/^(true|false)$/));\n }\n\n static isFunction(val)\n {\n return typeof val === 'function';\n }\n\n static isObject(val)\n {\n return val !== null && typeof val === 'object';\n }\n\n static isPlain(val)\n {\n return this.isObject(val) && val.constructor === Object;\n }\n\n static isArray(val)\n {\n return this.isObject(val) && val.constructor === Array;\n }\n\n static isDate(val)\n {\n return val instanceof Date;\n }\n\n static string(val)\n {\n return String(val);\n }\n\n static convertString(val, empty = '-')\n {\n return this.isEmpty(val) ? empty : this.string(val);\n }\n\n static integer(val)\n {\n return parseInt(val);\n }\n\n static float(val)\n {\n return parseFloat(val);\n }\n\n static bool(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static boolean(val)\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null ? false : result.length !== 0;\n }\n\n static convertBool(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertBoolean(val, yes = 'Yes', no = 'No')\n {\n let result = String(val).match(/^(true|1|yes|ja)$/i);\n\n return result === null || result.length === 0 ? no : yes;\n }\n\n static convertDatetime(val, format = 'YYYY-MM-DD hh:mm:ss', empty = '-')\n {\n if ( Any.isEmpty(val) === true ) {\n return empty;\n }\n\n return Now.make(val).format(format);\n }\n\n static vals(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(obj[key]);\n }\n }\n\n return keys;\n }\n\n static keys(obj)\n {\n let keys = [];\n\n for ( let key in obj ) {\n if ( obj.hasOwnProperty(key) ) {\n keys.push(key);\n }\n }\n\n return keys;\n }\n\n static async(callback, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, 0);\n\n return this;\n }\n\n static delay(callback, delay = 100, ...args)\n {\n setTimeout(function() {\n callback(...args);\n }, delay);\n\n return this;\n }\n\n static debounce(callback, delay = 100, ref = null)\n {\n let debounce = null;\n\n if ( ! Any.isEmpty(ref) ) {\n debounce = ref();\n }\n\n if ( ref !== null && ref.__debouce !== undefined ) {\n debounce = ref.__debouce;\n }\n\n return (...args) => {\n\n clearTimeout(debounce);\n\n debounce = setTimeout(() => {\n callback(...args);\n }, delay);\n\n if ( ! Any.isEmpty(ref) ) {\n ref(debounce);\n }\n };\n }\n\n static throttle(callback, delay = 100, ref = null)\n {\n let throttle = null;\n\n if ( ! Any.isEmpty(ref) ) {\n throttle = ref();\n }\n\n return (...args) => {\n\n if ( throttle === true ) {\n return;\n }\n\n throttle = true;\n\n if ( ! Any.isEmpty(ref) ) {\n ref(throttle);\n }\n\n callback(...args);\n };\n }\n\n static framerate(callback, rate = 30, ref = null)\n {\n let latest = 0;\n\n if ( ! Any.isEmpty(ref) ) {\n latest = ref();\n }\n\n return (...args) => {\n\n if ( Date.now() - latest <= (1000 / rate) ) {\n return;\n }\n\n callback(...args);\n\n latest = Date.now();\n\n if ( ! Any.isEmpty(ref) ) {\n ref(latest);\n }\n\n };\n }\n\n static form(obj)\n {\n let form = new FormData();\n\n let appendField = (values, keys = []) => {\n Obj.each(values, (value, index) => {\n\n let inner = Arr.merge([], keys, index);\n\n if ( Any.isPlain(value) ) {\n return appendField(value, inner);\n }\n\n if ( Any.isArray(value) ) {\n return appendField(value, inner);\n }\n\n let key = inner.splice(0, 1)[0];\n\n Arr.each(inner, (index) => {\n key += '[' + index + ']';\n });\n\n if ( value !== null ) {\n form.append(key, value);\n }\n });\n\n return form;\n };\n\n return appendField(obj);\n }\n\n}\n\nexport default Any;\n","import { Obj, Num, Any } from \"../index\"\n\nexport class Arr\n{\n static make(count)\n {\n return Arr.map(Array(count).fill(null), (val, key) => {\n return Num.int(key) + 1;\n });\n }\n\n static all(arr)\n {\n return Array.isArray(arr) ? arr : [arr];\n }\n\n static get(arr, index, fallback = null)\n {\n return arr[index] || fallback;\n }\n\n static set(arr, index, value)\n {\n return arr[index] = value;\n }\n\n static first(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[0] : \n arr) || fallback;\n }\n\n static second(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[1] || \n arr[0] : arr) || fallback;\n }\n\n static third(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[2] || \n arr[1] || arr[0] : arr) || fallback;\n }\n\n static last(arr, fallback = null)\n {\n return (Array.isArray(arr) ? arr[arr.length - 1] : \n arr) || fallback;\n }\n\n static prepend(arr, val)\n {\n arr.splice(0, 0, val);\n return arr;\n }\n\n static append(arr, val)\n {\n arr.splice(arr.length, 0, val);\n return arr;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( ! Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return(va < vb) ? -1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n\n static filter(arr, filter)\n {\n return Arr.each(Arr.filterIndex(arr, filter), (key) => {\n return arr[key];\n });\n }\n\n static filterIndex(arr, filter)\n {\n return Any.keys(arr).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, arr[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, arr[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, arr[key]);\n }\n\n return filter === arr[key];\n });\n }\n\n static find(arr, val, fallback = null)\n {\n return Arr.first(Arr.filter(arr, val)) || fallback;\n }\n\n static findIndex(arr, val, fallback = -1)\n {\n return Any.integer(Arr.first(Arr.filterIndex(arr, val)) || fallback);\n }\n\n static has(arr, val)\n {\n return this.findIndex(arr, val) !== - 1;\n }\n\n static add(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index === - 1 ) {\n arr.push(val);\n }\n\n return arr;\n }\n\n static replace(arr, val, finder = null)\n {\n let index = this.findIndex(arr, finder || val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n arr.push(val);\n\n return arr;\n }\n\n static remove(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n }\n\n return arr;\n }\n\n static toggle(arr, val)\n {\n let index = this.findIndex(arr, val);\n\n if ( index !== - 1 ) {\n arr.splice(index, 1);\n } else {\n arr.push(val);\n }\n\n return arr;\n }\n\n static removeIndex(arr, val)\n {\n if ( val < arr.length ) {\n arr.splice(Num.int(val), 1);\n }\n\n return arr;\n }\n\n static insert(arr, key, val)\n {\n arr.splice(Num.int(key), 0, val);\n\n return arr;\n }\n\n static slice(arr, key, count = 1)\n {\n return arr.slice(Num.int(key), count);\n }\n\n static splice(arr, key, count = 1)\n {\n return arr.splice(Num.int(key), count);\n }\n\n static includes(arr, val)\n {\n let result = false;\n\n for ( let key of Any.vals(arr) ) {\n result = val.indexOf(key) !== -1 || result;\n }\n\n return result;\n }\n\n static contains(arr, val)\n {\n let result = true;\n\n for ( let key of Any.vals(val) ) {\n result = Any.vals(arr).indexOf(key) !== -1 && result;\n }\n\n return result;\n }\n\n static concat(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static clone(arr)\n {\n let clone;\n\n if ( Any.isPlain(arr) ){\n return Obj.clone(arr);\n }\n\n if ( Any.isArray(arr) ){\n\n clone = [];\n\n for ( let key of Any.keys(arr) ) {\n clone[key] = Obj.clone(arr[key]);\n }\n\n return clone;\n }\n\n return clone || arr;\n }\n\n static merge(arr, ...args)\n {\n return arr.concat(...args);\n }\n\n static push(arr, ...args)\n {\n arr.push(...args);\n\n return arr;\n }\n\n static diff(arr, val)\n {\n return arr.filter((diff) => val.indexOf(diff) < 0);\n }\n\n static intersect(...args)\n {\n return args.reduce((a, c) => a.filter(i => c.includes(i)));\n }\n\n static chunk(arr, chunk = 10)\n {\n let res = [];\n\n for ( let i = 0; i < arr.length; i += chunk ) {\n res.push(arr.slice(i, i + chunk));\n }\n\n return res;\n }\n\n static reduce(arr, callback, accumulator)\n {\n return Object.values(arr).reduce(callback, accumulator);\n }\n\n static extract(arr, path)\n {\n return this.each(arr, (val) => Obj.get(val, path, null));\n }\n\n static each(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return Any.vals(result);\n }\n\n static map(arr, callback)\n {\n let result = Arr.clone(arr);\n\n for ( let key of Any.keys(result) ) {\n result[key] = arr[key] = callback(result[key], Any.isNumber(key) ?\n Any.integer(key) : key);\n }\n\n return result;\n }\n\n static recursive(arr, key, callback, cascade = [])\n {\n if ( Any.isArray(arr) === true ) {\n return this.map(arr, (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n }\n\n if ( Any.isObject(arr) === true ) {\n\n let res = callback(arr, cascade);\n\n arr = res !== undefined ?\n res : arr;\n }\n\n if ( Any.isArray(arr[key]) === true ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.map(arr[key], (val) => {\n return this.recursive(val, key, callback, cascade);\n });\n\n return arr;\n }\n\n if ( Any.isEmpty(arr[key]) === false ) {\n\n cascade = Arr.clone(cascade);\n\n Arr.push(cascade, arr);\n\n arr[key] = this.recursive(arr[key], key, callback, cascade);\n\n return arr;\n }\n\n return arr;\n }\n\n}\n\nexport default Arr;\n","import { Any, Arr, Obj } from \"../index\"\n\nexport class Num\n{\n static int(num)\n {\n return !Any.isString(num) ? parseInt(num) :\n parseInt(num.replace('px', ''));\n }\n\n static float(num)\n {\n return !Any.isString(num) ? parseFloat(num) :\n parseFloat(num.replace('px', ''));\n }\n\n static ceil(num)\n {\n return Math.ceil(num);\n }\n\n static round(num)\n {\n return Math.round(num);\n }\n\n static floor(num)\n {\n return Math.floor(num);\n }\n\n static fixed(num, fixed = 2)\n {\n return this.float(num).toFixed(fixed);\n }\n\n static random(start = 0, end = 100)\n {\n return Math.floor((Math.random() * (end + 1)) + start);\n }\n\n static matrix(num, limit = 10, base = [])\n {\n let value = 0;\n\n for ( let i = 20; i >= 0; i -- ) {\n if ( num >= (value = Math.pow(2, i)) ) {\n base.push(value);\n num -= value;\n }\n }\n\n return base;\n }\n\n static combine(arr)\n {\n return Arr.reduce(arr, (acc, val) => acc + val, 0);\n }\n\n static distance(cord1, cord2, miles = false)\n {\n let defaultCord = {\n lat: 0, lng: 0\n };\n\n cord1 = Obj.assign({}, defaultCord, cord1);\n cord2 = Obj.assign({}, defaultCord, cord2);\n\n let radlat1 = (Math.PI * this.float(cord1.lat)) / 180;\n let radlat2 = (Math.PI * this.float(cord2.lat)) / 180;\n\n let theta = this.float(cord1.lng) - this.float(cord2.lng);\n let radtheta = (Math.PI * theta) / 180;\n\n let dist = Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n\n if ( dist > 1 ) {\n dist = 1;\n }\n\n dist = (Math.acos(dist) * 180) / Math.PI * 60 * 1.1515;\n\n if ( !miles ) {\n dist = dist * 1.609344;\n }\n\n return dist;\n }\n\n static format(num, decimal = '.', thousand = ',', fixed = null)\n {\n if ( num === null ) {\n return null;\n }\n\n let value = num.toString();\n\n if ( fixed !== null && fixed !== - 1 ) {\n value = num.toFixed(fixed);\n }\n\n let totals = value.replace(/\\.[0-9]+$/, ''),\n minals = value.replace(/^[0-9\\-]+\\./, '');\n\n let splits = Arr.reduce(totals.split('').reverse(), (result, val, key) => {\n\n let index = Math.floor(key / 3);\n\n result[index] = index === key / 3 ?\n val : result[index] = val + result[index];\n\n return result;\n }, []);\n\n let result = splits.reverse().join(thousand);\n\n if ( fixed !== - 1 && fixed !== 0 && value.match(/\\./) ) {\n result += decimal + minals;\n }\n\n return result;\n }\n}\n\nexport default Num;\n","import Arr from \"./array\";\nimport Any from \"./any\";\n\nexport class Obj\n{\n static has(obj, key)\n {\n return this.get(obj, key, - 1) !== - 1;\n }\n\n static empty(obj, key)\n {\n return Any.isEmpty(this.get(obj, key, null));\n }\n\n static get(obj, keys, fallback = null)\n {\n if ( obj === null || obj === undefined ) {\n return fallback;\n }\n\n if ( keys === null || keys === undefined ) {\n return fallback;\n }\n\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length;\n\n if ( length === 0 ) {\n return fallback;\n }\n\n while (obj !== undefined && obj !== null && index < length) {\n obj = obj[keys[index++]];\n }\n\n if ( obj === undefined || obj === null) {\n return fallback;\n }\n\n return obj;\n }\n\n static set(obj, keys, val)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let index = 0, length = keys.length, nested = obj;\n\n if ( length === 0 ) {\n return obj;\n }\n\n while (nested !== null && index < length) {\n\n if ( nested[keys[index]] === undefined || nested[keys[index]] === null ) {\n nested[keys[index]] = {};\n }\n\n if ( index == length - 1 ) {\n nested[keys[index]] = val;\n }\n\n nested = nested[keys[index++]];\n }\n\n return obj;\n }\n\n static unset(obj, keys)\n {\n if ( Any.isArray(keys) ) {\n keys = keys.join('.');\n }\n\n if ( ! Any.isString(keys) ) {\n keys = keys.toString();\n }\n\n keys = keys.split('.');\n\n let key = keys.shift();\n\n if ( typeof obj[key] === 'undefined' ) {\n return obj;\n }\n\n if ( keys.length === 0 ) {\n delete obj[key];\n return obj;\n }\n\n return this.unset(obj[key], keys);\n }\n\n static only(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === true ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static except(obj, keys, assign = null)\n {\n let result = {};\n\n this.each(obj, (val, key) => {\n if ( Arr.has(keys, key) === false ) {\n result[key] = val;\n }\n });\n\n if ( !Any.isEmpty(assign) ) {\n result = this.assign(result, assign);\n }\n\n return result;\n }\n\n static includes(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isPlain(obj[key]) || Any.isArray(obj[key]) ?\n this.includes(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static matches(obj, val)\n {\n let result = true;\n\n for ( let key of Any.keys(obj) ) {\n if ( typeof val[key] !== 'undefined' ) {\n result = (Any.isObject(obj[key]) ?\n this.matches(obj[key], val[key]) : obj[key] === val[key]) && result;\n }\n }\n\n return result;\n }\n\n static sort(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return key.call({}, obj[a], obj[b]);\n });\n }\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n return Any.integer(Obj.get(obj[a], key)) - Any.integer(Obj.get(obj[b], key));\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static sortString(obj, key)\n {\n let keys = Any.keys(obj);\n\n if ( !Any.isFunction(key) ) {\n keys = keys.sort((a, b) => {\n\n let va = Any.string(Obj.get(obj[a], key)).toLowerCase();\n let vb = Any.string(Obj.get(obj[b], key)).toLowerCase();\n\n return (va < vb) ? - 1 : (va > vb) ? 1 : 0;\n })\n }\n\n let result = [];\n\n Arr.each(keys, (key, index) => {\n obj[key]['_key'] = key;\n result[index] = obj[key];\n });\n\n return result;\n }\n\n static filter(obj, filter)\n {\n return Obj.each(Obj.filterIndex(obj, filter), (key) => {\n return obj[key];\n });\n }\n\n static filterIndex(obj, filter)\n {\n return Any.keys(obj).filter((key) => {\n\n if ( Any.isFunction(filter) ) {\n return filter.call({}, obj[key], key);\n }\n\n if ( Any.isPlain(filter) ) {\n return Obj.includes(filter, obj[key]);\n }\n\n if ( Any.isArray(filter) ) {\n return Arr.includes(filter, obj[key]);\n }\n\n return filter === obj[key];\n });\n }\n\n static find(arr, obj, fallback = null)\n {\n return Arr.first(Obj.filter(arr, obj)) || fallback;\n }\n\n static findIndex(arr, obj, fallback = - 1)\n {\n return Arr.first(Obj.filterIndex(arr, obj)) || fallback;\n }\n\n static clone(obj)\n {\n let clone;\n\n if ( Any.isArray(obj) === true ) {\n return Arr.clone(obj);\n }\n\n if ( Any.isPlain(obj) === true ) {\n\n clone = {};\n\n for ( let key of Any.keys(obj) ) {\n clone[key] = Obj.clone(obj[key]);\n }\n\n return clone;\n }\n\n return clone || obj;\n }\n\n static assign(...args)\n {\n return Object.assign(...args);\n }\n\n static remove(obj, keys)\n {\n Arr.each(keys, (key) => delete obj[key]);\n\n return obj;\n }\n\n static each(obj, callback)\n {\n let result = {};\n\n if ( obj instanceof FormData ) {\n\n for ( let [key, value] of obj.entries() ) {\n result[key] = callback(value, key);\n }\n\n return obj;\n }\n\n for ( let key of Any.keys(obj) ) {\n result[key] = callback(obj[key], key);\n }\n\n return result;\n }\n\n static map(obj, callback)\n {\n for ( let key of Any.keys(obj) ) {\n obj[key] = callback(obj[key], key);\n }\n\n return obj;\n }\n\n static values(obj)\n {\n let result = [];\n\n this.each(obj, val => result.push(val));\n\n return result;\n }\n\n}\n\nexport default Obj;\n","import Arr from \"./array\";\nimport Obj from \"./object\";\nimport Num from \"./number\";\nimport Any from \"./any\";\n\nexport class Str\n{\n static regexEscape(val)\n {\n return String(val).replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n static upper(val)\n {\n return String(val).toUpperCase();\n }\n\n static lower(val)\n {\n return String(val).toLowerCase();\n }\n\n static camelcase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split, index) => {\n\n if ( index === 0 ) {\n return split;\n }\n\n return Str.ucfirst(split);\n });\n\n return slugSplits.join('');\n }\n\n static humancase(val)\n {\n let slug = Str.slugify(val);\n\n let slugSplits = Arr.each(slug.split('-'), (split) => {\n return Str.ucfirst(split);\n });\n\n return slugSplits.join(' ');\n }\n\n static slugify(val)\n {\n val = String(val).replace(/^\\s+|\\s+$/g, '')\n .toLowerCase();\n\n let sources = [\n 'à', 'á', 'â', 'è', 'é', 'ê', 'ì', 'í', 'ï', 'î', 'ò', 'ó', 'ô',\n 'ù', 'ú', 'û', 'ñ', 'ç', '·', '/', '_', ',', ':', ';', 'ä', 'ö', 'ü'\n ];\n\n let targets = [\n 'a', 'a', 'a', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'o', 'o', 'o',\n 'u', 'u', 'u', 'n', 'c', '-', '-', '-', '-', '-', '-', 'ae', 'oe', 'ue'\n ];\n\n Arr.each(sources, (source, index) => {\n val = val.replace(new RegExp(source.charAt(source), 'g'), targets[index]);\n });\n\n return val.replace(/[^a-z0-9 -]/g, '')\n .replace(/\\s+/g, '-').replace(/-+/g, '-');\n }\n\n static ucfirst(val)\n {\n return val.charAt(0).toUpperCase() + val.slice(1);\n }\n\n static lcfirst(val)\n {\n return val.charAt(0).toLowerCase() + val.slice(1);\n }\n\n static has(val, search)\n {\n return this.lower(val).indexOf(this.lower(search)) !== -1;\n }\n\n static filesize(val, decimals = 1)\n {\n let size = null;\n\n let units = [\n 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'\n ];\n\n Arr.each(units, (unit, count) => {\n\n let limit = Math.pow(1000, Any.integer(count));\n\n if ( val <= limit) {\n return;\n }\n\n size = Num.fixed(val / limit, decimals) + ' ' + unit;\n });\n\n return size;\n }\n\n static real(value)\n {\n if ( typeof value === 'string' && value.match(/^(null)$/i) ) {\n value = null;\n }\n\n if ( typeof value === 'string' && value.match(/^(true|false)$/i) ) {\n value = Any.bool(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+$/) ) {\n value = Num.int(value);\n }\n\n if ( typeof value === 'string' && value.match(/^[0-9]+\\\\.[0-9]+$/) ) {\n value = Num.float(value);\n }\n\n return value;\n }\n\n /**\n * Parse param string to object\n */\n static objectify(value, mode = 'options', isArray = false)\n {\n if ( Any.isObject(value) ) {\n return value;\n }\n\n if ( mode === 'params' ) {\n return Str.fromParams(value, isArray);\n }\n\n if ( mode === 'options' ) {\n return Str.fromOptions(value, isArray);\n }\n\n return JSON.parse(value);\n }\n\n /**\n * Parse param object to string\n */\n static stringify(value, mode = 'options')\n {\n if ( Any.isString(value) ) {\n return value;\n }\n if ( mode === 'params' ) {\n return Str.params(value);\n }\n\n if ( mode === 'options' ) {\n return Str.options(value);\n }\n\n return JSON.stringify(value);\n }\n\n /**\n * Parse object to string (e.g. foo:bar;test:lorem).\n */\n static options(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '.' + key;\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.options(value, key).replace(/;$/, ''));\n }\n\n result.push(String(key) + ':' + String(value));\n });\n\n return result.join(';') + ';';\n }\n\n /**\n * Parse string to object (e.g. foo:bar;test:lorem).\n */\n static fromOptions(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|;)(\\\\s*(.*?)\\\\s*:\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=;|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromOptions, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result;\n }\n\n static convertFromOptions(result, match)\n {\n // Get key and value from match\n let attr = match.match(/^;?\\s*(.*?)\\s*:\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, attr[1], val);\n\n return result;\n }\n\n /**\n * Parse object to string (e.g. foo=bar&test=lorem).\n */\n static params(params, quota = null)\n {\n if ( Any.isEmpty(params) ) {\n return '';\n }\n\n let result = [];\n\n Obj.each(params, (value, key) => {\n\n if ( quota !== null ) {\n key = quota + '[' + key + ']';\n }\n\n if ( Any.isObject(value) ) {\n return result.push(Str.params(value, key));\n }\n\n result.push(String(key) + '=' + String(value));\n });\n\n return result.join('&');\n }\n\n /**\n * Parse string to object (e.g. foo=bar&test=lorem).\n */\n static fromParams(value, isArray = false)\n {\n if ( Any.isEmpty(value) ) {\n return {};\n }\n\n let regex = '(^|&)(\\\\s*(.*?)\\\\s*=\\\\s*' +\n '(\".*?\"|\\'.*?\\'|.*?)\\\\s*)(?=&|$)';\n\n let matches = value.match(new RegExp(regex, 'g'));\n\n let result = Arr.reduce(matches || [],\n this.convertFromParams, {});\n\n if ( isArray ) {\n return Any.vals(result);\n }\n\n return result\n }\n\n static convertFromParams(result, match) {\n\n // Get key and value from match\n let attr = match.match(/^&?\\s*(.*?)\\s*=\\s*(\".*?\"|'.*?'|.*?)\\s*$/);\n\n // Skip if length does not match\n if ( attr.length !== 3 ) {\n return result;\n }\n\n let key = attr[1].replace(/(\\]\\[|\\[|\\])/g, '.')\n .replace(/\\.$/, '');\n\n let val = Str.real(attr[2].replace(/(^[\"']*|[\"']*$)/g, ''));\n\n Obj.set(result, key, val);\n\n return result;\n }\n\n}\n\nexport default Str;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__6__;","import { Num, Arr, Any } from \"../index\";\nimport moment from \"moment\";\n\nexport class Now\n{\n initialDate = null;\n moment = null;\n\n constructor(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n if ( date instanceof Now ) {\n date = date.get().toDate();\n }\n\n this.initialDate = date;\n\n if ( ! Any.isString(date) ) {\n this.moment = moment(date || new Date, format);\n }\n\n if ( this.moment !== null ) {\n return this;\n }\n\n this.moment = moment(date.match(/^now/) ?\n new Date : date, format);\n\n let second = this.initialDate.match(/(\\+|-)([0-9]+)seconds?/);\n\n if ( Any.isEmpty(second) === false && second[1] === '+' ) {\n this.moment.add(second[2], 'second');\n }\n\n let minute = this.initialDate.match(/(\\+|-)([0-9]+)minutes?/);\n\n if ( Any.isEmpty(minute) === false && minute[1] === '+' ) {\n this.moment.add(minute[2], 'minute');\n }\n\n let hour = this.initialDate.match(/(\\+|-)([0-9]+)hours?/);\n\n if ( Any.isEmpty(hour) === false && hour[1] === '+' ) {\n this.moment.add(hour[2], 'hour');\n }\n\n let day = this.initialDate.match(/(\\+|-)([0-9]+)days?/);\n\n if ( Any.isEmpty(day) === false && day[1] === '+' ) {\n this.moment.add(day[2], 'day');\n }\n\n if ( Any.isEmpty(day) === false && day[1] === '-' ) {\n this.moment.subtract(day[2], 'day');\n }\n\n let month = this.initialDate.match(/(\\+|-)([0-9]+)months?/);\n\n if ( Any.isEmpty(month) === false && month[1] === '+' ) {\n this.moment.add(month[2], 'month');\n }\n\n if ( Any.isEmpty(month) === false && month[1] === '-' ) {\n this.moment.subtract(month[2], 'month');\n }\n\n let year = this.initialDate.match(/(\\+|-)([0-9]+)years?/);\n\n if ( Any.isEmpty(year) === false && year[1] === '+' ) {\n this.moment.add(year[2], 'year');\n }\n\n if ( Any.isEmpty(year) === false && year[1] === '-' ) {\n this.moment.subtract(year[2], 'year');\n }\n\n return this;\n }\n\n static make(date = null, format = 'YYYY-MM-DD hh:mm:ss')\n {\n return new Now(date, format);\n }\n\n get()\n {\n return this.moment;\n }\n\n valid()\n {\n return ! Any.isEmpty(this.initialDate) &&\n moment(this.initialDate).isValid();\n }\n\n clone()\n {\n return new Now(this.moment.toDate());\n }\n\n code(format = 'X')\n {\n return Num.int(this.format(format, true));\n }\n\n format(format = 'YYYY-MM-DD hh:mm:ss', force = false)\n {\n if ( ! this.valid() && ! force ) {\n return '';\n }\n\n return this.moment.format(format);\n }\n\n before(before = null)\n {\n return this.code() < Now.make(before).code();\n }\n\n beforeDate(before = null)\n {\n return this.code('YYYYMMDD') <\n Now.make(before).code('YYYYMMDD');\n }\n\n beforeTime(before = null)\n {\n return this.code('hhmmss') <\n Now.make(before).code('hhmmss');\n }\n\n after(after = null)\n {\n return this.code() > Now.make(after).code();\n }\n\n afterDate(after = null)\n {\n return this.code('YYYYMMDD') >\n Now.make(after).code('YYYYMMDD');\n }\n\n afterTime(after = null)\n {\n return this.code('hhmmss') >\n Now.make(after).code('hhmmss');\n }\n\n equal(equal = null, format = 'X')\n {\n return this.code(format) ===\n Now.make(equal).code(format);\n }\n\n equalDate(equal = null, format = 'YYYYMMDD')\n {\n return this.equal(equal, format);\n }\n\n equalTime(equal = null, format = 'hhmmss')\n {\n return this.equal(equal, format);\n }\n\n between(fromDate = null, toDate = null, format = 'YYYYMMDD')\n {\n if ( Now.make(toDate).code(format) < Now.make(fromDate).code(format) ) {\n return this.after(toDate, format) && this.before(fromDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n return this.after(fromDate, format) && this.before(toDate, format) &&\n ! this.equal(toDate, format) && ! this.equal(fromDate, format);\n }\n\n decade()\n {\n return Math.floor(this.year() / 10) * 10;\n }\n\n prevDecade()\n {\n return this.clone().subDecades(1);\n }\n\n nextDecade()\n {\n return this.clone().addDecades(1);\n }\n\n addDecades(count = 1)\n {\n return this.year(this.moment.year() + (count * 10));\n }\n\n subDecades(count = 1)\n {\n return this.year(this.moment.year() - (count * 10));\n }\n\n year(year = null)\n {\n if ( year === null ) {\n return this.moment.year();\n }\n\n this.moment.year(year);\n\n return this;\n }\n\n prevYear()\n {\n return this.clone().year(this.year() - 1);\n }\n\n nextYear()\n {\n return this.clone().year(this.year() + 1);\n }\n\n addYears(count = 1)\n {\n return this.year(this.year() + count);\n }\n\n subYears(count = 1)\n {\n return this.year(this.year() - count);\n }\n\n month(month = null)\n {\n if ( month === null ) {\n return this.moment.month();\n }\n\n this.moment.month(month);\n\n return this;\n }\n\n addMonths(count = 1)\n {\n return this.month(this.month() + count);\n }\n\n subMonths(count = 1)\n {\n return this.month(this.month() - count);\n }\n\n prevMonth()\n {\n return this.clone().month(this.month() - 1);\n }\n\n nextMonth()\n {\n return this.clone().month(this.month() + 1);\n }\n\n date(date = null)\n {\n if ( date === null ) {\n return this.moment.date();\n }\n\n this.moment.date(date);\n\n return this;\n }\n\n addDates(count = 1)\n {\n return this.date(this.date() + count);\n }\n\n subDates(count = 1)\n {\n return this.date(this.date() - count);\n }\n\n prevDate()\n {\n return this.clone().date(this.date() - 1);\n }\n\n nextDate()\n {\n return this.clone().date(this.date() + 1);\n }\n\n lastDate()\n {\n return this.prevMonth().date(0).date();\n }\n\n day(day = null)\n {\n if ( day === null ) {\n return this.moment.day();\n }\n\n this.moment.day(day);\n\n return this;\n }\n\n hour(hour = null)\n {\n if ( hour === null ) {\n return this.moment.hour();\n }\n\n this.moment.hour(hour);\n\n return this;\n }\n\n addHour(count = 1)\n {\n return this.hour(this.hour() + count);\n }\n\n subHour(count = 1)\n {\n return this.hour(this.hour() - count);\n }\n\n prevHour()\n {\n return this.clone().hour(this.hour() - 1);\n }\n\n nextHour()\n {\n return this.clone().hour(this.hour() + 1);\n }\n\n minute(minute = null)\n {\n if ( minute === null ) {\n return this.moment.minute();\n }\n\n this.moment.minute(minute);\n\n return this;\n }\n\n addMinute(count = 1)\n {\n return this.minute(this.minute() + count);\n }\n\n subMinute(count = 1)\n {\n return this.minute(this.minute() - count);\n }\n\n prevMinute()\n {\n return this.clone().minute(this.minute() - 1);\n }\n\n nextMinute()\n {\n return this.clone().minute(this.minute() + 1);\n }\n\n second(second = null)\n {\n if ( second === null ) {\n return this.moment.second();\n }\n\n this.moment.second(second);\n\n return this;\n }\n\n addSecond(count = 1)\n {\n return this.second(this.second() + count);\n }\n\n subSecond(count = 1)\n {\n return this.second(this.second() - count);\n }\n\n prevSecond()\n {\n return this.clone().second(this.second() - 1);\n }\n\n nextSecond()\n {\n return this.clone().second(this.second() + 1);\n }\n\n humanDay()\n {\n return this.day();\n }\n\n humanMonth()\n {\n return this.month();\n }\n\n getMonths()\n {\n return Arr.make(12).map((month) => {\n return this.clone().month(month - 1);\n });\n }\n\n getYears()\n {\n return Arr.make(10).map((year) => {\n return this.clone().year(this.decade() + year - 1);\n });\n }\n\n getYearsGrid(size = 12)\n {\n return Arr.make(size).map((year) => {\n return this.clone().year((Math.floor(this.year() / size)\n * size) + year - 1);\n });\n }\n\n getDates()\n {\n return Arr.make(this.lastDate()).map((date) => {\n return this.clone().date(date);\n });\n }\n\n getDatesRange(target = null)\n {\n let range = [], targetNow = Now.make(target);\n\n if ( this.afterDate(target) ) {\n\n for ( let day = targetNow; ! day.equalDate(this); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, this);\n }\n\n if ( this.beforeDate(target) ) {\n\n for ( let day = this; ! day.equalDate(targetNow); day = day.nextDate() ) {\n Arr.push(range, day);\n }\n\n Arr.push(range, targetNow);\n }\n\n if ( range.length === 0 ) {\n range = [this];\n }\n\n return range;\n }\n\n getDatesGrid(start = 1, end = 0)\n {\n let dates = this.getDates(), before = [], after = [];\n\n let prev = Arr.first(dates);\n\n for (let day = prev.day(); prev.day() !== start; day = prev.day()) {\n Arr.prepend(before, prev = prev.prevDate());\n }\n\n let next = Arr.last(dates);\n\n for (let day = next.day(); next.day() !== end; day = next.day()) {\n Arr.append(after, next = next.nextDate());\n }\n\n return Arr.merge(before, dates, after);\n }\n\n getHours(interval = 1)\n {\n return Arr.make(24 / interval).map((val, hour) => {\n return this.clone().hour(hour * interval);\n });\n }\n\n getMinutes(interval = 1)\n {\n return Arr.make(60 / interval).map((val, minute) => {\n return this.clone().minute(minute * interval);\n });\n }\n\n getSeconds(interval = 1)\n {\n return Arr.make(60 / interval).map((val, second) => {\n return this.clone().second(second * interval);\n });\n }\n\n}\n\nexport default Now;\n","import Arr from './array';\nimport Obj from './object';\nimport Str from './string';\nimport Num from './number';\nimport Any from './any';\n\nexport class Dom\n{\n el = null;\n\n static events = [];\n\n constructor(el)\n {\n if ( el instanceof NodeList ) {\n el = Array.prototype.slice.call(el);\n }\n\n this.el = el;\n }\n\n static ready(callback, delay = 0, count = 0)\n {\n let ready = document.readyState !== 'loading';\n\n if ( delay === 0 && (ready === false && count >= delay) ) {\n Dom.find(document).on('DOMContentLoaded', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count <= delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static complete(callback, delay = 0, count = 0)\n {\n let ready = document.readyState === 'complete';\n\n if ( delay === 0 && (ready === false || count < delay) ) {\n Dom.find(document).on('DOMContentLoaded', callback);\n return this;\n }\n\n if ( delay !== 0 && (ready === false || count < delay) ) {\n setTimeout(() => Dom.ready(callback, delay, count + 100), 100);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static required(callback, globals = [], timer = 100) {\n\n let matches = Arr.each(globals, (key) => {\n return Obj.has(window, key);\n });\n\n if ( Arr.has(matches, false) ) {\n setTimeout(() => Dom.required(callback, globals, timer), timer);\n return this;\n }\n\n callback();\n\n return this;\n }\n\n static find(element)\n {\n let el = typeof element !== 'string' ?\n element : document.querySelectorAll(element);\n\n return new Dom(el);\n }\n\n static make(element, options = {})\n {\n let el = typeof element !== 'string' ?\n element : document.createElement(element);\n\n Obj.assign(el, options);\n\n return new Dom(el);\n }\n\n static location(posx, posy)\n {\n let el = null;\n\n if ( document.elementsFromPoint !== undefined ) {\n el = document.elementsFromPoint(posx, posy);\n }\n\n if ( document.msElementsFromPoint !== undefined ) {\n el = document.msElementsFromPoint(posx, posy);\n }\n\n return new Dom(el);\n }\n\n static title(text = null, glue = ' - ')\n {\n document.title = window.baseTitle !== undefined ?\n text + glue + window.baseTitle : text;\n\n return this;\n }\n\n length()\n {\n return Any.isArray(this.el) ?\n this.el.length : (Any.isEmpty(this.el) ? 0 : 1);\n }\n\n empty()\n {\n return this.length() === 0 || this.el === null;\n }\n\n visible()\n {\n return this.get(0) && this.get(0).is(':visible');\n }\n\n inviewX(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let left = offset.left + (ratio * element.width) -\n viewport.width;\n\n let right = offset.left + element.width -\n (ratio * element.width);\n\n return left <= scroll.left && scroll.left <= right;\n }\n\n inviewY(ratio = 0)\n {\n let viewport = {\n width: Dom.find(window).width(),\n height: Dom.find(window).height(),\n };\n\n let element = {\n width: this.width(),\n height: this.height(),\n };\n\n let scroll = this.scroll(),\n offset = this.offset();\n\n let top = offset.top + (ratio * element.height) -\n viewport.height;\n\n let bottom = offset.top + element.height -\n (ratio * element.height);\n\n return top <= scroll.top && scroll.top <= bottom;\n }\n\n is(selector)\n {\n return this.matches(selector);\n }\n\n isParent(selector)\n {\n let el = this.parent();\n\n if ( Any.isEmpty(el) === true ) {\n return false;\n }\n\n return Any.isString(selector) ?\n Dom.find(el).matches(selector) : this.get(0) === selector;\n }\n\n first(offset = 0)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[offset];\n }\n\n last(offset = 1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return els[els.length - offset];\n }\n\n get(index = -1)\n {\n let els = Any.isArray(this.el) ?\n this.el : [this.el];\n\n return index !== -1 ? els[index] || null : els;\n }\n\n getNot(el)\n {\n for ( let node of this.el ) {\n if ( node !== el ) {\n return Dom.find(node);\n }\n }\n\n return null;\n }\n\n each(callback)\n {\n return Any.isArray(this.el) ? Arr.each(this.el, callback) :\n callback(this.el, 0);\n }\n\n matches(selector)\n {\n let source = this.get(0), target = null;\n\n Dom.find(selector).each((el) => {\n if ( el === source) target = el;\n });\n\n return target !== null;\n }\n\n closest(selector)\n {\n if ( this.get(0) === selector ) {\n return selector;\n }\n\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( Dom.find(el).is(selector) ) {\n return el;\n }\n }\n\n return null;\n }\n\n closestScrollable(fallback = document.body)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n if ( el.scrollHeight > el.clientHeight + 1 ) {\n return el;\n }\n }\n\n return fallback;\n }\n\n contains(selector)\n {\n if ( Any.isString(selector) === true ) {\n return this.find(selector).get(0) !== null;\n }\n\n\n if ( selector instanceof Element === false ) {\n return false;\n }\n\n return this.get(0).contains(selector);\n }\n\n inside(selector)\n {\n return this.closest(selector) !== null;\n }\n\n parent()\n {\n let el = this.get(0);\n\n if ( el === null || el.parentNode === undefined ) {\n return Dom.find(null);\n }\n\n return Dom.find(el.parentNode);\n }\n\n child(selector)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes[0] || null);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes[0] || null);\n }\n\n childs(selector = null, filter = true)\n {\n let nodes = this.get(0).childNodes;\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 && filter === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n if ( selector === null ) {\n return Dom.find(nodes);\n }\n\n Arr.each(nodes, (node, index) => {\n if ( Any.isEmpty(node) || Dom.find(node).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n find(selector)\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) === true ) {\n return Dom.find(null);\n }\n\n let nodes = el.querySelectorAll(selector);\n\n nodes = Array.prototype.slice.call(nodes);\n\n Arr.each(nodes, (node, index) => {\n if ( node.nodeType === 3 ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n where(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === false ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n not(selector)\n {\n let nodes = this.get();\n\n Arr.each(nodes, (el, index) => {\n if ( Any.isEmpty(el) || Dom.find(el).is(selector) === true ) {\n nodes = Arr.splice(nodes, index);\n }\n });\n\n return Dom.find(nodes);\n }\n\n prepend(val)\n {\n this.each((el) => el.prepend(val));\n\n return this;\n }\n\n prependTo(el)\n {\n Dom.find(el).each((val) => val.prepend(this.el));\n\n return this;\n }\n\n append(val)\n {\n this.each((el) => {\n if ( el.append !== undefined ) {\n el.append(val);\n }\n });\n\n return this;\n }\n\n appendTo(el)\n {\n Dom.find(el).each((val) => {\n if ( val.append !== undefined ) {\n val.append(this.el);\n }\n });\n\n return this;\n }\n\n replace(el)\n {\n // Append node to element\n this.parent().get(0).insertBefore(el, this.get(0));\n\n // Remove existing element\n this.parent().get(0).removeChild(this.get(0));\n\n return this;\n }\n\n previous()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).previousSibling; el !== null; el = el.previousSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n next()\n {\n if ( this.empty() === true ) {\n return Dom.find(null);\n }\n\n for (let el = this.get(0).nextSibling; el !== null; el = el.nextSibling) {\n if ( el.nodeType === 1 ) {\n return Dom.find(el);\n }\n }\n\n return Dom.find(null);\n }\n\n loaded(callback)\n {\n let el = this.get(0), timeout = null;\n\n if ( ! el ) {\n return this;\n }\n\n timeout = setInterval(() => {\n\n if ( ! el.complete || el.naturalWidth === 0 ) {\n return;\n }\n\n callback(el);\n clearInterval(timeout);\n\n }, 100);\n\n return this;\n }\n\n bind(event, callback)\n {\n this.each((el) => el[event] = (e) => callback.call(el, e));\n\n return this;\n }\n\n unbind(event)\n {\n this.each((el) => delete el[event]);\n }\n\n on(event, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.on(e, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n callback.call(e.target, e, e.target);\n };\n\n let selector = null;\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n live(event, selector, callback, options = {}, paused = false)\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.live(e, selector, callback, options);\n });\n\n return this;\n }\n\n let func = (e) => {\n\n let target = e.srcElement || e.target;\n\n if ( event.match(/^(drag[a-z]*|drop$)/) ) {\n target = Dom.location(e.clientX, e.clientY).get(0);\n }\n\n if ( ! Dom.find(target).inside(selector) ) {\n return;\n }\n\n callback.call(target, e, Dom.find(target).closest(selector));\n };\n\n this.each((el) => {\n\n Dom.events = Arr.push(Dom.events, {\n el, event, options, selector, paused, func\n });\n\n el.addEventListener(event, func, options);\n });\n\n return this;\n }\n\n one(event, callback, options = {})\n {\n this.on(event, (e) => {\n callback(e); this.off(event);\n }, options);\n\n return this;\n }\n\n fire(event)\n {\n let callback = new Event(event);\n\n this.each((el) => {\n el.dispatchEvent(callback);\n });\n\n return this;\n }\n\n delayed(event, callback, delay = 0, options = {})\n {\n this.on(event, Any.debounce(callback, delay), options);\n\n return this;\n }\n\n off(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.off(e, selector);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let indexes = Arr.filterIndex(Dom.events, {\n el, event, selector, options\n });\n\n if ( indexes.length === 0 ) {\n return;\n }\n\n Arr.each(indexes.reverse(), (index) => {\n\n el.removeEventListener(event, Dom.events[index].func,\n Dom.events[index].options);\n\n Arr.removeIndex(Dom.events, index);\n });\n });\n\n return this;\n }\n\n unpause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.unpause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.addEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n pause(event, selector = null, options = {})\n {\n if ( Any.isArray(event) === true ) {\n\n Arr.each(event, (e) => {\n this.pause(e, selector, options);\n });\n\n return this;\n }\n\n this.each((el) => {\n\n let val = Arr.find(Dom.events, {\n el, event, selector, options\n });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n el.removeEventListener(event, val.func, val.options);\n });\n\n return this;\n }\n\n observer(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el, {}));\n }\n\n let observer = new MutationObserver((mutation) => {\n this.each((el) => callback(el, mutation));\n });\n\n return (el, options) => {\n observer.observe(Dom.find(el).get(0), options);\n };\n }\n\n observerResize(callback, initial = true)\n {\n if ( initial === true ) {\n this.each((el) => callback(el));\n }\n\n let observer = new ResizeObserver(() => {\n this.each((el) => callback(el));\n });\n\n return (el) => {\n observer.observe(Dom.find(el).get(0));\n }\n }\n\n value(val = undefined)\n {\n if ( val === undefined ) {\n return this.get(0).value;\n }\n\n this.each((el) => el.value = val);\n\n return this;\n }\n\n html(html)\n {\n this.each((el) => el.innerHTML = html);\n\n return this;\n }\n\n computed(key = null, fallback = null)\n {\n let el = this.get(0);\n\n if ( el === null || el === window || el === document) {\n return key !== null ? fallback : {};\n }\n\n let computed = getComputedStyle(el);\n\n return key !== null ? Obj.get(computed, key, fallback) : computed;\n }\n\n css(vals = undefined)\n {\n if ( vals === null ) {\n return this.attr('style', null);\n }\n\n let styles = Str.objectify(this.attr('style') || '');\n\n if ( vals === undefined ) {\n return styles;\n }\n\n this.attr('style', Obj.assign({}, styles, Str.objectify(vals)));\n }\n\n class(vals)\n {\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n this.attr('class', vals.join(' '));\n }\n\n hasClass(vals)\n {\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n return Arr.intersect(vals, cls).length !== 0;\n }\n\n addClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).addClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.add(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n removeClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).removeClass(vals));\n }\n\n let cls = this.attr('class') || [];\n\n if ( Any.isString(vals) ) {\n vals = vals.split(' ');\n }\n\n if ( Any.isString(cls) ) {\n cls = cls.split(' ');\n }\n\n if ( ! Any.isArray(vals) ) {\n vals = [vals];\n }\n\n if ( ! Any.isArray(cls) ) {\n cls = [cls];\n }\n\n Arr.each(vals, (val) => {\n Arr.remove(cls, val);\n });\n\n this.attr('class', cls.join(' '));\n }\n\n toggleClass(vals)\n {\n if ( this.length() > 1 ) {\n return this.each((el) => Dom.find(el).toggleClass(vals));\n }\n\n this.hasClass(vals) ? this.removeClass(vals) : this.addClass(vals);\n\n return this;\n }\n\n attr(attr, val = undefined)\n {\n if ( this.empty() ) {\n return null;\n }\n\n if ( Any.isPlain(attr) ) {\n return Obj.each(attr, (value, key) =>\n this.attr(key, value));\n }\n\n let res = this.get(0).getAttribute(attr);\n\n if ( val === undefined ) {\n return res;\n }\n\n if ( val === null ) {\n this.get(0).removeAttribute(attr);\n return res;\n }\n\n if ( Any.isPlain(val) ) {\n val = Str.options(val);\n }\n\n this.get(0).setAttribute(attr, val);\n return res;\n }\n\n actual(callback, val = null)\n {\n let style = this.attr('style');\n\n this.attr('style', val);\n\n let result = callback.call(this.get(0), this.get(0));\n\n this.attr('style', style);\n\n return result;\n }\n\n loopParent(callback, target = null)\n {\n for (let el = this.get(0); el !== null && el.parentNode !== undefined; el = el.parentNode) {\n\n if ( Dom.find(el).computed('position') === 'fixed' ) {\n return true;\n }\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n loopOffsetParent(callback, target = document.body)\n {\n for (let el = this.get(0); el !== null && el.offsetParent !== undefined; el = el.offsetParent) {\n\n if ( Dom.find(el).is(target) === true ) {\n return true;\n }\n\n callback.call({}, el);\n }\n\n return false;\n }\n\n offset(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n this.loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n source.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n source.left += Num.float(el.offsetLeft);\n }\n\n });\n\n source.bottom = Dom.find(document.body).scrollHeight() -\n source.top - this.height();\n\n source.right = Dom.find(document.body).scrollWidth() -\n source.left - this.width();\n\n let target = {\n top: 0, left: 0, bottom: 0, right: 0\n };\n\n Dom.find(boundry).loopOffsetParent((el) => {\n\n if ( el.offsetTop ) {\n target.top += Num.float(el.offsetTop);\n }\n\n if ( el.offsetLeft ) {\n target.left += Num.float(el.offsetLeft);\n }\n\n });\n\n target.bottom = Dom.find(document.body).scrollHeight() -\n target.top - Dom.find(boundry || document.body).scrollHeight();\n\n target.right = Dom.find(document.body).scrollWidth() -\n target.left - Dom.find(boundry || document.body).scrollWidth();\n\n let offset = {\n top: source.top - target.top,\n bottom: source.bottom - target.bottom,\n left: source.left - target.left,\n right: source.right - target.right\n };\n\n return key !== null ? Obj.get(offset, key, 0) : offset;\n }\n\n offsetTop(boundry = null)\n {\n return this.offset('top', boundry);\n }\n\n offsetBottom(boundry = null)\n {\n return this.offset('bottom', boundry);\n }\n\n offsetLeft(boundry = null)\n {\n return this.offset('left', boundry);\n }\n\n offsetRight(boundry = null)\n {\n return this.offset('right', boundry);\n }\n\n scroll(key = null, boundry = null)\n {\n let source = {\n top: 0, left: 0\n };\n\n this.loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n source.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n source.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n source.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n source.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let target = {\n top: 0, left: 0\n };\n\n Dom.find(boundry).loopParent((el) => {\n\n if ( el.scrollTop !== undefined ) {\n target.top += Num.float(el.scrollTop);\n }\n\n if ( el.scrollTop === undefined && el.pageYOffset !== undefined ) {\n target.top += Num.float(el.pageYOffset);\n }\n\n if ( el.scrollTop !== undefined ) {\n target.left += Num.float(el.scrollLeft);\n }\n\n if ( el.scrollTop === undefined && el.pageXOffset !== undefined ) {\n target.left += Num.float(el.pageXOffset);\n }\n\n });\n\n let scroll = {\n top: source.top - target.top,\n left: source.left - target.left\n };\n\n return key !== null ? Obj.get(scroll, key, 0) : scroll;\n }\n\n scrollTop(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('top', boundry);\n }\n\n this.each((el) => el.scrollTop = val);\n\n return this;\n }\n\n scrollTopGlobal()\n {\n return this.scroll('top', document.body);\n }\n\n scrollLeft(val = null, boundry = null)\n {\n if ( val === null ) {\n return this.scroll('left', boundry);\n }\n\n this.each((el) => el.scrollLeft = val);\n\n return this;\n }\n\n scrollLeftGlobal()\n {\n return this.scroll('left', document.body);\n }\n\n margin(key = null)\n {\n let computedStyle = this.computed();\n\n let margin = {\n top: Num.float(computedStyle.marginTop),\n left: Num.float(computedStyle.marginLeft),\n bottom: Num.float(computedStyle.marginBottom),\n right: Num.float(computedStyle.marginRight),\n } ;\n\n return key !== null ? Obj.get(margin, key, 0) : margin;\n }\n\n padding(key = null)\n {\n let computedStyle = this.computed();\n\n let padding = {\n top: Num.float(computedStyle.paddingTop),\n left: Num.float(computedStyle.paddingLeft),\n bottom: Num.float(computedStyle.paddingBottom),\n right: Num.float(computedStyle.paddingRight),\n };\n\n return key !== null ? Obj.get(padding, key, 0) : padding;\n }\n\n height()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerHeight;\n }\n\n return el.offsetHeight;\n }\n\n clientHeight()\n {\n return Any.integer(this.computed('height', '0px').replace(\"px\", \"\"));\n }\n\n scrollHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollHeight;\n }\n\n innerHeight()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.height() - this.padding('top') -\n this.padding('bottom');\n }\n\n realHeight(styles = {})\n {\n let height = 'auto';\n\n this.actual(() => height = this.height(), styles);\n\n return height;\n }\n\n evaluateHeight(target = null, auto = true)\n {\n if ( Any.isString(target) ) {\n target = Dom.find(target);\n }\n\n if ( target === null ) {\n target = this.parent();\n }\n\n let height = 'auto';\n\n this.actual(() => {\n height = target.innerHeight();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ height: height + 'px' });\n }\n\n return height;\n }\n\n width()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n if ( el === window ) {\n return el.innerWidth;\n }\n\n return el.offsetWidth;\n }\n\n clientWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return Any.integer(this.computed('width', '0px').replace(\"px\", \"\"));\n }\n\n scrollWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return el.scrollWidth;\n }\n\n innerWidth()\n {\n let el = this.get(0);\n\n if ( Any.isEmpty(el) ) {\n return 0;\n }\n\n return this.width() - this.padding('left') -\n this.padding('right');\n }\n\n realWidth(styles = {})\n {\n let width = 0;\n\n this.actual(() => width = this.width(), styles);\n\n return width;\n }\n\n evaluateWidth(target = null, auto = true)\n {\n if ( target === null ) {\n target = this.parent();\n }\n\n let width = 'auto';\n\n this.actual(() => {\n width = target.innerWidth();\n }, { display: 'none' });\n\n if ( auto === true ) {\n this.css({ width: width + 'px' });\n }\n\n return width;\n }\n\n}\n\nexport default Dom;\n","import { Str, Arr, Obj, Num, Any, Event } from \"../index\";\n\nexport class Cookie\n{\n /**\n * Pattern to get the cookie desired\n *\n * @type {string}\n */\n static pattern = '(^|;)\\\\s*{key}\\\\s*=\\\\s*([^;]+)';\n\n /**\n * Get cookie from current session\n *\n * @param {string} key\n * @param {*} fallback\n * @param {'string','boolean','float','integer','object','array'} decode\n * @returns {*}\n */\n static get(key, fallback = null, decode = 'string')\n {\n let pattern = this.pattern\n .replace('{key}', key);\n\n let result = document.cookie\n .match(pattern);\n\n if ( ! result ) {\n return fallback;\n }\n\n let plain = result[2].replace(/\\{:\\}/g, ';');\n\n if ( decode === 'boolean' ) {\n return Any.boolean(plain);\n }\n\n if ( decode === 'float' ) {\n return Any.float(plain);\n }\n\n if ( decode === 'integer' ) {\n return Any.integer(plain);\n }\n\n if ( decode === 'object' ) {\n return Str.objectify(plain, 'params', false);\n }\n\n if ( decode === 'array' ) {\n return Str.objectify(plain, 'params', true);\n }\n\n return plain;\n }\n\n /**\n * Set cookie in current session\n *\n * @param {string} key\n * @param {*} value\n * @param {integer} expire\n * @param {object} options\n */\n static set(key, value, expire = null, options = {})\n {\n let date = new Date;\n\n if ( expire !== null ) {\n date.setTime(Date.now() + (expire || 0));\n }\n\n if ( Date.now() !== date.getTime() ) {\n options.expires = date.toUTCString();\n }\n\n if ( ! options.path ) {\n options.path = '/';\n }\n\n if ( Any.isObject(value) ) {\n value = Str.stringify(value, 'params');\n }\n\n if ( Any.isString(value) ) {\n value = value.replace(/;/g, '{:}');\n }\n\n let plain = `${key}=${value};`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n /**\n * Forget cookie from current session\n *\n * @param {string} key\n * @param {object} options\n */\n static forget(key, options = {})\n {\n if ( ! options.path ) {\n options.path = '/';\n }\n\n options.expires = 'Thu, 01 Jan 1970 00:00:01 GMT';\n\n let plain = `${key}=null;`;\n\n Obj.each(options, (value, key) => {\n plain += `${key}=${value};`;\n });\n\n document.cookie = plain;\n }\n\n}\n\nexport default Cookie;\n","import { Arr, Obj, Num, Any, Event } from \"../index\";\n\nexport class Data\n{\n static data = Obj.get(window, '_data', {});\n\n static has(input)\n {\n return Obj.has(this.data, Arr.first(input));\n }\n\n static set(input, value)\n {\n let clone = value, key = Arr.first(input);\n\n if ( Any.isEqual(Obj.get(this.data, key), clone) ) {\n return;\n }\n\n Obj.set(this.data, key, clone);\n\n Event.fire('store:' + key, clone, key);\n }\n\n static unset(input)\n {\n let key = Arr.first(input);\n\n Obj.unset(this.data, key);\n }\n\n static get (input, fallback = null, forceSet = false)\n {\n let key = Arr.first(input);\n\n if ( ! Obj.has(this.data, key) && ! forceSet ) {\n return fallback;\n }\n\n if ( Obj.has(this.data, key) && forceSet ) {\n Obj.set(this.data, key, fallback);\n }\n\n let value = Obj.get(this.data, key, fallback);\n\n if ( ! Any.isPlain(value) ) {\n return value;\n }\n\n return Obj.clone(value);\n }\n\n static find (input, value, fallback = null)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return fallback;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return fallback;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: value.id\n });\n\n if ( index === -1 ) {\n return fallback;\n }\n\n return this.get(key + '.' + index);\n }\n\n static replace (input, value)\n {\n let key = Arr.first(input);\n\n if ( Obj.has(this.data, key) === false ) {\n return;\n }\n\n if ( Obj.has(value, 'id') === false ) {\n return;\n }\n\n let index = Arr.findIndex(this.get(key), {\n id: Num.int(value.id)\n });\n\n if ( index === -1 ) {\n return;\n }\n\n this.set(key + '.' + index, value);\n }\n\n static add (input, ...args)\n {\n this.set(input, Arr.concat(this.get(input, []), args));\n }\n\n static remove (input, ...args)\n {\n this.set(input, Arr.diff(this.get(input, []), args));\n }\n\n}\n\nexport default Data;\n","import { Str, Obj, Dom, Any } from \"../index\";\n\nexport class Element\n{\n /**\n * Prefix for attribute selector.\n */\n static prefix = 'js';\n\n /**\n * Mounted identifier.\n */\n static mount = 'mount';\n\n /**\n * Instance storage.\n */\n static inis = {};\n\n /**\n * Bind a class on selector.\n */\n static alias(key, instance)\n {\n Obj.set(this.inis, key, instance);\n\n return this;\n }\n\n static bind(key, selector, options = {})\n {\n let el = Dom.find(selector);\n\n // Add mounted class\n el.addClass(\n this.getPrefix(key)\n );\n\n let instance = Obj.get(this.inis, key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) => {\n\n let cb = new instance(\n el.get(0), options\n );\n\n return cb.bind !== undefined ?\n cb.bind() : cb;\n };\n\n // Bind option\n Dom.ready(() => callback.call({}, el, options));\n\n return this;\n }\n\n static unbind()\n {\n let el = Dom.find(selector);\n\n // Add mounted class\n el.removeClass(\n this.getPrefix(key)\n );\n\n let instance = Obj.get(this.inis, key, null);\n\n if ( Any.isEmpty(instance) ) {\n return console.error(`Element \"${key}\" is not defined.`);\n }\n\n let callback = (el, options) =>\n new instance(el.get(0), options).unbind();\n\n // Bind option\n callback.call({}, el, {});\n\n return this;\n }\n\n /**\n * Bind callback on selector.\n */\n static observe(key)\n {\n let selector = this.getPrefix(key);\n\n let options = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [selector]\n };\n\n Dom.find(document.body).observer(() => {\n\n let mounted = Element.getPrefix(key);\n\n Dom.find('[' + selector + ']:not(.' + mounted + ')').each((el) => {\n\n let options = Str.objectify(\n Dom.find(el).attr(selector)\n );\n\n this.bind(key, el, options)\n });\n\n })(document.body, options);\n\n return this;\n }\n\n\n\n /**\n * Return prefix with key.\n */\n static getPrefix(key)\n {\n return key ? this.prefix + '-' + key : this.prefix;\n }\n\n /**\n * Set prefix to given value.\n */\n static setPrefix(prefix)\n {\n this.prefix = prefix;\n }\n\n}\n\nexport default Element;\n","import { Arr, Any } from \"../index\";\n\nexport class Event\n{\n static events = [];\n\n static bind(name, callback, options = {}, paused = false)\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) =>\n this.bind(val, callback, options, paused));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n this.events = Arr.push(this.events, {\n name, callback, options, paused\n });\n\n return this;\n }\n\n static unbind(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unbind(val, options));\n }\n\n if ( ! Any.isPlain(options) ) {\n options = { value: options }\n }\n\n Arr.remove(this.events, { name, options });\n\n return this;\n }\n\n static fire(name, ...args)\n {\n let events = this.events.filter((item) => {\n return item.name === name;\n });\n\n Arr.each(events, (event) => {\n if ( event.paused === false ) {\n event.callback.call({}, ...args);\n }\n });\n\n return this;\n }\n\n static pause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.pause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = true;\n\n return this;\n }\n\n static unpause(name, options = {})\n {\n if ( Any.isArray(name) ) {\n return Arr.each(name, (val) => this.unpause(val, options));\n }\n\n let val = Arr.find(this.events, { name, options });\n\n if ( val === null ) {\n return;\n }\n\n val.paused = false;\n\n return this;\n }\n\n}\n\nexport default Event;\n","import { Obj } from \"../index\";\n\nexport class Locale\n{\n /**\n * Get locales from window if present.\n */\n static locales = Obj.get(window, '_locales', {});\n\n static pickByCount(splits, count)\n {\n let splitLength = splits.length;\n\n if ( splitLength === 3 && count === 0 ) {\n return splits[0];\n }\n\n if ( splitLength === 3 && count === 1 ) {\n return splits[1];\n }\n\n if ( splitLength === 3 && count >= 2 ) {\n return splits[2];\n }\n\n if ( splitLength === 2 && count === 1 ) {\n return splits[0];\n }\n\n if ( splitLength === 2 && count !== 1 ) {\n return splits[1];\n }\n\n return splits[0];\n }\n\n static has(key)\n {\n return Obj.has(Locale.locales, key);\n }\n\n static get(key, fallback = null)\n {\n return Obj.get(Locale.locales, key, fallback || key);\n }\n\n static set(key, value)\n {\n Obj.set(Locale.locales, key, value);\n\n return this;\n }\n\n static trans(key, values = {})\n {\n let message = Obj.get(Locale.locales, key, key);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n static choice(key, count = 0, values = {})\n {\n let splits = Obj.get(Locale.locales, key, key).split('|');\n\n if ( typeof values.count === 'undefined' ) {\n values = Obj.assign({ count: count }, values);\n }\n\n let message = Locale.pickByCount(splits, count);\n\n Obj.each(values, (value, key) => {\n message = message.replace(new RegExp(':' + key, 'g'), value);\n });\n\n return message;\n }\n\n}\n\nexport default Locale;\n","import { Obj, Arr, Any, Dom, UUID } from \"../index\";\n\n/**\n * @const {object} google\n */\n\nexport default class Map\n{\n map = null;\n\n static mapStyle = [];\n\n markers = {};\n\n static markerStyles = {};\n\n cluster = null;\n\n clusterFilter = null;\n\n clusterOptions = {};\n\n static hideMarkers = true;\n\n static closeInfoWindows = true;\n\n constructor(el, options = {})\n {\n if ( ! global.google ) {\n return console.error('Google Maps is not loaded.');\n }\n let center = Obj.only(options, ['lat', 'lng']);\n\n if ( ! Obj.has(options, 'styles') ) {\n options.styles = Map.mapStyle;\n }\n\n options = Obj.assign({ gestureHandling: 'cooperative', scrollwheel: null, zoom: 12, center },\n Obj.except(options, ['lat', 'lng']));\n\n this.map = new global.google.maps.Map(Dom.find(el).get(0), options)\n }\n\n static setMapStyle(style = [])\n {\n Map.mapStyle = style;\n\n return this;\n }\n\n static setMarkerStyle(key, style = {}, extra = {})\n {\n if ( ! Obj.has(style, 'default') ) {\n return console.error('Marker style requires default property')\n }\n\n if ( ! Obj.has(style, 'width') ) {\n style.width = 45;\n }\n\n if ( ! Obj.has(style, 'height') ) {\n style.height = 45;\n }\n\n let final = {};\n\n // Marker size\n let size = new global.google.maps.Size(style.width, style.height);\n\n // Point position\n let origin = new global.google.maps.Point(0, 0);\n\n // Point position\n let anchor = new global.google.maps.Point(style.width / 2, style.height);\n\n final.default = {\n url: style.default, size: size, origin: origin, anchor: anchor, scaledSize: size\n };\n\n if ( Obj.has(style, 'hover') ) {\n final.hover = Obj.assign({}, final.default, { url: style.hover });\n }\n\n if ( ! Obj.has(final, 'hover') ) {\n final.hover = final.default;\n }\n\n if ( Obj.has(style, 'active') ) {\n final.active = Obj.assign({}, final.default, { url: style.active });\n }\n\n if ( ! Obj.has(final, 'active') ) {\n final.active = final.default;\n }\n\n Obj.each(extra, (value, prop) => {\n final[prop] = Obj.assign({}, final.default, { url: value });\n });\n\n Obj.set(Map.markerStyles, key, final);\n\n return this;\n }\n\n clusterMarkers(options = {}, filter = null, allowCreate = true)\n {\n if ( ! this.cluster && ! allowCreate ) {\n return;\n }\n\n if ( typeof global.MarkerClusterer === \"undefined\" ) {\n return console.error('Google Maps Cluster library not laoded!');\n }\n\n if ( ! Obj.has(options, 'imagePath') && ! Obj.has(options, 'styles') ) {\n options.imagePath = '//developers.google.com/maps/documentation/javascript/examples/markerclusterer/m';\n }\n\n if ( this.cluster ) {\n this.cluster.clearMarkers();\n }\n\n if ( Any.isFunction(filter) ) {\n this.clusterFilter = filter;\n }\n\n let markers = Arr.filter(this.markers, (item) => {\n\n let visible = this.getMarkerVisibility(item.key);\n\n if ( ! Any.isFunction(this.clusterFilter) ) {\n return visible;\n }\n\n return visible && this.clusterFilter.call(this, item);\n });\n\n this.cluster = new global.MarkerClusterer(this.map, Arr.each(markers, (item) => item.marker),\n this.clusterOptions = options);\n }\n\n styleMarker(key, type = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( Any.isEmpty(type) ) {\n type = this.getInfoVisibility(key) ? 'active' : 'default';\n }\n\n if ( ! Obj.has(Map.markerStyles, [item.style, type]) ) {\n return;\n }\n\n item.marker.setIcon(Obj.get(Map.markerStyles, [item.style, type]));\n }\n\n getMarker(key)\n {\n return Obj.get(this.markers, key);\n }\n\n getMarkerVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getVisible();\n }\n\n getMarkerPositon(key, fallback = null)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return fallback;\n }\n\n return item.marker.getPosition();\n }\n\n toggleMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.marker.getVisible() ) {\n return this.hideMarker(key);\n }\n\n return this.showMarker(key);\n }\n\n showMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let hidden = ! item.marker.getVisible();\n\n if ( hidden ) {\n item.marker.setVisible(true);\n }\n\n return hidden;\n }\n\n hideMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let visible = !! item.marker.getVisible();\n\n if ( visible ) {\n item.marker.setVisible(false);\n }\n\n this.closeInfo(key);\n\n return visible;\n }\n\n enterMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'hover';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n leaveMarker(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n let type = 'default';\n\n if ( this.getInfoVisibility(key) ) {\n type = 'active';\n }\n\n this.styleMarker(key, type);\n\n return this;\n }\n\n getInfoVisibility(key, fallback = false)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) || ! Obj.has(item, 'info') ) {\n return fallback;\n }\n\n return !! item.info.getMap();\n }\n\n toggleInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n if ( item.info.getMap() ) {\n return this.closeInfo(key);\n }\n\n return this.openInfo(key);\n }\n\n openInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return true;\n }\n\n let hidden = ! item.info.getMap();\n\n if ( Map.closeInfoWindows ) {\n Obj.each(Any.keys(this.markers), this.closeInfo.bind(this));\n }\n\n if ( hidden ) {\n item.info.open(this.map, item.marker);\n }\n\n this.styleMarker(key, 'active');\n\n return hidden;\n }\n\n closeInfo(key)\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`InfoWindow \"${key}\" not found`);\n }\n\n if ( ! Obj.has(item, 'info') ) {\n return false;\n }\n\n let visible = !! item.info.getMap();\n\n if ( visible ) {\n item.info.close();\n }\n\n this.styleMarker(key, 'default');\n\n return visible;\n }\n\n createMarker(key = null, options = {})\n {\n if ( Any.isEmpty(key) ) {\n key = UUID();\n }\n\n let item = { key };\n\n item.extras = Obj.except(options, [\n 'map', 'position', 'lat', 'lng', 'html', 'style'\n ]);\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'positon') ) {\n options.position = Obj.only(options, ['lat', 'lng']);\n }\n\n if ( Obj.has(options, 'style') ) {\n item.style = options.style;\n }\n\n item.marker = new global.google.maps.Marker(options);\n\n Obj.set(this.markers, key, item);\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n if ( ! Obj.has(options, 'html') ) {\n return Obj.get(this.markers, key);\n }\n\n if ( ! Obj.has(item, 'style') ) {\n item.style = 'default';\n }\n\n // Style marker\n this.styleMarker(key);\n\n // Add marker hover style\n item.marker.addListener('mouseover', () => this.enterMarker(key));\n\n // Add marker default style\n item.marker.addListener('mouseout', () => this.leaveMarker(key));\n\n item.info = new global.google.maps.InfoWindow({\n content: '<div class=\"gw-i-html\">' + Obj.get(options, 'html') + '</div>'\n });\n\n item.marker.addListener('click', () => this.toggleInfo(key));\n item.info.addListener('closeclick', () => this.closeInfo(key));\n\n Obj.set(this.markers, key, item);\n\n return Obj.get(this.markers, key);\n }\n\n setMarkerPosition(key, options = {})\n {\n let item = Obj.get(this.markers, key);\n\n if ( Any.isEmpty(item) ) {\n return console.error(`Marker \"${key}\" not found`);\n }\n\n item.marker.setPosition(options);\n }\n\n setMarkerByAddress(key, address)\n {\n return this.getLocationByAddress(address, (res) => {\n this.setMarkerPosition(key, Obj.get(res, '0.geometry.location', {}));\n });\n }\n\n getLocationByAddress(address, callback = null)\n {\n let geocoderService = new global.google.maps.Geocoder();\n\n let geocoderPromise = (resolve, reject) => {\n\n let geocoderResult = (response, status) => {\n\n if ( status === 'OK' ) {\n callback(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n geocoderService.geocode({ address }, geocoderResult);\n };\n\n return new Promise(geocoderPromise);\n }\n\n showMarkers(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n if ( Map.hideMarkers ) {\n Obj.each(Any.keys(this.markers), this.hideMarker.bind(this));\n }\n\n Obj.each(markers, (item) => this.showMarker(item.key));\n\n this.clusterMarkers(this.clusterOptions, null, false);\n\n return this;\n }\n\n getMarkerBoundry(filter = null)\n {\n let markers = this.markers;\n\n if ( ! Any.isEmpty(filter) ) {\n markers = Obj.filter(this.markers, filter);\n }\n\n let boundry = new global.google.maps.LatLngBounds();\n\n Obj.each(markers, (item) => {\n if ( item.marker.getVisible() ) {\n boundry.extend(item.marker.getPosition());\n }\n });\n\n return boundry;\n }\n\n focusMarkers(filter = null, maxZoom = 14)\n {\n let boundry = this.getMarkerBoundry(filter);\n\n // Center map to boundry\n this.map.setCenter(boundry.getCenter());\n\n // Adapt viewport to boundry\n this.map.fitBounds(boundry, 15);\n\n if ( this.map.getZoom() > maxZoom ) {\n this.map.setZoom(maxZoom);\n }\n\n return this;\n }\n\n renderDirections(options)\n {\n // Get directions service\n let directionsService = new global.google.maps.DirectionsService();\n\n // Get directions renderer\n let directionsRenderer = new global.google.maps.DirectionsRenderer();\n\n if ( ! Obj.has(options, 'map') ) {\n options.map = this.map;\n }\n\n if ( ! Obj.has(options, 'travelMode') ) {\n options.travelMode = 'DRIVING';\n }\n\n // Set directions map\n directionsRenderer.setMap(options.map);\n\n if ( Obj.has(options, 'panel') && ! Dom.find(options.panel).empty() ) {\n directionsRenderer.setPanel(Dom.find(options.panel).get(0));\n }\n\n options = Obj.only(options, ['origin', 'destination', 'travelMode']);\n\n let directionsPromise = (resolve, reject) => {\n\n let directionsResult = (response, status) => {\n\n if ( status === 'OK' ) {\n directionsRenderer.setDirections(response);\n resolve(response);\n }\n\n if ( status !== 'OK' ) {\n reject(response);\n }\n\n };\n\n directionsService.route(options, directionsResult);\n };\n\n return new Promise(directionsPromise);\n }\n\n}\n","import { Arr } from \"../index\";\n\nexport default class Queue\n{\n queue = [];\n stopQueue = false;\n activeQueue = false;\n\n constructor(queue = [])\n {\n this.queue = queue;\n }\n\n handler(queue, index)\n {\n return () => queue.length - 1 > index ++ && this.stopQueue === false ?\n queue[index](this.handler(queue, index)) : () => {};\n }\n\n stop()\n {\n this.stopQueue = true;\n this.activeQueue = false;\n\n this.queue = [];\n\n return this;\n }\n\n clear()\n {\n this.queue = [];\n\n return this;\n }\n\n add(cb)\n {\n this.queue.push(cb);\n\n return this;\n }\n\n run()\n {\n let instance = new Queue(this.queue);\n\n instance.add(() => {\n instance.activeQueue = false;\n });\n\n if ( instance.queue.length !== 0 ) {\n Arr.first(instance.queue)(instance.handler(instance.queue.slice(0), 0));\n }\n\n return instance;\n }\n\n active()\n {\n return this.activeQueue;\n }\n\n}\n","import { Obj, Str, Any } from \"../index\";\n\nexport default class Route\n{\n static routes = Obj.get(window, '_routes', {});\n\n static set (key, value)\n {\n this.routes[key] = value;\n }\n\n static get (key, values = null, params = null)\n {\n let route = key.match(/^https?:\\/\\//) ? key : this.routes[key] || key;\n\n Obj.each(values || {}, (value, key) => {\n route = route.replace(new RegExp('{' + key + '\\\\?*}', 'g'), value);\n });\n\n return route + (! Any.isEmpty(params) ? ('?' + Str.params(params)) : '');\n }\n\n static goto (key, values = null, params = null)\n {\n window.location.href = this.get(key, values, params);\n }\n\n}\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n"],"sourceRoot":""}
|