UNPKG

14.3 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,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),e="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 e&&e)||function(){return this}()||Function("return this")(),u={},a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),l=f,s=Function.prototype.call,p=l?s.bind(s):function(){return s.apply(s,arguments)},g={},y={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,b=d&&!y.call({1:2},1);g.f=b?function(t){var n=d(this,t);return!!n&&n.enumerable}:y;var m,h,v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},w=f,S=Function.prototype,O=S.bind,P=S.call,j=w&&O.bind(P,P),T=w?function(t){return t&&j(t)}:function(t){return t&&function(){return P.apply(t,arguments)}},x=T,E=x({}.toString),A=x("".slice),C=function(t){return A(E(t),8,-1)},R=a,F=C,M=Object,I=T("".split),L=R((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==F(t)?I(t,""):M(t)}:M,N=TypeError,z=function(t){if(null==t)throw N("Can't call method on "+t);return t},k=L,D=z,q=function(t){return k(D(t))},B=function(t){return"function"==typeof t},_=B,G=function(t){return"object"==typeof t?null!==t:_(t)},U=i,H=B,W=function(t){return H(t)?t:void 0},J=function(t,n){return arguments.length<2?W(U[t]):U[t]&&U[t][n]},K=T({}.isPrototypeOf),Q=i,V=J("navigator","userAgent")||"",X=Q.process,Y=Q.Deno,$=X&&X.versions||Y&&Y.version,Z=$&&$.v8;Z&&(h=(m=Z.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!h&&V&&(!(m=V.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=V.match(/Chrome\/(\d+)/))&&(h=+m[1]);var tt=h,nt=tt,rt=a,et=!!Object.getOwnPropertySymbols&&!rt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),ot=et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it=J,ut=B,at=K,ct=Object,ft=ot?function(t){return"symbol"==typeof t}:function(t){var n=it("Symbol");return ut(n)&&at(n.prototype,ct(t))},lt=String,st=B,pt=function(t){try{return lt(t)}catch(t){return"Object"}},gt=TypeError,yt=function(t){if(st(t))return t;throw gt(pt(t)+" is not a function")},dt=p,bt=B,mt=G,ht=TypeError,vt={exports:{}},wt=i,St=Object.defineProperty,Ot=function(t,n){try{St(wt,t,{value:n,configurable:!0,writable:!0})}catch(r){wt[t]=n}return n},Pt=Ot,jt="__core-js_shared__",Tt=i[jt]||Pt(jt,{}),xt=Tt;(vt.exports=function(t,n){return xt[t]||(xt[t]=void 0!==n?n:{})})("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=z,At=Object,Ct=function(t){return At(Et(t))},Rt=Ct,Ft=T({}.hasOwnProperty),Mt=Object.hasOwn||function(t,n){return Ft(Rt(t),n)},It=T,Lt=0,Nt=Math.random(),zt=It(1..toString),kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+zt(++Lt+Nt,36)},Dt=i,qt=vt.exports,Bt=Mt,_t=kt,Gt=et,Ut=ot,Ht=qt("wks"),Wt=Dt.Symbol,Jt=Wt&&Wt.for,Kt=Ut?Wt:Wt&&Wt.withoutSetter||_t,Qt=function(t){if(!Bt(Ht,t)||!Gt&&"string"!=typeof Ht[t]){var n="Symbol."+t;Gt&&Bt(Wt,t)?Ht[t]=Wt[t]:Ht[t]=Ut&&Jt?Jt(n):Kt(n)}return Ht[t]},Vt=p,Xt=G,Yt=ft,$t=function(t,n){var r=t[n];return null==r?void 0:yt(r)},Zt=function(t,n){var r,e;if("string"===n&&bt(r=t.toString)&&!mt(e=dt(r,t)))return e;if(bt(r=t.valueOf)&&!mt(e=dt(r,t)))return e;if("string"!==n&&bt(r=t.toString)&&!mt(e=dt(r,t)))return e;throw ht("Can't convert object to primitive value")},tn=TypeError,nn=Qt("toPrimitive"),rn=function(t,n){if(!Xt(t)||Yt(t))return t;var r,e=$t(t,nn);if(e){if(void 0===n&&(n="default"),r=Vt(e,t,n),!Xt(r)||Yt(r))return r;throw tn("Can't convert object to primitive value")}return void 0===n&&(n="number"),Zt(t,n)},en=ft,on=function(t){var n=rn(t,"string");return en(n)?n:n+""},un=G,an=i.document,cn=un(an)&&un(an.createElement),fn=function(t){return cn?an.createElement(t):{}},ln=!c&&!a((function(){return 7!=Object.defineProperty(fn("div"),"a",{get:function(){return 7}}).a})),sn=c,pn=p,gn=g,yn=v,dn=q,bn=on,mn=Mt,hn=ln,vn=Object.getOwnPropertyDescriptor;u.f=sn?vn:function(t,n){if(t=dn(t),n=bn(n),hn)try{return vn(t,n)}catch(t){}if(mn(t,n))return yn(!pn(gn.f,t,n),t[n])};var wn={},Sn=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),On=G,Pn=String,jn=TypeError,Tn=function(t){if(On(t))return t;throw jn(Pn(t)+" is not an object")},xn=c,En=ln,An=Sn,Cn=Tn,Rn=on,Fn=TypeError,Mn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Ln="enumerable",Nn="configurable",zn="writable";wn.f=xn?An?function(t,n,r){if(Cn(t),n=Rn(n),Cn(r),"function"==typeof t&&"prototype"===n&&"value"in r&&zn in r&&!r.writable){var e=In(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:Nn in r?r.configurable:e.configurable,enumerable:Ln in r?r.enumerable:e.enumerable,writable:!1})}return Mn(t,n,r)}:Mn:function(t,n,r){if(Cn(t),n=Rn(n),Cn(r),En)try{return Mn(t,n,r)}catch(t){}if("get"in r||"set"in r)throw Fn("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var kn=wn,Dn=v,qn=c?function(t,n,r){return kn.f(t,n,Dn(1,r))}:function(t,n,r){return t[n]=r,t},Bn={exports:{}},_n=c,Gn=Mt,Un=Function.prototype,Hn=_n&&Object.getOwnPropertyDescriptor,Wn=Gn(Un,"name"),Jn={EXISTS:Wn,PROPER:Wn&&"something"===function(){}.name,CONFIGURABLE:Wn&&(!_n||_n&&Hn(Un,"name").configurable)},Kn=B,Qn=Tt,Vn=T(Function.toString);Kn(Qn.inspectSource)||(Qn.inspectSource=function(t){return Vn(t)});var Xn,Yn,$n,Zn=Qn.inspectSource,tr=B,nr=Zn,rr=i.WeakMap,er=tr(rr)&&/native code/.test(nr(rr)),or=vt.exports,ir=kt,ur=or("keys"),ar={},cr=er,fr=i,lr=T,sr=G,pr=qn,gr=Mt,yr=Tt,dr=function(t){return ur[t]||(ur[t]=ir(t))},br=ar,mr="Object already initialized",hr=fr.TypeError,vr=fr.WeakMap;if(cr||yr.state){var wr=yr.state||(yr.state=new vr),Sr=lr(wr.get),Or=lr(wr.has),Pr=lr(wr.set);Xn=function(t,n){if(Or(wr,t))throw new hr(mr);return n.facade=t,Pr(wr,t,n),n},Yn=function(t){return Sr(wr,t)||{}},$n=function(t){return Or(wr,t)}}else{var jr=dr("state");br[jr]=!0,Xn=function(t,n){if(gr(t,jr))throw new hr(mr);return n.facade=t,pr(t,jr,n),n},Yn=function(t){return gr(t,jr)?t[jr]:{}},$n=function(t){return gr(t,jr)}}var Tr={set:Xn,get:Yn,has:$n,enforce:function(t){return $n(t)?Yn(t):Xn(t,{})},getterFor:function(t){return function(n){var r;if(!sr(n)||(r=Yn(n)).type!==t)throw hr("Incompatible receiver, "+t+" required");return r}}},xr=a,Er=B,Ar=Mt,Cr=c,Rr=Jn.CONFIGURABLE,Fr=Zn,Mr=Tr.enforce,Ir=Tr.get,Lr=Object.defineProperty,Nr=Cr&&!xr((function(){return 8!==Lr((function(){}),"length",{value:8}).length})),zr=String(String).split("String"),kr=Bn.exports=function(t,n,r){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!Ar(t,"name")||Rr&&t.name!==n)&&Lr(t,"name",{value:n,configurable:!0}),Nr&&r&&Ar(r,"arity")&&t.length!==r.arity&&Lr(t,"length",{value:r.arity});try{r&&Ar(r,"constructor")&&r.constructor?Cr&&Lr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=Mr(t);return Ar(e,"source")||(e.source=zr.join("string"==typeof n?n:"")),t};Function.prototype.toString=kr((function(){return Er(this)&&Ir(this).source||Fr(this)}),"toString");var Dr=B,qr=qn,Br=Bn.exports,_r=Ot,Gr={},Ur=Math.ceil,Hr=Math.floor,Wr=Math.trunc||function(t){var n=+t;return(n>0?Hr:Ur)(n)},Jr=function(t){var n=+t;return n!=n||0===n?0:Wr(n)},Kr=Jr,Qr=Math.max,Vr=Math.min,Xr=Jr,Yr=Math.min,$r=function(t){return t>0?Yr(Xr(t),9007199254740991):0},Zr=function(t){return $r(t.length)},te=q,ne=function(t,n){var r=Kr(t);return r<0?Qr(r+n,0):Vr(r,n)},re=Zr,ee=function(t){return function(n,r,e){var o,i=te(n),u=re(i),a=ne(e,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},oe={includes:ee(!0),indexOf:ee(!1)},ie=Mt,ue=q,ae=oe.indexOf,ce=ar,fe=T([].push),le=function(t,n){var r,e=ue(t),o=0,i=[];for(r in e)!ie(ce,r)&&ie(e,r)&&fe(i,r);for(;n.length>o;)ie(e,r=n[o++])&&(~ae(i,r)||fe(i,r));return i},se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Gr.f=Object.getOwnPropertyNames||function(t){return le(t,se)};var pe={};pe.f=Object.getOwnPropertySymbols;var ge=J,ye=Gr,de=pe,be=Tn,me=T([].concat),he=ge("Reflect","ownKeys")||function(t){var n=ye.f(be(t)),r=de.f;return r?me(n,r(t)):n},ve=Mt,we=he,Se=u,Oe=wn,Pe=a,je=B,Te=/#|\.prototype\./,xe=function(t,n){var r=Ae[Ee(t)];return r==Re||r!=Ce&&(je(n)?Pe(n):!!n)},Ee=xe.normalize=function(t){return String(t).replace(Te,".").toLowerCase()},Ae=xe.data={},Ce=xe.NATIVE="N",Re=xe.POLYFILL="P",Fe=xe,Me=i,Ie=u.f,Le=qn,Ne=function(t,n,r,e){e||(e={});var o=e.enumerable,i=void 0!==e.name?e.name:n;return Dr(r)&&Br(r,i,e),e.global?o?t[n]=r:_r(n,r):(e.unsafe?t[n]&&(o=!0):delete t[n],o?t[n]=r:qr(t,n,r)),t},ze=Ot,ke=function(t,n,r){for(var e=we(n),o=Oe.f,i=Se.f,u=0;u<e.length;u++){var a=e[u];ve(t,a)||r&&ve(r,a)||o(t,a,i(n,a))}},De=Fe,qe=C,Be=Array.isArray||function(t){return"Array"==qe(t)},_e=TypeError,Ge=on,Ue=wn,He=v,We={};We[Qt("toStringTag")]="z";var Je="[object z]"===String(We),Ke=B,Qe=C,Ve=Qt("toStringTag"),Xe=Object,Ye="Arguments"==Qe(function(){return arguments}()),$e=T,Ze=a,to=B,no=Je?Qe:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Xe(t),Ve))?r:Ye?Qe(n):"Object"==(e=Qe(n))&&Ke(n.callee)?"Arguments":e},ro=Zn,eo=function(){},oo=[],io=J("Reflect","construct"),uo=/^\s*(?:class|function)\b/,ao=$e(uo.exec),co=!uo.exec(eo),fo=function(t){if(!to(t))return!1;try{return io(eo,oo,t),!0}catch(t){return!1}},lo=function(t){if(!to(t))return!1;switch(no(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return co||!!ao(uo,ro(t))}catch(t){return!0}};lo.sham=!0;var so=!io||Ze((function(){var t;return fo(fo.call)||!fo(Object)||!fo((function(){t=!0}))||t}))?lo:fo,po=Be,go=so,yo=G,bo=Qt("species"),mo=Array,ho=function(t){var n;return po(t)&&(n=t.constructor,(go(n)&&(n===mo||po(n.prototype))||yo(n)&&null===(n=n[bo]))&&(n=void 0)),void 0===n?mo:n},vo=a,wo=tt,So=Qt("species"),Oo=function(t,n){var r,e,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?Me:f?Me[a]||ze(a,{}):(Me[a]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=Ie(r,e))&&u.value:r[e],!De(c?e:a+(f?".":"#")+e,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ke(i,o)}(t.sham||o&&o.sham)&&Le(i,"sham",!0),Ne(r,e,i,t)}},Po=a,jo=Be,To=G,xo=Ct,Eo=Zr,Ao=function(t){if(t>9007199254740991)throw _e("Maximum allowed index exceeded");return t},Co=function(t,n,r){var e=Ge(n);e in t?Ue.f(t,e,He(0,r)):t[e]=r},Ro=function(t,n){return new(ho(t))(0===n?0:n)},Fo=function(t){return wo>=51||!vo((function(){var n=[];return(n.constructor={})[So]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},Mo=tt,Io=Qt("isConcatSpreadable"),Lo=Mo>=51||!Po((function(){var t=[];return t[Io]=!1,t.concat()[0]!==t})),No=Fo("concat"),zo=function(t){if(!To(t))return!1;var n=t[Io];return void 0!==n?!!n:jo(t)};Oo({target:"Array",proto:!0,arity:1,forced:!Lo||!No},{concat:function(t){var n,r,e,o,i,u=xo(this),a=Ro(u,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(zo(i=-1===n?u:arguments[n]))for(o=Eo(i),Ao(c+o),r=0;r<o;r++,c++)r in i&&Co(a,c,i[r]);else Ao(c+1),Co(a,c++,i);return a.length=c,a}}),r.default.fn.bootstrapTable.locales["pt-BR"]={formatCopyRows:function(){return"Copy Rows"},formatPrint:function(){return"Print"},formatLoadingMessage:function(){return"Carregando, aguarde"},formatRecordsPerPage:function(t){return"".concat(t," registros por página")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"Exibindo ".concat(t," até ").concat(n," de ").concat(r," linhas (filtradas de um total de ").concat(e," linhas)"):"Exibindo ".concat(t," até ").concat(n," de ").concat(r," linhas")},formatSRPaginationPreText:function(){return"página anterior"},formatSRPaginationPageText:function(t){return"Para a página ".concat(t)},formatSRPaginationNextText:function(){return"próxima página"},formatDetailPagination:function(t){return"Mostrando ".concat(t," linhas")},formatClearSearch:function(){return"Limpar Pesquisa"},formatSearch:function(){return"Pesquisar"},formatNoMatches:function(){return"Nenhum registro encontrado"},formatPaginationSwitch:function(){return"Ocultar/Exibir paginação"},formatPaginationSwitchDown:function(){return"Mostrar Paginação"},formatPaginationSwitchUp:function(){return"Esconder Paginação"},formatRefresh:function(){return"Recarregar"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Colunas"},formatColumnsToggleAll:function(){return"Alternar tudo"},formatFullscreen:function(){return"Tela cheia"},formatAllRows:function(){return"Tudo"},formatAutoRefresh:function(){return"Atualização Automática"},formatExport:function(){return"Exportar dados"},formatJumpTo:function(){return"IR"},formatAdvancedSearch:function(){return"Pesquisa Avançada"},formatAdvancedCloseButton:function(){return"Fechar"},formatFilterControlSwitch:function(){return"Ocultar/Exibir controles"},formatFilterControlSwitchHide:function(){return"Ocultar controles"},formatFilterControlSwitchShow:function(){return"Exibir controles"}},r.default.extend(r.default.fn.bootstrapTable.defaults,r.default.fn.bootstrapTable.locales["pt-BR"])}));