!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}System.register(["./framework-legacy.5183f0a6.js","./dom-legacy.2279e1e6.js","./index-legacy.d078c348.js"],(function(e,r){"use strict";var n,i,u,c,l;return{setters:[function(e){n=e.r,i=e.c,u=e.u},function(e){c=e.s},function(e){l=e.b}],execute:function(){e("u",(function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=f.pageSize||10,s=n(f.pageNum||1),y=n(p),v=i((function(){var e;return o((a(e={},f.paramProps.page,s.value),a(e,f.paramProps.pageSize,y.value),e),u(r))}));f=o(o({},{immediate:!0,resultHandle:function(e){var r=e.data,n=r.rows,o=r.total;f.append?m.value=[].concat(t(m.value),t(n)):m.value=n,b.value=o},append:!1,paramProps:{page:"page",pageSize:"rows"}}),f);var b=n(0),m=n([]),g=n(!1),d=i((function(){return Math.ceil(b.value/y.value)})),j=i((function(){return d.value>s.value}));function O(t){g.value=!0,u(e)(v.value).then((function(e){f.resultHandle(e),l(t,e.data.rows)})).finally((function(){g.value=!1,c(0)}))}f.immediate&&O();return{total:b,isLoading:g,search:O,refresh:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0;s.value=1,y.value=e,O(t)},pageNum:s,pageSize:y,tableData:m,pages:d,hasMore:j}}))}}}))}();
