UNPKG

bootstrap-table

Version:

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11 lines (9 loc) 18.9 kB
/** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * * @version v1.17.1 * @homepage https://bootstrap-table.com * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/) * @license MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f={f:u&&!c.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},h="".split,g=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return g(d(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!y(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!y(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!y(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!y(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},x={}.hasOwnProperty,m=function(t,e){return x.call(t,e)},O=o.document,S=y(O)&&y(O.createElement),w=!a&&!i((function(){return 7!=Object.defineProperty((t="div",S?O.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),E=Object.getOwnPropertyDescriptor,j={f:a?E:function(t,e){if(t=v(t),e=b(e,!0),w)try{return E(t,e)}catch(t){}if(m(t,e))return l(!f.f.call(t,e),t[e])}},_=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,R={f:a?P:function(t,e,n){if(_(t),e=b(e,!0),_(n),w)try{return P(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}},T=a?function(t,e,n){return R.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},I=function(t,e){try{T(o,t,e)}catch(n){o[t]=e}return e},A=o["__core-js_shared__"]||I("__core-js_shared__",{}),k=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return k.call(t)});var D,N,C,M,$=A.inspectSource,L=o.WeakMap,U="function"==typeof L&&/native code/.test($(L)),z=n((function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),B=0,F=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+F).toString(36)},K=z("keys"),q={},Y=o.WeakMap;if(U){var G=new Y,W=G.get,Q=G.has,H=G.set;D=function(t,e){return H.call(G,t,e),e},N=function(t){return W.call(G,t)||{}},C=function(t){return Q.call(G,t)}}else{var J=K[M="state"]||(K[M]=V(M));q[J]=!0,D=function(t,e){return T(t,J,e),e},N=function(t){return m(t,J)?t[J]:{}},C=function(t){return m(t,J)}}var X,Z,tt={set:D,get:N,has:C,enforce:function(t){return C(t)?N(t):D(t,{})},getterFor:function(t){return function(e){var n;if(!y(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=n((function(t){var e=tt.get,n=tt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||m(i,"name")||T(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:T(t,e,i)):u?t[e]=i:I(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||$(this)}))})),nt=o,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(o[t]):nt[t]&&nt[t][e]||o[t]&&o[t][e]},it=Math.ceil,at=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},ut=Math.min,ft=function(t){return t>0?ut(ct(t),9007199254740991):0},lt=Math.max,st=Math.min,pt=function(t){return function(e,n,r){var o,i=v(e),a=ft(i.length),c=function(t,e){var n=ct(t);return n<0?lt(n+e,0):st(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ht={includes:pt(!0),indexOf:pt(!1)}.indexOf,gt=function(t,e){var n,r=v(t),o=0,i=[];for(n in r)!m(q,n)&&m(r,n)&&i.push(n);for(;e.length>o;)m(r,n=e[o++])&&(~ht(i,n)||i.push(n));return i},dt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=dt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return gt(t,vt)}},bt={f:Object.getOwnPropertySymbols},xt=ot("Reflect","ownKeys")||function(t){var e=yt.f(_(t)),n=bt.f;return n?e.concat(n(t)):e},mt=function(t,e){for(var n=xt(e),r=R.f,o=j.f,i=0;i<n.length;i++){var a=n[i];m(t,a)||r(t,a,o(e,a))}},Ot=/#|\.prototype\./,St=function(t,e){var n=Et[wt(t)];return n==_t||n!=jt&&("function"==typeof e?i(e):!!e)},wt=St.normalize=function(t){return String(t).replace(Ot,".").toLowerCase()},Et=St.data={},jt=St.NATIVE="N",_t=St.POLYFILL="P",Pt=St,Rt=j.f,Tt=function(t,e){var n,r,i,a,c,u=t.target,f=t.global,l=t.stat;if(n=f?o:l?o[u]||I(u,{}):(o[u]||{}).prototype)for(r in e){if(a=e[r],i=t.noTargetGet?(c=Rt(n,r))&&c.value:n[r],!Pt(f?r:u+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;mt(a,i)}(t.sham||i&&i.sham)&&T(a,"sham",!0),et(n,r,a,t)}},It=Array.isArray||function(t){return"Array"==p(t)},At=function(t){return Object(d(t))},kt=function(t,e,n){var r=b(e);r in t?R.f(t,r,l(0,n)):t[r]=n},Dt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Nt=Dt&&!Symbol.sham&&"symbol"==typeof Symbol(),Ct=z("wks"),Mt=o.Symbol,$t=Nt?Mt:V,Lt=function(t){return m(Ct,t)||(Dt&&m(Mt,t)?Ct[t]=Mt[t]:Ct[t]=$t("Symbol."+t)),Ct[t]},Ut=Lt("species"),zt=function(t,e){var n;return It(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!It(n.prototype)?y(n)&&null===(n=n[Ut])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Bt=ot("navigator","userAgent")||"",Ft=o.process,Vt=Ft&&Ft.versions,Kt=Vt&&Vt.v8;Kt?Z=(X=Kt.split("."))[0]+X[1]:Bt&&(!(X=Bt.match(/Edge\/(\d+)/))||X[1]>=74)&&(X=Bt.match(/Chrome\/(\d+)/))&&(Z=X[1]);var qt,Yt=Z&&+Z,Gt=Lt("species"),Wt=Lt("isConcatSpreadable"),Qt=Yt>=51||!i((function(){var t=[];return t[Wt]=!1,t.concat()[0]!==t})),Ht=(qt="concat",Yt>=51||!i((function(){var t=[];return(t.constructor={})[Gt]=function(){return{foo:1}},1!==t[qt](Boolean).foo}))),Jt=function(t){if(!y(t))return!1;var e=t[Wt];return void 0!==e?!!e:It(t)};Tt({target:"Array",proto:!0,forced:!Qt||!Ht},{concat:function(t){var e,n,r,o,i,a=At(this),c=zt(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Jt(i=-1===e?a:arguments[e])){if(u+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&kt(c,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");kt(c,u++,i)}return c.length=u,c}});var Xt=Object.keys||function(t){return gt(t,dt)},Zt=f.f,te=function(t){return function(e){for(var n,r=v(e),o=Xt(r),i=o.length,c=0,u=[];i>c;)n=o[c++],a&&!Zt.call(r,n)||u.push(t?[n,r[n]]:r[n]);return u}},ee={entries:te(!0),values:te(!1)}.entries;Tt({target:"Object",stat:!0},{entries:function(t){return ee(t)}});var ne=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return _(n),function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),re=Lt("match"),oe=function(){var t=_(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function ie(t,e){return RegExp(t,e)}var ae={UNSUPPORTED_Y:i((function(){var t=ie("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=ie("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ce=Lt("species"),ue=R.f,fe=yt.f,le=tt.set,se=Lt("match"),pe=o.RegExp,he=pe.prototype,ge=/a/g,de=/a/g,ve=new pe(ge)!==ge,ye=ae.UNSUPPORTED_Y;if(a&&Pt("RegExp",!ve||ye||i((function(){return de[se]=!1,pe(ge)!=ge||pe(de)==de||"/a/i"!=pe(ge,"i")})))){for(var be=function(t,e){var n,r,o,i=this instanceof be,a=y(n=t)&&(void 0!==(r=n[re])?!!r:"RegExp"==p(n)),c=void 0===e;if(!i&&a&&t.constructor===be&&c)return t;ve?a&&!c&&(t=t.source):t instanceof be&&(c&&(e=oe.call(t)),t=t.source),ye&&(o=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var u,f,l,s,h,g=(u=ve?new pe(t,e):pe(t,e),f=i?this:he,l=be,ne&&"function"==typeof(s=f.constructor)&&s!==l&&y(h=s.prototype)&&h!==l.prototype&&ne(u,h),u);return ye&&o&&le(g,{sticky:o}),g},xe=function(t){t in be||ue(be,t,{configurable:!0,get:function(){return pe[t]},set:function(e){pe[t]=e}})},me=fe(pe),Oe=0;me.length>Oe;)xe(me[Oe++]);he.constructor=be,be.prototype=he,et(o,"RegExp",be)}!function(t){var e=ot(t),n=R.f;a&&e&&!e[ce]&&n(e,ce,{configurable:!0,get:function(){return this}})}("RegExp");var Se=RegExp.prototype.exec,we=String.prototype.replace,Ee=Se,je=function(){var t=/a/,e=/b*/g;return Se.call(t,"a"),Se.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_e=ae.UNSUPPORTED_Y||ae.BROKEN_CARET,Pe=void 0!==/()??/.exec("")[1];(je||Pe||_e)&&(Ee=function(t){var e,n,r,o,i=this,a=_e&&i.sticky,c=oe.call(i),u=i.source,f=0,l=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),Pe&&(n=new RegExp("^"+u+"$(?!\\s)",c)),je&&(e=i.lastIndex),r=Se.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:je&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Pe&&r&&r.length>1&&we.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Re=Ee;Tt({target:"RegExp",proto:!0,forced:/./.exec!==Re},{exec:Re});var Te=RegExp.prototype,Ie=Te.toString,Ae=i((function(){return"/a/b"!=Ie.call({source:"a",flags:"b"})})),ke="toString"!=Ie.name;(Ae||ke)&&et(RegExp.prototype,"toString",(function(){var t=_(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Te)?oe.call(t):n)}),{unsafe:!0});var De=Lt("species"),Ne=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ce="$0"==="a".replace(/./,"$0"),Me=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),$e=function(t,e,n,r){var o=Lt(t),a=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=a&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[De]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!a||!c||"replace"===t&&(!Ne||!Ce)||"split"===t&&!Me){var u=/./[o],f=n(o,""[t],(function(t,e,n,r,o){return e.exec===Re?a&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Ce}),l=f[0],s=f[1];et(String.prototype,t,l),et(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&T(RegExp.prototype[o],"sham",!0)},Le=function(t){return function(e,n){var r,o,i=String(d(e)),a=ct(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Ue={codeAt:Le(!1),charAt:Le(!0)}.charAt,ze=function(t,e,n){return e+(n?Ue(t,e).length:1)},Be=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return Re.call(t,e)};$e("match",1,(function(t,e,n){return[function(e){var n=d(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=_(t),i=String(this);if(!o.global)return Be(o,i);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=Be(o,i));){var l=String(c[0]);u[f]=l,""===l&&(o.lastIndex=ze(i,ft(o.lastIndex),a)),f++}return 0===f?null:u}]}));var Fe=Math.max,Ve=Math.min,Ke=Math.floor,qe=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ye=/\$([$&'`]|\d\d?)/g;$e("replace",2,(function(t,e,n,r){return[function(n,r){var o=d(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,i){if(r.REPLACE_KEEPS_$0||"string"==typeof i&&-1===i.indexOf("$0")){var a=n(e,t,this,i);if(a.done)return a.value}var c=_(t),u=String(this),f="function"==typeof i;f||(i=String(i));var l=c.global;if(l){var s=c.unicode;c.lastIndex=0}for(var p=[];;){var h=Be(c,u);if(null===h)break;if(p.push(h),!l)break;""===String(h[0])&&(c.lastIndex=ze(u,ft(c.lastIndex),s))}for(var g,d="",v=0,y=0;y<p.length;y++){h=p[y];for(var b=String(h[0]),x=Fe(Ve(ct(h.index),u.length),0),m=[],O=1;O<h.length;O++)m.push(void 0===(g=h[O])?g:String(g));var S=h.groups;if(f){var w=[b].concat(m,x,u);void 0!==S&&w.push(S);var E=String(i.apply(void 0,w))}else E=o(b,u,x,m,S,i);x>=v&&(d+=u.slice(v,x)+E,v=x+b.length)}return d+u.slice(v)}];function o(t,n,r,o,i,a){var c=r+t.length,u=o.length,f=Ye;return void 0!==i&&(i=At(i),f=qe),e.call(a,f,(function(e,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return e;if(l>u){var s=Ke(l/10);return 0===s?e:s<=u?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):e}f=o[l-1]}return void 0===f?"":f}))}}));var Ge=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};function We(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qe(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 He(t){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Je(t,e){return(Je=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xe(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 Ze(t,e,n){return(Ze="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=He(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)}function tn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function en(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.search,n=0,r=Object.entries(t);n<r.length;n++){var o=tn(r[n],2),i=o[0],a=o[1],c="".concat(i,"=([^&]*)"),u="".concat(i,"=").concat(a);if(e.match(c)){var f=new RegExp("(".concat(i,"=)([^&]*)"),"gi");e=e.replace(f,u)}else{var l=e.match("[?]")?"&":"?";e=e+l+u}}return location.hash&&(e+=location.hash),e}$e("search",1,(function(t,e,n){return[function(e){var n=d(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=_(t),i=String(this),a=o.lastIndex;Ge(a,0)||(o.lastIndex=0);var c=Be(o,i);return Ge(o.lastIndex,a)||(o.lastIndex=a),null===c?-1:c.index}]})),t.extend(t.fn.bootstrapTable.defaults,{addrbar:!1,addrPrefix:""}),t.BootstrapTable=function(e){function n(){return We(this,n),Xe(this,He(n).apply(this,arguments))}var r,o,i;return 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&&Je(t,e)}(n,e),r=n,(o=[{key:"init",value:function(){var t,e=this;if(this.options.pagination&&"server"===this.options.sidePagination&&this.options.addrbar){this.addrbarInit=!0,this.options.pageNumber=+this.getDefaultOptionValue("pageNumber","page"),this.options.pageSize=+this.getDefaultOptionValue("pageSize","size"),this.options.sortOrder=this.getDefaultOptionValue("sortOrder","order"),this.options.sortName=this.getDefaultOptionValue("sortName","sort"),this.options.searchText=this.getDefaultOptionValue("searchText","search");var r=this.options.addrPrefix||"",o=this.options.onLoadSuccess;this.options.onLoadSuccess=function(t){if(e.addrbarInit)e.addrbarInit=!1;else{var n={};n["".concat(r,"page")]=e.options.pageNumber,n["".concat(r,"size")]=e.options.pageSize,n["".concat(r,"order")]=e.options.sortOrder,n["".concat(r,"sort")]=e.options.sortName,n["".concat(r,"search")]=e.options.searchText,window.history.pushState({},"",en(n))}o&&o.call(e,t)}}for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];(t=Ze(He(n.prototype),"init",this)).call.apply(t,[this].concat(a))}},{key:"getDefaultOptionValue",value:function(e,n){return this.options[e]!==t.BootstrapTable.DEFAULTS[e]?this.options[e]:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.search,n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e.substr(1).match(n);return r?decodeURIComponent(r[2]):null}("".concat(this.options.addrPrefix||"").concat(n))||t.BootstrapTable.DEFAULTS[e]}}])&&Qe(r.prototype,o),i&&Qe(r,i),n}(t.BootstrapTable)}));