UNPKG

10.1 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.19.1
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(t){return t&&t.Math==Math&&t},y=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},d=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,g={f:v&&!b.call({1:2},1)?function(t){var e=v(this,t);return!!e&&e.enumerable}:b},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w={}.toString,O=function(t){return w.call(t).slice(8,-1)},j="".split,S=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?j.call(t,""):Object(t)}:Object,P=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},T=function(t){return S(P(t))},E=function(t){return"object"==typeof t?null!==t:"function"==typeof t},x=function(t,e){if(!E(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!E(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!E(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!E(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,M=function(t,e){return _.call(t,e)},A=y.document,R=E(A)&&E(A.createElement),k=!d&&!h((function(){return 7!=Object.defineProperty((t="div",R?A.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),C=Object.getOwnPropertyDescriptor,I={f:d?C:function(t,e){if(t=T(t),e=x(e,!0),k)try{return C(t,e)}catch(t){}if(M(t,e))return m(!g.f.call(t,e),t[e])}},B=function(t){if(!E(t))throw TypeError(String(t)+" is not an object");return t},F=Object.defineProperty,L={f:d?F:function(t,e,n){if(B(t),e=x(e,!0),B(n),k)try{return F(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},N=d?function(t,e,n){return L.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},q=function(t,e){try{N(y,t,e)}catch(n){y[t]=e}return e},D="__core-js_shared__",z=y[D]||q(D,{}),U=Function.toString;"function"!=typeof z.inspectSource&&(z.inspectSource=function(t){return U.call(t)});var G,W,K,Q,V=z.inspectSource,Y=y.WeakMap,H="function"==typeof Y&&/native code/.test(V(Y)),J=s((function(t){(t.exports=function(t,e){return z[t]||(z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,Z=Math.random(),$=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++X+Z).toString(36)},tt=J("keys"),et={},nt=y.WeakMap;if(H){var rt=z.state||(z.state=new nt),ot=rt.get,it=rt.has,ut=rt.set;G=function(t,e){return e.facade=t,ut.call(rt,t,e),e},W=function(t){return ot.call(rt,t)||{}},K=function(t){return it.call(rt,t)}}else{var ft=tt[Q="state"]||(tt[Q]=$(Q));et[ft]=!0,G=function(t,e){return e.facade=t,N(t,ft,e),e},W=function(t){return M(t,ft)?t[ft]:{}},K=function(t){return M(t,ft)}}var ct,at,lt={set:G,get:W,has:K,enforce:function(t){return K(t)?W(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!E(e)||(n=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},st=s((function(t){var e=lt.get,n=lt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var u,f=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,a=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||M(o,"name")||N(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==y?(f?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=o:N(t,e,o)):c?t[e]=o:q(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||V(this)}))})),pt=y,yt=function(t){return"function"==typeof t?t:void 0},ht=function(t,e){return arguments.length<2?yt(pt[t])||yt(y[t]):pt[t]&&pt[t][e]||y[t]&&y[t][e]},dt=Math.ceil,bt=Math.floor,vt=function(t){return isNaN(t=+t)?0:(t>0?bt:dt)(t)},gt=Math.min,mt=function(t){return t>0?gt(vt(t),9007199254740991):0},wt=Math.max,Ot=Math.min,jt=function(t){return function(e,n,r){var o,i=T(e),u=mt(i.length),f=function(t,e){var n=vt(t);return n<0?wt(n+e,0):Ot(n,e)}(r,u);if(t&&n!=n){for(;u>f;)if((o=i[f++])!=o)return!0}else for(;u>f;f++)if((t||f in i)&&i[f]===n)return t||f||0;return!t&&-1}},St={includes:jt(!0),indexOf:jt(!1)}.indexOf,Pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Tt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=T(t),o=0,i=[];for(n in r)!M(et,n)&&M(r,n)&&i.push(n);for(;e.length>o;)M(r,n=e[o++])&&(~St(i,n)||i.push(n));return i}(t,Pt)}},Et={f:Object.getOwnPropertySymbols},xt=ht("Reflect","ownKeys")||function(t){var e=Tt.f(B(t)),n=Et.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=xt(e),r=L.f,o=I.f,i=0;i<n.length;i++){var u=n[i];M(t,u)||r(t,u,o(e,u))}},Mt=/#|\.prototype\./,At=function(t,e){var n=kt[Rt(t)];return n==It||n!=Ct&&("function"==typeof e?h(e):!!e)},Rt=At.normalize=function(t){return String(t).replace(Mt,".").toLowerCase()},kt=At.data={},Ct=At.NATIVE="N",It=At.POLYFILL="P",Bt=At,Ft=I.f,Lt=Array.isArray||function(t){return"Array"==O(t)},Nt=function(t){return Object(P(t))},qt=function(t,e,n){var r=x(e);r in t?L.f(t,r,m(0,n)):t[r]=n},Dt="process"==O(y.process),zt=ht("navigator","userAgent")||"",Ut=y.process,Gt=Ut&&Ut.versions,Wt=Gt&&Gt.v8;Wt?at=(ct=Wt.split("."))[0]+ct[1]:zt&&(!(ct=zt.match(/Edge\/(\d+)/))||ct[1]>=74)&&(ct=zt.match(/Chrome\/(\d+)/))&&(at=ct[1]);var Kt,Qt=at&&+at,Vt=!!Object.getOwnPropertySymbols&&!h((function(){return!Symbol.sham&&(Dt?38===Qt:Qt>37&&Qt<41)})),Yt=Vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ht=J("wks"),Jt=y.Symbol,Xt=Yt?Jt:Jt&&Jt.withoutSetter||$,Zt=function(t){return M(Ht,t)&&(Vt||"string"==typeof Ht[t])||(Vt&&M(Jt,t)?Ht[t]=Jt[t]:Ht[t]=Xt("Symbol."+t)),Ht[t]},$t=Zt("species"),te=function(t,e){var n;return Lt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Lt(n.prototype)?E(n)&&null===(n=n[$t])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ee=Zt("species"),ne=Zt("isConcatSpreadable"),re=9007199254740991,oe="Maximum allowed index exceeded",ie=Qt>=51||!h((function(){var t=[];return t[ne]=!1,t.concat()[0]!==t})),ue=(Kt="concat",Qt>=51||!h((function(){var t=[];return(t.constructor={})[ee]=function(){return{foo:1}},1!==t[Kt](Boolean).foo}))),fe=function(t){if(!E(t))return!1;var e=t[ne];return void 0!==e?!!e:Lt(t)};!function(t,e){var n,r,o,i,u,f=t.target,c=t.global,a=t.stat;if(n=c?y:a?y[f]||q(f,{}):(y[f]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Ft(n,r))&&u.value:n[r],!Bt(c?r:f+(a?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;_t(i,o)}(t.sham||o&&o.sham)&&N(i,"sham",!0),st(n,r,i,t)}}({target:"Array",proto:!0,forced:!ie||!ue},{concat:function(t){var e,n,r,o,i,u=Nt(this),f=te(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(fe(i=-1===e?u:arguments[e])){if(c+(o=mt(i.length))>re)throw TypeError(oe);for(n=0;n<o;n++,c++)n in i&&qt(f,c,i[n])}else{if(c>=re)throw TypeError(oe);qt(f,c++,i)}return f.length=c,f}}),n.default.extend(n.default.fn.bootstrapTable.defaults,{deferUrl:void 0}),n.default.BootstrapTable=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,f,l=c(s);function s(){return r(this,s),l.apply(this,arguments)}return e=s,(n=[{key:"init",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=a(i(s.prototype),"init",this)).call.apply(t,[this].concat(n)),this.options.deferUrl&&(this.options.url=this.options.deferUrl)}}])&&o(e.prototype,n),f&&o(e,f),s}(n.default.BootstrapTable)}));