UNPKG

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