-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.min.js
1 lines (1 loc) · 2.94 KB
/
client.min.js
1
var fn=function(){"use strict";var e=n;function n(e){return function(n){return n==e}}n.fn=function(e){return"function"==typeof e},n.str=function(e){return"string"==typeof e},n.num=function(e){return"number"==typeof e},n.obj=function(e){return"object"==typeof e},n.lit=function(e){return e.constructor==Object},n.bol=function(e){return"boolean"==typeof e},n.truthy=function(e){return 1==!!e},n.falsy=function(e){return 0==!!e},n.arr=function(e){return e instanceof Array},n.null=function(e){return null===e},n.def=function(e){return void 0!==e},n.in=function(e){return function(n){return!!e&&(e.indexOf?~e.indexOf(n):n in e)}},n.promise=function(e){return e instanceof Promise},n.stream=function(e){return!(!e||!e.next)};var t=Object.freeze({default:e,__moduleExports:e}),r=t&&e||t,o={arr:function(e){return Array.prototype.slice.call(e,0)},obj:function(e){var n="id";return 1==arguments.length?(n=e,t):t.apply(this,arguments);function t(e,t,o){return 0===o&&(e={}),e[r.fn(n)?n(t,o):t[n]]=t,e}}};var u=o.arr,i=o.obj,f=Object.freeze({default:o,__moduleExports:o,arr:u,obj:i}),c="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a="undefined"!=typeof window,s=Object.freeze({default:a,__moduleExports:a}),d=s&&a||s?window:c,l=Object.freeze({default:d,__moduleExports:d}),p=f&&o||f,b=l&&d||l,m=function(e){return function(n){if(!b.console||!console.log.apply)return n;r.arr(arguments[2])&&(arguments[2]=arguments[2].length);var t=p.arr(arguments),o="[log]["+(new Date).toISOString()+"]"+e;return t.unshift(o.grey?o.grey:o),console.log.apply(console,t),n}},y=Object.freeze({default:m,__moduleExports:m}),v=function e(n,t){var o=arguments.length;return r.str(n)||2!=o?r.str(n)||3!=o?function(e){var u=this||{};return e=(e=(e=u.nodeName||r.fn(u.node)?u:e).node?e.node():e).host||e,o>1&&!1===t?e.removeAttribute(n):o>1?(e.setAttribute(n,t),t):e.attributes.getNamedItem(n)&&e.attributes.getNamedItem(n).value}:e(arguments[1],arguments[2]).call(this,arguments[0]):e(arguments[1]).call(this,arguments[0])},h=Object.freeze({default:v,__moduleExports:v}),j=function(e){return(e||"").toLowerCase()},g=Object.freeze({default:j,__moduleExports:j}),x=h&&v||h,_=g&&j||g,w=(y&&m||y)("[ri/types/fn]"),O="application/javascript";return function(e,n){void 0===n&&(n={});var t=n.dir;return void 0===t&&(t="."),w("creating"),e.require=function(n){return function(t){if(t in n.headers.dependencies&&e.resources[n.headers.dependencies[t]])return e(n.headers.dependencies[t]);throw new Error("Cannot find module: "+t+" for "+n.name)}},e.types["application/javascript"]={header:O,selector:function(e){return e.name+',[is~="'+e.name+'"]'},extract:function(e){return(x("is")(e)||"").split(" ").concat(_(e.nodeName))},ext:"*.js",shortname:function(e){return(void 0)(e).split(".").slice(0,-1).join(".")},check:function(e){return r.fn(e.body)},load:!1,parse:function(n){if("cjs"==n.headers.format){var t={exports:{}};n.body(t,t.exports,e.require(n),{env:{}}),n.body=t.exports}return n}},e}}();