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) 34.7 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.18.3 * @homepage https://bootstrap-table.com * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/) * @license MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=t(e);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){var t=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(e){return!1}}();return function(){var o,r=i(e);if(t){var n=i(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return c(this,o)}}function l(e,t,o){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}(e,t);if(r){var n=Object.getOwnPropertyDescriptor(r,t);return n.get?n.get.call(o):n.value}})(e,t,o||e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function f(e,t){var o;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return u(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(c)throw i}}}}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e,t){return e(t={exports:{}},t.exports),t.exports}var d=function(e){return e&&e.Math==Math&&e},g=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof p&&p)||function(){return this}()||Function("return this")(),v=function(e){try{return!!e()}catch(e){return!0}},y=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,k={f:m&&!b.call({1:2},1)?function(e){var t=m(this,e);return!!t&&t.enumerable}:b},S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C={}.toString,x=function(e){return C.call(e).slice(8,-1)},E="".split,w=v((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==x(e)?E.call(e,""):Object(e)}:Object,I=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},T=function(e){return w(I(e))},O=function(e){return"object"==typeof e?null!==e:"function"==typeof e},j=function(e,t){if(!O(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!O(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!O(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!O(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")},N={}.hasOwnProperty,A=function(e,t){return N.call(e,t)},P=g.document,L=O(P)&&O(P.createElement),R=function(e){return L?P.createElement(e):{}},_=!y&&!v((function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a})),D=Object.getOwnPropertyDescriptor,M={f:y?D:function(e,t){if(e=T(e),t=j(t,!0),_)try{return D(e,t)}catch(e){}if(A(e,t))return S(!k.f.call(e,t),e[t])}},B=function(e){if(!O(e))throw TypeError(String(e)+" is not an object");return e},G=Object.defineProperty,U={f:y?G:function(e,t,o){if(B(e),t=j(t,!0),B(o),_)try{return G(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},$=y?function(e,t,o){return U.f(e,t,S(1,o))}:function(e,t,o){return e[t]=o,e},V=function(e,t){try{$(g,e,t)}catch(o){g[e]=t}return t},F="__core-js_shared__",J=g[F]||V(F,{}),z=Function.toString;"function"!=typeof J.inspectSource&&(J.inspectSource=function(e){return z.call(e)});var H,q,K,W=J.inspectSource,X=g.WeakMap,Y="function"==typeof X&&/native code/.test(W(X)),Q=h((function(e){(e.exports=function(e,t){return J[e]||(J[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Z=0,ee=Math.random(),te=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Z+ee).toString(36)},oe=Q("keys"),re=function(e){return oe[e]||(oe[e]=te(e))},ne={},ie=g.WeakMap;if(Y){var ae=J.state||(J.state=new ie),ce=ae.get,se=ae.has,le=ae.set;H=function(e,t){return t.facade=e,le.call(ae,e,t),t},q=function(e){return ce.call(ae,e)||{}},K=function(e){return se.call(ae,e)}}else{var ue=re("state");ne[ue]=!0,H=function(e,t){return t.facade=e,$(e,ue,t),t},q=function(e){return A(e,ue)?e[ue]:{}},K=function(e){return A(e,ue)}}var fe,pe,he={set:H,get:q,has:K,enforce:function(e){return K(e)?q(e):H(e,{})},getterFor:function(e){return function(t){var o;if(!O(t)||(o=q(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return o}}},de=h((function(e){var t=he.get,o=he.enforce,r=String(String).split("String");(e.exports=function(e,t,n,i){var a,c=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||A(n,"name")||$(n,"name",t),(a=o(n)).source||(a.source=r.join("string"==typeof t?t:""))),e!==g?(c?!l&&e[t]&&(s=!0):delete e[t],s?e[t]=n:$(e,t,n)):s?e[t]=n:V(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||W(this)}))})),ge=g,ve=function(e){return"function"==typeof e?e:void 0},ye=function(e,t){return arguments.length<2?ve(ge[e])||ve(g[e]):ge[e]&&ge[e][t]||g[e]&&g[e][t]},be=Math.ceil,me=Math.floor,ke=function(e){return isNaN(e=+e)?0:(e>0?me:be)(e)},Se=Math.min,Ce=function(e){return e>0?Se(ke(e),9007199254740991):0},xe=Math.max,Ee=Math.min,we=function(e){return function(t,o,r){var n,i=T(t),a=Ce(i.length),c=function(e,t){var o=ke(e);return o<0?xe(o+t,0):Ee(o,t)}(r,a);if(e&&o!=o){for(;a>c;)if((n=i[c++])!=n)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===o)return e||c||0;return!e&&-1}},Ie={includes:we(!0),indexOf:we(!1)}.indexOf,Te=function(e,t){var o,r=T(e),n=0,i=[];for(o in r)!A(ne,o)&&A(r,o)&&i.push(o);for(;t.length>n;)A(r,o=t[n++])&&(~Ie(i,o)||i.push(o));return i},Oe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Oe.concat("length","prototype"),Ne={f:Object.getOwnPropertyNames||function(e){return Te(e,je)}},Ae={f:Object.getOwnPropertySymbols},Pe=ye("Reflect","ownKeys")||function(e){var t=Ne.f(B(e)),o=Ae.f;return o?t.concat(o(e)):t},Le=function(e,t){for(var o=Pe(t),r=U.f,n=M.f,i=0;i<o.length;i++){var a=o[i];A(e,a)||r(e,a,n(t,a))}},Re=/#|\.prototype\./,_e=function(e,t){var o=Me[De(e)];return o==Ge||o!=Be&&("function"==typeof t?v(t):!!t)},De=_e.normalize=function(e){return String(e).replace(Re,".").toLowerCase()},Me=_e.data={},Be=_e.NATIVE="N",Ge=_e.POLYFILL="P",Ue=_e,$e=M.f,Ve=function(e,t){var o,r,n,i,a,c=e.target,s=e.global,l=e.stat;if(o=s?g:l?g[c]||V(c,{}):(g[c]||{}).prototype)for(r in t){if(i=t[r],n=e.noTargetGet?(a=$e(o,r))&&a.value:o[r],!Ue(s?r:c+(l?".":"#")+r,e.forced)&&void 0!==n){if(typeof i==typeof n)continue;Le(i,n)}(e.sham||n&&n.sham)&&$(i,"sham",!0),de(o,r,i,e)}},Fe=Array.isArray||function(e){return"Array"==x(e)},Je=function(e){return Object(I(e))},ze=function(e,t,o){var r=j(t);r in e?U.f(e,r,S(0,o)):e[r]=o},He="process"==x(g.process),qe=ye("navigator","userAgent")||"",Ke=g.process,We=Ke&&Ke.versions,Xe=We&&We.v8;Xe?pe=(fe=Xe.split("."))[0]+fe[1]:qe&&(!(fe=qe.match(/Edge\/(\d+)/))||fe[1]>=74)&&(fe=qe.match(/Chrome\/(\d+)/))&&(pe=fe[1]);var Ye=pe&&+pe,Qe=!!Object.getOwnPropertySymbols&&!v((function(){return!Symbol.sham&&(He?38===Ye:Ye>37&&Ye<41)})),Ze=Qe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=Q("wks"),tt=g.Symbol,ot=Ze?tt:tt&&tt.withoutSetter||te,rt=function(e){return A(et,e)&&(Qe||"string"==typeof et[e])||(Qe&&A(tt,e)?et[e]=tt[e]:et[e]=ot("Symbol."+e)),et[e]},nt=rt("species"),it=function(e,t){var o;return Fe(e)&&("function"!=typeof(o=e.constructor)||o!==Array&&!Fe(o.prototype)?O(o)&&null===(o=o[nt])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===t?0:t)},at=rt("species"),ct=function(e){return Ye>=51||!v((function(){var t=[];return(t.constructor={})[at]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},st=rt("isConcatSpreadable"),lt=9007199254740991,ut="Maximum allowed index exceeded",ft=Ye>=51||!v((function(){var e=[];return e[st]=!1,e.concat()[0]!==e})),pt=ct("concat"),ht=function(e){if(!O(e))return!1;var t=e[st];return void 0!==t?!!t:Fe(e)};Ve({target:"Array",proto:!0,forced:!ft||!pt},{concat:function(e){var t,o,r,n,i,a=Je(this),c=it(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(ht(i=-1===t?a:arguments[t])){if(s+(n=Ce(i.length))>lt)throw TypeError(ut);for(o=0;o<n;o++,s++)o in i&&ze(c,s,i[o])}else{if(s>=lt)throw TypeError(ut);ze(c,s++,i)}return c.length=s,c}});var dt=function(e,t){var o=[][e];return!!o&&v((function(){o.call(null,t||function(){throw 1},1)}))},gt=[].join,vt=w!=Object,yt=dt("join",",");Ve({target:"Array",proto:!0,forced:vt||!yt},{join:function(e){return gt.call(T(this),void 0===e?",":e)}});var bt=function(){var e=B(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function mt(e,t){return RegExp(e,t)}var kt,St,Ct={UNSUPPORTED_Y:v((function(){var e=mt("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:v((function(){var e=mt("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},xt=RegExp.prototype.exec,Et=String.prototype.replace,wt=xt,It=(kt=/a/,St=/b*/g,xt.call(kt,"a"),xt.call(St,"a"),0!==kt.lastIndex||0!==St.lastIndex),Tt=Ct.UNSUPPORTED_Y||Ct.BROKEN_CARET,Ot=void 0!==/()??/.exec("")[1];(It||Ot||Tt)&&(wt=function(e){var t,o,r,n,i=this,a=Tt&&i.sticky,c=bt.call(i),s=i.source,l=0,u=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),u=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(s="(?: "+s+")",u=" "+u,l++),o=new RegExp("^(?:"+s+")",c)),Ot&&(o=new RegExp("^"+s+"$(?!\\s)",c)),It&&(t=i.lastIndex),r=xt.call(a?o:i,u),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:It&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Ot&&r&&r.length>1&&Et.call(r[0],o,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(r[n]=void 0)})),r});var jt=wt;Ve({target:"RegExp",proto:!0,forced:/./.exec!==jt},{exec:jt});var Nt=rt("species"),At=!v((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Pt="$0"==="a".replace(/./,"$0"),Lt=rt("replace"),Rt=!!/./[Lt]&&""===/./[Lt]("a","$0"),_t=!v((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2!==o.length||"a"!==o[0]||"b"!==o[1]})),Dt=function(e,t,o,r){var n=rt(e),i=!v((function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})),a=i&&!v((function(){var t=!1,o=/a/;return"split"===e&&((o={}).constructor={},o.constructor[Nt]=function(){return o},o.flags="",o[n]=/./[n]),o.exec=function(){return t=!0,null},o[n](""),!t}));if(!i||!a||"replace"===e&&(!At||!Pt||Rt)||"split"===e&&!_t){var c=/./[n],s=o(n,""[e],(function(e,t,o,r,n){return t.exec===jt?i&&!n?{done:!0,value:c.call(t,o,r)}:{done:!0,value:e.call(o,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Pt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Rt}),l=s[0],u=s[1];de(String.prototype,e,l),de(RegExp.prototype,n,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}r&&$(RegExp.prototype[n],"sham",!0)},Mt=rt("match"),Bt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Gt=rt("species"),Ut=function(e){return function(t,o){var r,n,i=String(I(t)),a=ke(o),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(n=i.charCodeAt(a+1))<56320||n>57343?e?i.charAt(a):r:e?i.slice(a,a+2):n-56320+(r-55296<<10)+65536}},$t={codeAt:Ut(!1),charAt:Ut(!0)}.charAt,Vt=function(e,t,o){return t+(o?$t(e,t).length:1)},Ft=function(e,t){var o=e.exec;if("function"==typeof o){var r=o.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==x(e))throw TypeError("RegExp#exec called on incompatible receiver");return jt.call(e,t)},Jt=[].push,zt=Math.min,Ht=4294967295,qt=!v((function(){return!RegExp(Ht,"y")}));Dt("split",2,(function(e,t,o){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,o){var r,n,i=String(I(this)),a=void 0===o?Ht:o>>>0;if(0===a)return[];if(void 0===e)return[i];if(!O(r=e)||!(void 0!==(n=r[Mt])?n:"RegExp"==x(r)))return t.call(i,e,a);for(var c,s,l,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,h=new RegExp(e.source,f+"g");(c=jt.call(h,i))&&!((s=h.lastIndex)>p&&(u.push(i.slice(p,c.index)),c.length>1&&c.index<i.length&&Jt.apply(u,c.slice(1)),l=c[0].length,p=s,u.length>=a));)h.lastIndex===c.index&&h.lastIndex++;return p===i.length?!l&&h.test("")||u.push(""):u.push(i.slice(p)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(e,o){return void 0===e&&0===o?[]:t.call(this,e,o)}:t,[function(t,o){var n=I(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n,o):r.call(String(n),t,o)},function(e,n){var i=o(r,e,this,n,r!==t);if(i.done)return i.value;var a=B(e),c=String(this),s=function(e,t){var o,r=B(e).constructor;return void 0===r||null==(o=B(r)[Gt])?t:Bt(o)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(qt?"y":"g"),f=new s(qt?a:"^(?:"+a.source+")",u),p=void 0===n?Ht:n>>>0;if(0===p)return[];if(0===c.length)return null===Ft(f,c)?[c]:[];for(var h=0,d=0,g=[];d<c.length;){f.lastIndex=qt?d:0;var v,y=Ft(f,qt?c:c.slice(d));if(null===y||(v=zt(Ce(f.lastIndex+(qt?0:d)),c.length))===h)d=Vt(c,d,l);else{if(g.push(c.slice(h,d)),g.length===p)return g;for(var b=1;b<=y.length-1;b++)if(g.push(y[b]),g.length===p)return g;d=h=v}}return g.push(c.slice(h)),g}]}),!qt);var Kt=Math.floor,Wt="".replace,Xt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Yt=/\$([$&'`]|\d{1,2})/g,Qt=function(e,t,o,r,n,i){var a=o+e.length,c=r.length,s=Yt;return void 0!==n&&(n=Je(n),s=Xt),Wt.call(i,s,(function(i,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,o);case"'":return t.slice(a);case"<":l=n[s.slice(1,-1)];break;default:var u=+s;if(0===u)return i;if(u>c){var f=Kt(u/10);return 0===f?i:f<=c?void 0===r[f-1]?s.charAt(1):r[f-1]+s.charAt(1):i}l=r[u-1]}return void 0===l?"":l}))},Zt=Math.max,eo=Math.min;Dt("replace",2,(function(e,t,o,r){var n=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=n?"$":"$0";return[function(o,r){var n=I(this),i=null==o?void 0:o[e];return void 0!==i?i.call(o,n,r):t.call(String(n),o,r)},function(e,r){if(!n&&i||"string"==typeof r&&-1===r.indexOf(a)){var c=o(t,e,this,r);if(c.done)return c.value}var s=B(e),l=String(this),u="function"==typeof r;u||(r=String(r));var f=s.global;if(f){var p=s.unicode;s.lastIndex=0}for(var h=[];;){var d=Ft(s,l);if(null===d)break;if(h.push(d),!f)break;""===String(d[0])&&(s.lastIndex=Vt(l,Ce(s.lastIndex),p))}for(var g,v="",y=0,b=0;b<h.length;b++){d=h[b];for(var m=String(d[0]),k=Zt(eo(ke(d.index),l.length),0),S=[],C=1;C<d.length;C++)S.push(void 0===(g=d[C])?g:String(g));var x=d.groups;if(u){var E=[m].concat(S,k,l);void 0!==x&&E.push(x);var w=String(r.apply(void 0,E))}else w=Qt(m,l,k,S,x,r);k>=y&&(v+=l.slice(y,k)+w,y=k+m.length)}return v+l.slice(y)}]}));var to=[].push,oo=function(e){var t=1==e,o=2==e,r=3==e,n=4==e,i=6==e,a=7==e,c=5==e||i;return function(s,l,u,f){for(var p,h,d=Je(s),g=w(d),v=function(e,t,o){if(Bt(e),void 0===t)return e;switch(o){case 0:return function(){return e.call(t)};case 1:return function(o){return e.call(t,o)};case 2:return function(o,r){return e.call(t,o,r)};case 3:return function(o,r,n){return e.call(t,o,r,n)}}return function(){return e.apply(t,arguments)}}(l,u,3),y=Ce(g.length),b=0,m=f||it,k=t?m(s,y):o||a?m(s,0):void 0;y>b;b++)if((c||b in g)&&(h=v(p=g[b],b,d),e))if(t)k[b]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return b;case 2:to.call(k,p)}else switch(e){case 4:return!1;case 7:to.call(k,p)}return i?-1:r||n?n:k}},ro={forEach:oo(0),map:oo(1),filter:oo(2),some:oo(3),every:oo(4),find:oo(5),findIndex:oo(6),filterOut:oo(7)},no=ro.forEach,io=dt("forEach")?[].forEach:function(e){return no(this,e,arguments.length>1?arguments[1]:void 0)};for(var ao in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var co=g[ao],so=co&&co.prototype;if(so&&so.forEach!==io)try{$(so,"forEach",io)}catch(e){so.forEach=io}}var lo={};lo[rt("toStringTag")]="z";var uo="[object z]"===String(lo),fo=rt("toStringTag"),po="Arguments"==x(function(){return arguments}()),ho=uo?x:function(e){var t,o,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),fo))?o:po?x(t):"Object"==(r=x(t))&&"function"==typeof t.callee?"Arguments":r},go=uo?{}.toString:function(){return"[object "+ho(this)+"]"};uo||de(Object.prototype,"toString",go,{unsafe:!0});var vo="toString",yo=RegExp.prototype,bo=yo.toString,mo=v((function(){return"/a/b"!=bo.call({source:"a",flags:"b"})})),ko=bo.name!=vo;(mo||ko)&&de(RegExp.prototype,vo,(function(){var e=B(this),t=String(e.source),o=e.flags;return"/"+t+"/"+String(void 0===o&&e instanceof RegExp&&!("flags"in yo)?bt.call(e):o)}),{unsafe:!0});var So,Co=Object.keys||function(e){return Te(e,Oe)},xo=y?Object.defineProperties:function(e,t){B(e);for(var o,r=Co(t),n=r.length,i=0;n>i;)U.f(e,o=r[i++],t[o]);return e},Eo=ye("document","documentElement"),wo=re("IE_PROTO"),Io=function(){},To=function(e){return"<script>"+e+"</"+"script>"},Oo=function(){try{So=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Oo=So?function(e){e.write(To("")),e.close();var t=e.parentWindow.Object;return e=null,t}(So):((t=R("iframe")).style.display="none",Eo.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(To("document.F=Object")),e.close(),e.F);for(var o=Oe.length;o--;)delete Oo.prototype[Oe[o]];return Oo()};ne[wo]=!0;var jo=Object.create||function(e,t){var o;return null!==e?(Io.prototype=B(e),o=new Io,Io.prototype=null,o[wo]=e):o=Oo(),void 0===t?o:xo(o,t)},No=rt("unscopables"),Ao=Array.prototype;null==Ao[No]&&U.f(Ao,No,{configurable:!0,value:jo(null)});var Po,Lo=ro.find,Ro="find",_o=!0;Ro in[]&&Array(1).find((function(){_o=!1})),Ve({target:"Array",proto:!0,forced:_o},{find:function(e){return Lo(this,e,arguments.length>1?arguments[1]:void 0)}}),Po=Ro,Ao[No][Po]=!0;var Do=ro.filter;Ve({target:"Array",proto:!0,forced:!ct("filter")},{filter:function(e){return Do(this,e,arguments.length>1?arguments[1]:void 0)}});var Mo=ro.map;Ve({target:"Array",proto:!0,forced:!ct("map")},{map:function(e){return Mo(this,e,arguments.length>1?arguments[1]:void 0)}});var Bo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Dt("search",1,(function(e,t,o){return[function(t){var o=I(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,o):new RegExp(t)[e](String(o))},function(e){var r=o(t,e,this);if(r.done)return r.value;var n=B(e),i=String(this),a=n.lastIndex;Bo(a,0)||(n.lastIndex=0);var c=Ft(n,i);return Bo(n.lastIndex,a)||(n.lastIndex=a),null===c?-1:c.index}]}));var Go=o.default.fn.bootstrapTable.utils,Uo={cookieIds:{sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",columns:"bs.table.columns",searchText:"bs.table.searchText",reorderColumns:"bs.table.reorderColumns",filterControl:"bs.table.filterControl",filterBy:"bs.table.filterBy"},getCurrentHeader:function(e){var t=e.$header;return e.options.height&&(t=e.$tableHeader),t},getCurrentSearchControls:function(e){var t="select, input";return e.options.height&&(t="table select, table input"),t},cookieEnabled:function(){return!!navigator.cookieEnabled},inArrayCookiesEnabled:function(e,t){for(var o=-1,r=0;r<t.length;r++)if(e.toLowerCase()===t[r].toLowerCase()){o=r;break}return o},setCookie:function(e,t,o){if(e.options.cookie&&Uo.cookieEnabled()&&""!==e.options.cookieIdTable&&-1!==Uo.inArrayCookiesEnabled(t,e.options.cookiesEnabled)){switch(t="".concat(e.options.cookieIdTable,".").concat(t),e.options.cookieStorage){case"cookieStorage":document.cookie=[t,"=",encodeURIComponent(o),"; expires=".concat(Uo.calculateExpiration(e.options.cookieExpire)),e.options.cookiePath?"; path=".concat(e.options.cookiePath):"",e.options.cookieDomain?"; domain=".concat(e.options.cookieDomain):"",e.options.cookieSecure?"; secure":"",";SameSite=".concat(e.options.cookieSameSite)].join("");break;case"localStorage":localStorage.setItem(t,o);break;case"sessionStorage":sessionStorage.setItem(t,o);break;case"customStorage":if(!e.options.cookieCustomStorageSet||!e.options.cookieCustomStorageGet||!e.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");Go.calculateObjectValue(e.options,e.options.cookieCustomStorageSet,[t,o],"");break;default:return!1}return!0}},getCookie:function(e,t,o){if(!o)return null;if(-1===Uo.inArrayCookiesEnabled(o,e.options.cookiesEnabled))return null;switch(o="".concat(t,".").concat(o),e.options.cookieStorage){case"cookieStorage":var r="; ".concat(document.cookie).split("; ".concat(o,"="));return 2===r.length?decodeURIComponent(r.pop().split(";").shift()):null;case"localStorage":return localStorage.getItem(o);case"sessionStorage":return sessionStorage.getItem(o);case"customStorage":if(!e.options.cookieCustomStorageSet||!e.options.cookieCustomStorageGet||!e.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");return Go.calculateObjectValue(e.options,e.options.cookieCustomStorageGet,[o],"");default:return null}},deleteCookie:function(e,t,o){switch(o="".concat(t,".").concat(o),e.options.cookieStorage){case"cookieStorage":document.cookie=[encodeURIComponent(o),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",e.options.cookiePath?"; path=".concat(e.options.cookiePath):"",e.options.cookieDomain?"; domain=".concat(e.options.cookieDomain):"",";SameSite=".concat(e.options.cookieSameSite)].join("");break;case"localStorage":localStorage.removeItem(o);break;case"sessionStorage":sessionStorage.removeItem(o);break;case"customStorage":if(!e.options.cookieCustomStorageSet||!e.options.cookieCustomStorageGet||!e.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");Go.calculateObjectValue(e.options,e.options.cookieCustomStorageDelete,[o],"");break;default:return!1}return!0},calculateExpiration:function(e){var t=e.replace(/[0-9]*/,"");switch(e=e.replace(/[A-Za-z]{1,2}/,""),t.toLowerCase()){case"s":e=+e;break;case"mi":e*=60;break;case"h":e=60*e*60;break;case"d":e=24*e*60*60;break;case"m":e=30*e*24*60*60;break;case"y":e=365*e*24*60*60;break;default:e=void 0}if(!e)return"";var o=new Date;return o.setTime(o.getTime()+1e3*e),o.toGMTString()},initCookieFilters:function(e){setTimeout((function(){var t=JSON.parse(Uo.getCookie(e,e.options.cookieIdTable,Uo.cookieIds.filterControl));if(!e.options.filterControlValuesLoaded&&t){var r={},n=Uo.getCurrentHeader(e),i=Uo.getCurrentSearchControls(e),a=n;e.options.filterControlContainer&&(a=o.default("".concat(e.options.filterControlContainer))),a.find(i).each((function(){var n=o.default(this).closest("[data-field]").data("field");!function(t,o){o.forEach((function(o){if(""!==o.text&&("radio"!==t.type||t.value.toString()===o.text.toString()))if("INPUT"===t.tagName&&"radio"===t.type&&t.value.toString()===o.text.toString())t.checked=!0,r[o.field]=o.text;else if("INPUT"===t.tagName)t.value=o.text,r[o.field]=o.text;else if("SELECT"===t.tagName&&e.options.filterControlContainer)t.value=o.text,r[o.field]=o.text;else if(""!==o.text&&"SELECT"===t.tagName){for(var n=0;n<t.length;n++){var i=t[n];if(i.value===o.text)return void(i.selected=!0)}var a=document.createElement("option");a.value=o.text,a.text=o.text,t.add(a,t[1]),t.selectedIndex=1,r[o.field]=o.text}}))}(this,t.filter((function(e){return e.field===n})))})),e.initColumnSearch(r),e.options.filterControlValuesLoaded=!0,e.initServer()}}),250)}};o.default.extend(o.default.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:"2h",cookiePath:null,cookieDomain:null,cookieSecure:null,cookieSameSite:"Lax",cookieIdTable:"",cookiesEnabled:["bs.table.sortOrder","bs.table.sortName","bs.table.pageNumber","bs.table.pageList","bs.table.columns","bs.table.searchText","bs.table.filterControl","bs.table.filterBy","bs.table.reorderColumns"],cookieStorage:"cookieStorage",cookieCustomStorageGet:null,cookieCustomStorageSet:null,cookieCustomStorageDelete:null,filterControls:[],filterControlValuesLoaded:!1}),o.default.fn.bootstrapTable.methods.push("getCookies"),o.default.fn.bootstrapTable.methods.push("deleteCookie"),o.default.extend(o.default.fn.bootstrapTable.utils,{setCookie:Uo.setCookie,getCookie:Uo.getCookie}),o.default.BootstrapTable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(h,e);var t,c,u,p=s(h);function h(){return r(this,h),p.apply(this,arguments)}return t=h,(c=[{key:"init",value:function(){if(this.options.cookie){var e=Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.filterBy);if("boolean"==typeof e&&!e)throw new Error("The cookie value of filterBy must be a json!");var t={};try{t=JSON.parse(e)}catch(e){throw new Error("Could not parse the json of the filterBy cookie!")}if(this.filterColumns=t||{},this.options.filterControls=[],this.options.filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/'/g,"").replace(/ /g,"").toLowerCase().split(","):this.options.cookiesEnabled,this.options.filterControl){var o=this;this.$el.on("column-search.bs.table",(function(e,t,r){for(var n=!0,i=0;i<o.options.filterControls.length;i++)if(o.options.filterControls[i].field===t){o.options.filterControls[i].text=r,n=!1;break}n&&o.options.filterControls.push({field:t,text:r}),Uo.setCookie(o,Uo.cookieIds.filterControl,JSON.stringify(o.options.filterControls))})).on("created-controls.bs.table",Uo.initCookieFilters(o))}}l(i(h.prototype),"init",this).call(this)}},{key:"initServer",value:function(){var e;if(this.options.cookie&&this.options.filterControl&&!this.options.filterControlValuesLoaded){var t=JSON.parse(Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.filterControl));if(t)return}for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];(e=l(i(h.prototype),"initServer",this)).call.apply(e,[this].concat(r))}},{key:"initTable",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"initTable",this)).call.apply(e,[this].concat(o)),this.initCookie()}},{key:"onSort",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];if((e=l(i(h.prototype),"onSort",this)).call.apply(e,[this].concat(o)),void 0===this.options.sortName||void 0===this.options.sortOrder)return Uo.deleteCookie(this,this.options.cookieIdTable,Uo.cookieIds.sortName),void Uo.deleteCookie(this,this.options.cookieIdTable,Uo.cookieIds.sortOrder);Uo.setCookie(this,Uo.cookieIds.sortOrder,this.options.sortOrder),Uo.setCookie(this,Uo.cookieIds.sortName,this.options.sortName)}},{key:"onPageNumber",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"onPageNumber",this)).call.apply(e,[this].concat(o)),Uo.setCookie(this,Uo.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageListChange",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"onPageListChange",this)).call.apply(e,[this].concat(o)),Uo.setCookie(this,Uo.cookieIds.pageList,this.options.pageSize),Uo.setCookie(this,Uo.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPagePre",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"onPagePre",this)).call.apply(e,[this].concat(o)),Uo.setCookie(this,Uo.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageNext",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"onPageNext",this)).call.apply(e,[this].concat(o)),Uo.setCookie(this,Uo.cookieIds.pageNumber,this.options.pageNumber)}},{key:"_toggleColumn",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"_toggleColumn",this)).call.apply(e,[this].concat(o)),Uo.setCookie(this,Uo.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map((function(e){return e.field}))))}},{key:"_toggleAllColumns",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"_toggleAllColumns",this)).call.apply(e,[this].concat(o)),Uo.setCookie(this,Uo.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map((function(e){return e.field}))))}},{key:"selectPage",value:function(e){l(i(h.prototype),"selectPage",this).call(this,e),Uo.setCookie(this,Uo.cookieIds.pageNumber,e)}},{key:"onSearch",value:function(e){l(i(h.prototype),"onSearch",this).call(this,e),this.options.search&&Uo.setCookie(this,Uo.cookieIds.searchText,this.searchText),Uo.setCookie(this,Uo.cookieIds.pageNumber,this.options.pageNumber)}},{key:"initHeader",value:function(){var e;this.options.reorderableColumns&&(this.columnsSortOrder=JSON.parse(Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.reorderColumns)));for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"initHeader",this)).call.apply(e,[this].concat(o))}},{key:"persistReorderColumnsState",value:function(e){Uo.setCookie(e,Uo.cookieIds.reorderColumns,JSON.stringify(e.columnsSortOrder))}},{key:"filterBy",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=l(i(h.prototype),"filterBy",this)).call.apply(e,[this].concat(o)),Uo.setCookie(this,Uo.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:"initCookie",value:function(){var e=this;if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire||!Uo.cookieEnabled())return console.error("Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies."),void(this.options.cookie=!1);var t=Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.sortOrder),o=Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.sortName),r=Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.pageNumber),n=Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.pageList),i=Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.searchText),a=Uo.getCookie(this,this.options.cookieIdTable,Uo.cookieIds.columns);if("boolean"==typeof a&&!a)throw new Error("The cookie value of filterBy must be a json!");var c={};try{c=JSON.parse(a)}catch(e){throw new Error("Could not parse the json of the columns cookie!",a)}if(this.options.sortOrder=t||this.options.sortOrder,this.options.sortName=o||this.options.sortName,this.options.pageNumber=r?+r:this.options.pageNumber,this.options.pageSize=n?n===this.options.formatAllRows()?n:+n:this.options.pageSize,this.options.searchText=i||"",c){var s,l=f(this.columns);try{var u=function(){var t=s.value;t.visible=c.filter((function(o){return!!e.isSelectionColumn(t)||(o instanceof Object?o.field===t.field:o===t.field)})).length>0||!t.switchable};for(l.s();!(s=l.n()).done;)u()}catch(e){l.e(e)}finally{l.f()}}}}},{key:"getCookies",value:function(){var e=this,t={};return o.default.each(Uo.cookieIds,(function(o,r){t[o]=Uo.getCookie(e,e.options.cookieIdTable,r),"columns"===o&&(t[o]=JSON.parse(t[o]))})),t}},{key:"deleteCookie",value:function(e){""!==e&&Uo.cookieEnabled()&&Uo.deleteCookie(this,this.options.cookieIdTable,Uo.cookieIds[e])}}])&&n(t.prototype,c),u&&n(t,u),h}(o.default.BootstrapTable)}));