sd-data-grid 1.2.75 → 1.2.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("sd-data-grid",[],e):"object"==typeof exports?exports["sd-data-grid"]=e():t["sd-data-grid"]=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,a){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=51)}([function(t,e){t.exports=function(t,e,r,a,i,o){var n,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(n=t,s=t.default);var c="function"==typeof s?s.options:s;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var d;if(o?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=d):a&&(d=a),d){var u=c.functional,p=u?c.render:c.beforeCreate;u?(c._injectStyles=d,c.render=function(t,e){return d.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,d):[d]}return{esModule:n,exports:s,options:c}}},function(t,e){function r(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=a(i);return[r].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[r].join("\n")}function a(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var a=r(e,t);return e[2]?"@media "+e[2]+"{"+a+"}":a}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(a[o]=!0)}for(i=0;i<t.length;i++){var n=t[i];"number"==typeof n[0]&&a[n[0]]||(r&&!n[2]?n[2]=r:r&&(n[2]="("+n[2]+") and ("+r+")"),e.push(n))}},e}},function(t,e,r){function a(t){for(var e=0;e<t.length;e++){var r=t[e],a=d[r.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(o(r.parts[i]));a.parts.length>r.parts.length&&(a.parts.length=r.parts.length)}else{for(var n=[],i=0;i<r.parts.length;i++)n.push(o(r.parts[i]));d[r.id]={id:r.id,refs:1,parts:n}}}}function i(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,r,a=document.querySelector("style["+v+'~="'+t.id+'"]');if(a){if(h)return m;a.parentNode.removeChild(a)}if(y){var o=f++;a=p||(p=i()),e=n.bind(null,a,o,!1),r=n.bind(null,a,o,!0)}else a=i(),e=s.bind(null,a),r=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else r()}}function n(t,e,r,a){var i=r?"":a.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function s(t,e){var r=e.css,a=e.media,i=e.sourceMap;if(a&&t.setAttribute("media",a),g.ssrId&&t.setAttribute(v,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=r(55),d={},u=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,h=!1,m=function(){},g=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,r,i){h=r,g=i||{};var o=c(t,e);return a(o),function(e){for(var r=[],i=0;i<o.length;i++){var n=o[i],s=d[n.id];s.refs--,r.push(s)}e?(o=c(t,e),a(o)):o=[];for(var i=0;i<r.length;i++){var s=r[i];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}};var b=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e,r){"use strict";function a(t,e){if(t){var r=t.resolve(e).href,a=window.location.href.split("#")[0],i=e.name||"_blank";window.open(a+r,i)}}function i(t){f=Object.assign({},l.a,c.a,t||{})}function o(){return f}function n(t){h=t||h}function s(){return h}r.d(e,"b",function(){return d}),r.d(e,"c",function(){return u}),r.d(e,"a",function(){return p}),e.f=a,e.g=i,e.d=o,e.h=n,e.e=s;var l=r(19),c=r(79),d={config:"customQuery",history:"customQueryHistory",result:"customQueryResult"},u={config:"/com/model/custom-query",history:"/com/model/custom-query-history",result:"/com/model/custom-query-result"},p="CUSTOM_QUERY_PAYLOAD",f=Object.assign({},l.a,c.a),h=null},function(t,e,r){"use strict";t.exports=TypeError},function(t,e,r){"use strict";function a(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}var i=r(58),o=r(15),n=r.n(o);e.a={data:function(){return{sDialogShow:!1,dayjs:n.a,complexQueryConfig:[],customShowList:[],showModal:!1,modalStatus:!1,dataGridLoad:!1,comModelProps:null,comModel:null,modelShowFields:null,dataGridColumns:[],gridData:[],queryFields:[],queryFieldsZH:[],allqueryFields:[],hiddenQueryFields:[],filterFields:{},pageNo:1,pageSize:10,pageSizeOpts:[10,20,50,100],labelWidth:120,totalNum:0,orderKey:[],orderType:[],quickFilter:[],batch_select:[],multiColSetShow:!1,column:[],slotColumn:[],funcAuth:[],showOper:!0,hasRowOper:!1,headOper:[],headOperBatch:[],rowOper:[],rowOperBatch:[],iframeUrl:"",iframeComponent:"",gridExportOptStatus:!1,gridExportDataStatus:!1,gridExportDataRequestParams:null,gridDataRequestParams:null,gridPrintOptStatus:!1,gridPrintDataStatus:!1,gridPrintDataRequestParams:null,modalId:"",modalTitle:"",modalWidth:1e3,modalHeight:600,searchShow:!1,pageSearch:!0,showCheckbox:!1,loading:!0,dataGridId:"",clearCache:"",browsePerm:!0,dataGridWidth:0,dataGridHeight:-1,searchType:"01",errorMsg:"",dbType:"",exportMaxCount:0,returnParams:{},showDicManage:!1,openDicModal:!1,dicModalTitle:"字典代码管理",isDefaultTab:this.$route.query&&this.$route.query.isDefaultTab?this.$route.query.isDefaultTab:"",currentFilter:"",asyncExportTotal:0,containSubordinate:"",startTime:null,renderData:[],currentStart:0,isLoading:!1,noMoreData:!1,scrollThreshold:40,scrollContainer:null,dialogMark:"",paramsDialog:{},operObjWidth:100,autoGridHeight:440}},mixins:[i.a],computed:{showCustomQuery:function(){var t=this.comModelProps&&this.comModelProps.iscustomShow;return"1"===t||!0===t},customQueryMark:function(){return this.gridMark||this.funcMark||this.comModel&&this.comModel.mark||""},gridHeight:function(){if(null!==this.externalHeight&&void 0!==this.externalHeight&&""!==this.externalHeight)return this.externalHeight;var t=Number(this.dataGridHeight);return!isNaN(t)&&t>0?t:this.autoGridHeight}},methods:{calcAutoGridHeight:function(){var t=this;this.$nextTick(function(){var e=t.$refs.scrollWrapper;if(e&&e.getBoundingClientRect){var r=e.getBoundingClientRect().top,a=window.innerHeight-r-70;a<200&&(a=200),t.autoGridHeight=a}})},plog:function(t,e,r){r||(r=this.startTime),console.log("[性能] "+t+": "+(e-r).toFixed(2)+"ms")},query_grid_data:function(t,e){var r=this;this.renderData=[],this.currentStart=0,this.startTime=performance.now(),console.log(this.$refs,"[性能] 开始查询: Tag = "+(e||"未定义")+", pageNo="+(t||this.pageNo)+", pageSize="+this.pageSize),this.loading=!0,t&&(this.pageNo=t);var a=this.getGridRequestParams("cx"==e?e:"03"===this.searchType||e);this.$emit("returnParams",a),this.$store.dispatch("postRequest",{url:"/bsp-com/com/datagrid/getQueryPageData",params:a}).then(function(t){if(t.success){r.plog("数据接收耗时",performance.now());var e=performance.now(),i=function(){r.plog("渲染耗时",performance.now(),e),r.plog("总耗时",performance.now())};if(r.$emit("returnParamsSuccess",a,t,r.returnParams),r.beforeRender?r.beforeRender(t).then(function(t){t.success&&r.initRenderData(t.rows,t.total,i)}):r.initRenderData(t.rows,t.total,i),r.comModel.groupStat&&r.comModel.groupStatField&&t.group&&r.quickFilter)try{r.quickFilter[0].forEach(function(e){if(e.groupStatType&&"0"!=e.groupStatType){if("1"==e.groupStatType&&t.groupFilter){var r=e.mark;e.groupNum=t.groupFilter[r]||0}}else{var a=e.groupStatField.split("|"),i=e.groupMatchValue.split("|");e.groupNum=0;for(var o=0;o<a.length;o++){var n=a[o],s=i[o];t.group[n]&&t.group[n][s]&&(e.groupNum+=t.group[n][s])}}})}catch(t){console.log("分组统计异常:",t)}t.asyncExportTotal&&(r.asyncExportTotal=t.asyncExportTotal)}})},getGridRequestParams:function(t){var e=this,r={modelId:this.comModel.mark,pageNo:this.pageNo,pageSize:this.pageSize,browsePerm:this.browsePerm},a=[],i=this.build_query_condis(t),o=this.build_filter_condis();o.length>0&&(a=a.concat(o)),i.length>0&&(a=a.concat(i)),a.length>0&&(r.condis=JSON.stringify(a));var n=this.get_quick_filter();n&&""!==n&&(r.quickFilterSql=n);var s=[];if(this.orderKey.length>0&&this.orderKey.forEach(function(t){var r=e.chineseSort[t];r?s.push(r):s.push(t)}),r.sortName=s.join(","),r.sortType=this.orderType.join(","),Object.keys(this.extendParams).length>0)r.extendParams=JSON.stringify(this.extendParams);else if(Object.keys(this.params).length>0){var l=Object.assign(this.$route.query,this.params);r.extendParams=JSON.stringify(l)}else r.extendParams=JSON.stringify(this.$route.query);return r},initRenderData:function(t,e,r){this.gridData=t,this.totalNum=e;var a=performance.now(),i=this.modelShowFields.filter(function(t){return t.attachProps&&JSON.parse(t.attachProps)&&JSON.parse(t.attachProps)._disabled});this.plog("处理禁用字段",performance.now(),a);var o=performance.now();this.gridData&&this.gridData.length>0&&this.gridData.forEach(function(t){i.forEach(function(e){JSON.parse(e.attachProps)._disabledValue==t[e.name.toLowerCase()]&&(t._disabled=!0)})}),this.plog("处理附加属性",performance.now(),o),this.batch_select=[],this.loading=!1,this.$nextTick(function(){r&&r()})},initScrollContainer:function(){var t=this;setTimeout(function(){var e=document.getElementsByClassName("ivu-table-overflowY");console.log(e,"成功绑定Table滚动容器"),e.length>0?(t.scrollContainer=e[0],t.scrollContainer.addEventListener("scroll",t.handleTableScroll),t.resetScrollTop(),console.log("成功绑定Table滚动容器")):setTimeout(function(){var e=document.getElementsByClassName("ivu-table-overflowY");e.length>0?(t.scrollContainer=e[0],t.scrollContainer.addEventListener("scroll",t.handleTableScroll)):console.warn("未找到Table滚动容器:ivu-table-overflowY")},200)},2e3)},handleTableScroll:function(){if(!this.loading&&!this.noMoreData){var t=this.scrollContainer;t.scrollHeight-t.scrollTop-t.clientHeight<this.scrollThreshold&&this.loadMoreData()}},loadMoreData:function(){var t=this;this.loading=!1,setTimeout(function(){var e=t.currentStart+100,r=t.gridData.slice(t.currentStart,e);t.renderData=[].concat(a(t.renderData),a(r)),t.currentStart=e,t.renderData.length>=t.gridData.length?t.noMoreData=!0:t.noMoreData=!1,t.loading=!1},200)},resetScrollTop:function(){var t=this;this.$nextTick(function(){if(t.scrollContainer)t.scrollContainer.scrollTop=0;else{var e=document.getElementsByClassName("ivu-table-overflowY");e.length>0&&(t.scrollContainer=e[0],t.scrollContainer.scrollTop=0)}})},refreshGrid:function(t){this.query_grid_data(t)},get_quick_filter:function(){var t=[];return this.quickFilter.forEach(function(e){var r=[];e.forEach(function(t){"1"===t.isDefault&&t.filterSql&&r.push(t.filterSql)}),r.length>0&&t.push(r.join(" or "))}),t.join(" and ")},build_query_condis:function(t){var e=this,r=[],a=[];if(t&&"cx"!=t)a=this.complexQueryConfig.concat(),a.forEach(function(t){t.fields&&t.fields.length>0&&t.fields.forEach(function(t){e.queryFields.forEach(function(e){e.forEach(function(e){t.name==e.name&&(e=Object.assign(e,t))})})})}),this.$forceUpdate();else if(t&&"cx"==t){var i=[],o=this.complexQueryConfig.concat();o.forEach(function(t){t.fields&&t.fields.length>0&&t.fields.forEach(function(t){e.queryFields.forEach(function(e){i.push(t),e.forEach(function(e){t.name==e.name&&(e=Object.assign(t,e))})})})}),a=this.queryFields.concat([i]),this.$forceUpdate()}else a=this.queryFields.concat();var n=this;if(n.containSubordinate="",this.hiddenQueryFields.length>0){var s=[],l=Object.assign({},this.$route.query,this.params),c={user:this.$store.getters.sessionUser,req:l};this.hiddenQueryFields.forEach(function(t){var e=Object.assign({},t),r=e.defaultValue?e.defaultValue.trim():"",a=n.template(r,c);""!==a&&(e.searchValue=a),e.startDefault&&(e.start=n.template(e.startDefault.trim(),c)),e.endDefault&&(e.end=n.template(e.endDefault.trim(),c)),s.push(e)}),s.length>0&&a.push(s)}return a.forEach(function(e){(t&&"cx"!=t?e.fields:e).forEach(function(t){if(!t.controlTypeName||"09"!=t.controlTypeName&&"10"!=t.controlTypeName||(n.containSubordinate=t&&t.containSubordinate?t.containSubordinate:""),"between"===t.opName){if(t.start){var e={name:t.name,op:">=",value:t.start,valueType:t.valueType};r.push(e)}if(t.end){var a=t.end;16===a.length&&"datetime"===t.valueType?a+=":59":14===a.length&&"datetime"===t.valueType&&(a+=":59:59");var i={name:t.name,op:"<=",value:a,valueType:t.valueType};r.push(i)}}else if(t.searchValue instanceof Array){if(t.searchValue.length>0){var o={name:t.name,op:"dicmultiple",value:t.searchValue.join(","),valueType:t.valueType};r.push(o)}}else if(t.searchValue){var s={name:t.name,op:t.opName,value:t.searchValue,valueType:t.valueType};t.isDicMultiple&&(s.op="dicmultiple"),r.push(s)}})}),this.params.containSubordinate=this.containSubordinate,r},build_filter_condis:function(){var t={};Object.assign(t,this.filterFields);var e=[];for(var r in t){if(t[r].length>0){var a="=";t[r].length>1&&(a="dicmultiple");var i={name:r,op:a,value:t[r].join(","),valueType:"string"};e.push(i)}}return e},on_batch_select:function(t){this.batch_select=t},isAuth:function(t){return!t||""===t}}}},function(t,e,r){"use strict";var a=r(80),i=r(108),o=r(13);t.exports={formats:o,parse:i,stringify:a}},function(t,e,r){(function(e){function a(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||at.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var a=t<0?-st(-t):st(t);if(a!==t){var i=String(a),o=Z.call(e,i.length+1);return tt.call(i,r,"$&_")+"."+tt.call(tt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return tt.call(e,r,"$&_")}function i(t,e,r){var a=r.quoteStyle||e,i=yt[a];return i+t+i}function o(t){return tt.call(String(t),/"/g,"&quot;")}function n(t){return!pt||!("object"==typeof t&&(pt in t||void 0!==t[pt]))}function s(t){return"[object Array]"===v(t)&&n(t)}function l(t){return"[object Date]"===v(t)&&n(t)}function c(t){return"[object RegExp]"===v(t)&&n(t)}function d(t){return"[object Error]"===v(t)&&n(t)}function u(t){return"[object String]"===v(t)&&n(t)}function p(t){return"[object Number]"===v(t)&&n(t)}function f(t){return"[object Boolean]"===v(t)&&n(t)}function h(t){if(ut)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!dt)return!1;try{return dt.call(t),!0}catch(t){}return!1}function m(t){if(!t||"object"!=typeof t||!lt)return!1;try{return lt.call(t),!0}catch(t){}return!1}function g(t,e){return xt.call(t,e)}function v(t){return J.call(t)}function y(t){if(t.name)return t.name;var e=K.call(Y.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function b(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1}function x(t){if(!F||!t||"object"!=typeof t)return!1;try{F.call(t);try{$.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}function _(t){if(!V||!t||"object"!=typeof t)return!1;try{V.call(t,V);try{W.call(t,W)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}function w(t){if(!U||!t||"object"!=typeof t)return!1;try{return U.call(t),!0}catch(t){}return!1}function k(t){if(!$||!t||"object"!=typeof t)return!1;try{$.call(t);try{F.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}function O(t){if(!W||!t||"object"!=typeof t)return!1;try{W.call(t,W);try{V.call(t,V)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}function S(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}function C(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,a="... "+r+" more character"+(r>1?"s":"");return C(Z.call(t,0,e.maxStringLength),e)+a}var o=bt[e.quoteStyle||"single"];return o.lastIndex=0,i(tt.call(tt.call(t,o,"\\$1"),/[\x00-\x1f]/g,D),"single",e)}function D(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+et.call(e.toString(16))}function M(t){return"Object("+t+")"}function T(t){return t+" { ? }"}function P(t,e,r,a){return t+" ("+e+") {"+(a?A(r,a):ot.call(r,", "))+"}"}function E(t){for(var e=0;e<t.length;e++)if(b(t[e],"\n")>=0)return!1;return!0}function N(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=ot.call(Array(t.indent+1)," ")}return{base:r,prev:ot.call(Array(e+1),r)}}function A(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+ot.call(t,","+r)+"\n"+e.prev}function I(t,e){var r=s(t),a=[];if(r){a.length=t.length;for(var i=0;i<t.length;i++)a[i]=g(t,i)?e(t[i],t):""}var o,n="function"==typeof ct?ct(t):[];if(ut){o={};for(var l=0;l<n.length;l++)o["$"+n[l]]=n[l]}for(var c in t)g(t,c)&&(r&&String(Number(c))===c&&c<t.length||ut&&o["$"+c]instanceof Symbol||(at.call(/[^\w$]/,c)?a.push(e(c,t)+": "+e(t[c],t)):a.push(c+": "+e(t[c],t))));if("function"==typeof ct)for(var d=0;d<n.length;d++)ft.call(t,n[d])&&a.push("["+e(n[d])+"]: "+e(t[n[d]],t));return a}var j="function"==typeof Map&&Map.prototype,R=Object.getOwnPropertyDescriptor&&j?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,F=j&&R&&"function"==typeof R.get?R.get:null,q=j&&Map.prototype.forEach,z="function"==typeof Set&&Set.prototype,B=Object.getOwnPropertyDescriptor&&z?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$=z&&B&&"function"==typeof B.get?B.get:null,G=z&&Set.prototype.forEach,L="function"==typeof WeakMap&&WeakMap.prototype,V=L?WeakMap.prototype.has:null,X="function"==typeof WeakSet&&WeakSet.prototype,W=X?WeakSet.prototype.has:null,H="function"==typeof WeakRef&&WeakRef.prototype,U=H?WeakRef.prototype.deref:null,Q=Boolean.prototype.valueOf,J=Object.prototype.toString,Y=Function.prototype.toString,K=String.prototype.match,Z=String.prototype.slice,tt=String.prototype.replace,et=String.prototype.toUpperCase,rt=String.prototype.toLowerCase,at=RegExp.prototype.test,it=Array.prototype.concat,ot=Array.prototype.join,nt=Array.prototype.slice,st=Math.floor,lt="function"==typeof BigInt?BigInt.prototype.valueOf:null,ct=Object.getOwnPropertySymbols,dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ut="function"==typeof Symbol&&"object"==typeof Symbol.iterator,pt="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ut?"object":"symbol")?Symbol.toStringTag:null,ft=Object.prototype.propertyIsEnumerable,ht=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),mt=r(82),gt=mt.custom,vt=h(gt)?gt:null,yt={__proto__:null,double:'"',single:"'"},bt={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function t(r,n,D,j){function R(e,r,a){if(r&&(j=nt.call(j),j.push(r)),a){var i={depth:z.depth};return g(z,"quoteStyle")&&(i.quoteStyle=z.quoteStyle),t(e,i,D+1,j)}return t(e,z,D+1,j)}var z=n||{};if(g(z,"quoteStyle")&&!g(yt,z.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(g(z,"maxStringLength")&&("number"==typeof z.maxStringLength?z.maxStringLength<0&&z.maxStringLength!==1/0:null!==z.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var B=!g(z,"customInspect")||z.customInspect;if("boolean"!=typeof B&&"symbol"!==B)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(g(z,"indent")&&null!==z.indent&&"\t"!==z.indent&&!(parseInt(z.indent,10)===z.indent&&z.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(g(z,"numericSeparator")&&"boolean"!=typeof z.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var L=z.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return C(r,z);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var V=String(r);return L?a(r,V):V}if("bigint"==typeof r){var X=String(r)+"n";return L?a(r,X):X}var W=void 0===z.depth?5:z.depth;if(void 0===D&&(D=0),D>=W&&W>0&&"object"==typeof r)return s(r)?"[Array]":"[Object]";var H=N(z,D);if(void 0===j)j=[];else if(b(j,r)>=0)return"[Circular]";if("function"==typeof r&&!c(r)){var U=y(r),J=I(r,R);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(J.length>0?" { "+ot.call(J,", ")+" }":"")}if(h(r)){var Y=ut?tt.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):dt.call(r);return"object"!=typeof r||ut?Y:M(Y)}if(S(r)){for(var K="<"+rt.call(String(r.nodeName)),et=r.attributes||[],at=0;at<et.length;at++)K+=" "+et[at].name+"="+i(o(et[at].value),"double",z);return K+=">",r.childNodes&&r.childNodes.length&&(K+="..."),K+="</"+rt.call(String(r.nodeName))+">"}if(s(r)){if(0===r.length)return"[]";var st=I(r,R);return H&&!E(st)?"["+A(st,H)+"]":"[ "+ot.call(st,", ")+" ]"}if(d(r)){var ct=I(r,R);return"cause"in Error.prototype||!("cause"in r)||ft.call(r,"cause")?0===ct.length?"["+String(r)+"]":"{ ["+String(r)+"] "+ot.call(ct,", ")+" }":"{ ["+String(r)+"] "+ot.call(it.call("[cause]: "+R(r.cause),ct),", ")+" }"}if("object"==typeof r&&B){if(vt&&"function"==typeof r[vt]&&mt)return mt(r,{depth:W-D});if("symbol"!==B&&"function"==typeof r.inspect)return r.inspect()}if(x(r)){var gt=[];return q&&q.call(r,function(t,e){gt.push(R(e,r,!0)+" => "+R(t,r))}),P("Map",F.call(r),gt,H)}if(k(r)){var bt=[];return G&&G.call(r,function(t){bt.push(R(t,r))}),P("Set",$.call(r),bt,H)}if(_(r))return T("WeakMap");if(O(r))return T("WeakSet");if(w(r))return T("WeakRef");if(p(r))return M(R(Number(r)));if(m(r))return M(R(lt.call(r)));if(f(r))return M(Q.call(r));if(u(r))return M(R(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&r===globalThis||void 0!==e&&r===e)return"{ [object globalThis] }";if(!l(r)&&!c(r)){var xt=I(r,R),_t=ht?ht(r)===Object.prototype:r instanceof Object||r.constructor===Object,wt=r instanceof Object?"":"null prototype",kt=!_t&&pt&&Object(r)===r&&pt in r?Z.call(v(r),8,-1):wt?"Object":"",Ot=_t||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"",St=Ot+(kt||wt?"["+ot.call(it.call([],kt||[],wt||[]),": ")+"] ":"");return 0===xt.length?St+"{}":H?St+"{"+A(xt,H)+"}":St+"{ "+ot.call(xt,", ")+" }"}return String(r)};var xt=Object.prototype.hasOwnProperty||function(t){return t in this}}).call(e,r(81))},function(t,e,r){"use strict";var a=r(103);t.exports=Function.prototype.bind||a},function(t,e,r){"use strict";/*!
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("sd-data-grid",[],e):"object"==typeof exports?exports["sd-data-grid"]=e():t["sd-data-grid"]=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,a){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=51)}([function(t,e){t.exports=function(t,e,r,a,i,o){var n,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(n=t,s=t.default);var c="function"==typeof s?s.options:s;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var d;if(o?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=d):a&&(d=a),d){var u=c.functional,p=u?c.render:c.beforeCreate;u?(c._injectStyles=d,c.render=function(t,e){return d.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,d):[d]}return{esModule:n,exports:s,options:c}}},function(t,e){function r(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=a(i);return[r].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[r].join("\n")}function a(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var a=r(e,t);return e[2]?"@media "+e[2]+"{"+a+"}":a}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(a[o]=!0)}for(i=0;i<t.length;i++){var n=t[i];"number"==typeof n[0]&&a[n[0]]||(r&&!n[2]?n[2]=r:r&&(n[2]="("+n[2]+") and ("+r+")"),e.push(n))}},e}},function(t,e,r){function a(t){for(var e=0;e<t.length;e++){var r=t[e],a=d[r.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(o(r.parts[i]));a.parts.length>r.parts.length&&(a.parts.length=r.parts.length)}else{for(var n=[],i=0;i<r.parts.length;i++)n.push(o(r.parts[i]));d[r.id]={id:r.id,refs:1,parts:n}}}}function i(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,r,a=document.querySelector("style["+v+'~="'+t.id+'"]');if(a){if(h)return m;a.parentNode.removeChild(a)}if(y){var o=f++;a=p||(p=i()),e=n.bind(null,a,o,!1),r=n.bind(null,a,o,!0)}else a=i(),e=s.bind(null,a),r=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else r()}}function n(t,e,r,a){var i=r?"":a.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function s(t,e){var r=e.css,a=e.media,i=e.sourceMap;if(a&&t.setAttribute("media",a),g.ssrId&&t.setAttribute(v,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=r(55),d={},u=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,h=!1,m=function(){},g=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,r,i){h=r,g=i||{};var o=c(t,e);return a(o),function(e){for(var r=[],i=0;i<o.length;i++){var n=o[i],s=d[n.id];s.refs--,r.push(s)}e?(o=c(t,e),a(o)):o=[];for(var i=0;i<r.length;i++){var s=r[i];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}};var b=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e,r){"use strict";function a(t,e){if(t){var r=t.resolve(e).href,a=window.location.href.split("#")[0],i=a+r,o=e.name||"_blank",n=window.open(i,o);n&&n.location&&n.location.href!==i&&(n.location.href=i)}}function i(t){f=Object.assign({},l.a,c.a,t||{})}function o(){return f}function n(t){h=t||h}function s(){return h}r.d(e,"b",function(){return d}),r.d(e,"c",function(){return u}),r.d(e,"a",function(){return p}),e.f=a,e.g=i,e.d=o,e.h=n,e.e=s;var l=r(19),c=r(79),d={config:"customQuery",history:"customQueryHistory",result:"customQueryResult"},u={config:"/com/model/custom-query",history:"/com/model/custom-query-history",result:"/com/model/custom-query-result"},p="CUSTOM_QUERY_PAYLOAD",f=Object.assign({},l.a,c.a),h=null},function(t,e,r){"use strict";t.exports=TypeError},function(t,e,r){"use strict";function a(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}var i=r(58),o=r(15),n=r.n(o);e.a={data:function(){return{sDialogShow:!1,dayjs:n.a,complexQueryConfig:[],customShowList:[],showModal:!1,modalStatus:!1,dataGridLoad:!1,comModelProps:null,comModel:null,modelShowFields:null,dataGridColumns:[],gridData:[],queryFields:[],queryFieldsZH:[],allqueryFields:[],hiddenQueryFields:[],filterFields:{},pageNo:1,pageSize:10,pageSizeOpts:[10,20,50,100],labelWidth:120,totalNum:0,orderKey:[],orderType:[],quickFilter:[],batch_select:[],multiColSetShow:!1,column:[],slotColumn:[],funcAuth:[],showOper:!0,hasRowOper:!1,headOper:[],headOperBatch:[],rowOper:[],rowOperBatch:[],iframeUrl:"",iframeComponent:"",gridExportOptStatus:!1,gridExportDataStatus:!1,gridExportDataRequestParams:null,gridDataRequestParams:null,gridPrintOptStatus:!1,gridPrintDataStatus:!1,gridPrintDataRequestParams:null,modalId:"",modalTitle:"",modalWidth:1e3,modalHeight:600,searchShow:!1,pageSearch:!0,showCheckbox:!1,loading:!0,dataGridId:"",clearCache:"",browsePerm:!0,dataGridWidth:0,dataGridHeight:-1,searchType:"01",errorMsg:"",dbType:"",exportMaxCount:0,returnParams:{},showDicManage:!1,openDicModal:!1,dicModalTitle:"字典代码管理",isDefaultTab:this.$route.query&&this.$route.query.isDefaultTab?this.$route.query.isDefaultTab:"",currentFilter:"",asyncExportTotal:0,containSubordinate:"",startTime:null,renderData:[],currentStart:0,isLoading:!1,noMoreData:!1,scrollThreshold:40,scrollContainer:null,dialogMark:"",paramsDialog:{},operObjWidth:100,autoGridHeight:440}},mixins:[i.a],computed:{showCustomQuery:function(){var t=this.comModelProps&&this.comModelProps.iscustomShow;return"1"===t||!0===t},customQueryMark:function(){return this.gridMark||this.funcMark||this.comModel&&this.comModel.mark||""},gridHeight:function(){if(null!==this.externalHeight&&void 0!==this.externalHeight&&""!==this.externalHeight)return this.externalHeight;var t=Number(this.dataGridHeight);return!isNaN(t)&&t>0?t:this.autoGridHeight}},methods:{calcAutoGridHeight:function(){var t=this;this.$nextTick(function(){var e=t.$refs.scrollWrapper;if(e&&e.getBoundingClientRect){var r=e.getBoundingClientRect().top,a=window.innerHeight-r-70;a<200&&(a=200),t.autoGridHeight=a}})},plog:function(t,e,r){r||(r=this.startTime),console.log("[性能] "+t+": "+(e-r).toFixed(2)+"ms")},query_grid_data:function(t,e){var r=this;this.renderData=[],this.currentStart=0,this.startTime=performance.now(),console.log(this.$refs,"[性能] 开始查询: Tag = "+(e||"未定义")+", pageNo="+(t||this.pageNo)+", pageSize="+this.pageSize),this.loading=!0,t&&(this.pageNo=t);var a=this.getGridRequestParams("cx"==e?e:"03"===this.searchType||e);this.$emit("returnParams",a),this.$store.dispatch("postRequest",{url:"/bsp-com/com/datagrid/getQueryPageData",params:a}).then(function(t){if(t.success){r.plog("数据接收耗时",performance.now());var e=performance.now(),i=function(){r.plog("渲染耗时",performance.now(),e),r.plog("总耗时",performance.now())};if(r.$emit("returnParamsSuccess",a,t,r.returnParams),r.beforeRender?r.beforeRender(t).then(function(t){t.success&&r.initRenderData(t.rows,t.total,i)}):r.initRenderData(t.rows,t.total,i),r.comModel.groupStat&&r.comModel.groupStatField&&t.group&&r.quickFilter)try{r.quickFilter[0].forEach(function(e){if(e.groupStatType&&"0"!=e.groupStatType){if("1"==e.groupStatType&&t.groupFilter){var r=e.mark;e.groupNum=t.groupFilter[r]||0}}else{var a=e.groupStatField.split("|"),i=e.groupMatchValue.split("|");e.groupNum=0;for(var o=0;o<a.length;o++){var n=a[o],s=i[o];t.group[n]&&t.group[n][s]&&(e.groupNum+=t.group[n][s])}}})}catch(t){console.log("分组统计异常:",t)}t.asyncExportTotal&&(r.asyncExportTotal=t.asyncExportTotal)}})},getGridRequestParams:function(t){var e=this,r={modelId:this.comModel.mark,pageNo:this.pageNo,pageSize:this.pageSize,browsePerm:this.browsePerm},a=[],i=this.build_query_condis(t),o=this.build_filter_condis();o.length>0&&(a=a.concat(o)),i.length>0&&(a=a.concat(i)),a.length>0&&(r.condis=JSON.stringify(a));var n=this.get_quick_filter();n&&""!==n&&(r.quickFilterSql=n);var s=[];if(this.orderKey.length>0&&this.orderKey.forEach(function(t){var r=e.chineseSort[t];r?s.push(r):s.push(t)}),r.sortName=s.join(","),r.sortType=this.orderType.join(","),Object.keys(this.extendParams).length>0)r.extendParams=JSON.stringify(this.extendParams);else if(Object.keys(this.params).length>0){var l=Object.assign(this.$route.query,this.params);r.extendParams=JSON.stringify(l)}else r.extendParams=JSON.stringify(this.$route.query);return r},initRenderData:function(t,e,r){this.gridData=t,this.totalNum=e;var a=performance.now(),i=this.modelShowFields.filter(function(t){return t.attachProps&&JSON.parse(t.attachProps)&&JSON.parse(t.attachProps)._disabled});this.plog("处理禁用字段",performance.now(),a);var o=performance.now();this.gridData&&this.gridData.length>0&&this.gridData.forEach(function(t){i.forEach(function(e){JSON.parse(e.attachProps)._disabledValue==t[e.name.toLowerCase()]&&(t._disabled=!0)})}),this.plog("处理附加属性",performance.now(),o),this.batch_select=[],this.loading=!1,this.$nextTick(function(){r&&r()})},initScrollContainer:function(){var t=this;setTimeout(function(){var e=document.getElementsByClassName("ivu-table-overflowY");console.log(e,"成功绑定Table滚动容器"),e.length>0?(t.scrollContainer=e[0],t.scrollContainer.addEventListener("scroll",t.handleTableScroll),t.resetScrollTop(),console.log("成功绑定Table滚动容器")):setTimeout(function(){var e=document.getElementsByClassName("ivu-table-overflowY");e.length>0?(t.scrollContainer=e[0],t.scrollContainer.addEventListener("scroll",t.handleTableScroll)):console.warn("未找到Table滚动容器:ivu-table-overflowY")},200)},2e3)},handleTableScroll:function(){if(!this.loading&&!this.noMoreData){var t=this.scrollContainer;t.scrollHeight-t.scrollTop-t.clientHeight<this.scrollThreshold&&this.loadMoreData()}},loadMoreData:function(){var t=this;this.loading=!1,setTimeout(function(){var e=t.currentStart+100,r=t.gridData.slice(t.currentStart,e);t.renderData=[].concat(a(t.renderData),a(r)),t.currentStart=e,t.renderData.length>=t.gridData.length?t.noMoreData=!0:t.noMoreData=!1,t.loading=!1},200)},resetScrollTop:function(){var t=this;this.$nextTick(function(){if(t.scrollContainer)t.scrollContainer.scrollTop=0;else{var e=document.getElementsByClassName("ivu-table-overflowY");e.length>0&&(t.scrollContainer=e[0],t.scrollContainer.scrollTop=0)}})},refreshGrid:function(t){this.query_grid_data(t)},get_quick_filter:function(){var t=[];return this.quickFilter.forEach(function(e){var r=[];e.forEach(function(t){"1"===t.isDefault&&t.filterSql&&r.push(t.filterSql)}),r.length>0&&t.push(r.join(" or "))}),t.join(" and ")},build_query_condis:function(t){var e=this,r=[],a=[];if(t&&"cx"!=t)a=this.complexQueryConfig.concat(),a.forEach(function(t){t.fields&&t.fields.length>0&&t.fields.forEach(function(t){e.queryFields.forEach(function(e){e.forEach(function(e){t.name==e.name&&(e=Object.assign(e,t))})})})}),this.$forceUpdate();else if(t&&"cx"==t){var i=[],o=this.complexQueryConfig.concat();o.forEach(function(t){t.fields&&t.fields.length>0&&t.fields.forEach(function(t){e.queryFields.forEach(function(e){i.push(t),e.forEach(function(e){t.name==e.name&&(e=Object.assign(t,e))})})})}),a=this.queryFields.concat([i]),this.$forceUpdate()}else a=this.queryFields.concat();var n=this;if(n.containSubordinate="",this.hiddenQueryFields.length>0){var s=[],l=Object.assign({},this.$route.query,this.params),c={user:this.$store.getters.sessionUser,req:l};this.hiddenQueryFields.forEach(function(t){var e=Object.assign({},t),r=e.defaultValue?e.defaultValue.trim():"",a=n.template(r,c);""!==a&&(e.searchValue=a),e.startDefault&&(e.start=n.template(e.startDefault.trim(),c)),e.endDefault&&(e.end=n.template(e.endDefault.trim(),c)),s.push(e)}),s.length>0&&a.push(s)}return a.forEach(function(e){(t&&"cx"!=t?e.fields:e).forEach(function(t){if(!t.controlTypeName||"09"!=t.controlTypeName&&"10"!=t.controlTypeName||(n.containSubordinate=t&&t.containSubordinate?t.containSubordinate:""),"between"===t.opName){if(t.start){var e={name:t.name,op:">=",value:t.start,valueType:t.valueType};r.push(e)}if(t.end){var a=t.end;16===a.length&&"datetime"===t.valueType?a+=":59":14===a.length&&"datetime"===t.valueType&&(a+=":59:59");var i={name:t.name,op:"<=",value:a,valueType:t.valueType};r.push(i)}}else if(t.searchValue instanceof Array){if(t.searchValue.length>0){var o={name:t.name,op:"dicmultiple",value:t.searchValue.join(","),valueType:t.valueType};r.push(o)}}else if(t.searchValue){var s={name:t.name,op:t.opName,value:t.searchValue,valueType:t.valueType};t.isDicMultiple&&(s.op="dicmultiple"),r.push(s)}})}),this.params.containSubordinate=this.containSubordinate,r},build_filter_condis:function(){var t={};Object.assign(t,this.filterFields);var e=[];for(var r in t){if(t[r].length>0){var a="=";t[r].length>1&&(a="dicmultiple");var i={name:r,op:a,value:t[r].join(","),valueType:"string"};e.push(i)}}return e},on_batch_select:function(t){this.batch_select=t},isAuth:function(t){return!t||""===t}}}},function(t,e,r){"use strict";var a=r(80),i=r(108),o=r(13);t.exports={formats:o,parse:i,stringify:a}},function(t,e,r){(function(e){function a(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||at.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var a=t<0?-st(-t):st(t);if(a!==t){var i=String(a),o=Z.call(e,i.length+1);return tt.call(i,r,"$&_")+"."+tt.call(tt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return tt.call(e,r,"$&_")}function i(t,e,r){var a=r.quoteStyle||e,i=yt[a];return i+t+i}function o(t){return tt.call(String(t),/"/g,"&quot;")}function n(t){return!pt||!("object"==typeof t&&(pt in t||void 0!==t[pt]))}function s(t){return"[object Array]"===v(t)&&n(t)}function l(t){return"[object Date]"===v(t)&&n(t)}function c(t){return"[object RegExp]"===v(t)&&n(t)}function d(t){return"[object Error]"===v(t)&&n(t)}function u(t){return"[object String]"===v(t)&&n(t)}function p(t){return"[object Number]"===v(t)&&n(t)}function f(t){return"[object Boolean]"===v(t)&&n(t)}function h(t){if(ut)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!dt)return!1;try{return dt.call(t),!0}catch(t){}return!1}function m(t){if(!t||"object"!=typeof t||!lt)return!1;try{return lt.call(t),!0}catch(t){}return!1}function g(t,e){return xt.call(t,e)}function v(t){return J.call(t)}function y(t){if(t.name)return t.name;var e=K.call(Y.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function b(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1}function x(t){if(!F||!t||"object"!=typeof t)return!1;try{F.call(t);try{$.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}function _(t){if(!V||!t||"object"!=typeof t)return!1;try{V.call(t,V);try{W.call(t,W)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}function w(t){if(!U||!t||"object"!=typeof t)return!1;try{return U.call(t),!0}catch(t){}return!1}function k(t){if(!$||!t||"object"!=typeof t)return!1;try{$.call(t);try{F.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}function O(t){if(!W||!t||"object"!=typeof t)return!1;try{W.call(t,W);try{V.call(t,V)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}function S(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}function C(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,a="... "+r+" more character"+(r>1?"s":"");return C(Z.call(t,0,e.maxStringLength),e)+a}var o=bt[e.quoteStyle||"single"];return o.lastIndex=0,i(tt.call(tt.call(t,o,"\\$1"),/[\x00-\x1f]/g,D),"single",e)}function D(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+et.call(e.toString(16))}function M(t){return"Object("+t+")"}function T(t){return t+" { ? }"}function P(t,e,r,a){return t+" ("+e+") {"+(a?A(r,a):ot.call(r,", "))+"}"}function E(t){for(var e=0;e<t.length;e++)if(b(t[e],"\n")>=0)return!1;return!0}function N(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=ot.call(Array(t.indent+1)," ")}return{base:r,prev:ot.call(Array(e+1),r)}}function A(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+ot.call(t,","+r)+"\n"+e.prev}function I(t,e){var r=s(t),a=[];if(r){a.length=t.length;for(var i=0;i<t.length;i++)a[i]=g(t,i)?e(t[i],t):""}var o,n="function"==typeof ct?ct(t):[];if(ut){o={};for(var l=0;l<n.length;l++)o["$"+n[l]]=n[l]}for(var c in t)g(t,c)&&(r&&String(Number(c))===c&&c<t.length||ut&&o["$"+c]instanceof Symbol||(at.call(/[^\w$]/,c)?a.push(e(c,t)+": "+e(t[c],t)):a.push(c+": "+e(t[c],t))));if("function"==typeof ct)for(var d=0;d<n.length;d++)ft.call(t,n[d])&&a.push("["+e(n[d])+"]: "+e(t[n[d]],t));return a}var j="function"==typeof Map&&Map.prototype,R=Object.getOwnPropertyDescriptor&&j?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,F=j&&R&&"function"==typeof R.get?R.get:null,q=j&&Map.prototype.forEach,z="function"==typeof Set&&Set.prototype,B=Object.getOwnPropertyDescriptor&&z?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$=z&&B&&"function"==typeof B.get?B.get:null,G=z&&Set.prototype.forEach,L="function"==typeof WeakMap&&WeakMap.prototype,V=L?WeakMap.prototype.has:null,X="function"==typeof WeakSet&&WeakSet.prototype,W=X?WeakSet.prototype.has:null,H="function"==typeof WeakRef&&WeakRef.prototype,U=H?WeakRef.prototype.deref:null,Q=Boolean.prototype.valueOf,J=Object.prototype.toString,Y=Function.prototype.toString,K=String.prototype.match,Z=String.prototype.slice,tt=String.prototype.replace,et=String.prototype.toUpperCase,rt=String.prototype.toLowerCase,at=RegExp.prototype.test,it=Array.prototype.concat,ot=Array.prototype.join,nt=Array.prototype.slice,st=Math.floor,lt="function"==typeof BigInt?BigInt.prototype.valueOf:null,ct=Object.getOwnPropertySymbols,dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ut="function"==typeof Symbol&&"object"==typeof Symbol.iterator,pt="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ut?"object":"symbol")?Symbol.toStringTag:null,ft=Object.prototype.propertyIsEnumerable,ht=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),mt=r(82),gt=mt.custom,vt=h(gt)?gt:null,yt={__proto__:null,double:'"',single:"'"},bt={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function t(r,n,D,j){function R(e,r,a){if(r&&(j=nt.call(j),j.push(r)),a){var i={depth:z.depth};return g(z,"quoteStyle")&&(i.quoteStyle=z.quoteStyle),t(e,i,D+1,j)}return t(e,z,D+1,j)}var z=n||{};if(g(z,"quoteStyle")&&!g(yt,z.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(g(z,"maxStringLength")&&("number"==typeof z.maxStringLength?z.maxStringLength<0&&z.maxStringLength!==1/0:null!==z.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var B=!g(z,"customInspect")||z.customInspect;if("boolean"!=typeof B&&"symbol"!==B)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(g(z,"indent")&&null!==z.indent&&"\t"!==z.indent&&!(parseInt(z.indent,10)===z.indent&&z.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(g(z,"numericSeparator")&&"boolean"!=typeof z.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var L=z.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return C(r,z);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var V=String(r);return L?a(r,V):V}if("bigint"==typeof r){var X=String(r)+"n";return L?a(r,X):X}var W=void 0===z.depth?5:z.depth;if(void 0===D&&(D=0),D>=W&&W>0&&"object"==typeof r)return s(r)?"[Array]":"[Object]";var H=N(z,D);if(void 0===j)j=[];else if(b(j,r)>=0)return"[Circular]";if("function"==typeof r&&!c(r)){var U=y(r),J=I(r,R);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(J.length>0?" { "+ot.call(J,", ")+" }":"")}if(h(r)){var Y=ut?tt.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):dt.call(r);return"object"!=typeof r||ut?Y:M(Y)}if(S(r)){for(var K="<"+rt.call(String(r.nodeName)),et=r.attributes||[],at=0;at<et.length;at++)K+=" "+et[at].name+"="+i(o(et[at].value),"double",z);return K+=">",r.childNodes&&r.childNodes.length&&(K+="..."),K+="</"+rt.call(String(r.nodeName))+">"}if(s(r)){if(0===r.length)return"[]";var st=I(r,R);return H&&!E(st)?"["+A(st,H)+"]":"[ "+ot.call(st,", ")+" ]"}if(d(r)){var ct=I(r,R);return"cause"in Error.prototype||!("cause"in r)||ft.call(r,"cause")?0===ct.length?"["+String(r)+"]":"{ ["+String(r)+"] "+ot.call(ct,", ")+" }":"{ ["+String(r)+"] "+ot.call(it.call("[cause]: "+R(r.cause),ct),", ")+" }"}if("object"==typeof r&&B){if(vt&&"function"==typeof r[vt]&&mt)return mt(r,{depth:W-D});if("symbol"!==B&&"function"==typeof r.inspect)return r.inspect()}if(x(r)){var gt=[];return q&&q.call(r,function(t,e){gt.push(R(e,r,!0)+" => "+R(t,r))}),P("Map",F.call(r),gt,H)}if(k(r)){var bt=[];return G&&G.call(r,function(t){bt.push(R(t,r))}),P("Set",$.call(r),bt,H)}if(_(r))return T("WeakMap");if(O(r))return T("WeakSet");if(w(r))return T("WeakRef");if(p(r))return M(R(Number(r)));if(m(r))return M(R(lt.call(r)));if(f(r))return M(Q.call(r));if(u(r))return M(R(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&r===globalThis||void 0!==e&&r===e)return"{ [object globalThis] }";if(!l(r)&&!c(r)){var xt=I(r,R),_t=ht?ht(r)===Object.prototype:r instanceof Object||r.constructor===Object,wt=r instanceof Object?"":"null prototype",kt=!_t&&pt&&Object(r)===r&&pt in r?Z.call(v(r),8,-1):wt?"Object":"",Ot=_t||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"",St=Ot+(kt||wt?"["+ot.call(it.call([],kt||[],wt||[]),": ")+"] ":"");return 0===xt.length?St+"{}":H?St+"{"+A(xt,H)+"}":St+"{ "+ot.call(xt,", ")+" }"}return String(r)};var xt=Object.prototype.hasOwnProperty||function(t){return t in this}}).call(e,r(81))},function(t,e,r){"use strict";var a=r(103);t.exports=Function.prototype.bind||a},function(t,e,r){"use strict";/*!
2
2
  * @jsmini/type 0.9.2 (https://github.com/jsmini/type)
3
3
  * API https://github.com/jsmini/type/blob/master/doc/api.md
4
4
  * Copyright 2017-2019 jsmini. All Rights Reserved