2 lines
74 KiB
JavaScript
2 lines
74 KiB
JavaScript
|
"use strict";var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A};(function(A,k){var st,f={},g=function(i,e){var n,a,s;if(typeof i=="string")return o(i);for(n=[],a=i.length,s=0;s<a;s++)n.push(o(i[s]));return e.apply(null,n)},h=function(i,e,n){arguments.length===2&&(n=e,e=null),g(e||[],function(){u(i,n,arguments)})},u=function(i,e,n){var a,s={exports:e};typeof e=="function"&&(n.length||(n=[g,s.exports,s]),(a=e.apply(null,n))!==void 0&&(s.exports=a)),f[i]=s.exports},o=function(i){var e=f[i]||A[i];if(!e)throw new Error("`"+i+"` is undefined");return e},t=function(i){var e,n,a,s,l,y;y=function(x){return x&&x.charAt(0).toUpperCase()+x.substr(1)};for(e in f)if(n=i,f.hasOwnProperty(e)){for(a=e.split("/"),l=y(a.pop());s=y(a.shift());)n[s]=n[s]||{},n=n[s];n[l]=f[e]}return i},r=function(i){return A.__dollar=i,t(k(A,h,g))};(typeof moduleKODE=="undefined"?"undefined":_typeof(moduleKODE))==="object"&&_typeof(module.exports)==="object"?module.exports=r():typeof define=="function"&&define.amd?define(["jquery"],r):(st=A.WebUploader,A.WebUploader=r(),A.WebUploader.noConflict=function(){A.WebUploader=st})})(window,function(A,k,st){return k("dollar-third",[],function(){var f=A.require,g=A.__dollar||A.jQuery||A.Zepto||f("jquery")||f("zepto");if(!g)throw new Error("jQuery or Zepto not found!");return g}),k("dollar",["dollar-third"],function(f){return f}),k("promise-third",["dollar"],function(f){return{Deferred:f.Deferred,when:f.when,isPromise:function(g){return g&&typeof g.then=="function"}}}),k("promise",["promise-third"],function(f){return f}),k("base",["dollar","promise"],function(f,g){function h(r,i){return function(){return r.apply(i,arguments)}}function u(r){var i;return Object.create?Object.create(r):(i=function(){},i.prototype=r,new i)}var o=function(){},t=Function.call;return{version:"0.1.8-alpha",$:f,Deferred:g.Deferred,isPromise:g.isPromise,when:g.when,browser:function(r){var i={},e=r.match(/WebKit\/([\d.]+)/),n=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),a=r.match(/MSIE\s([\d\.]+)/)||r.match(/(?:trident)(?:.*rv:([\w.]+))?/i),s=r.match(/Firefox\/([\d.]+)/),l=r.match(/Safari\/([\d.]+)/),y=r.match(/OPR\/([\d.]+)/);return e&&(i.webkit=parseFloat(e[1])),n&&(i.chrome=parseFloat(n[1])),a&&(i.ie=parseFloat(a[1])),s&&(i.firefox=parseFloat(s[1])),l&&(i.safari=parseFloat(l[1])),y&&(i.opera=parseFloat(y[1])),i}(navigator.userAgent),os:function(r){var i={},e=r.match(/(?:Android);?[\s\/]+([\d.]+)?/),n=r.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return e&&(i.android=parseFloat(e[1])),n&&(i.ios=parseFloat(n[1].replace(/_/g,"."))),i}(navigator.userAgent),inherits:function(r,i,e){var n;return typeof i=="function"?(n=i,i=null):n=i&&i.hasOwnProperty("constructor")?i.constructor:function(){return r.apply(this,arguments)},f.extend(!0,n,r,e||{}),n.__super__=r.prototype,n.prototype=u(r.prototype),i&&f.extend(!0,n.prototype,i),n},noop:o,bindFn:h,log:function(){return A.console?h(console.log,console):o}(),nextTick:function(){return function(r){setTimeout(r,1)}}(),slice:function(r){return function(){return t.apply(r,arguments)}}([].slice),guid:function(){var r=0;return function(i){for(var e=(+new Date).toString(32),n=0;n<5;n++)e+=Math.floor(65535*Math.random()).toString(32);return(i||"wu_")+e+(r++).toString(32)}}(),formatSize:function(r,i,e){var n;for(e=e||["B","K","M","G","TB"];(n=e.shift())&&r>1024;)r/=1024;return(n==="B"?r:r.toFixed(i||2))+n}}}),k("mediator",["base"],function(f){function g(e,n,a,s){return t.grep(e,function(l){return l&&(!n||l.e===n)&&(!a||l.cb===a||l.cb._cb===a)&&(!s||l.ctx===s)})}function h(e,n,a){t.each((e||"").split(i),function(s,l){a(l,n)})}function u(e,n){for(var a,s=!1,l=-1,y=e.length;++l<y;)if(a=e[l],a.cb.apply(a.ctx2,n)===!1){s=!0;break}return!s}var o,t=f.$,r=[].slice,i=/\s+/;return o={on:function(e,n,a){var s,l=this;return n?(s=this._events||(this._events=[]),h(e,n,function(y,x){var w={e:y};w.cb=x,w.ctx=a,w.ctx2=a||l,w.id=s.length,s.push(w)}),this):this},
|