bootstrap-table-pipeline.min.js 21 KB

12345678910
  1. /**
  2. * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
  3. *
  4. * @version v1.22.6
  5. * @homepage https://bootstrap-table.com
  6. * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
  7. * @license MIT
  8. */
  9. !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,e,n){return e=s(e),function(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)}(t,r()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}function r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(r=function(){return!!t})()}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function u(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=l(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},p.apply(this,arguments)}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(t){return t&&t.Math===Math&&t},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof h&&h)||y("object"==typeof h&&h)||function(){return this}()||Function("return this")(),v={},d=function(t){try{return!!t()}catch(t){return!0}},g=!d((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=!d((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),m=w,O=Function.prototype.call,j=m?O.bind(O):function(){return O.apply(O,arguments)},S={},P={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,E=C&&!P.call({1:2},1);S.f=E?function(t){var e=C(this,t);return!!e&&e.enumerable}:P;var T,R,k=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=w,W=Function.prototype,A=W.call,z=x&&W.bind.bind(A,A),F=x?z:function(t){return function(){return A.apply(t,arguments)}},D=F,I=D({}.toString),M=D("".slice),_=function(t){return M(I(t),8,-1)},L=d,N=_,H=Object,q=F("".split),B=L((function(){return!H("z").propertyIsEnumerable(0)}))?function(t){return"String"===N(t)?q(t,""):H(t)}:H,G=function(t){return null==t},$=G,J=TypeError,U=function(t){if($(t))throw new J("Can't call method on "+t);return t},V=B,K=U,Q=function(t){return V(K(t))},X="object"==typeof document&&document.all,Y=void 0===X&&void 0!==X?function(t){return"function"==typeof t||t===X}:function(t){return"function"==typeof t},Z=Y,tt=function(t){return"object"==typeof t?null!==t:Z(t)},et=b,rt=Y,nt=function(t){return rt(t)?t:void 0},ot=function(t,e){return arguments.length<2?nt(et[t]):et[t]&&et[t][e]},it=F({}.isPrototypeOf),ct=b,at="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ut=ct.process,st=ct.Deno,ft=ut&&ut.versions||st&&st.version,lt=ft&&ft.v8;lt&&(R=(T=lt.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!R&&at&&(!(T=at.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=at.match(/Chrome\/(\d+)/))&&(R=+T[1]);var pt=R,ht=pt,yt=d,bt=b.String,vt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol("symbol detection");return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ht&&ht<41})),dt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gt=ot,wt=Y,mt=it,Ot=Object,jt=dt?function(t){return"symbol"==typeof t}:function(t){var e=gt("Symbol");return wt(e)&&mt(e.prototype,Ot(t))},St=String,Pt=Y,Ct=function(t){try{return St(t)}catch(t){return"Object"}},Et=TypeError,Tt=function(t){if(Pt(t))return t;throw new Et(Ct(t)+" is not a function")},Rt=G,kt=j,xt=Y,Wt=tt,At=TypeError,zt={exports:{}},Ft=b,Dt=Object.defineProperty,It=function(t,e){try{Dt(Ft,t,{value:e,configurable:!0,writable:!0})}catch(r){Ft[t]=e}return e},Mt=b,_t=It,Lt="__core-js_shared__",Nt=zt.exports=Mt[Lt]||_t(Lt,{});(Nt.versions||(Nt.versions=[])).push({version:"3.36.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=zt.exports,qt=Ht,Bt=function(t,e){return qt[t]||(qt[t]=e||{})},Gt=U,$t=Object,Jt=function(t){return $t(Gt(t))},Ut=Jt,Vt=F({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return Vt(Ut(t),e)},Qt=F,Xt=0,Yt=Math.random(),Zt=Qt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Zt(++Xt+Yt,36)},ee=Bt,re=Kt,ne=te,oe=vt,ie=dt,ce=b.Symbol,ae=ee("wks"),ue=ie?ce.for||ce:ce&&ce.withoutSetter||ne,se=function(t){return re(ae,t)||(ae[t]=oe&&re(ce,t)?ce[t]:ue("Symbol."+t)),ae[t]},fe=j,le=tt,pe=jt,he=function(t,e){var r=t[e];return Rt(r)?void 0:Tt(r)},ye=function(t,e){var r,n;if("string"===e&&xt(r=t.toString)&&!Wt(n=kt(r,t)))return n;if(xt(r=t.valueOf)&&!Wt(n=kt(r,t)))return n;if("string"!==e&&xt(r=t.toString)&&!Wt(n=kt(r,t)))return n;throw new At("Can't convert object to primitive value")},be=TypeError,ve=se("toPrimitive"),de=function(t,e){if(!le(t)||pe(t))return t;var r,n=he(t,ve);if(n){if(void 0===e&&(e="default"),r=fe(n,t,e),!le(r)||pe(r))return r;throw new be("Can't convert object to primitive value")}return void 0===e&&(e="number"),ye(t,e)},ge=jt,we=function(t){var e=de(t,"string");return ge(e)?e:e+""},me=tt,Oe=b.document,je=me(Oe)&&me(Oe.createElement),Se=function(t){return je?Oe.createElement(t):{}},Pe=!g&&!d((function(){return 7!==Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),Ce=g,Ee=j,Te=S,Re=k,ke=Q,xe=we,We=Kt,Ae=Pe,ze=Object.getOwnPropertyDescriptor;v.f=Ce?ze:function(t,e){if(t=ke(t),e=xe(e),Ae)try{return ze(t,e)}catch(t){}if(We(t,e))return Re(!Ee(Te.f,t,e),t[e])};var Fe={},De=g&&d((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ie=tt,Me=String,_e=TypeError,Le=function(t){if(Ie(t))return t;throw new _e(Me(t)+" is not an object")},Ne=g,He=Pe,qe=De,Be=Le,Ge=we,$e=TypeError,Je=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Ve="enumerable",Ke="configurable",Qe="writable";Fe.f=Ne?qe?function(t,e,r){if(Be(t),e=Ge(e),Be(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Qe in r&&!r.writable){var n=Ue(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ke in r?r.configurable:n.configurable,enumerable:Ve in r?r.enumerable:n.enumerable,writable:!1})}return Je(t,e,r)}:Je:function(t,e,r){if(Be(t),e=Ge(e),Be(r),He)try{return Je(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new $e("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Xe=Fe,Ye=k,Ze=g?function(t,e,r){return Xe.f(t,e,Ye(1,r))}:function(t,e,r){return t[e]=r,t},tr={exports:{}},er=g,rr=Kt,nr=Function.prototype,or=er&&Object.getOwnPropertyDescriptor,ir=rr(nr,"name"),cr={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!er||er&&or(nr,"name").configurable)},ar=Y,ur=Ht,sr=F(Function.toString);ar(ur.inspectSource)||(ur.inspectSource=function(t){return sr(t)});var fr,lr,pr,hr=ur.inspectSource,yr=Y,br=b.WeakMap,vr=yr(br)&&/native code/.test(String(br)),dr=te,gr=Bt("keys"),wr={},mr=vr,Or=b,jr=tt,Sr=Ze,Pr=Kt,Cr=Ht,Er=function(t){return gr[t]||(gr[t]=dr(t))},Tr=wr,Rr="Object already initialized",kr=Or.TypeError,xr=Or.WeakMap;if(mr||Cr.state){var Wr=Cr.state||(Cr.state=new xr);Wr.get=Wr.get,Wr.has=Wr.has,Wr.set=Wr.set,fr=function(t,e){if(Wr.has(t))throw new kr(Rr);return e.facade=t,Wr.set(t,e),e},lr=function(t){return Wr.get(t)||{}},pr=function(t){return Wr.has(t)}}else{var Ar=Er("state");Tr[Ar]=!0,fr=function(t,e){if(Pr(t,Ar))throw new kr(Rr);return e.facade=t,Sr(t,Ar,e),e},lr=function(t){return Pr(t,Ar)?t[Ar]:{}},pr=function(t){return Pr(t,Ar)}}var zr={set:fr,get:lr,has:pr,enforce:function(t){return pr(t)?lr(t):fr(t,{})},getterFor:function(t){return function(e){var r;if(!jr(e)||(r=lr(e)).type!==t)throw new kr("Incompatible receiver, "+t+" required");return r}}},Fr=F,Dr=d,Ir=Y,Mr=Kt,_r=g,Lr=cr.CONFIGURABLE,Nr=hr,Hr=zr.enforce,qr=zr.get,Br=String,Gr=Object.defineProperty,$r=Fr("".slice),Jr=Fr("".replace),Ur=Fr([].join),Vr=_r&&!Dr((function(){return 8!==Gr((function(){}),"length",{value:8}).length})),Kr=String(String).split("String"),Qr=tr.exports=function(t,e,r){"Symbol("===$r(Br(e),0,7)&&(e="["+Jr(Br(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Mr(t,"name")||Lr&&t.name!==e)&&(_r?Gr(t,"name",{value:e,configurable:!0}):t.name=e),Vr&&r&&Mr(r,"arity")&&t.length!==r.arity&&Gr(t,"length",{value:r.arity});try{r&&Mr(r,"constructor")&&r.constructor?_r&&Gr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Hr(t);return Mr(n,"source")||(n.source=Ur(Kr,"string"==typeof e?e:"")),t};Function.prototype.toString=Qr((function(){return Ir(this)&&qr(this).source||Nr(this)}),"toString");var Xr=tr.exports,Yr=Y,Zr=Fe,tn=Xr,en=It,rn={},nn=Math.ceil,on=Math.floor,cn=Math.trunc||function(t){var e=+t;return(e>0?on:nn)(e)},an=function(t){var e=+t;return e!=e||0===e?0:cn(e)},un=an,sn=Math.max,fn=Math.min,ln=function(t,e){var r=un(t);return r<0?sn(r+e,0):fn(r,e)},pn=an,hn=Math.min,yn=function(t){var e=pn(t);return e>0?hn(e,9007199254740991):0},bn=function(t){return yn(t.length)},vn=Q,dn=ln,gn=bn,wn=function(t){return function(e,r,n){var o=vn(e),i=gn(o);if(0===i)return!t&&-1;var c,a=dn(n,i);if(t&&r!=r){for(;i>a;)if((c=o[a++])!=c)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},mn={includes:wn(!0),indexOf:wn(!1)},On=Kt,jn=Q,Sn=mn.indexOf,Pn=wr,Cn=F([].push),En=function(t,e){var r,n=jn(t),o=0,i=[];for(r in n)!On(Pn,r)&&On(n,r)&&Cn(i,r);for(;e.length>o;)On(n,r=e[o++])&&(~Sn(i,r)||Cn(i,r));return i},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rn=En,kn=Tn.concat("length","prototype");rn.f=Object.getOwnPropertyNames||function(t){return Rn(t,kn)};var xn={};xn.f=Object.getOwnPropertySymbols;var Wn=ot,An=rn,zn=xn,Fn=Le,Dn=F([].concat),In=Wn("Reflect","ownKeys")||function(t){var e=An.f(Fn(t)),r=zn.f;return r?Dn(e,r(t)):e},Mn=Kt,_n=In,Ln=v,Nn=Fe,Hn=d,qn=Y,Bn=/#|\.prototype\./,Gn=function(t,e){var r=Jn[$n(t)];return r===Vn||r!==Un&&(qn(e)?Hn(e):!!e)},$n=Gn.normalize=function(t){return String(t).replace(Bn,".").toLowerCase()},Jn=Gn.data={},Un=Gn.NATIVE="N",Vn=Gn.POLYFILL="P",Kn=Gn,Qn=b,Xn=v.f,Yn=Ze,Zn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Yr(r)&&tn(r,i,n),n.global)o?t[e]=r:en(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Zr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},to=It,eo=function(t,e,r){for(var n=_n(e),o=Nn.f,i=Ln.f,c=0;c<n.length;c++){var a=n[c];Mn(t,a)||r&&Mn(r,a)||o(t,a,i(e,a))}},ro=Kn,no=function(t,e){var r,n,o,i,c,a=t.target,u=t.global,s=t.stat;if(r=u?Qn:s?Qn[a]||to(a,{}):Qn[a]&&Qn[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(c=Xn(r,n))&&c.value:r[n],!ro(u?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(t.sham||o&&o.sham)&&Yn(i,"sham",!0),Zn(r,n,i,t)}},oo=_,io=Array.isArray||function(t){return"Array"===oo(t)},co=TypeError,ao=g,uo=Fe,so=k,fo=function(t,e,r){ao?uo.f(t,e,so(0,r)):t[e]=r},lo={};lo[se("toStringTag")]="z";var po="[object z]"===String(lo),ho=Y,yo=_,bo=se("toStringTag"),vo=Object,go="Arguments"===yo(function(){return arguments}()),wo=po?yo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=vo(t),bo))?r:go?yo(e):"Object"===(n=yo(e))&&ho(e.callee)?"Arguments":n},mo=F,Oo=d,jo=Y,So=wo,Po=hr,Co=function(){},Eo=ot("Reflect","construct"),To=/^\s*(?:class|function)\b/,Ro=mo(To.exec),ko=!To.test(Co),xo=function(t){if(!jo(t))return!1;try{return Eo(Co,[],t),!0}catch(t){return!1}},Wo=function(t){if(!jo(t))return!1;switch(So(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ko||!!Ro(To,Po(t))}catch(t){return!0}};Wo.sham=!0;var Ao=!Eo||Oo((function(){var t;return xo(xo.call)||!xo(Object)||!xo((function(){t=!0}))||t}))?Wo:xo,zo=io,Fo=Ao,Do=tt,Io=se("species"),Mo=Array,_o=function(t){var e;return zo(t)&&(e=t.constructor,(Fo(e)&&(e===Mo||zo(e.prototype))||Do(e)&&null===(e=e[Io]))&&(e=void 0)),void 0===e?Mo:e},Lo=d,No=pt,Ho=se("species"),qo=function(t){return No>=51||!Lo((function(){var e=[];return(e.constructor={})[Ho]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Bo=no,Go=d,$o=io,Jo=tt,Uo=Jt,Vo=bn,Ko=function(t){if(t>9007199254740991)throw co("Maximum allowed index exceeded");return t},Qo=fo,Xo=function(t,e){return new(_o(t))(0===e?0:e)},Yo=qo,Zo=pt,ti=se("isConcatSpreadable"),ei=Zo>=51||!Go((function(){var t=[];return t[ti]=!1,t.concat()[0]!==t})),ri=function(t){if(!Jo(t))return!1;var e=t[ti];return void 0!==e?!!e:$o(t)};Bo({target:"Array",proto:!0,arity:1,forced:!ei||!Yo("concat")},{concat:function(t){var e,r,n,o,i,c=Uo(this),a=Xo(c,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(ri(i=-1===e?c:arguments[e]))for(o=Vo(i),Ko(u+o),r=0;r<o;r++,u++)r in i&&Qo(a,u,i[r]);else Ko(u+1),Qo(a,u++,i);return a.length=u,a}});var ni=F([].slice),oi=no,ii=io,ci=Ao,ai=tt,ui=ln,si=bn,fi=Q,li=fo,pi=se,hi=ni,yi=qo("slice"),bi=pi("species"),vi=Array,di=Math.max;oi({target:"Array",proto:!0,forced:!yi},{slice:function(t,e){var r,n,o,i=fi(this),c=si(i),a=ui(t,c),u=ui(void 0===e?c:e,c);if(ii(i)&&(r=i.constructor,(ci(r)&&(r===vi||ii(r.prototype))||ai(r)&&null===(r=r[bi]))&&(r=void 0),r===vi||void 0===r))return hi(i,a,u);for(n=new(void 0===r?vi:r)(di(u-a,0)),o=0;a<u;a++,o++)a in i&&li(n,o,i[a]);return n.length=o,n}});var gi=En,wi=Tn,mi=Object.keys||function(t){return gi(t,wi)},Oi=g,ji=F,Si=j,Pi=d,Ci=mi,Ei=xn,Ti=S,Ri=Jt,ki=B,xi=Object.assign,Wi=Object.defineProperty,Ai=ji([].concat),zi=!xi||Pi((function(){if(Oi&&1!==xi({b:1},xi(Wi({},"a",{enumerable:!0,get:function(){Wi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==xi({},t)[r]||Ci(xi({},e)).join("")!==n}))?function(t,e){for(var r=Ri(t),n=arguments.length,o=1,i=Ei.f,c=Ti.f;n>o;)for(var a,u=ki(arguments[o++]),s=i?Ai(Ci(u),i(u)):Ci(u),f=s.length,l=0;f>l;)a=s[l++],Oi&&!Si(c,u,a)||(r[a]=u[a]);return r}:xi,Fi=zi;no({target:"Object",stat:!0,arity:2,forced:Object.assign!==Fi},{assign:Fi});var Di=wo,Ii=String,Mi=function(t){if("Symbol"===Di(t))throw new TypeError("Cannot convert a Symbol value to a string");return Ii(t)},_i="\t\n\v\f\r                 \u2028\u2029\ufeff",Li=U,Ni=Mi,Hi=_i,qi=F("".replace),Bi=RegExp("^["+Hi+"]+"),Gi=RegExp("(^|[^"+Hi+"])["+Hi+"]+$"),$i=function(t){return function(e){var r=Ni(Li(e));return 1&t&&(r=qi(r,Bi,"")),2&t&&(r=qi(r,Gi,"$1")),r}},Ji={start:$i(1),end:$i(2),trim:$i(3)},Ui=b,Vi=d,Ki=F,Qi=Mi,Xi=Ji.trim,Yi=_i,Zi=Ui.parseInt,tc=Ui.Symbol,ec=tc&&tc.iterator,rc=/^[+-]?0x/i,nc=Ki(rc.exec),oc=8!==Zi(Yi+"08")||22!==Zi(Yi+"0x16")||ec&&!Vi((function(){Zi(Object(ec))}))?function(t,e){var r=Xi(Qi(t));return Zi(r,e>>>0||(nc(rc,r)?16:10))}:Zi;no({global:!0,forced:parseInt!==oc},{parseInt:oc});var ic=t.fn.bootstrapTable.utils;Object.assign(t.fn.bootstrapTable.defaults,{usePipeline:!1,pipelineSize:1e3,onCachedDataHit:function(t){return!1},onCachedDataReset:function(t){return!1}}),Object.assign(t.fn.bootstrapTable.events,{"cached-data-hit.bs.table":"onCachedDataHit","cached-data-reset.bs.table":"onCachedDataReset"}),t.BootstrapTable=function(r){function n(){return c(this,n),e(this,n,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(n,r),i=n,u=[{key:"init",value:function(){var t;this.options.usePipeline&&this.initPipeline();for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=p(s(n.prototype),"init",this)).call.apply(t,[this].concat(r))}},{key:"initPipeline",value:function(){this.cacheRequestJSON={},this.cacheWindows=[],this.currWindow=0,this.resetCache=!0}},{key:"onSearch",value:function(){var t;this.options.usePipeline&&(this.resetCache=!0);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=p(s(n.prototype),"onSearch",this)).call.apply(t,[this].concat(r))}},{key:"onSort",value:function(){var t;this.options.usePipeline&&(this.resetCache=!0);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=p(s(n.prototype),"onSort",this)).call.apply(t,[this].concat(r))}},{key:"onPageListChange",value:function(e){var r=t(e.currentTarget),o=parseInt(r.text(),10);this.options.pipelineSize=this.calculatePipelineSize(this.options.pipelineSize,o),this.resetCache=!0,p(s(n.prototype),"onPageListChange",this).call(this,e)}},{key:"calculatePipelineSize",value:function(t,e){return 0===e?0:Math.ceil(t/e)*e}},{key:"setCacheWindows",value:function(){this.cacheWindows=[];for(var t=0;t<=this.options.totalRows/this.options.pipelineSize;t++){var e=t*this.options.pipelineSize;this.cacheWindows[t]={lower:e,upper:e+this.options.pipelineSize-1}}}},{key:"setCurrWindow",value:function(t){this.currWindow=0;for(var e=0;e<this.cacheWindows.length;e++)if(this.cacheWindows[e].lower<=t&&t<=this.cacheWindows[e].upper){this.currWindow=e;break}}},{key:"drawFromCache",value:function(t,e){var r=ic.extend(!0,{},this.cacheRequestJSON),n=t-this.cacheWindows[this.currWindow].lower,o=n+e;return r.rows=r.rows.slice(n,o),r}},{key:"initServer",value:function(t,e,r){var i=this;if(!this.options.usePipeline)return p(s(n.prototype),"initServer",this).call(this,t,e,r);var c=!0,a={};if("limit"===this.options.queryParamsType&&this.options.pagination&&"server"===this.options.sidePagination)if(a.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),a.limit=this.options.pageSize,this.cacheWindows.length){var u=this.cacheWindows[this.currWindow];this.resetCache||a.offset<u.lower||a.offset>u.upper?(c=!0,this.setCurrWindow(a.offset),a.drawOffset=a.offset,a.offset=this.cacheWindows[this.currWindow].lower):c=!1}else c=!0,a.drawOffset=a.offset;if(this.resetCache&&(c=!0,this.resetCache=!1),c&&(a.drawLimit=a.limit,a.limit=this.options.pipelineSize),!c){var f=this.drawFromCache(a.offset,a.limit);return this.load(f),this.trigger("load-success",f),void this.trigger("cached-data-hit",f)}return this.pipelineResponseHandler||(this.pipelineResponseHandler=this.options.responseHandler,this.options.responseHandler=function(t,e){var r=ic.calculateObjectValue(i.options,i.pipelineResponseHandler,[t,e],t);return i.cacheRequestJSON=ic.extend(!0,{},r),i.options.totalRows=r[i.options.totalField],i.setCacheWindows(),r=i.drawFromCache(a.drawOffset,a.drawLimit),i.trigger("cached-data-reset",r),r}),p(s(n.prototype),"initServer",this).call(this,t,o(o({},e),a),r)}},{key:"destroy",value:function(){var t;this.options.responseHandler=this.pipelineResponseHandler,this.pipelineResponseHandler=null;for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=p(s(n.prototype),"destroy",this)).call.apply(t,[this].concat(r))}}],u&&a(i.prototype,u),l&&a(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,l}(t.BootstrapTable)}));