This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
m8.min.js
1 lines (1 loc) · 9.17 KB
/
m8.min.js
1
!function(t,n,e){"use strict";function r(t){return t}function u(t,n){if(!Array.isArray(t)){if("string"!=typeof t)return i(n);t=t.split(".")}if(On.test(t[0])&&(n=r,t.shift()),!t.length)return i(n);t[0].indexOf("^")||(n||"^"==t[0]?t.shift():t[0]=t[0].substring(1)),n=i(n);for(var e;e=t.shift();)n=n[e]||(n[e]=B());return n}function i(n){return"commonjs"==an?n?_(n)?n.exports:n:module.exports:n||t}function o(t){var n,e=Number(t);return isNaN(e)?(n=String(t))in sn?sn[n]:t:e}function c(t,n,e){e=e===!0,n||(n=t,t={}),n=Object(n);for(var r in n)!fn.hasOwnProperty.call(n,r)||e===!0&&fn.hasOwnProperty.call(t,r)||(t[r]=n[r]);return t}function a(t,n,e){return e=e===!0,n||(n=t,t=B()),Object.getOwnPropertyNames(n).reduce(function(t,r){return e&&O(t,r)||f(t,r,g(n,r)),t},t)}function f(t,e,u){var i,o,c,a,f=_n.call(arguments,3),l=e in Object(t);switch(typeof f[0]){case"string":o=bn[f.shift()];break;case"object":o=f.shift(),null===u&&(u={value:null});break;default:c=G(u),o="object"!=c&&l?g(t,e):null,o||(o="function"==c?bn.cw:bn.cew)}return a=f.shift()===!0,i=f.shift()===!0,l&&!a?i&&new Error(n+".def cannot overwrite existing property: "+e+", in item type: "+J(t)+"."):("object"!=c&&o&&(u=y(u,o)),(u.get||u.set)&&delete u.writable,Object.defineProperty(t,e,u)),r}function l(t,n,e){return cn?(Array.isArray(n)&&(e=n,n=[]),define(t,n,function(){return e}),r):void 0}function s(t,n,e,u,i){e||(e="cw");for(var o in n)!O(n,o)||f(t,o,n[o],e,u,i);return r}function y(t,n){return c("object"==G(t)?t:{value:t},"object"==G(n)?n:bn[String(n).toLowerCase()]||bn.cew,!0)}function g(t,n){return Object.getOwnPropertyDescriptor(t,n)}function p(t){return!h(t)||!E(t)&&k(t)||!1}function h(t){return!(null===t||t===en||"number"==typeof t&&isNaN(t))}function b(n,e,r){"string"!=typeof e&&n[rn]&&(r=e,e=n[rn]);var u,i=B();return i[rn]=e,i[un]="library","commonjs"==an&&_(r)?r.exports=n:(r||(r=t),(u=r[e])&&k(u)?(u[e]=n,n=a(u,n)):f(r,e,y({value:n},"ew")),!cn||r!==t||l(e,n)),s(n,i,"w",!0),n}function d(t){return t.name||t.displayName||(String(t).match(An)||["",""])[1].trim()}function m(t){return w(t,Array.coerce(arguments,1))}function v(t,n){return String(n)in Object(t)}function w(t,n,e){return String(t).replace(e||xn,function(t,e){return n[e]||""})}function x(){return Sn.replace(jn,j)}function j(t){var n=0|16*vn();return("x"==t?n:8|3&n).toString(16)}function O(t,n){return fn.hasOwnProperty.call(Object(t),String(n))}function A(t,n){return t?"id"in Object(t)&&!p(t.id)?t.id:t.id=N(n):N(n)}function N(t){return(t||hn)+"-"+ ++pn}function _(t){if(null===ln)return!1;try{return t instanceof ln}catch(n){return!1}}function S(t){if(t===en||null===t||"object"!=typeof t)return!1;var n=Object.getPrototypeOf(t);return!(null!==n&&n.constructor!==Object)}function k(t){return h(t)&&("length"in Object(t)||"object"==typeof t)}function E(t){return("length"in(t=Object(t))?t:Object.keys(t)).length}function C(t,n){return n===en?t===en?t:Array.isArray(t)?t.reduce(P,[]):S(t)?Object.keys(t).reduce(M,{source:t,target:{}}).target:t:Array.isArray(n)?(Array.isArray(t)?t.length=n.length:t=[],n.reduce(P,t)):S(n)?Object.keys(n).reduce(M,{source:n,target:S(t)?t:{}}).target:n}function P(t,n,e){return t[e]=C(t[e],n),t}function M(t,n){return t.target[n]=C(t.target[n],t.source[n]),t}function L(){}function B(t){var n=Object.create(null);return"object"==typeof t?c(n,t):n}function D(t,n,e){var r;if(e=String(e),arguments.length>3){for(e=_n.call(arguments,2);r=e.shift();)if(D(t,n,r))return!0;return!1}if(t(n,e))return!0;if("string"!=typeof n&&~e.indexOf(".")){for(e=e.split(".");r=e.shift();){if(!D(t,n,r))return!1;n=n[r]}return!0}return!1}function F(t,n){return isNaN(t)?q(t,n):$(t,n)}function $(t,n){for(var e=[t];++t<=n;)e.push(t);return e}function q(t,n){t=String(t).charCodeAt(0),n=String(n).charCodeAt(0);var e=[],r=-1,u=Math.abs(t-n);for(--t;++r<=u;)e.push(String.fromCharCode(++t));return e}function K(t,n){n=Array.isArray(n)?n:_n.call(arguments,1);var e=Array.isArray(t)?R:z;return n.forEach(e,t),t}function R(t){var n=this.indexOf(t);n=~n?n:!isNaN(t)&&t in this?t:n,0>n||this.splice(n,1)}function z(t){delete this[t]}function I(t){return Object.getPrototypeOf(t)}function T(t){return fn.toString.call(t)}function U(t){return fn.valueOf.call(t)}function V(n,e){return n==gn?gn:n==yn||"nodelist"==n?yn:n.indexOf("htm")||n.lastIndexOf("element")+7!==n.length?e===t?"global":!1:"htmlelement"}function W(t){return t.replace(Nn,"$1").toLowerCase()}function G(t){var n=fn.toString.call(t);return n in mn?mn[n]:mn[n]=W(n)}function H(t){return G(I(Object(t)))}function J(n){if(null===n||n===en)return!1;if(n===t)return"global";var e=un in Object(n)?n[un]:null===I(n)?"nullobject":en;return e}function Q(t,n){return n===en?C(t):t===en||null===t?C(n):Array.isArray(n)?Array.isArray(t)?n.reduce(X,t):t:S(n)?S(t)?Object.keys(n).reduce(Y,{source:n,target:t}).target:t:t}function X(t,n,e){return t[e]=Q(t[e],n),t}function Y(t,n){return t.target[n]=Q(t.target[n],t.source[n]),t}function Z(){return _n.call(arguments).forEach(nn),r}function tn(t){t(this,r)}function nn(t){v(t,on)||f(t,on,0,"w");var n=kn[t[rn]||d(t)];n&&(n.slice(t[on]).forEach(tn,t),t[on]=n.length)}"undefined"==typeof global?t:t=global;var en,rn="__name__",un="__type__",on="__xid__",cn=!("function"!=typeof define||!define.amd),an="undefined"!=typeof module&&"exports"in module&&"function"==typeof require?"commonjs":"undefined"!=typeof navigator?"browser":"other",fn=Object.prototype,ln="commonjs"!=an?null:require("module"),sn=[!1,0/0,null,!0,en].reduce(function(t,n){return t[String(n)]=n,t},B()),yn="htmlcollection",gn="htmldocument",pn=999,hn="anon",bn=function(){var t={ce:"ec",cw:"wc",ew:"we",cew:"cwe ecw ewc wce wec".split(" ")},n="configurable enumerable writable".split(" "),e={c:[!0,!1,!1],ce:[!0,!0,!1],cew:[!0,!0,!0],cw:[!0,!1,!0],e:[!1,!0,!1],ew:[!1,!0,!0],r:[!1,!1,!1],w:[!1,!1,!0]},r=Object.keys(e).reduce(function(r,u){function i(t){r[t]=r[u]}var o=t[u];return r[u]=n.reduce(function(t,n,r){return t[n]=e[u][r],t},B()),!o||(Array.isArray(o)?o.forEach(i):i(o)),r},B());return delete r[en],r}(),dn="Array Boolean Date Function Number Object RegExp String Null Undefined".split(" "),mn=dn.reduce(function(t,n){return t["[object "+n+"]"]=n.toLowerCase(),t},B()),vn=Math.random,wn=/global|window/i,xn=/\$?\{([^\}'"]+)\}/g,jn=/[xy]/g,On=new RegExp("^\\u005E?"+n),An=/[\s\(]*function([^\(]+).*/,Nn=/^\[object (?:[Ww]eb[Kk]it|[Mm]oz|[Mm]s|[Kk]html){0,1}([^\]]+)\]$/,_n=Array.prototype.slice,Sn="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",kn=dn.slice(0,-2).reduce(function(t,n){return t[n]=[],t},B());f(Z,"cache",function(t,n){return"string"==typeof t||(t=t[rn]||d(t)),kn[t]||(kn[t]=[]),kn[t].push(n),r},"w"),Z.cache("Array",function(t){var n=t.prototype;f(t,"coerce",function(t,n,e){return"length"in Object(t)?(n=isNaN(n)?0:n>0?n:0,e=isNaN(e)?t.length:e>n?e:0>=e?t.length+e:n+e,_n.call(t,n,e)):[t]},"w"),s(n,{find:function(t,n){var e=-1,r=this.length>>>0;for(n||(n=this);++e<r;)if(t.call(n,this[e],e,this))return this[e];return null},invoke:function(e){var r=t.coerce(arguments,1);return n.map.call(this,function(t){return t&&"function"==typeof t[e]?t[e].apply(t,r):en})},pluck:function(t,e){return e=e===!0,n.reduce.call(this,function(n,r){var u=Object.value(r,t);return e&&!h(u)||n.push(u),n},[])}},"w")}),Z.cache("Boolean",function(t){f(t,"coerce",function(t){switch(J(t)){case"boolean":return t;case"nan":case!1:return!1;case"number":case"string":return!(t in sn?!sn[t]:0===Number(t))}return!0},"w")}),Z.cache("Function",function(t){function n(t){return!t||t in i}function e(){return this.toString()}function r(){return this}var u="__xname__",i={Anonymous:!0,anonymous:!0},o={mimic:function(t,n){var u=t.valueOf();return s(this,{displayName:n||d(u),toString:e.bind(u),valueOf:r.bind(u)},"c",!0),this}};o[rn]={get:function(){if(!this[u]){var t=this.valueOf(),e=t!==this?n(t[rn])?null:t[rn]:null,r=e||d(this);!n(r)||n(this.displayName)||(r=this.displayName),f(this,u,r||"anonymous","w")}return this[u]}},s(t.prototype,o,"w"),f(t,"anon_list",{value:i},"w")}),Z.cache("Object",function(t){f(t.prototype,un,c({get:function(){var t,n=this,e=n.constructor,r=G(n),u=V(r,n)||(wn.test(r)?"global":!1);return u?u:"number"==r?isNaN(n)?"nan":"number":"object"==r&&"function"==typeof e&&"function"!=e[un]?(t=String(e[rn]).toLowerCase(),t&&"anonymous"!=t?t:e[un]||r):r}},bn.r)),f(t.prototype,"__proto__",{get:function(){return I(this)}},"c"),s(t,{key:function(n,e){return t.keys(t(n)).find(function(t){return n[t]===e})},reduce:function(n,e,r){return t.keys(t(n)).reduce(function(t,r,u){return t=e.call(n,t,n[r],r,n,u)},r)},value:function(n,e){if(!h(n))return en;if(e in n)return n[e];if(isNaN(+e)&&~e.indexOf(".")){var r;for(e=e.split(".");(r=e.shift())&&(n=t.value(n,r))!==en;);return n}return n[e]!==en?n[e]:"function"==typeof n.get?n.get(e):"function"==typeof n.getAttribute?n.getAttribute(e):en},values:function(n){return t.keys(Object(n)).map(function(t){return n[t]})}},"w")}),k(e)||(e="commonjs"==an?module:t),s(r=b(r,n,e),{AMD:cn,ENV:an,global:{value:t},modes:{value:bn},bless:u,coerce:o,copy:c,cpdef:a,def:f,defs:s,define:l,describe:y,description:g,empty:p,exists:h,expose:b,format:m,got:D.bind(null,v),gsub:w,guid:x,has:D.bind(null,O),id:A,isObject:S,iter:k,len:E,merge:C,nativeType:G,noop:L,ntype:G,obj:B,proto:I,ptype:H,range:F,remove:K,tostr:T,type:J,update:Q,valof:U,x:Z},"w"),Z(Object,Array,Boolean,Function)}("undefined"!=typeof global?global:this,"m8");