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