UNPKG

21.6 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.15.5
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=t||self).jQuery)}(this,(function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n,o,i,u="object",c=function(t){return t&&t.Math==Math&&t},a=c(typeof globalThis==u&&globalThis)||c(typeof window==u&&window)||c(typeof self==u&&self)||c(typeof e==u&&e)||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},l=!f((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),s={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y={f:p&&!s.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:s},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v={}.toString,h=function(t){return v.call(t).slice(8,-1)},g="".split,b=f((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?g.call(t,""):Object(t)}:Object,S=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return b(S(t))},O=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!O(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!O(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!O(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!O(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},j={}.hasOwnProperty,T=function(t,e){return j.call(t,e)},P=a.document,_=O(P)&&O(P.createElement),A=function(t){return _?P.createElement(t):{}},E=!l&&!f((function(){return 7!=Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a})),I=Object.getOwnPropertyDescriptor,L={f:l?I:function(t,e){if(t=m(t),e=w(e,!0),E)try{return I(t,e)}catch(t){}if(T(t,e))return d(!y.f.call(t,e),t[e])}},x=function(t){if(!O(t))throw TypeError(String(t)+" is not an object");return t},F=Object.defineProperty,k={f:l?F:function(t,e,r){if(x(t),e=w(e,!0),x(r),E)try{return F(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},M=l?function(t,e,r){return k.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},R=function(t,e){try{M(a,t,e)}catch(r){a[t]=e}return e},C=r((function(t){var e=a["__core-js_shared__"]||R("__core-js_shared__",{});(t.exports=function(t,r){return e[t]||(e[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),N=C("native-function-to-string",Function.toString),G=a.WeakMap,D="function"==typeof G&&/native code/.test(N.call(G)),B=0,V=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+V).toString(36)},q=C("keys"),z=function(t){return q[t]||(q[t]=H(t))},W={},U=a.WeakMap;if(D){var Y=new U,J=Y.get,Q=Y.has,$=Y.set;n=function(t,e){return $.call(Y,t,e),e},o=function(t){return J.call(Y,t)||{}},i=function(t){return Q.call(Y,t)}}else{var K=z("state");W[K]=!0,n=function(t,e){return M(t,K,e),e},o=function(t){return T(t,K)?t[K]:{}},i=function(t){return T(t,K)}}var X={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!O(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Z=r((function(t){var e=X.get,r=X.enforce,n=String(N).split("toString");C("inspectSource",(function(t){return N.call(t)})),(t.exports=function(t,e,o,i){var u=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||T(o,"name")||M(o,"name",e),r(o).source=n.join("string"==typeof e?e:"")),t!==a?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=o:M(t,e,o)):c?t[e]=o:R(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||N.call(this)}))})),tt=a,et=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?et(tt[t])||et(a[t]):tt[t]&&tt[t][e]||a[t]&&a[t][e]},nt=Math.ceil,ot=Math.floor,it=function(t){return isNaN(t=+t)?0:(t>0?ot:nt)(t)},ut=Math.min,ct=function(t){return t>0?ut(it(t),9007199254740991):0},at=Math.max,ft=Math.min,lt=function(t){return function(e,r,n){var o,i=m(e),u=ct(i.length),c=function(t,e){var r=it(t);return r<0?at(r+e,0):ft(r,e)}(n,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},st={includes:lt(!0),indexOf:lt(!1)}.indexOf,pt=function(t,e){var r,n=m(t),o=0,i=[];for(r in n)!T(W,r)&&T(n,r)&&i.push(r);for(;e.length>o;)T(n,r=e[o++])&&(~st(i,r)||i.push(r));return i},yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dt=yt.concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return pt(t,dt)}},ht={f:Object.getOwnPropertySymbols},gt=rt("Reflect","ownKeys")||function(t){var e=vt.f(x(t)),r=ht.f;return r?e.concat(r(t)):e},bt=function(t,e){for(var r=gt(e),n=k.f,o=L.f,i=0;i<r.length;i++){var u=r[i];T(t,u)||n(t,u,o(e,u))}},St=/#|\.prototype\./,mt=function(t,e){var r=wt[Ot(t)];return r==Tt||r!=jt&&("function"==typeof e?f(e):!!e)},Ot=mt.normalize=function(t){return String(t).replace(St,".").toLowerCase()},wt=mt.data={},jt=mt.NATIVE="N",Tt=mt.POLYFILL="P",Pt=mt,_t=L.f,At=function(t,e){var r,n,o,i,u,c=t.target,f=t.global,l=t.stat;if(r=f?a:l?a[c]||R(c,{}):(a[c]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=_t(r,n))&&u.value:r[n],!Pt(f?n:c+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;bt(i,o)}(t.sham||o&&o.sham)&&M(i,"sham",!0),Z(r,n,i,t)}},Et=!!Object.getOwnPropertySymbols&&!f((function(){return!String(Symbol())})),It=Array.isArray||function(t){return"Array"==h(t)},Lt=function(t){return Object(S(t))},xt=Object.keys||function(t){return pt(t,yt)},Ft=l?Object.defineProperties:function(t,e){x(t);for(var r,n=xt(e),o=n.length,i=0;o>i;)k.f(t,r=n[i++],e[r]);return t},kt=rt("document","documentElement"),Mt=z("IE_PROTO"),Rt=function(){},Ct=function(){var t,e=A("iframe"),r=yt.length;for(e.style.display="none",kt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Ct=t.F;r--;)delete Ct.prototype[yt[r]];return Ct()},Nt=Object.create||function(t,e){var r;return null!==t?(Rt.prototype=x(t),r=new Rt,Rt.prototype=null,r[Mt]=t):r=Ct(),void 0===e?r:Ft(r,e)};W[Mt]=!0;var Gt=vt.f,Dt={}.toString,Bt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vt={f:function(t){return Bt&&"[object Window]"==Dt.call(t)?function(t){try{return Gt(t)}catch(t){return Bt.slice()}}(t):Gt(m(t))}},Ht=a.Symbol,qt=C("wks"),zt=function(t){return qt[t]||(qt[t]=Et&&Ht[t]||(Et?Ht:H)("Symbol."+t))},Wt={f:zt},Ut=k.f,Yt=function(t){var e=tt.Symbol||(tt.Symbol={});T(e,t)||Ut(e,t,{value:Wt.f(t)})},Jt=k.f,Qt=zt("toStringTag"),$t=function(t,e,r){t&&!T(t=r?t:t.prototype,Qt)&&Jt(t,Qt,{configurable:!0,value:e})},Kt=function(t,e,r){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},Xt=zt("species"),Zt=function(t,e){var r;return It(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!It(r.prototype)?O(r)&&null===(r=r[Xt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},te=[].push,ee=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,a,f,l){for(var s,p,y=Lt(c),d=b(y),v=Kt(a,f,3),h=ct(d.length),g=0,S=l||Zt,m=e?S(c,h):r?S(c,0):void 0;h>g;g++)if((u||g in d)&&(p=v(s=d[g],g,y),t))if(e)m[g]=p;else if(p)switch(t){case 3:return!0;case 5:return s;case 6:return g;case 2:te.call(m,s)}else if(o)return!1;return i?-1:n||o?o:m}},re={forEach:ee(0),map:ee(1),filter:ee(2),some:ee(3),every:ee(4),find:ee(5),findIndex:ee(6)},ne=re.forEach,oe=z("hidden"),ie=zt("toPrimitive"),ue=X.set,ce=X.getterFor("Symbol"),ae=Object.prototype,fe=a.Symbol,le=a.JSON,se=le&&le.stringify,pe=L.f,ye=k.f,de=Vt.f,ve=y.f,he=C("symbols"),ge=C("op-symbols"),be=C("string-to-symbol-registry"),Se=C("symbol-to-string-registry"),me=C("wks"),Oe=a.QObject,we=!Oe||!Oe.prototype||!Oe.prototype.findChild,je=l&&f((function(){return 7!=Nt(ye({},"a",{get:function(){return ye(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=pe(ae,e);n&&delete ae[e],ye(t,e,r),n&&t!==ae&&ye(ae,e,n)}:ye,Te=function(t,e){var r=he[t]=Nt(fe.prototype);return ue(r,{type:"Symbol",tag:t,description:e}),l||(r.description=e),r},Pe=Et&&"symbol"==typeof fe.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof fe},_e=function(t,e,r){t===ae&&_e(ge,e,r),x(t);var n=w(e,!0);return x(r),T(he,n)?(r.enumerable?(T(t,oe)&&t[oe][n]&&(t[oe][n]=!1),r=Nt(r,{enumerable:d(0,!1)})):(T(t,oe)||ye(t,oe,d(1,{})),t[oe][n]=!0),je(t,n,r)):ye(t,n,r)},Ae=function(t,e){x(t);var r=m(e),n=xt(r).concat(xe(r));return ne(n,(function(e){l&&!Ee.call(r,e)||_e(t,e,r[e])})),t},Ee=function(t){var e=w(t,!0),r=ve.call(this,e);return!(this===ae&&T(he,e)&&!T(ge,e))&&(!(r||!T(this,e)||!T(he,e)||T(this,oe)&&this[oe][e])||r)},Ie=function(t,e){var r=m(t),n=w(e,!0);if(r!==ae||!T(he,n)||T(ge,n)){var o=pe(r,n);return!o||!T(he,n)||T(r,oe)&&r[oe][n]||(o.enumerable=!0),o}},Le=function(t){var e=de(m(t)),r=[];return ne(e,(function(t){T(he,t)||T(W,t)||r.push(t)})),r},xe=function(t){var e=t===ae,r=de(e?ge:m(t)),n=[];return ne(r,(function(t){!T(he,t)||e&&!T(ae,t)||n.push(he[t])})),n};Et||(Z((fe=function(){if(this instanceof fe)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=H(t),r=function(t){this===ae&&r.call(ge,t),T(this,oe)&&T(this[oe],e)&&(this[oe][e]=!1),je(this,e,d(1,t))};return l&&we&&je(ae,e,{configurable:!0,set:r}),Te(e,t)}).prototype,"toString",(function(){return ce(this).tag})),y.f=Ee,k.f=_e,L.f=Ie,vt.f=Vt.f=Le,ht.f=xe,l&&(ye(fe.prototype,"description",{configurable:!0,get:function(){return ce(this).description}}),Z(ae,"propertyIsEnumerable",Ee,{unsafe:!0})),Wt.f=function(t){return Te(zt(t),t)}),At({global:!0,wrap:!0,forced:!Et,sham:!Et},{Symbol:fe}),ne(xt(me),(function(t){Yt(t)})),At({target:"Symbol",stat:!0,forced:!Et},{for:function(t){var e=String(t);if(T(be,e))return be[e];var r=fe(e);return be[e]=r,Se[r]=e,r},keyFor:function(t){if(!Pe(t))throw TypeError(t+" is not a symbol");if(T(Se,t))return Se[t]},useSetter:function(){we=!0},useSimple:function(){we=!1}}),At({target:"Object",stat:!0,forced:!Et,sham:!l},{create:function(t,e){return void 0===e?Nt(t):Ae(Nt(t),e)},defineProperty:_e,defineProperties:Ae,getOwnPropertyDescriptor:Ie}),At({target:"Object",stat:!0,forced:!Et},{getOwnPropertyNames:Le,getOwnPropertySymbols:xe}),At({target:"Object",stat:!0,forced:f((function(){ht.f(1)}))},{getOwnPropertySymbols:function(t){return ht.f(Lt(t))}}),le&&At({target:"JSON",stat:!0,forced:!Et||f((function(){var t=fe();return"[null]"!=se([t])||"{}"!=se({a:t})||"{}"!=se(Object(t))}))},{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(O(e)||void 0!==t)&&!Pe(t))return It(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Pe(e))return e}),n[1]=e,se.apply(le,n)}}),fe.prototype[ie]||M(fe.prototype,ie,fe.prototype.valueOf),$t(fe,"Symbol"),W[oe]=!0;var Fe=k.f,ke=a.Symbol;if(l&&"function"==typeof ke&&(!("description"in ke.prototype)||void 0!==ke().description)){var Me={},Re=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Re?new ke(t):void 0===t?ke():ke(t);return""===t&&(Me[e]=!0),e};bt(Re,ke);var Ce=Re.prototype=ke.prototype;Ce.constructor=Re;var Ne=Ce.toString,Ge="Symbol(test)"==String(ke("test")),De=/^Symbol\((.*)\)[^)]+$/;Fe(Ce,"description",{configurable:!0,get:function(){var t=O(this)?this.valueOf():this,e=Ne.call(t);if(T(Me,t))return"";var r=Ge?e.slice(7,-1):e.replace(De,"$1");return""===r?void 0:r}}),At({global:!0,forced:!0},{Symbol:Re})}Yt("iterator");var Be=function(t,e,r){var n=w(e);n in t?k.f(t,n,d(0,r)):t[n]=r},Ve=zt("species"),He=function(t){return!f((function(){var e=[];return(e.constructor={})[Ve]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},qe=zt("isConcatSpreadable"),ze=!f((function(){var t=[];return t[qe]=!1,t.concat()[0]!==t})),We=He("concat"),Ue=function(t){if(!O(t))return!1;var e=t[qe];return void 0!==e?!!e:It(t)};At({target:"Array",proto:!0,forced:!ze||!We},{concat:function(t){var e,r,n,o,i,u=Lt(this),c=Zt(u,0),a=0;for(e=-1,n=arguments.length;e<n;e++)if(i=-1===e?u:arguments[e],Ue(i)){if(a+(o=ct(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,a++)r in i&&Be(c,a,i[r])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Be(c,a++,i)}return c.length=a,c}});var Ye=re.filter;At({target:"Array",proto:!0,forced:!He("filter")},{filter:function(t){return Ye(this,t,arguments.length>1?arguments[1]:void 0)}});var Je=zt("unscopables"),Qe=Array.prototype;null==Qe[Je]&&M(Qe,Je,Nt(null));var $e,Ke,Xe,Ze=function(t){Qe[Je][t]=!0},tr=!f((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),er=z("IE_PROTO"),rr=Object.prototype,nr=tr?Object.getPrototypeOf:function(t){return t=Lt(t),T(t,er)?t[er]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?rr:null},or=zt("iterator"),ir=!1;[].keys&&("next"in(Xe=[].keys())?(Ke=nr(nr(Xe)))!==Object.prototype&&($e=Ke):ir=!0),null==$e&&($e={}),T($e,or)||M($e,or,(function(){return this}));var ur={IteratorPrototype:$e,BUGGY_SAFARI_ITERATORS:ir},cr=ur.IteratorPrototype,ar=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return x(r),function(t){if(!O(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),fr=ur.IteratorPrototype,lr=ur.BUGGY_SAFARI_ITERATORS,sr=zt("iterator"),pr=function(){return this},yr=function(t,e,r,n,o,i,u){!function(t,e,r){var n=e+" Iterator";t.prototype=Nt(cr,{next:d(1,r)}),$t(t,n,!1)}(r,e,n);var c,a,f,l=function(t){if(t===o&&h)return h;if(!lr&&t in y)return y[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",p=!1,y=t.prototype,v=y[sr]||y["@@iterator"]||o&&y[o],h=!lr&&v||l(o),g="Array"==e&&y.entries||v;if(g&&(c=nr(g.call(new t)),fr!==Object.prototype&&c.next&&(nr(c)!==fr&&(ar?ar(c,fr):"function"!=typeof c[sr]&&M(c,sr,pr)),$t(c,s,!0))),"values"==o&&v&&"values"!==v.name&&(p=!0,h=function(){return v.call(this)}),y[sr]!==h&&M(y,sr,h),o)if(a={values:l("values"),keys:i?h:l("keys"),entries:l("entries")},u)for(f in a)!lr&&!p&&f in y||Z(y,f,a[f]);else At({target:e,proto:!0,forced:lr||p},a);return a},dr=X.set,vr=X.getterFor("Array Iterator"),hr=yr(Array,"Array",(function(t,e){dr(this,{type:"Array Iterator",target:m(t),index:0,kind:e})}),(function(){var t=vr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Ze("keys"),Ze("values"),Ze("entries");var gr=[].join,br=b!=Object,Sr=function(t,e){var r=[][t];return!r||!f((function(){r.call(null,e||function(){throw 1},1)}))}("join",",");At({target:"Array",proto:!0,forced:br||Sr},{join:function(t){return gr.call(m(this),void 0===t?",":t)}});var mr=zt("toStringTag"),Or="Arguments"==h(function(){return arguments}()),wr={};wr[zt("toStringTag")]="z";var jr="[object z]"!==String(wr)?function(){return"[object "+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=Object(t),mr))?r:Or?h(e):"Object"==(n=h(e))&&"function"==typeof e.callee?"Arguments":n}(this)+"]"}:wr.toString,Tr=Object.prototype;jr!==Tr.toString&&Z(Tr,"toString",jr,{unsafe:!0});var Pr=function(t){return function(e,r){var n,o,i=String(S(e)),u=it(r),c=i.length;return u<0||u>=c?t?"":void 0:(n=i.charCodeAt(u))<55296||n>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):n:t?i.slice(u,u+2):o-56320+(n-55296<<10)+65536}},_r={codeAt:Pr(!1),charAt:Pr(!0)}.charAt,Ar=X.set,Er=X.getterFor("String Iterator");yr(String,"String",(function(t){Ar(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Er(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=_r(r,n),e.index+=t.length,{value:t,done:!1})}));var Ir={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},Lr=zt("iterator"),xr=zt("toStringTag"),Fr=hr.values;for(var kr in Ir){var Mr=a[kr],Rr=Mr&&Mr.prototype;if(Rr){if(Rr[Lr]!==Fr)try{M(Rr,Lr,Fr)}catch(t){Rr[Lr]=Fr}if(Rr[xr]||M(Rr,xr,kr),Ir[kr])for(var Cr in hr)if(Rr[Cr]!==hr[Cr])try{M(Rr,Cr,hr[Cr])}catch(t){Rr[Cr]=hr[Cr]}}}function Nr(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,n.key,n)}}function Gr(t){return(Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Dr(t,e){return(Dr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Br(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vr(t,e,r){return(Vr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gr(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}})(t,e,r||t)}t.extend(t.fn.bootstrapTable.defaults,{treeEnable:!1,treeShowField:null,idField:"id",parentIdField:"pid",rootParentId:null}),t.BootstrapTable=function(e){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),Br(this,Gr(r).apply(this,arguments))}var n,o,i;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}}),e&&Dr(t,e)}(r,e),n=r,(o=[{key:"init",value:function(){var t;this._rowStyle=this.options.rowStyle;for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=Vr(Gr(r.prototype),"init",this)).call.apply(t,[this].concat(n))}},{key:"initHeader",value:function(){for(var t,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=Vr(Gr(r.prototype),"initHeader",this)).call.apply(t,[this].concat(n));var i=this.options.treeShowField;if(i){var u=!0,c=!1,a=void 0;try{for(var f,l=this.header.fields[Symbol.iterator]();!(u=(f=l.next()).done);u=!0){var s=f.value;if(i===s){this.treeEnable=!0;break}}}catch(t){c=!0,a=t}finally{try{u||null==l.return||l.return()}finally{if(c)throw a}}}}},{key:"initBody",value:function(){var t;this.options.virtualScroll=!this.treeEnable;for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=Vr(Gr(r.prototype),"initBody",this)).call.apply(t,[this].concat(n))}},{key:"initTr",value:function(e,n,o,i){var u=this,c=o.filter((function(t){return e[u.options.idField]===t[u.options.parentIdField]}));i.append(Vr(Gr(r.prototype),"initRow",this).call(this,e,n,o,i));for(var a=c.length-1,f=0;f<=a;f++){var l=c[f],s=t.extend(!0,{},e);l._level=s._level+1,l._parent=s,f===a&&(l._last=1),this.options.rowStyle=function(t,e){var r=u._rowStyle(t,e),n=t[u.options.idField]?t[u.options.idField]:0,o=t[u.options.parentIdField]?t[u.options.parentIdField]:0;return r.classes=[r.classes||"","treegrid-".concat(n),"treegrid-parent-".concat(o)].join(" "),r},this.initTr(l,t.inArray(l,o),o,i)}}},{key:"initRow",value:function(t,e,n,o){var i=this;return this.treeEnable?!(this.options.rootParentId!==t[this.options.parentIdField]&&t[this.options.parentIdField]||(void 0===t._level&&(t._level=0),this.options.rowStyle=function(t,e){var r=i._rowStyle(t,e),n=t[i.options.idField]?t[i.options.idField]:0;return r.classes=[r.classes||"","treegrid-".concat(n)].join(" "),r},this.initTr(t,e,n,o),0)):Vr(Gr(r.prototype),"initRow",this).call(this,t,e,n,o)}}])&&Nr(n.prototype,o),i&&Nr(n,i),r}(t.BootstrapTable)}));