-
Notifications
You must be signed in to change notification settings - Fork 0
/
define.min.js
1 lines (1 loc) · 1.04 KB
/
define.min.js
1
!function(t,r){"object"==typeof module&&"object"==typeof exports?module.exports=r():t.define=r()}(this,function(){"use strict";var t={},r=[],o=function(r){for(var o=0;o<r.length;o++)if(!t.hasOwnProperty(r[o]))return!1;return!0},e=function(t,o,e){r.push([t,o,e])},n=function(t){for(var e,n=0;n<r.length;)e=r[n],o(e[1])?(r.splice(n,1),i.apply(void 0,e)):n++},i=function(r,o,e){var i,u={};o=o.map(function(r){return"module"===r?u:"exports"===r?(u.exports={},u.exports):t[r]}),i=e.apply(global,o),i&&(u.exports=i),r&&(u.id=r,t[r]=u.exports,n(r))},u=function(t,r,n){var u,c=Array.prototype.slice.call(arguments),p=function(t){return Object.prototype.toString.call(t)};t="[object String]"===p(c[0])?c.shift():void 0,r="[object Array]"===p(c[0])?c.shift():["require","exports","module"],"[object Object]"===p(c[0])?(u=c.shift(),n=function(){return u}):n=c.shift(),o(r)?i(t,r,n):e(t,r,n)};return u.amd={},u("require",[],function(){return function(r){return"string"==typeof r?t[r]:void u.apply(global,arguments)}}),u("exports",[],function(){}),u("module",[],function(){}),u});