UNPKG

14.3 kBJavaScriptView Raw
1/**
2 * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
3 *
4 * @version v1.15.3
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self,a.BootstrapTable=b())})(this,function(){'use strict';var b=Math.max,c=Math.min,d=Math.floor;function a(a,b){return b={exports:{}},a(b,b.exports),b.exports}var e,g,h,i=function(a){try{return!!a()}catch(a){return!0}},k=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),l="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis,m="object",n=function(a){return a&&a.Math==Math&&a},o=n(typeof globalThis==m&&globalThis)||n(typeof window==m&&window)||n(typeof self==m&&self)||n(typeof l==m&&l)||Function("return this")(),p=/#|\.prototype\./,q=function(a,b){var c=s[r(a)];return!(c!=u)||c!=t&&("function"==typeof b?i(b):!!b)},r=q.normalize=function(a){return(a+"").replace(p,".").toLowerCase()},s=q.data={},t=q.NATIVE="N",u=q.POLYFILL="P",v=q,w=function(a){return"object"==typeof a?null!==a:"function"==typeof a},x=o.document,y=w(x)&&w(x.createElement),z=function(a){return y?x.createElement(a):{}},A=!k&&!i(function(){return 7!=Object.defineProperty(z("div"),"a",{get:function(){return 7}}).a}),B=function(a){if(!w(a))throw TypeError(a+" is not an object");return a},C=function(a,b){if(!w(a))return a;var c,d;if(b&&"function"==typeof(c=a.toString)&&!w(d=c.call(a)))return d;if("function"==typeof(c=a.valueOf)&&!w(d=c.call(a)))return d;if(!b&&"function"==typeof(c=a.toString)&&!w(d=c.call(a)))return d;throw TypeError("Can't convert object to primitive value")},D=Object.defineProperty,E=k?D:function(a,b,c){if(B(a),b=C(b,!0),B(c),A)try{return D(a,b,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported");return"value"in c&&(a[b]=c.value),a},f={f:E},F=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}},G=k?function(a,b,c){return f.f(a,b,F(1,c))}:function(a,b,c){return a[b]=c,a},H=function(a,b){try{G(o,a,b)}catch(c){o[a]=b}return b},I=a(function(a){var b=o["__core-js_shared__"]||H("__core-js_shared__",{});(a.exports=function(a,c){return b[a]||(b[a]=c===void 0?{}:c)})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),J={}.hasOwnProperty,K=function(a,b){return J.call(a,b)},L=I("native-function-to-string",Function.toString),M=o.WeakMap,N="function"==typeof M&&/native code/.test(L.call(M)),O=0,P=Math.random(),Q=function(a){return"Symbol("+((a===void 0?"":a)+"")+")_"+(++O+P).toString(36)},R=I("keys"),S=function(a){return R[a]||(R[a]=Q(a))},T={},U=o.WeakMap,V=function(a){return h(a)?g(a):e(a,{})};if(N){var W=new U,X=W.get,Y=W.has,Z=W.set;e=function(a,b){return Z.call(W,a,b),b},g=function(a){return X.call(W,a)||{}},h=function(a){return Y.call(W,a)}}else{var $=S("state");T[$]=!0,e=function(a,b){return G(a,$,b),b},g=function(a){return K(a,$)?a[$]:{}},h=function(a){return K(a,$)}}var _={set:e,get:g,has:h,enforce:V,getterFor:function(a){return function(b){var c;if(!w(b)||(c=g(b)).type!==a)throw TypeError("Incompatible receiver, "+a+" required");return c}}},aa=a(function(a){var b=_.get,c=_.enforce,d=(L+"").split("toString");I("inspectSource",function(a){return L.call(a)}),(a.exports=function(a,b,e,f){var g=!!f&&!!f.unsafe,h=!!f&&!!f.enumerable,i=!!f&&!!f.noTargetGet;return("function"==typeof e&&("string"==typeof b&&!K(e,"name")&&G(e,"name",b),c(e).source=d.join("string"==typeof b?b:"")),a===o)?void(h?a[b]=e:H(b,e)):void(g?!i&&a[b]&&(h=!0):delete a[b],h?a[b]=e:G(a,b,e))})(Function.prototype,"toString",function(){return"function"==typeof this&&b(this).source||L.call(this)})}),ba={}.toString,ca=function(a){return ba.call(a).slice(8,-1)},da=function(a){if(!w(a)&&null!==a)throw TypeError("Can't set "+(a+" as a prototype"));return a},ea=Object.setPrototypeOf||("__proto__"in{}?function(){var a,b=!1,c={};try{a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,a.call(c,[]),b=c instanceof Array}catch(a){}return function(c,d){return B(c),da(d),b?a.call(c,d):c.__proto__=d,c}}():void 0),fa=function(a,b,c){var d,e;return ea&&"function"==typeof(d=b.constructor)&&d!==c&&w(e=d.prototype)&&e!==c.prototype&&ea(a,e),a},ga="".split,ha=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return"String"==ca(a)?ga.call(a,""):Object(a)}:Object,ia=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a},ja=function(a){return ha(ia(a))},ka=Math.ceil,la=function(a){return isNaN(a=+a)?0:(0<a?d:ka)(a)},ma=function(a){return 0<a?c(la(a),9007199254740991):0},na=function(a,d){var e=la(a);return 0>e?b(e+d,0):c(e,d)},oa=function(a){return function(b,c,d){var e,f=ja(b),g=ma(f.length),h=na(d,g);if(a&&c!=c){for(;g>h;)if(e=f[h++],e!=e)return!0;}else for(;g>h;h++)if((a||h in f)&&f[h]===c)return a||h||0;return!a&&-1}},pa={includes:oa(!0),indexOf:oa(!1)},qa=pa.indexOf,ra=function(a,b){var c,d=ja(a),e=0,f=[];for(c in d)!K(T,c)&&K(d,c)&&f.push(c);for(;b.length>e;)K(d,c=b[e++])&&(~qa(f,c)||f.push(c));return f},sa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ta=Object.keys||function(a){return ra(a,sa)},ua=k?Object.defineProperties:function(a,b){B(a);for(var c,d=ta(b),e=d.length,g=0;e>g;)f.f(a,c=d[g++],b[c]);return a},va=o,wa=function(a){return"function"==typeof a?a:void 0},xa=function(a,b){return 2>arguments.length?wa(va[a])||wa(o[a]):va[a]&&va[a][b]||o[a]&&o[a][b]},ya=xa("document","documentElement"),za=S("IE_PROTO"),Aa="prototype",Ba=function(){},Ca=function(){var a,b=z("iframe"),c=sa.length,d="<",e="script",f=">";for(b.style.display="none",ya.appendChild(b),b.src="java"+e+":"+"",a=b.contentWindow.document,a.open(),a.write(d+e+f+"document.F=Object"+d+"/"+e+f),a.close(),Ca=a.F;c--;)delete Ca[Aa][sa[c]];return Ca()},Da=Object.create||function(a,b){var c;return null===a?c=Ca():(Ba[Aa]=B(a),c=new Ba,Ba[Aa]=null,c[za]=a),void 0===b?c:ua(c,b)};T[za]=!0;var Ea=sa.concat("length","prototype"),Fa=Object.getOwnPropertyNames||function(a){return ra(a,Ea)},Ga={f:Fa},Ha={}.propertyIsEnumerable,Ia=Object.getOwnPropertyDescriptor,Ja=Ia&&!Ha.call({1:2},1),Ka=Ja?function(a){var b=Ia(this,a);return!!b&&b.enumerable}:Ha,La={f:Ka},Ma=Object.getOwnPropertyDescriptor,Na=k?Ma:function(a,b){if(a=ja(a),b=C(b,!0),A)try{return Ma(a,b)}catch(a){}return K(a,b)?F(!La.f.call(a,b),a[b]):void 0},Oa={f:Na},Pa="\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF",Qa="["+Pa+"]",Ra=RegExp("^"+Qa+Qa+"*"),Sa=RegExp(Qa+Qa+"*$"),Ta=function(a){return function(b){var c=ia(b)+"";return 1&a&&(c=c.replace(Ra,"")),2&a&&(c=c.replace(Sa,"")),c}},Ua={start:Ta(1),end:Ta(2),trim:Ta(3)},Va=Ga.f,Wa=Oa.f,Xa=f.f,Ya=Ua.trim,Za="Number",$a=o[Za],_a=$a.prototype,ab=ca(Da(_a))==Za,bb=function(a){var b,c,d,e,f,g,h,i,j=C(a,!1);if("string"==typeof j&&2<j.length)if(j=Ya(j),b=j.charCodeAt(0),43===b||45===b){if(c=j.charCodeAt(2),88===c||120===c)return NaN;}else if(48===b){switch(j.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+j;}for(f=j.slice(2),g=f.length,h=0;h<g;h++)if(i=f.charCodeAt(h),48>i||i>e)return NaN;return parseInt(f,d)}return+j};if(v(Za,!$a(" 0o1")||!$a("0b1")||$a("+0x1"))){for(var cb,db=function(a){var b=1>arguments.length?0:a,c=this;return c instanceof db&&(ab?i(function(){_a.valueOf.call(c)}):ca(c)!=Za)?fa(new $a(bb(b)),c,db):bb(b)},eb=k?Va($a):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),fb=0;eb.length>fb;fb++)K($a,cb=eb[fb])&&!K(db,cb)&&Xa(db,cb,Wa($a,cb));db.prototype=_a,_a.constructor=db,aa(o,Za,db)}var gb=Object.getOwnPropertySymbols,hb={f:gb},ib=xa("Reflect","ownKeys")||function(a){var b=Ga.f(B(a)),c=hb.f;return c?b.concat(c(a)):b},jb=function(a,b){for(var c,d=ib(b),e=f.f,g=Oa.f,h=0;h<d.length;h++)c=d[h],K(a,c)||e(a,c,g(b,c))},kb=Oa.f,lb=function(a,b){var c,d,e,f,g,h,i=a.target,j=a.global,k=a.stat;if(d=j?o:k?o[i]||H(i,{}):(o[i]||{}).prototype,d)for(e in b){if(g=b[e],a.noTargetGet?(h=kb(d,e),f=h&&h.value):f=d[e],c=v(j?e:i+(k?".":"#")+e,a.forced),!c&&void 0!==f){if(typeof g==typeof f)continue;jb(g,f)}(a.sham||f&&f.sham)&&G(g,"sham",!0),aa(d,e,g,a)}},mb=Ua.trim,nb=o.parseInt,ob=/^[+-]?0[Xx]/,pb=8!==nb(Pa+"08")||22!==nb(Pa+"0x16"),qb=pb?function(a,b){var c=mb(a+"");return nb(c,b>>>0||(ob.test(c)?16:10))}:nb;lb({global:!0,forced:parseInt!=qb},{parseInt:qb});var rb=!!Object.getOwnPropertySymbols&&!i(function(){return!(Symbol()+"")}),sb=o.Symbol,tb=I("wks"),ub=function(a){return tb[a]||(tb[a]=rb&&sb[a]||(rb?sb:Q)("Symbol."+a))},vb=ub("match"),wb=function(a){var b;return w(a)&&((b=a[vb])===void 0?"RegExp"==ca(a):!!b)},xb=function(){var a=B(this),b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),a.dotAll&&(b+="s"),a.unicode&&(b+="u"),a.sticky&&(b+="y"),b},yb=ub("species"),zb=f.f,Ab=Ga.f,Bb=ub("match"),Cb=o.RegExp,Db=Cb.prototype,Eb=/a/g,Fb=/a/g,Gb=new Cb(Eb)!==Eb,Hb=k&&v("RegExp",!Gb||i(function(){return Fb[Bb]=!1,Cb(Eb)!=Eb||Cb(Fb)==Fb||"/a/i"!=Cb(Eb,"i")}));if(Hb){for(var Ib=function(a,b){var c=this instanceof Ib,d=wb(a),e=void 0===b;return!c&&d&&a.constructor===Ib&&e?a:fa(Gb?new Cb(d&&!e?a.source:a,b):Cb((d=a instanceof Ib)?a.source:a,d&&e?xb.call(a):b),c?this:Db,Ib)},Jb=function(a){(a in Ib)||zb(Ib,a,{configurable:!0,get:function(){return Cb[a]},set:function(b){Cb[a]=b}})},Kb=Ab(Cb),Lb=0;Kb.length>Lb;)Jb(Kb[Lb++]);Db.constructor=Ib,Ib.prototype=Db,aa(o,"RegExp",Ib)}(function(a){var b=xa(a),c=f.f;k&&b&&!b[yb]&&c(b,yb,{configurable:!0,get:function(){return this}})})("RegExp");var Mb=RegExp.prototype,Nb=Mb.toString,Ob=i(function(){return"/a/b"!=Nb.call({source:"a",flags:"b"})}),Pb=Nb.name!="toString";(Ob||Pb)&&aa(RegExp.prototype,"toString",function(){var a=B(this),b=a.source+"",c=a.flags,d=(c===void 0&&a instanceof RegExp&&!("flags"in Mb)?xb.call(a):c)+"";return"/"+b+"/"+d},{unsafe:!0});var Qb=RegExp.prototype.exec,Rb=String.prototype.replace,Sb=Qb,Tb=function(){var a=/a/,b=/b*/g;return Qb.call(a,"a"),Qb.call(b,"a"),0!==a.lastIndex||0!==b.lastIndex}(),Ub=/()??/.exec("")[1]!==void 0;(Tb||Ub)&&(Sb=function(a){var b,c,d,e,f=this;return Ub&&(c=new RegExp("^"+f.source+"$(?!\\s)",xb.call(f))),Tb&&(b=f.lastIndex),d=Qb.call(f,a),Tb&&d&&(f.lastIndex=f.global?d.index+d[0].length:b),Ub&&d&&1<d.length&&Rb.call(d[0],c,function(){for(e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(d[e]=void 0)}),d});var Vb=Sb,Wb=ub("species"),Xb=!i(function(){var a=/./;return a.exec=function(){var a=[];return a.groups={a:"7"},a},"7"!=="".replace(a,"$<a>")}),Yb=!i(function(){var a=/(?:)/,b=a.exec;a.exec=function(){return b.apply(this,arguments)};var c="ab".split(a);return 2!==c.length||"a"!==c[0]||"b"!==c[1]}),Zb=function(a){return Object(ia(a))},$b=function(a){return function(b,c){var d,e,f=ia(b)+"",g=la(c),h=f.length;return 0>g||g>=h?a?"":void 0:(d=f.charCodeAt(g),55296>d||56319<d||g+1===h||56320>(e=f.charCodeAt(g+1))||57343<e?a?f.charAt(g):d:a?f.slice(g,g+2):(d-55296<<10)+(e-56320)+65536)}},_b={codeAt:$b(!1),charAt:$b(!0)},ac=_b.charAt,bc=function(a,b,c){return b+(c?ac(a,b).length:1)},cc=function(a,b){var c=a.exec;if("function"==typeof c){var d=c.call(a,b);if("object"!=typeof d)throw TypeError("RegExp exec method returned something other than an Object or null");return d}if("RegExp"!==ca(a))throw TypeError("RegExp#exec called on incompatible receiver");return Vb.call(a,b)},dc=/\$([$&'`]|\d\d?|<[^>]*>)/g,ec=/\$([$&'`]|\d\d?)/g,fc=function(a){return a===void 0?a:a+""};(function(a,b,c,d){var e=ub(a),f=!i(function(){var b={};return b[e]=function(){return 7},7!=""[a](b)}),g=f&&!i(function(){var b=!1,c=/a/;return c.exec=function(){return b=!0,null},"split"===a&&(c.constructor={},c.constructor[Wb]=function(){return c}),c[e](""),!b});if(!f||!g||"replace"===a&&!Xb||"split"===a&&!Yb){var h=/./[e],j=c(e,""[a],function(a,b,c,d,e){return b.exec===Vb?f&&!e?{done:!0,value:h.call(b,c,d)}:{done:!0,value:a.call(c,b,d)}:{done:!1}}),k=j[0],l=j[1];aa(String.prototype,a,k),aa(RegExp.prototype,e,2==b?function(a,b){return l.call(a,this,b)}:function(a){return l.call(a,this)}),d&&G(RegExp.prototype[e],"sham",!0)}})("replace",2,function(a,e,f){function g(a,b,c,g,h,i){var j=c+a.length,k=g.length,f=ec;return void 0!==h&&(h=Zb(h),f=dc),e.call(i,f,function(e,i){var l;switch(i.charAt(0)){case"$":return"$";case"&":return a;case"`":return b.slice(0,c);case"'":return b.slice(j);case"<":l=h[i.slice(1,-1)];break;default:var m=+i;if(0==m)return e;if(m>k){var n=d(m/10);return 0===n?e:n<=k?void 0===g[n-1]?i.charAt(1):g[n-1]+i.charAt(1):e}l=g[m-1];}return void 0===l?"":l})}return[function(b,c){var d=ia(this),f=b==null?void 0:b[a];return f===void 0?e.call(d+"",b,c):f.call(b,d,c)},function(a,d){var h=f(e,a,this,d);if(h.done)return h.value;var k=B(a),l=this+"",m="function"==typeof d;m||(d=d+"");var n=k.global;if(n){var o=k.unicode;k.lastIndex=0}for(var p,q=[];(p=cc(k,l),null!==p)&&!(q.push(p),!n);){var r=p[0]+"";""==r&&(k.lastIndex=bc(l,ma(k.lastIndex),o))}for(var s="",t=0,u=0;u<q.length;u++){p=q[u];for(var v=p[0]+"",w=b(c(la(p.index),l.length),0),x=[],y=1;y<p.length;y++)x.push(fc(p[y]));var z=p.groups;if(m){var A=[v].concat(x,w,l);z!==void 0&&A.push(z);var C=d.apply(void 0,A)+""}else C=g(v,l,w,x,z,d);w>=t&&(s+=l.slice(t,w)+C,t=w+v.length)}return s+l.slice(t)}]});return{alphanum:function(e,a){function b(a){for(var b=[],c=-1,d=0,e=0;e<=a.length;e++){var f=a.charAt(e),g=f.charCodeAt(0),h=46===g||48<=g&&57>=g;h!==d&&(b[++c]="",d=h),b[c]+=f}return b}function f(a){return"number"==typeof a&&(a="".concat(a)),a||(a=""),a}for(var g=b(f(e)),h=b(f(a)),i=0;g[i]&&h[i];i++)if(g[i]!==h[i]){var j=+g[i],c=+h[i];return j===g[i]&&c===h[i]?j-c:g[i]>h[i]?1:-1}return g.length-h.length},numericOnly:function(c,a){function b(a){return a=a.replace(new RegExp(/[^0-9]/g),""),parseInt(a,10)}return b(c)-b(a)}}});