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) 41.4 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.22.2 * @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="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,e(n.key),n)}}function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(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 o,r=n(t);if(e){var i=n(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return a(this,o)}}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,o){var r=c(t,e);if(r){var n=Object.getOwnPropertyDescriptor(r,e);return n.get?n.get.call(arguments.length<3?t:o):n.value}},u.apply(this,arguments)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o<e;o++)r[o]=t[o];return r}function f(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,e){if(t){if("string"==typeof t)return l(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw i}}}}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=function(t){return t&&t.Math===Math&&t},d=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof p&&p)||h("object"==typeof p&&p)||function(){return this}()||Function("return this")(),g={},y=function(t){try{return!!t()}catch(t){return!0}},v=!y((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!y((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),m=b,k=Function.prototype.call,S=m?k.bind(k):function(){return k.apply(k,arguments)},C={},w={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,I=O&&!w.call({1:2},1);C.f=I?function(t){var e=O(this,t);return!!e&&e.enumerable}:w;var x,j,E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},P=b,T=Function.prototype,N=T.call,A=P&&T.bind.bind(N,N),L=P?A:function(t){return function(){return N.apply(t,arguments)}},_=L,R=_({}.toString),V=_("".slice),M=function(t){return V(R(t),8,-1)},D=y,B=M,F=Object,$=L("".split),G=D((function(){return!F("z").propertyIsEnumerable(0)}))?function(t){return"String"===B(t)?$(t,""):F(t)}:F,H=function(t){return null==t},J=H,z=TypeError,U=function(t){if(J(t))throw new z("Can't call method on "+t);return t},q=G,W=U,K=function(t){return q(W(t))},Y="object"==typeof document&&document.all,X={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},Q=X.all,Z=X.IS_HTMLDDA?function(t){return"function"==typeof t||t===Q}:function(t){return"function"==typeof t},tt=Z,et=X.all,ot=X.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:tt(t)||t===et}:function(t){return"object"==typeof t?null!==t:tt(t)},rt=d,nt=Z,it=function(t){return nt(t)?t:void 0},at=function(t,e){return arguments.length<2?it(rt[t]):rt[t]&&rt[t][e]},st=L({}.isPrototypeOf),ct=d,ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",lt=ct.process,ft=ct.Deno,pt=lt&&lt.versions||ft&&ft.version,ht=pt&&pt.v8;ht&&(j=(x=ht.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!j&&ut&&(!(x=ut.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=ut.match(/Chrome\/(\d+)/))&&(j=+x[1]);var dt=j,gt=dt,yt=y,vt=d.String,bt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol("symbol detection");return!vt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gt&&gt<41})),mt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=at,St=Z,Ct=st,wt=Object,Ot=mt?function(t){return"symbol"==typeof t}:function(t){var e=kt("Symbol");return St(e)&&Ct(e.prototype,wt(t))},It=String,xt=Z,jt=function(t){try{return It(t)}catch(t){return"Object"}},Et=TypeError,Pt=function(t){if(xt(t))return t;throw new Et(jt(t)+" is not a function")},Tt=Pt,Nt=H,At=function(t,e){var o=t[e];return Nt(o)?void 0:Tt(o)},Lt=S,_t=Z,Rt=ot,Vt=TypeError,Mt={exports:{}},Dt=d,Bt=Object.defineProperty,Ft=function(t,e){try{Bt(Dt,t,{value:e,configurable:!0,writable:!0})}catch(o){Dt[t]=e}return e},$t=Ft,Gt="__core-js_shared__",Ht=d[Gt]||$t(Gt,{}),Jt=Ht;(Mt.exports=function(t,e){return Jt[t]||(Jt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var zt=Mt.exports,Ut=U,qt=Object,Wt=function(t){return qt(Ut(t))},Kt=Wt,Yt=L({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Yt(Kt(t),e)},Qt=L,Zt=0,te=Math.random(),ee=Qt(1..toString),oe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++Zt+te,36)},re=zt,ne=Xt,ie=oe,ae=bt,se=mt,ce=d.Symbol,ue=re("wks"),le=se?ce.for||ce:ce&&ce.withoutSetter||ie,fe=function(t){return ne(ue,t)||(ue[t]=ae&&ne(ce,t)?ce[t]:le("Symbol."+t)),ue[t]},pe=S,he=ot,de=Ot,ge=At,ye=function(t,e){var o,r;if("string"===e&&_t(o=t.toString)&&!Rt(r=Lt(o,t)))return r;if(_t(o=t.valueOf)&&!Rt(r=Lt(o,t)))return r;if("string"!==e&&_t(o=t.toString)&&!Rt(r=Lt(o,t)))return r;throw new Vt("Can't convert object to primitive value")},ve=TypeError,be=fe("toPrimitive"),me=function(t,e){if(!he(t)||de(t))return t;var o,r=ge(t,be);if(r){if(void 0===e&&(e="default"),o=pe(r,t,e),!he(o)||de(o))return o;throw new ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),ye(t,e)},ke=Ot,Se=function(t){var e=me(t,"string");return ke(e)?e:e+""},Ce=ot,we=d.document,Oe=Ce(we)&&Ce(we.createElement),Ie=function(t){return Oe?we.createElement(t):{}},xe=Ie,je=!v&&!y((function(){return 7!==Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),Ee=v,Pe=S,Te=C,Ne=E,Ae=K,Le=Se,_e=Xt,Re=je,Ve=Object.getOwnPropertyDescriptor;g.f=Ee?Ve:function(t,e){if(t=Ae(t),e=Le(e),Re)try{return Ve(t,e)}catch(t){}if(_e(t,e))return Ne(!Pe(Te.f,t,e),t[e])};var Me={},De=v&&y((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Be=ot,Fe=String,$e=TypeError,Ge=function(t){if(Be(t))return t;throw new $e(Fe(t)+" is not an object")},He=v,Je=je,ze=De,Ue=Ge,qe=Se,We=TypeError,Ke=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Xe="enumerable",Qe="configurable",Ze="writable";Me.f=He?ze?function(t,e,o){if(Ue(t),e=qe(e),Ue(o),"function"==typeof t&&"prototype"===e&&"value"in o&&Ze in o&&!o.writable){var r=Ye(t,e);r&&r.writable&&(t[e]=o.value,o={configurable:Qe in o?o.configurable:r.configurable,enumerable:Xe in o?o.enumerable:r.enumerable,writable:!1})}return Ke(t,e,o)}:Ke:function(t,e,o){if(Ue(t),e=qe(e),Ue(o),Je)try{return Ke(t,e,o)}catch(t){}if("get"in o||"set"in o)throw new We("Accessors not supported");return"value"in o&&(t[e]=o.value),t};var to=Me,eo=E,oo=v?function(t,e,o){return to.f(t,e,eo(1,o))}:function(t,e,o){return t[e]=o,t},ro={exports:{}},no=v,io=Xt,ao=Function.prototype,so=no&&Object.getOwnPropertyDescriptor,co=io(ao,"name"),uo={EXISTS:co,PROPER:co&&"something"===function(){}.name,CONFIGURABLE:co&&(!no||no&&so(ao,"name").configurable)},lo=Z,fo=Ht,po=L(Function.toString);lo(fo.inspectSource)||(fo.inspectSource=function(t){return po(t)});var ho,go,yo,vo=fo.inspectSource,bo=Z,mo=d.WeakMap,ko=bo(mo)&&/native code/.test(String(mo)),So=oe,Co=zt("keys"),wo=function(t){return Co[t]||(Co[t]=So(t))},Oo={},Io=ko,xo=d,jo=ot,Eo=oo,Po=Xt,To=Ht,No=wo,Ao=Oo,Lo="Object already initialized",_o=xo.TypeError,Ro=xo.WeakMap;if(Io||To.state){var Vo=To.state||(To.state=new Ro);Vo.get=Vo.get,Vo.has=Vo.has,Vo.set=Vo.set,ho=function(t,e){if(Vo.has(t))throw new _o(Lo);return e.facade=t,Vo.set(t,e),e},go=function(t){return Vo.get(t)||{}},yo=function(t){return Vo.has(t)}}else{var Mo=No("state");Ao[Mo]=!0,ho=function(t,e){if(Po(t,Mo))throw new _o(Lo);return e.facade=t,Eo(t,Mo,e),e},go=function(t){return Po(t,Mo)?t[Mo]:{}},yo=function(t){return Po(t,Mo)}}var Do={set:ho,get:go,has:yo,enforce:function(t){return yo(t)?go(t):ho(t,{})},getterFor:function(t){return function(e){var o;if(!jo(e)||(o=go(e)).type!==t)throw new _o("Incompatible receiver, "+t+" required");return o}}},Bo=L,Fo=y,$o=Z,Go=Xt,Ho=v,Jo=uo.CONFIGURABLE,zo=vo,Uo=Do.enforce,qo=Do.get,Wo=String,Ko=Object.defineProperty,Yo=Bo("".slice),Xo=Bo("".replace),Qo=Bo([].join),Zo=Ho&&!Fo((function(){return 8!==Ko((function(){}),"length",{value:8}).length})),tr=String(String).split("String"),er=ro.exports=function(t,e,o){"Symbol("===Yo(Wo(e),0,7)&&(e="["+Xo(Wo(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(e="get "+e),o&&o.setter&&(e="set "+e),(!Go(t,"name")||Jo&&t.name!==e)&&(Ho?Ko(t,"name",{value:e,configurable:!0}):t.name=e),Zo&&o&&Go(o,"arity")&&t.length!==o.arity&&Ko(t,"length",{value:o.arity});try{o&&Go(o,"constructor")&&o.constructor?Ho&&Ko(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Uo(t);return Go(r,"source")||(r.source=Qo(tr,"string"==typeof e?e:"")),t};Function.prototype.toString=er((function(){return $o(this)&&qo(this).source||zo(this)}),"toString");var or=ro.exports,rr=Z,nr=Me,ir=or,ar=Ft,sr=function(t,e,o,r){r||(r={});var n=r.enumerable,i=void 0!==r.name?r.name:e;if(rr(o)&&ir(o,i,r),r.global)n?t[e]=o:ar(e,o);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=o:nr.f(t,e,{value:o,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},cr={},ur=Math.ceil,lr=Math.floor,fr=Math.trunc||function(t){var e=+t;return(e>0?lr:ur)(e)},pr=function(t){var e=+t;return e!=e||0===e?0:fr(e)},hr=pr,dr=Math.max,gr=Math.min,yr=pr,vr=Math.min,br=function(t){return t>0?vr(yr(t),9007199254740991):0},mr=br,kr=function(t){return mr(t.length)},Sr=K,Cr=function(t,e){var o=hr(t);return o<0?dr(o+e,0):gr(o,e)},wr=kr,Or=function(t){return function(e,o,r){var n,i=Sr(e),a=wr(i),s=Cr(r,a);if(t&&o!=o){for(;a>s;)if((n=i[s++])!=n)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},Ir={includes:Or(!0),indexOf:Or(!1)},xr=Xt,jr=K,Er=Ir.indexOf,Pr=Oo,Tr=L([].push),Nr=function(t,e){var o,r=jr(t),n=0,i=[];for(o in r)!xr(Pr,o)&&xr(r,o)&&Tr(i,o);for(;e.length>n;)xr(r,o=e[n++])&&(~Er(i,o)||Tr(i,o));return i},Ar=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lr=Nr,_r=Ar.concat("length","prototype");cr.f=Object.getOwnPropertyNames||function(t){return Lr(t,_r)};var Rr={};Rr.f=Object.getOwnPropertySymbols;var Vr=at,Mr=cr,Dr=Rr,Br=Ge,Fr=L([].concat),$r=Vr("Reflect","ownKeys")||function(t){var e=Mr.f(Br(t)),o=Dr.f;return o?Fr(e,o(t)):e},Gr=Xt,Hr=$r,Jr=g,zr=Me,Ur=y,qr=Z,Wr=/#|\.prototype\./,Kr=function(t,e){var o=Xr[Yr(t)];return o===Zr||o!==Qr&&(qr(e)?Ur(e):!!e)},Yr=Kr.normalize=function(t){return String(t).replace(Wr,".").toLowerCase()},Xr=Kr.data={},Qr=Kr.NATIVE="N",Zr=Kr.POLYFILL="P",tn=Kr,en=d,on=g.f,rn=oo,nn=sr,an=Ft,sn=function(t,e,o){for(var r=Hr(e),n=zr.f,i=Jr.f,a=0;a<r.length;a++){var s=r[a];Gr(t,s)||o&&Gr(o,s)||n(t,s,i(e,s))}},cn=tn,un=function(t,e){var o,r,n,i,a,s=t.target,c=t.global,u=t.stat;if(o=c?en:u?en[s]||an(s,{}):(en[s]||{}).prototype)for(r in e){if(i=e[r],n=t.dontCallGetSet?(a=on(o,r))&&a.value:o[r],!cn(c?r:s+(u?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;sn(i,n)}(t.sham||n&&n.sham)&&rn(i,"sham",!0),nn(o,r,i,t)}},ln={},fn=Nr,pn=Ar,hn=Object.keys||function(t){return fn(t,pn)},dn=v,gn=De,yn=Me,vn=Ge,bn=K,mn=hn;ln.f=dn&&!gn?Object.defineProperties:function(t,e){vn(t);for(var o,r=bn(e),n=mn(e),i=n.length,a=0;i>a;)yn.f(t,o=n[a++],r[o]);return t};var kn,Sn=at("document","documentElement"),Cn=Ge,wn=ln,On=Ar,In=Oo,xn=Sn,jn=Ie,En=wo("IE_PROTO"),Pn=function(){},Tn=function(t){return"<script>"+t+"</"+"script>"},Nn=function(t){t.write(Tn("")),t.close();var e=t.parentWindow.Object;return t=null,e},An=function(){try{kn=new ActiveXObject("htmlfile")}catch(t){}var t,e;An="undefined"!=typeof document?document.domain&&kn?Nn(kn):((e=jn("iframe")).style.display="none",xn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Tn("document.F=Object")),t.close(),t.F):Nn(kn);for(var o=On.length;o--;)delete An.prototype[On[o]];return An()};In[En]=!0;var Ln=Object.create||function(t,e){var o;return null!==t?(Pn.prototype=Cn(t),o=new Pn,Pn.prototype=null,o[En]=t):o=An(),void 0===e?o:wn.f(o,e)},_n=fe,Rn=Ln,Vn=Me.f,Mn=_n("unscopables"),Dn=Array.prototype;void 0===Dn[Mn]&&Vn(Dn,Mn,{configurable:!0,value:Rn(null)});var Bn=function(t){Dn[Mn][t]=!0},Fn=Ir.includes,$n=Bn;un({target:"Array",proto:!0,forced:y((function(){return!Array(1).includes()}))},{includes:function(t){return Fn(this,t,arguments.length>1?arguments[1]:void 0)}}),$n("includes");var Gn=ot,Hn=M,Jn=fe("match"),zn=function(t){var e;return Gn(t)&&(void 0!==(e=t[Jn])?!!e:"RegExp"===Hn(t))},Un=TypeError,qn={};qn[fe("toStringTag")]="z";var Wn="[object z]"===String(qn),Kn=Wn,Yn=Z,Xn=M,Qn=fe("toStringTag"),Zn=Object,ti="Arguments"===Xn(function(){return arguments}()),ei=Kn?Xn:function(t){var e,o,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(t){}}(e=Zn(t),Qn))?o:ti?Xn(e):"Object"===(r=Xn(e))&&Yn(e.callee)?"Arguments":r},oi=ei,ri=String,ni=function(t){if("Symbol"===oi(t))throw new TypeError("Cannot convert a Symbol value to a string");return ri(t)},ii=fe("match"),ai=un,si=function(t){if(zn(t))throw new Un("The method doesn't accept regular expressions");return t},ci=U,ui=ni,li=function(t){var e=/./;try{"/./"[t](e)}catch(o){try{return e[ii]=!1,"/./"[t](e)}catch(t){}}return!1},fi=L("".indexOf);ai({target:"String",proto:!0,forced:!li("includes")},{includes:function(t){return!!~fi(ui(ci(this)),ui(si(t)),arguments.length>1?arguments[1]:void 0)}});var pi=M,hi=Array.isArray||function(t){return"Array"===pi(t)},di=TypeError,gi=Se,yi=Me,vi=E,bi=L,mi=y,ki=Z,Si=ei,Ci=vo,wi=function(){},Oi=[],Ii=at("Reflect","construct"),xi=/^\s*(?:class|function)\b/,ji=bi(xi.exec),Ei=!xi.test(wi),Pi=function(t){if(!ki(t))return!1;try{return Ii(wi,Oi,t),!0}catch(t){return!1}},Ti=function(t){if(!ki(t))return!1;switch(Si(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ei||!!ji(xi,Ci(t))}catch(t){return!0}};Ti.sham=!0;var Ni=!Ii||mi((function(){var t;return Pi(Pi.call)||!Pi(Object)||!Pi((function(){t=!0}))||t}))?Ti:Pi,Ai=hi,Li=Ni,_i=ot,Ri=fe("species"),Vi=Array,Mi=function(t){var e;return Ai(t)&&(e=t.constructor,(Li(e)&&(e===Vi||Ai(e.prototype))||_i(e)&&null===(e=e[Ri]))&&(e=void 0)),void 0===e?Vi:e},Di=function(t,e){return new(Mi(t))(0===e?0:e)},Bi=y,Fi=dt,$i=fe("species"),Gi=function(t){return Fi>=51||!Bi((function(){var e=[];return(e.constructor={})[$i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Hi=un,Ji=y,zi=hi,Ui=ot,qi=Wt,Wi=kr,Ki=function(t){if(t>9007199254740991)throw di("Maximum allowed index exceeded");return t},Yi=function(t,e,o){var r=gi(e);r in t?yi.f(t,r,vi(0,o)):t[r]=o},Xi=Di,Qi=Gi,Zi=dt,ta=fe("isConcatSpreadable"),ea=Zi>=51||!Ji((function(){var t=[];return t[ta]=!1,t.concat()[0]!==t})),oa=function(t){if(!Ui(t))return!1;var e=t[ta];return void 0!==e?!!e:zi(t)};Hi({target:"Array",proto:!0,arity:1,forced:!ea||!Qi("concat")},{concat:function(t){var e,o,r,n,i,a=qi(this),s=Xi(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(oa(i=-1===e?a:arguments[e]))for(n=Wi(i),Ki(c+n),o=0;o<n;o++,c++)o in i&&Yi(s,c,i[o]);else Ki(c+1),Yi(s,c++,i);return s.length=c,s}});var ra,na,ia=Ge,aa=function(){var t=ia(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},sa=y,ca=d.RegExp,ua=sa((function(){var t=ca("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),la=ua||sa((function(){return!ca("a","y").sticky})),fa={BROKEN_CARET:ua||sa((function(){var t=ca("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:la,UNSUPPORTED_Y:ua},pa=y,ha=d.RegExp,da=pa((function(){var t=ha(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),ga=y,ya=d.RegExp,va=ga((function(){var t=ya("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ba=S,ma=L,ka=ni,Sa=aa,Ca=fa,wa=Ln,Oa=Do.get,Ia=da,xa=va,ja=zt("native-string-replace",String.prototype.replace),Ea=RegExp.prototype.exec,Pa=Ea,Ta=ma("".charAt),Na=ma("".indexOf),Aa=ma("".replace),La=ma("".slice),_a=(na=/b*/g,ba(Ea,ra=/a/,"a"),ba(Ea,na,"a"),0!==ra.lastIndex||0!==na.lastIndex),Ra=Ca.BROKEN_CARET,Va=void 0!==/()??/.exec("")[1];(_a||Va||Ra||Ia||xa)&&(Pa=function(t){var e,o,r,n,i,a,s,c=this,u=Oa(c),l=ka(t),f=u.raw;if(f)return f.lastIndex=c.lastIndex,e=ba(Pa,f,l),c.lastIndex=f.lastIndex,e;var p=u.groups,h=Ra&&c.sticky,d=ba(Sa,c),g=c.source,y=0,v=l;if(h&&(d=Aa(d,"y",""),-1===Na(d,"g")&&(d+="g"),v=La(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ta(l,c.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,y++),o=new RegExp("^(?:"+g+")",d)),Va&&(o=new RegExp("^"+g+"$(?!\\s)",d)),_a&&(r=c.lastIndex),n=ba(Ea,h?o:c,v),h?n?(n.input=La(n.input,y),n[0]=La(n[0],y),n.index=c.lastIndex,c.lastIndex+=n[0].length):c.lastIndex=0:_a&&n&&(c.lastIndex=c.global?n.index+n[0].length:r),Va&&n&&n.length>1&&ba(ja,n[0],o,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n&&p)for(n.groups=a=wa(null),i=0;i<p.length;i++)a[(s=p[i])[0]]=n[s[1]];return n});var Ma=Pa;un({target:"RegExp",proto:!0,forced:/./.exec!==Ma},{exec:Ma});var Da=b,Ba=Function.prototype,Fa=Ba.apply,$a=Ba.call,Ga="object"==typeof Reflect&&Reflect.apply||(Da?$a.bind(Fa):function(){return $a.apply(Fa,arguments)}),Ha=M,Ja=L,za=function(t){if("Function"===Ha(t))return Ja(t)},Ua=za,qa=sr,Wa=Ma,Ka=y,Ya=fe,Xa=oo,Qa=Ya("species"),Za=RegExp.prototype,ts=function(t,e,o,r){var n=Ya(t),i=!Ka((function(){var e={};return e[n]=function(){return 7},7!==""[t](e)})),a=i&&!Ka((function(){var e=!1,o=/a/;return"split"===t&&((o={}).constructor={},o.constructor[Qa]=function(){return o},o.flags="",o[n]=/./[n]),o.exec=function(){return e=!0,null},o[n](""),!e}));if(!i||!a||o){var s=Ua(/./[n]),c=e(n,""[t],(function(t,e,o,r,n){var a=Ua(t),c=e.exec;return c===Wa||c===Za.exec?i&&!n?{done:!0,value:s(e,o,r)}:{done:!0,value:a(o,e,r)}:{done:!1}}));qa(String.prototype,t,c[0]),qa(Za,n,c[1])}r&&Xa(Za[n],"sham",!0)},es=L,os=pr,rs=ni,ns=U,is=es("".charAt),as=es("".charCodeAt),ss=es("".slice),cs=function(t){return function(e,o){var r,n,i=rs(ns(e)),a=os(o),s=i.length;return a<0||a>=s?t?"":void 0:(r=as(i,a))<55296||r>56319||a+1===s||(n=as(i,a+1))<56320||n>57343?t?is(i,a):r:t?ss(i,a,a+2):n-56320+(r-55296<<10)+65536}},us={codeAt:cs(!1),charAt:cs(!0)}.charAt,ls=L,fs=Wt,ps=Math.floor,hs=ls("".charAt),ds=ls("".replace),gs=ls("".slice),ys=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vs=/\$([$&'`]|\d{1,2})/g,bs=S,ms=Ge,ks=Z,Ss=M,Cs=Ma,ws=TypeError,Os=function(t,e){var o=t.exec;if(ks(o)){var r=bs(o,t,e);return null!==r&&ms(r),r}if("RegExp"===Ss(t))return bs(Cs,t,e);throw new ws("RegExp#exec called on incompatible receiver")},Is=Ga,xs=S,js=L,Es=ts,Ps=y,Ts=Ge,Ns=Z,As=H,Ls=pr,_s=br,Rs=ni,Vs=U,Ms=function(t,e,o){return e+(o?us(t,e).length:1)},Ds=At,Bs=function(t,e,o,r,n,i){var a=o+t.length,s=r.length,c=vs;return void 0!==n&&(n=fs(n),c=ys),ds(i,c,(function(i,c){var u;switch(hs(c,0)){case"$":return"$";case"&":return t;case"`":return gs(e,0,o);case"'":return gs(e,a);case"<":u=n[gs(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>s){var f=ps(l/10);return 0===f?i:f<=s?void 0===r[f-1]?hs(c,1):r[f-1]+hs(c,1):i}u=r[l-1]}return void 0===u?"":u}))},Fs=Os,$s=fe("replace"),Gs=Math.max,Hs=Math.min,Js=js([].concat),zs=js([].push),Us=js("".indexOf),qs=js("".slice),Ws="$0"==="a".replace(/./,"$0"),Ks=!!/./[$s]&&""===/./[$s]("a","$0");Es("replace",(function(t,e,o){var r=Ks?"$":"$0";return[function(t,o){var r=Vs(this),n=As(t)?void 0:Ds(t,$s);return n?xs(n,t,r,o):xs(e,Rs(r),t,o)},function(t,n){var i=Ts(this),a=Rs(t);if("string"==typeof n&&-1===Us(n,r)&&-1===Us(n,"$<")){var s=o(e,i,a,n);if(s.done)return s.value}var c=Ns(n);c||(n=Rs(n));var u,l=i.global;l&&(u=i.unicode,i.lastIndex=0);for(var f,p=[];null!==(f=Fs(i,a))&&(zs(p,f),l);){""===Rs(f[0])&&(i.lastIndex=Ms(a,_s(i.lastIndex),u))}for(var h,d="",g=0,y=0;y<p.length;y++){for(var v,b=Rs((f=p[y])[0]),m=Gs(Hs(Ls(f.index),a.length),0),k=[],S=1;S<f.length;S++)zs(k,void 0===(h=f[S])?h:String(h));var C=f.groups;if(c){var w=Js([b],k,m,a);void 0!==C&&zs(w,C),v=Rs(Is(n,void 0,w))}else v=Bs(b,a,m,k,C,n);m>=g&&(d+=qs(a,g,m)+v,g=m+b.length)}return d+qs(a,g)}]}),!!Ps((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ws||Ks);var Ys=Wt,Xs=hn;un({target:"Object",stat:!0,forced:y((function(){Xs(1)}))},{keys:function(t){return Xs(Ys(t))}});var Qs=ei,Zs=Wn?{}.toString:function(){return"[object "+Qs(this)+"]"};Wn||sr(Object.prototype,"toString",Zs,{unsafe:!0});var tc=Ie("span").classList,ec=tc&&tc.constructor&&tc.constructor.prototype,oc=ec===Object.prototype?void 0:ec,rc=Pt,nc=b,ic=za(za.bind),ac=function(t,e){return rc(t),void 0===e?t:nc?ic(t,e):function(){return t.apply(e,arguments)}},sc=G,cc=Wt,uc=kr,lc=Di,fc=L([].push),pc=function(t){var e=1===t,o=2===t,r=3===t,n=4===t,i=6===t,a=7===t,s=5===t||i;return function(c,u,l,f){for(var p,h,d=cc(c),g=sc(d),y=uc(g),v=ac(u,l),b=0,m=f||lc,k=e?m(c,y):o||a?m(c,0):void 0;y>b;b++)if((s||b in g)&&(h=v(p=g[b],b,d),t))if(e)k[b]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:fc(k,p)}else switch(t){case 4:return!1;case 7:fc(k,p)}return i?-1:r||n?n:k}},hc={forEach:pc(0),map:pc(1),filter:pc(2),some:pc(3),every:pc(4),find:pc(5),findIndex:pc(6),filterReject:pc(7)},dc=y,gc=function(t,e){var o=[][t];return!!o&&dc((function(){o.call(null,e||function(){return 1},1)}))},yc=hc.forEach,vc=gc("forEach")?[].forEach:function(t){return yc(this,t,arguments.length>1?arguments[1]:void 0)},bc=d,mc={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},kc=oc,Sc=vc,Cc=oo,wc=function(t){if(t&&t.forEach!==Sc)try{Cc(t,"forEach",Sc)}catch(e){t.forEach=Sc}};for(var Oc in mc)mc[Oc]&&wc(bc[Oc]&&bc[Oc].prototype);wc(kc);var Ic=S,xc=Xt,jc=st,Ec=aa,Pc=RegExp.prototype,Tc=uo.PROPER,Nc=sr,Ac=Ge,Lc=ni,_c=y,Rc=function(t){var e=t.flags;return void 0!==e||"flags"in Pc||xc(t,"flags")||!jc(Pc,t)?e:Ic(Ec,t)},Vc="toString",Mc=RegExp.prototype.toString,Dc=_c((function(){return"/a/b"!==Mc.call({source:"a",flags:"b"})})),Bc=Tc&&Mc.name!==Vc;(Dc||Bc)&&Nc(RegExp.prototype,Vc,(function(){var t=Ac(this);return"/"+Lc(t.source)+"/"+Lc(Rc(t))}),{unsafe:!0});var Fc=un,$c=hc.find,Gc=Bn,Hc="find",Jc=!0;Hc in[]&&Array(1).find((function(){Jc=!1})),Fc({target:"Array",proto:!0,forced:Jc},{find:function(t){return $c(this,t,arguments.length>1?arguments[1]:void 0)}}),Gc(Hc);var zc=hc.filter;un({target:"Array",proto:!0,forced:!Gi("filter")},{filter:function(t){return zc(this,t,arguments.length>1?arguments[1]:void 0)}});var Uc=v,qc=L,Wc=S,Kc=y,Yc=hn,Xc=Rr,Qc=C,Zc=Wt,tu=G,eu=Object.assign,ou=Object.defineProperty,ru=qc([].concat),nu=!eu||Kc((function(){if(Uc&&1!==eu({b:1},eu(ou({},"a",{enumerable:!0,get:function(){ou(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},o=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[o]=7,r.split("").forEach((function(t){e[t]=t})),7!==eu({},t)[o]||Yc(eu({},e)).join("")!==r}))?function(t,e){for(var o=Zc(t),r=arguments.length,n=1,i=Xc.f,a=Qc.f;r>n;)for(var s,c=tu(arguments[n++]),u=i?ru(Yc(c),i(c)):Yc(c),l=u.length,f=0;l>f;)s=u[f++],Uc&&!Wc(a,c,s)||(o[s]=c[s]);return o}:eu,iu=nu;un({target:"Object",stat:!0,arity:2,forced:Object.assign!==iu},{assign:iu});var au=hc.map;un({target:"Array",proto:!0,forced:!Gi("map")},{map:function(t){return au(this,t,arguments.length>1?arguments[1]:void 0)}});var su=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},cu=S,uu=Ge,lu=H,fu=U,pu=su,hu=ni,du=At,gu=Os;ts("search",(function(t,e,o){return[function(e){var o=fu(this),r=lu(e)?void 0:du(e,t);return r?cu(r,e,o):new RegExp(e)[t](hu(o))},function(t){var r=uu(this),n=hu(t),i=o(e,r,n);if(i.done)return i.value;var a=r.lastIndex;pu(a,0)||(r.lastIndex=0);var s=gu(r,n);return pu(r.lastIndex,a)||(r.lastIndex=a),null===s?-1:s.index}]}));var yu=un,vu=G,bu=K,mu=gc,ku=L([].join);yu({target:"Array",proto:!0,forced:vu!==Object||!mu("join",",")},{join:function(t){return ku(bu(this),void 0===t?",":t)}});var Su=t.fn.bootstrapTable.utils,Cu={cookieIds:{sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",sortPriority:"bs.table.sortPriority",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",hiddenColumns:"bs.table.hiddenColumns",cardView:"bs.table.cardView",customView:"bs.table.customView",searchText:"bs.table.searchText",reorderColumns:"bs.table.reorderColumns",filterControl:"bs.table.filterControl",filterBy:"bs.table.filterBy"},getCurrentHeader:function(t){return t.options.height?t.$tableHeader:t.$header},getCurrentSearchControls:function(t){return t.options.height?"table select, table input":"select, input"},isCookieSupportedByBrowser:function(){return navigator.cookieEnabled},isCookieEnabled:function(t,e){return t.options.cookiesEnabled.includes(e)},setCookie:function(t,e,o){if(t.options.cookie&&Cu.isCookieEnabled(t,e))return t._storage.setItem("".concat(t.options.cookieIdTable,".").concat(e),o)},getCookie:function(t,e){return e&&Cu.isCookieEnabled(t,e)?t._storage.getItem("".concat(t.options.cookieIdTable,".").concat(e)):null},deleteCookie:function(t,e){return t._storage.removeItem("".concat(t.options.cookieIdTable,".").concat(e))},calculateExpiration:function(t){var e=t.replace(/[0-9]*/,"");switch(t=t.replace(/[A-Za-z]{1,2}/,""),e.toLowerCase()){case"s":t=+t;break;case"mi":t*=60;break;case"h":t=60*t*60;break;case"d":t=24*t*60*60;break;case"m":t=30*t*24*60*60;break;case"y":t=365*t*24*60*60;break;default:t=void 0}if(!t)return"";var o=new Date;return o.setTime(o.getTime()+1e3*t),o.toGMTString()},initCookieFilters:function(e){setTimeout((function(){var o=JSON.parse(Cu.getCookie(e,Cu.cookieIds.filterControl));if(!e._filterControlValuesLoaded&&o){var r={},n=Cu.getCurrentHeader(e),i=Cu.getCurrentSearchControls(e),a=n;e.options.filterControlContainer&&(a=t("".concat(e.options.filterControlContainer))),a.find(i).each((function(){var n=t(this).closest("[data-field]").data("field");!function(t,o){o.forEach((function(o){var n=t.value.toString(),i=o.text;if(""!==i&&("radio"!==t.type||n===i))if("INPUT"===t.tagName&&"radio"===t.type&&n===i)t.checked=!0,r[o.field]=i;else if("INPUT"===t.tagName)t.value=i,r[o.field]=i;else if("SELECT"===t.tagName&&e.options.filterControlContainer)t.value=i,r[o.field]=i;else if(""!==i&&"SELECT"===t.tagName){r[o.field]=i;var a,s=f(t);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(c.value===i)return void(c.selected=!0)}}catch(t){s.e(t)}finally{s.f()}var u=document.createElement("option");u.value=i,u.text=i,t.add(u,t[1]),t.selectedIndex=1}}))}(this,o.filter((function(t){return t.field===n})))})),e.initColumnSearch(r),e._filterControlValuesLoaded=!0,e.initServer()}}),250)}};Object.assign(t.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.sortPriority","bs.table.pageNumber","bs.table.pageList","bs.table.hiddenColumns","bs.table.searchText","bs.table.filterControl","bs.table.filterBy","bs.table.reorderColumns","bs.table.cardView","bs.table.customView"],cookieStorage:"cookieStorage",cookieCustomStorageGet:null,cookieCustomStorageSet:null,cookieCustomStorageDelete:null,_filterControls:[],_filterControlValuesLoaded:!1,_storage:{setItem:void 0,getItem:void 0,removeItem:void 0}}),t.fn.bootstrapTable.methods.push("getCookies"),t.fn.bootstrapTable.methods.push("deleteCookie"),Object.assign(t.fn.bootstrapTable.utils,{setCookie:Cu.setCookie,getCookie:Cu.getCookie}),t.BootstrapTable=function(e){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(h,e);var a,c,l,p=s(h);function h(){return o(this,h),p.apply(this,arguments)}return a=h,c=[{key:"init",value:function(){if(this.options.cookie){if("cookieStorage"===this.options.cookieStorage&&!Cu.isCookieSupportedByBrowser())throw new Error("Cookies are not enabled in this browser.");this.configureStorage();var t=Cu.getCookie(this,Cu.cookieIds.filterBy);if("boolean"==typeof t&&!t)throw new Error("The cookie value of filterBy must be a json!");var e={};try{e=JSON.parse(t)}catch(t){throw new Error("Could not parse the json of the filterBy cookie!")}if(this.filterColumns=e||{},this._filterControls=[],this._filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/'/g,"").replace(/ /g,"").split(","):this.options.cookiesEnabled,this.options.filterControl){var o=this;this.$el.on("column-search.bs.table",(function(t,e,r){for(var n=!0,i=0;i<o._filterControls.length;i++)if(o._filterControls[i].field===e){o._filterControls[i].text=r,n=!1;break}n&&o._filterControls.push({field:e,text:r}),Cu.setCookie(o,Cu.cookieIds.filterControl,JSON.stringify(o._filterControls))})).on("created-controls.bs.table",Cu.initCookieFilters(o))}}u(n(h.prototype),"init",this).call(this)}},{key:"initServer",value:function(){var t;if(this.options.cookie&&this.options.filterControl&&!this._filterControlValuesLoaded){var e=JSON.parse(Cu.getCookie(this,Cu.cookieIds.filterControl));if(e)return}for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];(t=u(n(h.prototype),"initServer",this)).call.apply(t,[this].concat(r))}},{key:"initTable",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"initTable",this)).call.apply(t,[this].concat(o)),this.initCookie()}},{key:"onSort",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"onSort",this)).call.apply(t,[this].concat(o)),this.options.cookie&&(void 0===this.options.sortName||void 0===this.options.sortOrder?(Cu.deleteCookie(this,Cu.cookieIds.sortName),Cu.deleteCookie(this,Cu.cookieIds.sortOrder)):(this.options.sortPriority=null,Cu.deleteCookie(this,Cu.cookieIds.sortPriority),Cu.setCookie(this,Cu.cookieIds.sortOrder,this.options.sortOrder),Cu.setCookie(this,Cu.cookieIds.sortName,this.options.sortName)))}},{key:"onMultipleSort",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"onMultipleSort",this)).call.apply(t,[this].concat(o)),this.options.cookie&&(void 0===this.options.sortPriority?Cu.deleteCookie(this,Cu.cookieIds.sortPriority):(this.options.sortName=void 0,this.options.sortOrder=void 0,Cu.deleteCookie(this,Cu.cookieIds.sortName),Cu.deleteCookie(this,Cu.cookieIds.sortOrder),Cu.setCookie(this,Cu.cookieIds.sortPriority,JSON.stringify(this.options.sortPriority))))}},{key:"onPageNumber",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"onPageNumber",this)).call.apply(t,[this].concat(o)),this.options.cookie&&Cu.setCookie(this,Cu.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageListChange",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"onPageListChange",this)).call.apply(t,[this].concat(o)),this.options.cookie&&(Cu.setCookie(this,Cu.cookieIds.pageList,this.options.pageSize),Cu.setCookie(this,Cu.cookieIds.pageNumber,this.options.pageNumber))}},{key:"onPagePre",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"onPagePre",this)).call.apply(t,[this].concat(o)),this.options.cookie&&Cu.setCookie(this,Cu.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageNext",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"onPageNext",this)).call.apply(t,[this].concat(o)),this.options.cookie&&Cu.setCookie(this,Cu.cookieIds.pageNumber,this.options.pageNumber)}},{key:"_toggleColumn",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"_toggleColumn",this)).call.apply(t,[this].concat(o)),this.options.cookie&&Cu.setCookie(this,Cu.cookieIds.hiddenColumns,JSON.stringify(this.getHiddenColumns().map((function(t){return t.field}))))}},{key:"_toggleAllColumns",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"_toggleAllColumns",this)).call.apply(t,[this].concat(o)),this.options.cookie&&Cu.setCookie(this,Cu.cookieIds.hiddenColumns,JSON.stringify(this.getHiddenColumns().map((function(t){return t.field}))))}},{key:"toggleView",value:function(){u(n(h.prototype),"toggleView",this).call(this),Cu.setCookie(this,Cu.cookieIds.cardView,this.options.cardView)}},{key:"toggleCustomView",value:function(){u(n(h.prototype),"toggleCustomView",this).call(this),Cu.setCookie(this,Cu.cookieIds.customView,this.customViewDefaultView)}},{key:"selectPage",value:function(t){u(n(h.prototype),"selectPage",this).call(this,t),this.options.cookie&&Cu.setCookie(this,Cu.cookieIds.pageNumber,t)}},{key:"onSearch",value:function(t){u(n(h.prototype),"onSearch",this).call(this,t,!(arguments.length>1)||arguments[1]),this.options.cookie&&(this.options.search&&Cu.setCookie(this,Cu.cookieIds.searchText,this.searchText),Cu.setCookie(this,Cu.cookieIds.pageNumber,this.options.pageNumber))}},{key:"initHeader",value:function(){var t;this.options.reorderableColumns&&this.options.cookie&&(this.columnsSortOrder=JSON.parse(Cu.getCookie(this,Cu.cookieIds.reorderColumns)));for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"initHeader",this)).call.apply(t,[this].concat(o))}},{key:"persistReorderColumnsState",value:function(t){Cu.setCookie(t,Cu.cookieIds.reorderColumns,JSON.stringify(t.columnsSortOrder))}},{key:"filterBy",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=u(n(h.prototype),"filterBy",this)).call.apply(t,[this].concat(o)),this.options.cookie&&Cu.setCookie(this,Cu.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:"initCookie",value:function(){if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire)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=Cu.getCookie(this,Cu.cookieIds.sortOrder),e=Cu.getCookie(this,Cu.cookieIds.sortName),o=Cu.getCookie(this,Cu.cookieIds.sortPriority),r=Cu.getCookie(this,Cu.cookieIds.pageNumber),n=Cu.getCookie(this,Cu.cookieIds.pageList),i=Cu.getCookie(this,Cu.cookieIds.searchText),a=Cu.getCookie(this,Cu.cookieIds.cardView),s=Cu.getCookie(this,Cu.cookieIds.customView),c=Cu.getCookie(this,Cu.cookieIds.hiddenColumns),u={};try{u=JSON.parse(c)}catch(t){throw new Error("Could not parse the json of the hidden columns cookie!",c)}try{o=JSON.parse(o)}catch(t){throw new Error("Could not parse the json of the sortPriority cookie!",o)}if(o?(this.options.sortOrder=void 0,this.options.sortName=void 0):(this.options.sortOrder=t||this.options.sortOrder,this.options.sortName=e||this.options.sortName),this.options.sortPriority=o||this.options.sortPriority,(this.options.sortOrder||this.options.sortName)&&(this.options.sortPriority=null),this.options.pageNumber=r?+r:this.options.pageNumber,this.options.pageSize=n?n===this.options.formatAllRows()?n:+n:this.options.pageSize,Cu.isCookieEnabled(this,Cu.cookieIds.searchText)&&""===this.options.searchText&&(this.options.searchText=i||""),null!==a&&(this.options.cardView="true"===a&&a),this.customViewDefaultView="true"===s,u){var l,p=f(this.columns);try{for(p.s();!(l=p.n()).done;){var h=l.value;h.switchable&&(h.visible=this.isSelectionColumn(h)||!u.includes(h.field))}}catch(t){p.e(t)}finally{p.f()}}}}},{key:"getCookies",value:function(){var e=this,o={};return t.each(Cu.cookieIds,(function(t,r){o[t]=Cu.getCookie(e,r),"columns"!==t&&"hiddenColumns"!==t&&"sortPriority"!==t||(o[t]=JSON.parse(o[t]))})),o}},{key:"deleteCookie",value:function(t){t&&Cu.deleteCookie(this,Cu.cookieIds[t])}},{key:"configureStorage",value:function(){var t=this;switch(this._storage={},this.options.cookieStorage){case"cookieStorage":this._storage.setItem=function(e,o){document.cookie=[e,"=",encodeURIComponent(o),"; expires=".concat(Cu.calculateExpiration(t.options.cookieExpire)),t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):"",t.options.cookieSecure?"; secure":"",";SameSite=".concat(t.options.cookieSameSite)].join("")},this._storage.getItem=function(t){var e="; ".concat(document.cookie).split("; ".concat(t,"="));return 2===e.length?decodeURIComponent(e.pop().split(";").shift()):null},this._storage.removeItem=function(e){document.cookie=[encodeURIComponent(e),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):"",";SameSite=".concat(t.options.cookieSameSite)].join("")};break;case"localStorage":this._storage.setItem=function(t,e){localStorage.setItem(t,e)},this._storage.getItem=function(t){return localStorage.getItem(t)},this._storage.removeItem=function(t){localStorage.removeItem(t)};break;case"sessionStorage":this._storage.setItem=function(t,e){sessionStorage.setItem(t,e)},this._storage.getItem=function(t){return sessionStorage.getItem(t)},this._storage.removeItem=function(t){sessionStorage.removeItem(t)};break;case"customStorage":if(!this.options.cookieCustomStorageSet||!this.options.cookieCustomStorageGet||!this.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");this._storage.setItem=function(e,o){Su.calculateObjectValue(t.options,t.options.cookieCustomStorageSet,[e,o],"")},this._storage.getItem=function(e){return Su.calculateObjectValue(t.options,t.options.cookieCustomStorageGet,[e],"")},this._storage.removeItem=function(e){Su.calculateObjectValue(t.options,t.options.cookieCustomStorageDelete,[e],"")};break;default:throw new Error("Storage method not supported.")}}}],c&&r(a.prototype,c),l&&r(a,l),Object.defineProperty(a,"prototype",{writable:!1}),h}(t.BootstrapTable)}));