fish-helper 0.0.62 → 1.0.0
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.
- package/dist/cjs/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/types/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=()=>null;const e=new class{constructor(){this.__interval=1e3,this.__an_hour=36e5,this.__ticker=null,this.__ticker2=null,this.__get_type=t=>Object.prototype.toString.call(t).slice(8,-1),this.__date2timestamp=t=>{if(!t)return Date.now();let e=null;e="string"==typeof t?t.replace(/(\-|\_)/g,"/"):new Date(t);let r=new Date(e);return"Invalid Date"===r.toString()&&(r=new Date(t)),r.getTime()},this.__is_function=t=>"Function"===this.__get_type(t),this.__is_array=t=>"Array"===this.__get_type(t),this.__is_object=t=>"Object"===this.__get_type(t),this.__get_suffix2=t=>String(t).padStart(2,"0"),this.__compare_time=({date:t,hour:e=1,type:r="before_lt_hour"})=>{let i=this.__date2timestamp(t);const n=new Date(i).getTime(),s=Date.now(),_=n<s,o=n>s;return"before_lt_hour"===r?_&&n+this.__an_hour*e>s:"before_gt_hour"===r?_&&n+this.__an_hour*e<s:"after_lt_hour"===r?o&&s+this.__an_hour*e>n:"after_gt_hour"===r&&(o&&s+this.__an_hour*e<n)},this.offset_time=(t,e="minute")=>{const r=Math.abs(Date.now()-this.__date2timestamp(t)),i=this.format_num2date(r);return"day"===e?this.__get_suffix2(i.day):"hour"===e?this.__get_suffix2(i.hour):"minute"===e?this.__get_suffix2(i.minute):"second"===e?this.__get_suffix2(i.seconds):"The second parameter has an error"},this.__loop_time2=(e=0,r=t,i=this.__interval,n=0,s=Date.now())=>{if(e<=0)return clearTimeout(this.__ticker2),void(this.__ticker2=null);clearTimeout(this.__ticker2),this.__ticker2=setTimeout(()=>{n+=1,e-=this.__interval;let t=this.format_timestamp_to_day_hour_minute_second(e);r({remain:e,obj:t});const i=Date.now()-(s+n*this.__interval);let _=this.__interval-i;_<0&&(_=0),this.__loop_time2(e,r,_,n,s)},i)},this.__loop_time=(e=0,r=t,i=this.__interval,n=0,s=Date.now())=>{if(e<=0)return clearTimeout(this.__ticker),void(this.__ticker=null);clearTimeout(this.__ticker),this.__ticker=setTimeout(()=>{n+=1,e-=this.__interval;let t=this.format_num2date(e);r({remain:e,obj:t});const i=Date.now()-(s+n*this.__interval);let _=this.__interval-i;_<0&&(_=0),this.__loop_time(e,r,_,n,s)},i)},this.sleep=t=>new Promise(e=>setTimeout(e,t)),this.roxFormatThousandth=(t,e="万")=>t<1e4?t:(Math.floor(t/1e3)/10).toFixed(1)+e,this.chunk=(t,e,r=!1)=>{if(!Array.isArray(t)||e<=0)return[];const i=[];for(let n=0;n<t.length;n+=e){const s=t.slice(n,n+e);r?s.length===e&&i.push(s):i.push(s)}return i},this.debounce=(t,e=200,r=!1)=>{let i,n=null;return function(...s){const _=this,o=r&&!n;return n&&clearTimeout(n),n=setTimeout(()=>{n=null,r||(i=t.apply(_,s))},e),o&&(i=t.apply(_,s)),i}},this.flatten=(t,e=!1)=>{let r=[];return t.forEach(t=>{e&&Array.isArray(t)?r=r.concat(this.flatten(t,e)):r.push(t)}),r},this.safeRequest=(t,e)=>t&&t.then?t.catch?t.then(t=>[null,t]).catch(t=>(e&&Object.assign(t,e),[t,void 0])):t.then(t=>[null,t]):Promise.resolve([null,t]),this.checkPattern=t=>{const{str:e,likeStr:r,separator:i="-",caseSensitive:n=!1,symbol:s=""}=t,_=(r||"").split(i),o=(e||"").split(i);return _.every((t,e)=>t===s||(n?t===o[e]:o[e]&&t.toLowerCase()===o[e].toLowerCase()))},this.convertArr2Disable=t=>{var e;const r=[],{skuObjArr:i=[],skuArrField:n,checkedIndexArr:s=[],combineSkuArr:_=[],disabledArr:o=[],combineSeparator:a="-",combineSkuField:u="id"}=t;for(let t=0;t<i.length;t++){const l=n?(null===(e=i[t])||void 0===e?void 0:e[n])||[]:i[t]||[];Array.isArray(r[t])||(r[t]=[]);for(let e=0;e<l.length;e++){const i=s.slice(0,t),n=s.slice(t+1),l=i.concat(e).concat(n).join(a),h=_.filter(t=>this.checkPattern({str:t[u],likeStr:l,separator:a})),c=o.map(t=>{const{field:e,disabledFun:r,disabledFieldValue:i}=t,n=h.some(t=>r(t));return{[e]:n?i:!i}}).reduce((t,e)=>Object.assign(Object.assign({},t),e),{});r[t][e]=c}}return r},this.createSingleTon=t=>{let e=null;const r=new Proxy(t,{construct:(t,r)=>e||(e="undefined"!=typeof Reflect&&Reflect.construct?Reflect.construct(t,r):new t(...r),e)});return r.prototype.constructor=r,r},this.findDeepValue=t=>{const{list:e,selected:r,selectedValueInListFieldName:i,childrenFieldName:n}=t;if(!r.length)return;const s=r[r.length-1],_=t=>{for(const e of t){if(e[i]===s)return e;const t=e[n];if(Array.isArray(t)&&t.length){const e=_(t);if(e)return e}}};return _(e)}}before_lt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"before_lt_hour"})}before_gt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"before_gt_hour"})}after_lt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"after_lt_hour"})}after_gt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"after_gt_hour"})}is_current_year(t){const e=this.__date2timestamp(t);return(new Date).getFullYear()===new Date(e).getFullYear()}get_time_obj(t){const e=this.__date2timestamp(t),r=new Date(e),i=this.__get_suffix2(r.getMonth()+1),n=this.__get_suffix2(r.getDate()),s=this.__get_suffix2(r.getHours()),_=this.__get_suffix2(r.getMinutes()),o=this.__get_suffix2(r.getSeconds());return{year:String(r.getFullYear()),month:i,day:n,hour:s,minute:_,seconds:o,day_of_week:String(r.getDay())}}format_count({num:t=0,decimal:e=1,divide:r=1e4,suffix:i="万",show_suffix_always:n=!1}){if(!t)return 0;if(r<=0||e<0)return n?`${t} ${i}`:t;const s=parseFloat(t);if(s<=0)return n?`${s} ${i}`:s;if(s>0&&s<r)return n?`${s} ${i}`:s;const[_,o]=(s/r).toFixed(e).split(".");return o&&0!==parseFloat(o)?`${_}.${o} ${i}`:`${_} ${i}`}format_num2date(t=Date.now()){const e=parseInt(t/1e3/60/60/24%24),r=parseInt(t/1e3/60/60%24),i=parseInt(t/1e3/60%60),n=parseInt(t/1e3%60);return{day:this.__get_suffix2(e),hour:this.__get_suffix2(r),minute:this.__get_suffix2(i),seconds:this.__get_suffix2(n)}}count_down_by_remain_seconds(e=t,r=60){let i;clearTimeout(i);let n=1e3*r,s=this.format_num2date(n),_={remain:n,obj:s};e(_);let o=this;return function e(r=0,a=t,u=1e3,l=0,h=Date.now()){if(r<=0)return clearTimeout(i),o=null,i=null,n=null,s=null,_=null,void a({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(i),i=setTimeout(()=>{l+=1,r-=1e3;let t=o.format_num2date(r);a({remain:r,obj:t});let i=1e3-(Date.now()-(h+1e3*l));i<0&&(i=0),e(r,a,i,l,h)},u)}(n,e,1e3),()=>{clearTimeout(i),o=null,i=null,n=null,s=null,_=null}}format_timestamp_to_day_hour_minute_second(t=Date.now()){const e=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),i=Math.floor(t%36e5/6e4),n=Math.floor(t%6e4/1e3);return{day:this.__get_suffix2(e),hour:this.__get_suffix2(r),minute:this.__get_suffix2(i),seconds:this.__get_suffix2(n)}}count_down(e=Date.now(),r=t){let i;clearTimeout(i);let n=this,s=this.__date2timestamp(e),_=s-Date.now(),o=this.format_timestamp_to_day_hour_minute_second(_),a={remain:_,obj:o};return r(a),function e(r=0,u=t,l=1e3,h=0,c=Date.now()){if(r<=0)return clearTimeout(i),i=null,n=null,s=null,_=null,o=null,a=null,void u({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(i),i=setTimeout(()=>{h+=1,r-=1e3;let t=n.format_timestamp_to_day_hour_minute_second(r);u({remain:r,obj:t});let i=1e3-(Date.now()-(c+1e3*h));i<0&&(i=0),e(r,u,i,h,c)},l)}(_,r,1e3),()=>{clearTimeout(i),i=null,n=null,s=null,_=null,o=null,a=null}}add(t=1,e=Date.now()){return this.__date2timestamp(e)+60*t*60*1e3}format_thousandth(t,e=2){try{const r=parseFloat(t),i=r.toString().split(".");let n=!1,s="";i[1]&&(s=i[1].replace(/0+$/,""),n=s.length>0);let _=0;n&&(_=void 0!==e?e:s.length);const o=r.toFixed(_).split("."),a=(o[0]||"").replace(/(\d)(?=(\d{3})+$)/g,"$1,");return o[1]?`${a}.${o[1]}`:a}catch(t){return 0}}format_thousandth_with_same_dotlen(t){var e;try{const r=(null===(e=t.toString().split(".")[1])||void 0===e?void 0:e.length)||0;let i=t.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,function(t){return t+","})});return r&&(i=i.replace(/\d+\.\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+\.)/g,function(t){return t+","})})),i}catch(t){return 0}}is_empty(t){return null==t||("String"===this.__get_type(t)?!t.trim():"Array"===this.__get_type(t)?!t.length:"Object"===this.__get_type(t)&&!Object.keys(t).length)}poll(t,e=1){let r;if(!this.__is_function(t))return()=>{clearTimeout(r),r=void 0};const i=60*e*1e3,n=()=>{t(),r=setTimeout(n,i)};return n(),()=>{clearTimeout(r),r=void 0}}is_equal(t,e,r=!1){const i=this.__is_array(t)||this.__is_object(t),n=this.__is_array(e)||this.__is_object(e);if(!i||!n)return r?t===e:t==e;const s=Object.keys(t),_=Object.keys(e);return 0===s.length&&0===_.length||s.length===_.length&&s.every(i=>{const n=this.__is_array(t[i])||this.__is_object(t[i]),s=this.__is_array(e[i])||this.__is_object(e[i]);return n&&s?this.is_equal(t[i],e[i],r):r?t[i]===e[i]:t[i]==e[i]})}contains(t,e,r=!1){const i=this.__is_array(t)||this.__is_object(t),n=this.__is_array(e)||this.__is_object(e);if(!i||!n)return r?t===e:t==e;const s=Object.keys(t),_=Object.keys(e);return 0===_.length||!(0===s.length||s.length<_.length)&&_.every(i=>{if(s.indexOf(i)<0)return!1;const n=this.__is_array(t[i])||this.__is_object(t[i]),_=this.__is_array(e[i])||this.__is_object(e[i]);return n&&_?this.contains(t[i],e[i],r):r?t[i]===e[i]:t[i]==e[i]})}};exports.default=e,exports.helper=e;
|
|
1
|
+
function _0x39d8(_0x5a77da,_0x1dcf8d){_0x5a77da=_0x5a77da-0x1c3;const _0x2ad455=_0x8223();let _0x14d369=_0x2ad455[_0x5a77da];return _0x14d369;}const _0x159dcc=_0x39d8;(function(_0x332b0a,_0x4c3064){const _0x50ca2a=_0x39d8,_0x2cf219=_0x332b0a();while(!![]){try{const _0x2020f6=parseInt(_0x50ca2a(0x21b))/0x1+-parseInt(_0x50ca2a(0x20c))/0x2*(parseInt(_0x50ca2a(0x1f7))/0x3)+-parseInt(_0x50ca2a(0x1cd))/0x4+-parseInt(_0x50ca2a(0x225))/0x5*(-parseInt(_0x50ca2a(0x219))/0x6)+-parseInt(_0x50ca2a(0x21e))/0x7+parseInt(_0x50ca2a(0x204))/0x8+parseInt(_0x50ca2a(0x1cf))/0x9;if(_0x2020f6===_0x4c3064)break;else _0x2cf219['push'](_0x2cf219['shift']());}catch(_0x1e4978){_0x2cf219['push'](_0x2cf219['shift']());}}}(_0x8223,0x86f5f));const _0x383f62=(function(){let _0x2c2595=!![];return function(_0x923208,_0x1d60d4){const _0x98ac32=_0x2c2595?function(){const _0x1214d9=_0x39d8;if(_0x1d60d4){const _0x55b5ae=_0x1d60d4[_0x1214d9(0x235)](_0x923208,arguments);return _0x1d60d4=null,_0x55b5ae;}}:function(){};return _0x2c2595=![],_0x98ac32;};}()),_0x14d369=_0x383f62(this,function(){const _0x28e8c3=_0x39d8,_0x2a75aa=function(){const _0x31207f=_0x39d8;let _0x15e847;try{_0x15e847=Function(_0x31207f(0x1f5)+_0x31207f(0x1c6)+');')();}catch(_0x2bc6ed){_0x15e847=window;}return _0x15e847;},_0x226c28=_0x2a75aa(),_0x5d7845=_0x226c28[_0x28e8c3(0x1de)]=_0x226c28[_0x28e8c3(0x1de)]||{},_0x4e8b84=[_0x28e8c3(0x202),'warn','info',_0x28e8c3(0x20d),_0x28e8c3(0x1ce),_0x28e8c3(0x1f9),_0x28e8c3(0x20e)];for(let _0x1fd8a2=0x0;_0x1fd8a2<_0x4e8b84[_0x28e8c3(0x1ef)];_0x1fd8a2++){const _0x3b41b5=_0x383f62[_0x28e8c3(0x22b)][_0x28e8c3(0x222)]['bind'](_0x383f62),_0x7179d8=_0x4e8b84[_0x1fd8a2],_0x3b21a9=_0x5d7845[_0x7179d8]||_0x3b41b5;_0x3b41b5['__proto__']=_0x383f62['bind'](_0x383f62),_0x3b41b5[_0x28e8c3(0x1ca)]=_0x3b21a9['toString'][_0x28e8c3(0x1ed)](_0x3b21a9),_0x5d7845[_0x7179d8]=_0x3b41b5;}});_0x14d369();'use strict';function _0x8223(){const _0x2caab2=['$1,','format_timestamp_to_day_hour_minute_second','__interval','after_gt_hour','bind','undefined','length','seconds','join','format_num2date','__loop_time2','get_time_obj','return\x20(function()\x20','add','9lsNdrX','__is_function','table','__ticker2','reduce','toFixed','forEach','getFullYear','keys','default','__loop_time','log','__date2timestamp','3892136qRMcIQ','replace','__get_suffix2','construct','is_current_year','hour','format_thousandth','every','213232lyROho','error','trace','__compare_time','offset_time','findDeepValue','split','convertArr2Disable','createSingleTon','test','getSeconds','resolve','now','186BGGrgZ','then','650053YVCxPP','call','assign','1494668qKsrmZ','\x5c$&','__ticker','function','prototype','startsWith','String','17330gwrWSz','is_equal','before_gt_hour','flatten','__is_object','count_down_by_remain_seconds','constructor','map','Invalid\x20Date','safeRequest','Function','indexOf','minute','__get_type','toLowerCase','defineProperty','apply','trim','day','roxFormatThousandth','{}.constructor(\x22return\x20this\x22)(\x20)','after_lt_hour','getMonth','__is_array','toString','exec','isArray','727748uglcHx','exception','216828nzNHuh','push','sleep','getDay','replaceTemplate','Object','getDate','checkPattern','is_empty','The\x20second\x20parameter\x20has\x20an\x20error','before_lt_hour','string','catch','Array','chunk','console','floor','getTime','getMinutes','count_down','getHours','padStart','slice','concat','pickList','__an_hour'];_0x8223=function(){return _0x2caab2;};return _0x8223();}Object[_0x159dcc(0x234)](exports,'__esModule',{'value':!0x0});const t=()=>null,e=new class{constructor(){const _0x1b8e34=_0x159dcc;this[_0x1b8e34(0x1eb)]=0x3e8,this[_0x1b8e34(0x1e8)]=0x36ee80,this[_0x1b8e34(0x220)]=null,this[_0x1b8e34(0x1fa)]=null,this['__get_type']=_0xa8ba48=>Object[_0x1b8e34(0x222)][_0x1b8e34(0x1ca)][_0x1b8e34(0x21c)](_0xa8ba48)[_0x1b8e34(0x1e5)](0x8,-0x1),this[_0x1b8e34(0x203)]=_0x2fdee9=>{const _0x8a52ed=_0x1b8e34;if(!_0x2fdee9)return Date[_0x8a52ed(0x218)]();let _0x296702=null;_0x296702=_0x8a52ed(0x1da)==typeof _0x2fdee9?_0x2fdee9[_0x8a52ed(0x205)](/(\-|\_)/g,'/'):new Date(_0x2fdee9);let _0x4a4ff5=new Date(_0x296702);return _0x8a52ed(0x22d)===_0x4a4ff5[_0x8a52ed(0x1ca)]()&&(_0x4a4ff5=new Date(_0x2fdee9)),_0x4a4ff5[_0x8a52ed(0x1e0)]();},this['__is_function']=_0x47bde9=>_0x1b8e34(0x22f)===this['__get_type'](_0x47bde9),this[_0x1b8e34(0x1c9)]=_0x2bc206=>_0x1b8e34(0x1dc)===this[_0x1b8e34(0x232)](_0x2bc206),this[_0x1b8e34(0x229)]=_0x2aeea9=>_0x1b8e34(0x1d4)===this['__get_type'](_0x2aeea9),this[_0x1b8e34(0x206)]=_0x5be94b=>String(_0x5be94b)[_0x1b8e34(0x1e4)](0x2,'0'),this[_0x1b8e34(0x20f)]=({date:_0x3e7323,hour:_0x223858=0x1,type:_0x30f9d5='before_lt_hour'})=>{const _0x56113c=_0x1b8e34;let _0x34c9fc=this[_0x56113c(0x203)](_0x3e7323);const _0x2fc943=new Date(_0x34c9fc)[_0x56113c(0x1e0)](),_0x13693a=Date[_0x56113c(0x218)](),_0x1d21ab=_0x2fc943<_0x13693a,_0x1a5d94=_0x2fc943>_0x13693a;return _0x56113c(0x1d9)===_0x30f9d5?_0x1d21ab&&_0x2fc943+this[_0x56113c(0x1e8)]*_0x223858>_0x13693a:_0x56113c(0x227)===_0x30f9d5?_0x1d21ab&&_0x2fc943+this[_0x56113c(0x1e8)]*_0x223858<_0x13693a:_0x56113c(0x1c7)===_0x30f9d5?_0x1a5d94&&_0x13693a+this[_0x56113c(0x1e8)]*_0x223858>_0x2fc943:_0x56113c(0x1ec)===_0x30f9d5&&(_0x1a5d94&&_0x13693a+this[_0x56113c(0x1e8)]*_0x223858<_0x2fc943);},this[_0x1b8e34(0x210)]=(_0x3e0282,_0x2c2372=_0x1b8e34(0x231))=>{const _0x17a4dd=_0x1b8e34,_0x562354=Math['abs'](Date[_0x17a4dd(0x218)]()-this[_0x17a4dd(0x203)](_0x3e0282)),_0x1764d2=this['format_num2date'](_0x562354);return _0x17a4dd(0x1c4)===_0x2c2372?this[_0x17a4dd(0x206)](_0x1764d2[_0x17a4dd(0x1c4)]):_0x17a4dd(0x209)===_0x2c2372?this[_0x17a4dd(0x206)](_0x1764d2[_0x17a4dd(0x209)]):_0x17a4dd(0x231)===_0x2c2372?this['__get_suffix2'](_0x1764d2['minute']):'second'===_0x2c2372?this[_0x17a4dd(0x206)](_0x1764d2[_0x17a4dd(0x1f0)]):_0x17a4dd(0x1d8);},this[_0x1b8e34(0x1f3)]=(_0x4c788f=0x0,_0x27bcfa=t,_0x3c8963=this['__interval'],_0x3f41c9=0x0,_0x20be34=Date[_0x1b8e34(0x218)]())=>{const _0x3cb7d8=_0x1b8e34;if(_0x4c788f<=0x0)return clearTimeout(this['__ticker2']),void(this[_0x3cb7d8(0x1fa)]=null);clearTimeout(this[_0x3cb7d8(0x1fa)]),this[_0x3cb7d8(0x1fa)]=setTimeout(()=>{const _0x3ee0b3=_0x3cb7d8;_0x3f41c9+=0x1,_0x4c788f-=this[_0x3ee0b3(0x1eb)];let _0x2badc3=this['format_timestamp_to_day_hour_minute_second'](_0x4c788f);_0x27bcfa({'remain':_0x4c788f,'obj':_0x2badc3});const _0x2d6f3a=Date[_0x3ee0b3(0x218)]()-(_0x20be34+_0x3f41c9*this[_0x3ee0b3(0x1eb)]);let _0x719e87=this[_0x3ee0b3(0x1eb)]-_0x2d6f3a;_0x719e87<0x0&&(_0x719e87=0x0),this[_0x3ee0b3(0x1f3)](_0x4c788f,_0x27bcfa,_0x719e87,_0x3f41c9,_0x20be34);},_0x3c8963);},this[_0x1b8e34(0x201)]=(_0x18a364=0x0,_0x36f2d5=t,_0x34533d=this[_0x1b8e34(0x1eb)],_0x54e792=0x0,_0x4bf317=Date['now']())=>{const _0x135d5a=_0x1b8e34;if(_0x18a364<=0x0)return clearTimeout(this['__ticker']),void(this[_0x135d5a(0x220)]=null);clearTimeout(this[_0x135d5a(0x220)]),this['__ticker']=setTimeout(()=>{const _0x12639c=_0x135d5a;_0x54e792+=0x1,_0x18a364-=this['__interval'];let _0x84391b=this[_0x12639c(0x1f2)](_0x18a364);_0x36f2d5({'remain':_0x18a364,'obj':_0x84391b});const _0x14fa4c=Date['now']()-(_0x4bf317+_0x54e792*this[_0x12639c(0x1eb)]);let _0xc4f199=this[_0x12639c(0x1eb)]-_0x14fa4c;_0xc4f199<0x0&&(_0xc4f199=0x0),this[_0x12639c(0x201)](_0x18a364,_0x36f2d5,_0xc4f199,_0x54e792,_0x4bf317);},_0x34533d);},this[_0x1b8e34(0x1d1)]=_0x3853c6=>new Promise(_0x3dbffe=>setTimeout(_0x3dbffe,_0x3853c6)),this[_0x1b8e34(0x1c5)]=(_0x593937,_0x316002='万')=>_0x593937<0x2710?_0x593937:(Math[_0x1b8e34(0x1df)](_0x593937/0x3e8)/0xa)[_0x1b8e34(0x1fc)](0x1)+_0x316002,this[_0x1b8e34(0x1dd)]=(_0x36a2a2,_0xce423a,_0x58f7ee=!0x1)=>{const _0x3f6103=_0x1b8e34;if(!Array[_0x3f6103(0x1cc)](_0x36a2a2)||_0xce423a<=0x0)return[];const _0x390274=[];for(let _0xd5fc4=0x0;_0xd5fc4<_0x36a2a2[_0x3f6103(0x1ef)];_0xd5fc4+=_0xce423a){const _0x5957f4=_0x36a2a2['slice'](_0xd5fc4,_0xd5fc4+_0xce423a);_0x58f7ee?_0x5957f4[_0x3f6103(0x1ef)]===_0xce423a&&_0x390274[_0x3f6103(0x1d0)](_0x5957f4):_0x390274[_0x3f6103(0x1d0)](_0x5957f4);}return _0x390274;},this['debounce']=(_0x468a97,_0x2e280a=0xc8,_0x43e164=!0x1)=>{let _0x1ac1b2,_0x36baee=null;return function(..._0x1f3f15){const _0x46e0f5=_0x39d8,_0x652ccf=this,_0x10f05b=_0x43e164&&!_0x36baee;return _0x36baee&&clearTimeout(_0x36baee),_0x36baee=setTimeout(()=>{const _0x41fd43=_0x39d8;_0x36baee=null,_0x43e164||(_0x1ac1b2=_0x468a97[_0x41fd43(0x235)](_0x652ccf,_0x1f3f15));},_0x2e280a),_0x10f05b&&(_0x1ac1b2=_0x468a97[_0x46e0f5(0x235)](_0x652ccf,_0x1f3f15)),_0x1ac1b2;};},this[_0x1b8e34(0x228)]=(_0x54419a,_0x489119=!0x1)=>{const _0x2d0a3d=_0x1b8e34;let _0x4973fa=[];return _0x54419a[_0x2d0a3d(0x1fd)](_0x36969a=>{const _0x27ed28=_0x2d0a3d;_0x489119&&Array[_0x27ed28(0x1cc)](_0x36969a)?_0x4973fa=_0x4973fa['concat'](this[_0x27ed28(0x228)](_0x36969a,_0x489119)):_0x4973fa[_0x27ed28(0x1d0)](_0x36969a);}),_0x4973fa;},this[_0x1b8e34(0x22e)]=(_0x3bb046,_0x4e292d)=>_0x3bb046&&_0x3bb046[_0x1b8e34(0x21a)]?_0x3bb046['catch']?_0x3bb046[_0x1b8e34(0x21a)](_0x13af70=>[null,_0x13af70])[_0x1b8e34(0x1db)](_0x219a73=>(_0x4e292d&&Object[_0x1b8e34(0x21d)](_0x219a73,_0x4e292d),[_0x219a73,void 0x0])):_0x3bb046[_0x1b8e34(0x21a)](_0x533b56=>[null,_0x533b56]):Promise[_0x1b8e34(0x217)]([null,_0x3bb046]),this[_0x1b8e34(0x1d6)]=_0x3f77c4=>{const _0x3b5a95=_0x1b8e34,{str:_0x2d850b,likeStr:_0x483af2,separator:_0xf10bde='-',caseSensitive:_0x2e5a2c=!0x1,symbol:_0x3d015c=''}=_0x3f77c4,_0x2e6aab=(_0x483af2||'')[_0x3b5a95(0x212)](_0xf10bde),_0x43a1fe=(_0x2d850b||'')[_0x3b5a95(0x212)](_0xf10bde);return _0x2e6aab[_0x3b5a95(0x20b)]((_0x36edfd,_0x2ce1a9)=>_0x36edfd===_0x3d015c||(_0x2e5a2c?_0x36edfd===_0x43a1fe[_0x2ce1a9]:_0x43a1fe[_0x2ce1a9]&&_0x36edfd['toLowerCase']()===_0x43a1fe[_0x2ce1a9][_0x3b5a95(0x233)]()));},this[_0x1b8e34(0x213)]=_0x428f15=>{const _0x54a639=_0x1b8e34;var _0x179bd4;const _0x125436=[],{skuObjArr:_0x585e41=[],skuArrField:_0x189f80,checkedIndexArr:_0x184083=[],combineSkuArr:_0x5e75e8=[],disabledArr:_0x346b57=[],combineSeparator:_0xc70d2='-',combineSkuField:_0xe42b8d='id'}=_0x428f15;for(let _0x17e58f=0x0;_0x17e58f<_0x585e41[_0x54a639(0x1ef)];_0x17e58f++){const _0x4fb19b=_0x189f80?(null===(_0x179bd4=_0x585e41[_0x17e58f])||void 0x0===_0x179bd4?void 0x0:_0x179bd4[_0x189f80])||[]:_0x585e41[_0x17e58f]||[];Array[_0x54a639(0x1cc)](_0x125436[_0x17e58f])||(_0x125436[_0x17e58f]=[]);for(let _0x499684=0x0;_0x499684<_0x4fb19b[_0x54a639(0x1ef)];_0x499684++){const _0x160c39=_0x184083['slice'](0x0,_0x17e58f),_0x58208f=_0x184083['slice'](_0x17e58f+0x1),_0x5a145a=_0x160c39[_0x54a639(0x1e6)](_0x499684)[_0x54a639(0x1e6)](_0x58208f)[_0x54a639(0x1f1)](_0xc70d2),_0x29d3f6=_0x5e75e8['filter'](_0x4f2c4b=>this['checkPattern']({'str':_0x4f2c4b[_0xe42b8d],'likeStr':_0x5a145a,'separator':_0xc70d2})),_0x48c17c=_0x346b57[_0x54a639(0x22c)](_0x11ec0d=>{const {field:_0x5aa912,disabledFun:_0x1c891f,disabledFieldValue:_0xb58946}=_0x11ec0d,_0x1c67e1=_0x29d3f6['some'](_0x4dbcb4=>_0x1c891f(_0x4dbcb4));return{[_0x5aa912]:_0x1c67e1?_0xb58946:!_0xb58946};})[_0x54a639(0x1fb)]((_0x10b5ac,_0xcec177)=>Object[_0x54a639(0x21d)](Object[_0x54a639(0x21d)]({},_0x10b5ac),_0xcec177),{});_0x125436[_0x17e58f][_0x499684]=_0x48c17c;}}return _0x125436;},this[_0x1b8e34(0x214)]=_0x3a860b=>{const _0x3b220a=_0x1b8e34;let _0x2fc705=null;const _0x32d18c=new Proxy(_0x3a860b,{'construct':(_0x510389,_0x509c27)=>_0x2fc705||(_0x2fc705=_0x3b220a(0x1ee)!=typeof Reflect&&Reflect[_0x3b220a(0x207)]?Reflect[_0x3b220a(0x207)](_0x510389,_0x509c27):new _0x510389(..._0x509c27),_0x2fc705)});return _0x32d18c[_0x3b220a(0x222)][_0x3b220a(0x22b)]=_0x32d18c,_0x32d18c;},this[_0x1b8e34(0x211)]=_0x19edab=>{const {list:_0x523a67,selected:_0x1d387a,selectedValueInListFieldName:_0x22c20c,childrenFieldName:_0x12a98b}=_0x19edab;if(!_0x1d387a['length'])return;const _0xb084b9=_0x1d387a[_0x1d387a['length']-0x1],_0x14b980=_0x573e0b=>{const _0x283ada=_0x39d8;for(const _0x5423ec of _0x573e0b){if(_0x5423ec[_0x22c20c]===_0xb084b9)return _0x5423ec;const _0x31c924=_0x5423ec[_0x12a98b];if(Array['isArray'](_0x31c924)&&_0x31c924[_0x283ada(0x1ef)]){const _0xb3cc22=_0x14b980(_0x31c924);if(_0xb3cc22)return _0xb3cc22;}}};return _0x14b980(_0x523a67);},this[_0x1b8e34(0x1e7)]=(_0x5b132d,_0x7aa244=/\{([^}]+)\}/g)=>{const _0x1ab426=_0x1b8e34;if(null==_0x5b132d)return[];const _0x5e862a=String(_0x5b132d);if(!_0x5e862a)return[];const _0x594e00=_0x7aa244 instanceof RegExp?_0x7aa244:new RegExp(_0x7aa244[_0x1ab426(0x223)]('/')&&_0x7aa244['endsWith']('/')?_0x7aa244[_0x1ab426(0x1e5)](0x1,-0x1):_0x7aa244[_0x1ab426(0x205)](/[.*+?^${}()|[\]\\]/g,_0x1ab426(0x21f)),'g'),_0x32919f=[];let _0x4d5a7e;for(;null!==(_0x4d5a7e=_0x594e00[_0x1ab426(0x1cb)](_0x5e862a));){const _0x409bd0=_0x4d5a7e[0x1]||_0x4d5a7e[0x0];_0x409bd0&&!/^\d+$/[_0x1ab426(0x215)](_0x409bd0)&&_0x32919f['push'](_0x409bd0);}return _0x32919f;},this[_0x1b8e34(0x1d3)]=(_0x5b1727,_0x143d71,_0x23e946=/\{([^}]+)\}/g)=>{const _0x4531d5=_0x1b8e34,_0x5ebcc1=_0x23e946 instanceof RegExp?_0x23e946:new RegExp(_0x23e946[_0x4531d5(0x223)]('/')&&_0x23e946['endsWith']('/')?_0x23e946[_0x4531d5(0x1e5)](0x1,-0x1):_0x23e946[_0x4531d5(0x205)](/[.*+?^${}()|[\]\\]/g,_0x4531d5(0x21f)),'g');if(_0x4531d5(0x221)==typeof _0x143d71){let _0x33faaa=0x0;return _0x5b1727['replace'](_0x5ebcc1,(..._0x3c7373)=>{const [_0x526ab0,..._0x271e0f]=_0x3c7373,_0x2ff94d=_0x143d71(_0x526ab0,_0x33faaa,..._0x271e0f);return _0x33faaa++,_0x2ff94d;});}if(Array['isArray'](_0x143d71)){let _0x4de58c=0x0;return _0x5b1727['replace'](_0x5ebcc1,()=>{var _0x302c67;return null!==(_0x302c67=_0x143d71[_0x4de58c++])&&void 0x0!==_0x302c67?_0x302c67:'';});}return _0x5b1727[_0x4531d5(0x205)](_0x5ebcc1,_0x143d71);};}[_0x159dcc(0x1d9)](_0x4837a8=Date[_0x159dcc(0x218)](),_0x561538=0x1){const _0x1d0420=_0x159dcc;return this['__compare_time']({'date':_0x4837a8,'hour':_0x561538,'type':_0x1d0420(0x1d9)});}['before_gt_hour'](_0x247707=Date['now'](),_0x13bbf2=0x1){const _0x95e633=_0x159dcc;return this[_0x95e633(0x20f)]({'date':_0x247707,'hour':_0x13bbf2,'type':_0x95e633(0x227)});}['after_lt_hour'](_0x3e258d=Date[_0x159dcc(0x218)](),_0x5e4f07=0x1){const _0xc9566b=_0x159dcc;return this['__compare_time']({'date':_0x3e258d,'hour':_0x5e4f07,'type':_0xc9566b(0x1c7)});}[_0x159dcc(0x1ec)](_0x3978bf=Date[_0x159dcc(0x218)](),_0x22584b=0x1){const _0x104023=_0x159dcc;return this['__compare_time']({'date':_0x3978bf,'hour':_0x22584b,'type':_0x104023(0x1ec)});}[_0x159dcc(0x208)](_0x1aee3d){const _0x1548bc=_0x159dcc,_0x90e02=this[_0x1548bc(0x203)](_0x1aee3d);return new Date()['getFullYear']()===new Date(_0x90e02)[_0x1548bc(0x1fe)]();}[_0x159dcc(0x1f4)](_0x1edb0e){const _0x352745=_0x159dcc,_0x27221d=this[_0x352745(0x203)](_0x1edb0e),_0x25cfbf=new Date(_0x27221d),_0x2c632f=this[_0x352745(0x206)](_0x25cfbf[_0x352745(0x1c8)]()+0x1),_0x1fdcf3=this['__get_suffix2'](_0x25cfbf[_0x352745(0x1d5)]()),_0x545fff=this[_0x352745(0x206)](_0x25cfbf[_0x352745(0x1e3)]()),_0x25b3de=this[_0x352745(0x206)](_0x25cfbf[_0x352745(0x1e1)]()),_0x3c5715=this[_0x352745(0x206)](_0x25cfbf[_0x352745(0x216)]());return{'year':String(_0x25cfbf[_0x352745(0x1fe)]()),'month':_0x2c632f,'day':_0x1fdcf3,'hour':_0x545fff,'minute':_0x25b3de,'seconds':_0x3c5715,'day_of_week':String(_0x25cfbf[_0x352745(0x1d2)]())};}['format_count']({num:_0x39413e=0x0,decimal:_0x4863eb=0x1,divide:_0x4489b3=0x2710,suffix:_0x3c7d89='万',show_suffix_always:_0x185ec5=!0x1}){const _0x4918d8=_0x159dcc;if(!_0x39413e)return 0x0;if(_0x4489b3<=0x0||_0x4863eb<0x0)return _0x185ec5?_0x39413e+'\x20'+_0x3c7d89:_0x39413e;const _0x3c27fa=parseFloat(_0x39413e);if(_0x3c27fa<=0x0)return _0x185ec5?_0x3c27fa+'\x20'+_0x3c7d89:_0x3c27fa;if(_0x3c27fa>0x0&&_0x3c27fa<_0x4489b3)return _0x185ec5?_0x3c27fa+'\x20'+_0x3c7d89:_0x3c27fa;const [_0x520c53,_0x5ee06b]=(_0x3c27fa/_0x4489b3)[_0x4918d8(0x1fc)](_0x4863eb)[_0x4918d8(0x212)]('.');return _0x5ee06b&&0x0!==parseFloat(_0x5ee06b)?_0x520c53+'.'+_0x5ee06b+'\x20'+_0x3c7d89:_0x520c53+'\x20'+_0x3c7d89;}[_0x159dcc(0x1f2)](_0x23dfe1=Date['now']()){const _0x65031=_0x159dcc,_0x19e45d=parseInt(_0x23dfe1/0x3e8/0x3c/0x3c/0x18%0x18),_0x1ac657=parseInt(_0x23dfe1/0x3e8/0x3c/0x3c%0x18),_0x3ca6fd=parseInt(_0x23dfe1/0x3e8/0x3c%0x3c),_0x403e32=parseInt(_0x23dfe1/0x3e8%0x3c);return{'day':this[_0x65031(0x206)](_0x19e45d),'hour':this[_0x65031(0x206)](_0x1ac657),'minute':this[_0x65031(0x206)](_0x3ca6fd),'seconds':this['__get_suffix2'](_0x403e32)};}[_0x159dcc(0x22a)](_0x223a7f=t,_0x3210df=0x3c){let _0x3a0833;clearTimeout(_0x3a0833);let _0x2fc0bf=0x3e8*_0x3210df,_0x4f5170=this['format_num2date'](_0x2fc0bf),_0x36221b={'remain':_0x2fc0bf,'obj':_0x4f5170};_0x223a7f(_0x36221b);let _0x1c95ce=this;return function _0x221292(_0xd0f18f=0x0,_0x3ab391=t,_0x227f8f=0x3e8,_0x166680=0x0,_0x5cc510=Date['now']()){if(_0xd0f18f<=0x0)return clearTimeout(_0x3a0833),_0x1c95ce=null,_0x3a0833=null,_0x2fc0bf=null,_0x4f5170=null,_0x36221b=null,void _0x3ab391({'remain':0x0,'obj':{'day':'00','hour':'00','minute':'00','seconds':'00'}});clearTimeout(_0x3a0833),_0x3a0833=setTimeout(()=>{const _0x316b94=_0x39d8;_0x166680+=0x1,_0xd0f18f-=0x3e8;let _0x55db3e=_0x1c95ce['format_num2date'](_0xd0f18f);_0x3ab391({'remain':_0xd0f18f,'obj':_0x55db3e});let _0x397133=0x3e8-(Date[_0x316b94(0x218)]()-(_0x5cc510+0x3e8*_0x166680));_0x397133<0x0&&(_0x397133=0x0),_0x221292(_0xd0f18f,_0x3ab391,_0x397133,_0x166680,_0x5cc510);},_0x227f8f);}(_0x2fc0bf,_0x223a7f,0x3e8),()=>{clearTimeout(_0x3a0833),_0x1c95ce=null,_0x3a0833=null,_0x2fc0bf=null,_0x4f5170=null,_0x36221b=null;};}[_0x159dcc(0x1ea)](_0x5aaf5c=Date['now']()){const _0x13f878=_0x159dcc,_0x7dce57=Math[_0x13f878(0x1df)](_0x5aaf5c/0x5265c00),_0x1bf132=Math['floor'](_0x5aaf5c%0x5265c00/0x36ee80),_0x45697a=Math[_0x13f878(0x1df)](_0x5aaf5c%0x36ee80/0xea60),_0x16925c=Math[_0x13f878(0x1df)](_0x5aaf5c%0xea60/0x3e8);return{'day':this[_0x13f878(0x206)](_0x7dce57),'hour':this[_0x13f878(0x206)](_0x1bf132),'minute':this[_0x13f878(0x206)](_0x45697a),'seconds':this[_0x13f878(0x206)](_0x16925c)};}[_0x159dcc(0x1e2)](_0x54d4d6=Date[_0x159dcc(0x218)](),_0x468ed2=t){const _0x35b52b=_0x159dcc;let _0x55fd7d;clearTimeout(_0x55fd7d);let _0x4bfc8b=this,_0x1cd278=this[_0x35b52b(0x203)](_0x54d4d6),_0x48f037=_0x1cd278-Date['now'](),_0x3fc453=this['format_timestamp_to_day_hour_minute_second'](_0x48f037),_0x2f3de8={'remain':_0x48f037,'obj':_0x3fc453};return _0x468ed2(_0x2f3de8),function _0x1877f2(_0xba1d1=0x0,_0xfdf8cc=t,_0x336141=0x3e8,_0x2c377f=0x0,_0xb195e7=Date[_0x35b52b(0x218)]()){if(_0xba1d1<=0x0)return clearTimeout(_0x55fd7d),_0x55fd7d=null,_0x4bfc8b=null,_0x1cd278=null,_0x48f037=null,_0x3fc453=null,_0x2f3de8=null,void _0xfdf8cc({'remain':0x0,'obj':{'day':'00','hour':'00','minute':'00','seconds':'00'}});clearTimeout(_0x55fd7d),_0x55fd7d=setTimeout(()=>{const _0x3e2a50=_0x39d8;_0x2c377f+=0x1,_0xba1d1-=0x3e8;let _0x29101b=_0x4bfc8b[_0x3e2a50(0x1ea)](_0xba1d1);_0xfdf8cc({'remain':_0xba1d1,'obj':_0x29101b});let _0xae9b1f=0x3e8-(Date[_0x3e2a50(0x218)]()-(_0xb195e7+0x3e8*_0x2c377f));_0xae9b1f<0x0&&(_0xae9b1f=0x0),_0x1877f2(_0xba1d1,_0xfdf8cc,_0xae9b1f,_0x2c377f,_0xb195e7);},_0x336141);}(_0x48f037,_0x468ed2,0x3e8),()=>{clearTimeout(_0x55fd7d),_0x55fd7d=null,_0x4bfc8b=null,_0x1cd278=null,_0x48f037=null,_0x3fc453=null,_0x2f3de8=null;};}[_0x159dcc(0x1f6)](_0x46268e=0x1,_0x442dac=Date[_0x159dcc(0x218)]()){return this['__date2timestamp'](_0x442dac)+0x3c*_0x46268e*0x3c*0x3e8;}[_0x159dcc(0x20a)](_0x6b3815,_0x2c4f95=0x2){const _0x7a0df=_0x159dcc;try{const _0x21926c=parseFloat(_0x6b3815),_0x5783aa=_0x21926c[_0x7a0df(0x1ca)]()[_0x7a0df(0x212)]('.');let _0x109a0c=!0x1,_0x57a79b='';_0x5783aa[0x1]&&(_0x57a79b=_0x5783aa[0x1]['replace'](/0+$/,''),_0x109a0c=_0x57a79b[_0x7a0df(0x1ef)]>0x0);let _0x3c97bd=0x0;_0x109a0c&&(_0x3c97bd=void 0x0!==_0x2c4f95?_0x2c4f95:_0x57a79b[_0x7a0df(0x1ef)]);const _0x3c7dd5=_0x21926c[_0x7a0df(0x1fc)](_0x3c97bd)[_0x7a0df(0x212)]('.'),_0x3b2f85=(_0x3c7dd5[0x0]||'')[_0x7a0df(0x205)](/(\d)(?=(\d{3})+$)/g,_0x7a0df(0x1e9));return _0x3c7dd5[0x1]?_0x3b2f85+'.'+_0x3c7dd5[0x1]:_0x3b2f85;}catch(_0x309f8c){return 0x0;}}['format_thousandth_with_same_dotlen'](_0x5a24a1){const _0x39865d=_0x159dcc;var _0x36e20f;try{const _0x1f8e08=(null===(_0x36e20f=_0x5a24a1[_0x39865d(0x1ca)]()[_0x39865d(0x212)]('.')[0x1])||void 0x0===_0x36e20f?void 0x0:_0x36e20f[_0x39865d(0x1ef)])||0x0;let _0x2ab179=_0x5a24a1[_0x39865d(0x1ca)]()[_0x39865d(0x205)](/\d+/,function(_0x651e27){const _0x38d048=_0x39865d;return _0x651e27[_0x38d048(0x205)](/(\d)(?=(\d{3})+$)/g,function(_0xc3fbd3){return _0xc3fbd3+',';});});return _0x1f8e08&&(_0x2ab179=_0x2ab179[_0x39865d(0x205)](/\d+\.\d+/,function(_0x86db50){const _0x3e0fa2=_0x39865d;return _0x86db50[_0x3e0fa2(0x205)](/(\d)(?=(\d{3})+\.)/g,function(_0x37ebe6){return _0x37ebe6+',';});})),_0x2ab179;}catch(_0xe0c31d){return 0x0;}}[_0x159dcc(0x1d7)](_0x57e8f3){const _0x29d7d4=_0x159dcc;return null==_0x57e8f3||(_0x29d7d4(0x224)===this['__get_type'](_0x57e8f3)?!_0x57e8f3[_0x29d7d4(0x1c3)]():_0x29d7d4(0x1dc)===this[_0x29d7d4(0x232)](_0x57e8f3)?!_0x57e8f3[_0x29d7d4(0x1ef)]:_0x29d7d4(0x1d4)===this[_0x29d7d4(0x232)](_0x57e8f3)&&!Object['keys'](_0x57e8f3)['length']);}['poll'](_0x11af6d,_0x253663=0x1){const _0x45fe46=_0x159dcc;let _0x47acf5;if(!this[_0x45fe46(0x1f8)](_0x11af6d))return()=>{clearTimeout(_0x47acf5),_0x47acf5=void 0x0;};const _0x262546=0x3c*_0x253663*0x3e8,_0x5b6ace=()=>{_0x11af6d(),_0x47acf5=setTimeout(_0x5b6ace,_0x262546);};return _0x5b6ace(),()=>{clearTimeout(_0x47acf5),_0x47acf5=void 0x0;};}['is_equal'](_0x486e9b,_0x3575af,_0x4c0b86=!0x1){const _0x36091a=_0x159dcc,_0x2d6556=this[_0x36091a(0x1c9)](_0x486e9b)||this[_0x36091a(0x229)](_0x486e9b),_0x225070=this[_0x36091a(0x1c9)](_0x3575af)||this[_0x36091a(0x229)](_0x3575af);if(!_0x2d6556||!_0x225070)return _0x4c0b86?_0x486e9b===_0x3575af:_0x486e9b==_0x3575af;const _0x2cacd0=Object['keys'](_0x486e9b),_0x4ddbfc=Object[_0x36091a(0x1ff)](_0x3575af);return 0x0===_0x2cacd0[_0x36091a(0x1ef)]&&0x0===_0x4ddbfc[_0x36091a(0x1ef)]||_0x2cacd0[_0x36091a(0x1ef)]===_0x4ddbfc['length']&&_0x2cacd0[_0x36091a(0x20b)](_0x34d1be=>{const _0x84da3=_0x36091a,_0x21fe62=this[_0x84da3(0x1c9)](_0x486e9b[_0x34d1be])||this['__is_object'](_0x486e9b[_0x34d1be]),_0x2e55d0=this[_0x84da3(0x1c9)](_0x3575af[_0x34d1be])||this['__is_object'](_0x3575af[_0x34d1be]);return _0x21fe62&&_0x2e55d0?this[_0x84da3(0x226)](_0x486e9b[_0x34d1be],_0x3575af[_0x34d1be],_0x4c0b86):_0x4c0b86?_0x486e9b[_0x34d1be]===_0x3575af[_0x34d1be]:_0x486e9b[_0x34d1be]==_0x3575af[_0x34d1be];});}['contains'](_0x4e8c2a,_0x379969,_0x4526a4=!0x1){const _0x18ae70=_0x159dcc,_0x34e7cd=this[_0x18ae70(0x1c9)](_0x4e8c2a)||this[_0x18ae70(0x229)](_0x4e8c2a),_0x1cfae5=this[_0x18ae70(0x1c9)](_0x379969)||this[_0x18ae70(0x229)](_0x379969);if(!_0x34e7cd||!_0x1cfae5)return _0x4526a4?_0x4e8c2a===_0x379969:_0x4e8c2a==_0x379969;const _0xd85b12=Object['keys'](_0x4e8c2a),_0x31eeaa=Object[_0x18ae70(0x1ff)](_0x379969);return 0x0===_0x31eeaa[_0x18ae70(0x1ef)]||!(0x0===_0xd85b12[_0x18ae70(0x1ef)]||_0xd85b12[_0x18ae70(0x1ef)]<_0x31eeaa[_0x18ae70(0x1ef)])&&_0x31eeaa[_0x18ae70(0x20b)](_0x1fe5e0=>{const _0x553fc7=_0x18ae70;if(_0xd85b12[_0x553fc7(0x230)](_0x1fe5e0)<0x0)return!0x1;const _0x1d3076=this['__is_array'](_0x4e8c2a[_0x1fe5e0])||this['__is_object'](_0x4e8c2a[_0x1fe5e0]),_0x499fff=this[_0x553fc7(0x1c9)](_0x379969[_0x1fe5e0])||this[_0x553fc7(0x229)](_0x379969[_0x1fe5e0]);return _0x1d3076&&_0x499fff?this['contains'](_0x4e8c2a[_0x1fe5e0],_0x379969[_0x1fe5e0],_0x4526a4):_0x4526a4?_0x4e8c2a[_0x1fe5e0]===_0x379969[_0x1fe5e0]:_0x4e8c2a[_0x1fe5e0]==_0x379969[_0x1fe5e0];});}}();exports[_0x159dcc(0x200)]=e,exports['helper']=e;
|
package/dist/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=()=>null;const e=new class{constructor(){this.__interval=1e3,this.__an_hour=36e5,this.__ticker=null,this.__ticker2=null,this.__get_type=t=>Object.prototype.toString.call(t).slice(8,-1),this.__date2timestamp=t=>{if(!t)return Date.now();let e=null;e="string"==typeof t?t.replace(/(\-|\_)/g,"/"):new Date(t);let r=new Date(e);return"Invalid Date"===r.toString()&&(r=new Date(t)),r.getTime()},this.__is_function=t=>"Function"===this.__get_type(t),this.__is_array=t=>"Array"===this.__get_type(t),this.__is_object=t=>"Object"===this.__get_type(t),this.__get_suffix2=t=>String(t).padStart(2,"0"),this.__compare_time=({date:t,hour:e=1,type:r="before_lt_hour"})=>{let i=this.__date2timestamp(t);const n=new Date(i).getTime(),s=Date.now(),_=n<s,o=n>s;return"before_lt_hour"===r?_&&n+this.__an_hour*e>s:"before_gt_hour"===r?_&&n+this.__an_hour*e<s:"after_lt_hour"===r?o&&s+this.__an_hour*e>n:"after_gt_hour"===r&&(o&&s+this.__an_hour*e<n)},this.offset_time=(t,e="minute")=>{const r=Math.abs(Date.now()-this.__date2timestamp(t)),i=this.format_num2date(r);return"day"===e?this.__get_suffix2(i.day):"hour"===e?this.__get_suffix2(i.hour):"minute"===e?this.__get_suffix2(i.minute):"second"===e?this.__get_suffix2(i.seconds):"The second parameter has an error"},this.__loop_time2=(e=0,r=t,i=this.__interval,n=0,s=Date.now())=>{if(e<=0)return clearTimeout(this.__ticker2),void(this.__ticker2=null);clearTimeout(this.__ticker2),this.__ticker2=setTimeout(()=>{n+=1,e-=this.__interval;let t=this.format_timestamp_to_day_hour_minute_second(e);r({remain:e,obj:t});const i=Date.now()-(s+n*this.__interval);let _=this.__interval-i;_<0&&(_=0),this.__loop_time2(e,r,_,n,s)},i)},this.__loop_time=(e=0,r=t,i=this.__interval,n=0,s=Date.now())=>{if(e<=0)return clearTimeout(this.__ticker),void(this.__ticker=null);clearTimeout(this.__ticker),this.__ticker=setTimeout(()=>{n+=1,e-=this.__interval;let t=this.format_num2date(e);r({remain:e,obj:t});const i=Date.now()-(s+n*this.__interval);let _=this.__interval-i;_<0&&(_=0),this.__loop_time(e,r,_,n,s)},i)},this.sleep=t=>new Promise(e=>setTimeout(e,t)),this.roxFormatThousandth=(t,e="万")=>t<1e4?t:(Math.floor(t/1e3)/10).toFixed(1)+e,this.chunk=(t,e,r=!1)=>{if(!Array.isArray(t)||e<=0)return[];const i=[];for(let n=0;n<t.length;n+=e){const s=t.slice(n,n+e);r?s.length===e&&i.push(s):i.push(s)}return i},this.debounce=(t,e=200,r=!1)=>{let i,n=null;return function(...s){const _=this,o=r&&!n;return n&&clearTimeout(n),n=setTimeout(()=>{n=null,r||(i=t.apply(_,s))},e),o&&(i=t.apply(_,s)),i}},this.flatten=(t,e=!1)=>{let r=[];return t.forEach(t=>{e&&Array.isArray(t)?r=r.concat(this.flatten(t,e)):r.push(t)}),r},this.safeRequest=(t,e)=>t&&t.then?t.catch?t.then(t=>[null,t]).catch(t=>(e&&Object.assign(t,e),[t,void 0])):t.then(t=>[null,t]):Promise.resolve([null,t]),this.checkPattern=t=>{const{str:e,likeStr:r,separator:i="-",caseSensitive:n=!1,symbol:s=""}=t,_=(r||"").split(i),o=(e||"").split(i);return _.every((t,e)=>t===s||(n?t===o[e]:o[e]&&t.toLowerCase()===o[e].toLowerCase()))},this.convertArr2Disable=t=>{var e;const r=[],{skuObjArr:i=[],skuArrField:n,checkedIndexArr:s=[],combineSkuArr:_=[],disabledArr:o=[],combineSeparator:a="-",combineSkuField:u="id"}=t;for(let t=0;t<i.length;t++){const l=n?(null===(e=i[t])||void 0===e?void 0:e[n])||[]:i[t]||[];Array.isArray(r[t])||(r[t]=[]);for(let e=0;e<l.length;e++){const i=s.slice(0,t),n=s.slice(t+1),l=i.concat(e).concat(n).join(a),h=_.filter(t=>this.checkPattern({str:t[u],likeStr:l,separator:a})),c=o.map(t=>{const{field:e,disabledFun:r,disabledFieldValue:i}=t,n=h.some(t=>r(t));return{[e]:n?i:!i}}).reduce((t,e)=>Object.assign(Object.assign({},t),e),{});r[t][e]=c}}return r},this.createSingleTon=t=>{let e=null;const r=new Proxy(t,{construct:(t,r)=>e||(e="undefined"!=typeof Reflect&&Reflect.construct?Reflect.construct(t,r):new t(...r),e)});return r.prototype.constructor=r,r},this.findDeepValue=t=>{const{list:e,selected:r,selectedValueInListFieldName:i,childrenFieldName:n}=t;if(!r.length)return;const s=r[r.length-1],_=t=>{for(const e of t){if(e[i]===s)return e;const t=e[n];if(Array.isArray(t)&&t.length){const e=_(t);if(e)return e}}};return _(e)}}before_lt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"before_lt_hour"})}before_gt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"before_gt_hour"})}after_lt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"after_lt_hour"})}after_gt_hour(t=Date.now(),e=1){return this.__compare_time({date:t,hour:e,type:"after_gt_hour"})}is_current_year(t){const e=this.__date2timestamp(t);return(new Date).getFullYear()===new Date(e).getFullYear()}get_time_obj(t){const e=this.__date2timestamp(t),r=new Date(e),i=this.__get_suffix2(r.getMonth()+1),n=this.__get_suffix2(r.getDate()),s=this.__get_suffix2(r.getHours()),_=this.__get_suffix2(r.getMinutes()),o=this.__get_suffix2(r.getSeconds());return{year:String(r.getFullYear()),month:i,day:n,hour:s,minute:_,seconds:o,day_of_week:String(r.getDay())}}format_count({num:t=0,decimal:e=1,divide:r=1e4,suffix:i="万",show_suffix_always:n=!1}){if(!t)return 0;if(r<=0||e<0)return n?`${t} ${i}`:t;const s=parseFloat(t);if(s<=0)return n?`${s} ${i}`:s;if(s>0&&s<r)return n?`${s} ${i}`:s;const[_,o]=(s/r).toFixed(e).split(".");return o&&0!==parseFloat(o)?`${_}.${o} ${i}`:`${_} ${i}`}format_num2date(t=Date.now()){const e=parseInt(t/1e3/60/60/24%24),r=parseInt(t/1e3/60/60%24),i=parseInt(t/1e3/60%60),n=parseInt(t/1e3%60);return{day:this.__get_suffix2(e),hour:this.__get_suffix2(r),minute:this.__get_suffix2(i),seconds:this.__get_suffix2(n)}}count_down_by_remain_seconds(e=t,r=60){let i;clearTimeout(i);let n=1e3*r,s=this.format_num2date(n),_={remain:n,obj:s};e(_);let o=this;return function e(r=0,a=t,u=1e3,l=0,h=Date.now()){if(r<=0)return clearTimeout(i),o=null,i=null,n=null,s=null,_=null,void a({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(i),i=setTimeout(()=>{l+=1,r-=1e3;let t=o.format_num2date(r);a({remain:r,obj:t});let i=1e3-(Date.now()-(h+1e3*l));i<0&&(i=0),e(r,a,i,l,h)},u)}(n,e,1e3),()=>{clearTimeout(i),o=null,i=null,n=null,s=null,_=null}}format_timestamp_to_day_hour_minute_second(t=Date.now()){const e=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),i=Math.floor(t%36e5/6e4),n=Math.floor(t%6e4/1e3);return{day:this.__get_suffix2(e),hour:this.__get_suffix2(r),minute:this.__get_suffix2(i),seconds:this.__get_suffix2(n)}}count_down(e=Date.now(),r=t){let i;clearTimeout(i);let n=this,s=this.__date2timestamp(e),_=s-Date.now(),o=this.format_timestamp_to_day_hour_minute_second(_),a={remain:_,obj:o};return r(a),function e(r=0,u=t,l=1e3,h=0,c=Date.now()){if(r<=0)return clearTimeout(i),i=null,n=null,s=null,_=null,o=null,a=null,void u({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(i),i=setTimeout(()=>{h+=1,r-=1e3;let t=n.format_timestamp_to_day_hour_minute_second(r);u({remain:r,obj:t});let i=1e3-(Date.now()-(c+1e3*h));i<0&&(i=0),e(r,u,i,h,c)},l)}(_,r,1e3),()=>{clearTimeout(i),i=null,n=null,s=null,_=null,o=null,a=null}}add(t=1,e=Date.now()){return this.__date2timestamp(e)+60*t*60*1e3}format_thousandth(t,e=2){try{const r=parseFloat(t),i=r.toString().split(".");let n=!1,s="";i[1]&&(s=i[1].replace(/0+$/,""),n=s.length>0);let _=0;n&&(_=void 0!==e?e:s.length);const o=r.toFixed(_).split("."),a=(o[0]||"").replace(/(\d)(?=(\d{3})+$)/g,"$1,");return o[1]?`${a}.${o[1]}`:a}catch(t){return 0}}format_thousandth_with_same_dotlen(t){var e;try{const r=(null===(e=t.toString().split(".")[1])||void 0===e?void 0:e.length)||0;let i=t.toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,function(t){return t+","})});return r&&(i=i.replace(/\d+\.\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+\.)/g,function(t){return t+","})})),i}catch(t){return 0}}is_empty(t){return null==t||("String"===this.__get_type(t)?!t.trim():"Array"===this.__get_type(t)?!t.length:"Object"===this.__get_type(t)&&!Object.keys(t).length)}poll(t,e=1){let r;if(!this.__is_function(t))return()=>{clearTimeout(r),r=void 0};const i=60*e*1e3,n=()=>{t(),r=setTimeout(n,i)};return n(),()=>{clearTimeout(r),r=void 0}}is_equal(t,e,r=!1){const i=this.__is_array(t)||this.__is_object(t),n=this.__is_array(e)||this.__is_object(e);if(!i||!n)return r?t===e:t==e;const s=Object.keys(t),_=Object.keys(e);return 0===s.length&&0===_.length||s.length===_.length&&s.every(i=>{const n=this.__is_array(t[i])||this.__is_object(t[i]),s=this.__is_array(e[i])||this.__is_object(e[i]);return n&&s?this.is_equal(t[i],e[i],r):r?t[i]===e[i]:t[i]==e[i]})}contains(t,e,r=!1){const i=this.__is_array(t)||this.__is_object(t),n=this.__is_array(e)||this.__is_object(e);if(!i||!n)return r?t===e:t==e;const s=Object.keys(t),_=Object.keys(e);return 0===_.length||!(0===s.length||s.length<_.length)&&_.every(i=>{if(s.indexOf(i)<0)return!1;const n=this.__is_array(t[i])||this.__is_object(t[i]),_=this.__is_array(e[i])||this.__is_object(e[i]);return n&&_?this.contains(t[i],e[i],r):r?t[i]===e[i]:t[i]==e[i]})}};export{e as default,e as helper};
|
|
1
|
+
const _0x3058c2=_0x1a71;(function(_0x5414e0,_0x2ca88a){const _0x510d96=_0x1a71,_0x39f8b6=_0x5414e0();while(!![]){try{const _0x2312ce=-parseInt(_0x510d96(0x1a4))/0x1+-parseInt(_0x510d96(0x1ae))/0x2+-parseInt(_0x510d96(0x199))/0x3*(parseInt(_0x510d96(0x1b9))/0x4)+-parseInt(_0x510d96(0x19e))/0x5*(-parseInt(_0x510d96(0x18b))/0x6)+-parseInt(_0x510d96(0x172))/0x7+parseInt(_0x510d96(0x1c4))/0x8+-parseInt(_0x510d96(0x190))/0x9*(-parseInt(_0x510d96(0x161))/0xa);if(_0x2312ce===_0x2ca88a)break;else _0x39f8b6['push'](_0x39f8b6['shift']());}catch(_0x243a5d){_0x39f8b6['push'](_0x39f8b6['shift']());}}}(_0xb26f,0x98005));const _0x1ff802=(function(){let _0x3fc3bc=!![];return function(_0x69147b,_0x5e4e77){const _0x302ebf=_0x3fc3bc?function(){const _0x18abbc=_0x1a71;if(_0x5e4e77){const _0x341b11=_0x5e4e77[_0x18abbc(0x1b2)](_0x69147b,arguments);return _0x5e4e77=null,_0x341b11;}}:function(){};return _0x3fc3bc=![],_0x302ebf;};}()),_0x1d03ea=_0x1ff802(this,function(){const _0x1c402f=_0x1a71,_0x39814f=function(){const _0x2e3dc6=_0x1a71;let _0x2be5e9;try{_0x2be5e9=Function(_0x2e3dc6(0x184)+_0x2e3dc6(0x167)+');')();}catch(_0x11c7d4){_0x2be5e9=window;}return _0x2be5e9;},_0x1dce79=_0x39814f(),_0x334d52=_0x1dce79['console']=_0x1dce79[_0x1c402f(0x166)]||{},_0x4f74a5=[_0x1c402f(0x1cc),_0x1c402f(0x185),'info','error',_0x1c402f(0x16f),_0x1c402f(0x1c6),_0x1c402f(0x182)];for(let _0x103f01=0x0;_0x103f01<_0x4f74a5[_0x1c402f(0x1c9)];_0x103f01++){const _0x4a1960=_0x1ff802[_0x1c402f(0x17a)][_0x1c402f(0x15e)][_0x1c402f(0x15d)](_0x1ff802),_0x4f1d24=_0x4f74a5[_0x103f01],_0x33777a=_0x334d52[_0x4f1d24]||_0x4a1960;_0x4a1960[_0x1c402f(0x1a0)]=_0x1ff802[_0x1c402f(0x15d)](_0x1ff802),_0x4a1960[_0x1c402f(0x16e)]=_0x33777a['toString']['bind'](_0x33777a),_0x334d52[_0x4f1d24]=_0x4a1960;}});function _0x1a71(_0x1887fb,_0x36016e){_0x1887fb=_0x1887fb-0x15d;const _0x15e06d=_0xb26f();let _0x1d03ea=_0x15e06d[_0x1887fb];return _0x1d03ea;}_0x1d03ea();const t=()=>null,e=new class{constructor(){const _0x406e28=_0x1a71;this[_0x406e28(0x1c8)]=0x3e8,this[_0x406e28(0x1ad)]=0x36ee80,this[_0x406e28(0x193)]=null,this[_0x406e28(0x160)]=null,this['__get_type']=_0x281ba1=>Object['prototype'][_0x406e28(0x16e)][_0x406e28(0x1a6)](_0x281ba1)['slice'](0x8,-0x1),this[_0x406e28(0x1b0)]=_0x17539d=>{const _0x42535c=_0x406e28;if(!_0x17539d)return Date['now']();let _0x3ec11d=null;_0x3ec11d=_0x42535c(0x16c)==typeof _0x17539d?_0x17539d[_0x42535c(0x1aa)](/(\-|\_)/g,'/'):new Date(_0x17539d);let _0x574626=new Date(_0x3ec11d);return _0x42535c(0x178)===_0x574626[_0x42535c(0x16e)]()&&(_0x574626=new Date(_0x17539d)),_0x574626[_0x42535c(0x1bf)]();},this[_0x406e28(0x1c3)]=_0x1315fe=>_0x406e28(0x17b)===this[_0x406e28(0x19d)](_0x1315fe),this[_0x406e28(0x186)]=_0x3d5d4a=>_0x406e28(0x170)===this[_0x406e28(0x19d)](_0x3d5d4a),this[_0x406e28(0x165)]=_0x106ffc=>'Object'===this[_0x406e28(0x19d)](_0x106ffc),this[_0x406e28(0x195)]=_0x5e929c=>String(_0x5e929c)[_0x406e28(0x1cb)](0x2,'0'),this[_0x406e28(0x19b)]=({date:_0x29f955,hour:_0x2d93d2=0x1,type:_0x448462='before_lt_hour'})=>{const _0x80558c=_0x406e28;let _0x1208ce=this[_0x80558c(0x1b0)](_0x29f955);const _0x2141bd=new Date(_0x1208ce)[_0x80558c(0x1bf)](),_0x4b0840=Date[_0x80558c(0x1ca)](),_0x3acc17=_0x2141bd<_0x4b0840,_0x12a680=_0x2141bd>_0x4b0840;return'before_lt_hour'===_0x448462?_0x3acc17&&_0x2141bd+this['__an_hour']*_0x2d93d2>_0x4b0840:_0x80558c(0x1bb)===_0x448462?_0x3acc17&&_0x2141bd+this[_0x80558c(0x1ad)]*_0x2d93d2<_0x4b0840:'after_lt_hour'===_0x448462?_0x12a680&&_0x4b0840+this['__an_hour']*_0x2d93d2>_0x2141bd:'after_gt_hour'===_0x448462&&(_0x12a680&&_0x4b0840+this[_0x80558c(0x1ad)]*_0x2d93d2<_0x2141bd);},this[_0x406e28(0x18c)]=(_0x26f9fd,_0x253835=_0x406e28(0x1ab))=>{const _0x5a43c4=_0x406e28,_0x2c54d2=Math[_0x5a43c4(0x188)](Date[_0x5a43c4(0x1ca)]()-this[_0x5a43c4(0x1b0)](_0x26f9fd)),_0x50cd0a=this[_0x5a43c4(0x1a3)](_0x2c54d2);return'day'===_0x253835?this[_0x5a43c4(0x195)](_0x50cd0a[_0x5a43c4(0x18a)]):'hour'===_0x253835?this[_0x5a43c4(0x195)](_0x50cd0a[_0x5a43c4(0x17c)]):'minute'===_0x253835?this['__get_suffix2'](_0x50cd0a['minute']):_0x5a43c4(0x174)===_0x253835?this['__get_suffix2'](_0x50cd0a[_0x5a43c4(0x1c5)]):_0x5a43c4(0x19c);},this[_0x406e28(0x1b8)]=(_0x146de2=0x0,_0x58d3c0=t,_0xc3ce19=this[_0x406e28(0x1c8)],_0x32fefc=0x0,_0x5a0eef=Date[_0x406e28(0x1ca)]())=>{const _0x433d16=_0x406e28;if(_0x146de2<=0x0)return clearTimeout(this[_0x433d16(0x160)]),void(this[_0x433d16(0x160)]=null);clearTimeout(this[_0x433d16(0x160)]),this[_0x433d16(0x160)]=setTimeout(()=>{const _0x47259a=_0x433d16;_0x32fefc+=0x1,_0x146de2-=this[_0x47259a(0x1c8)];let _0x547f81=this[_0x47259a(0x1b7)](_0x146de2);_0x58d3c0({'remain':_0x146de2,'obj':_0x547f81});const _0x536a20=Date[_0x47259a(0x1ca)]()-(_0x5a0eef+_0x32fefc*this[_0x47259a(0x1c8)]);let _0x623480=this['__interval']-_0x536a20;_0x623480<0x0&&(_0x623480=0x0),this['__loop_time2'](_0x146de2,_0x58d3c0,_0x623480,_0x32fefc,_0x5a0eef);},_0xc3ce19);},this[_0x406e28(0x164)]=(_0x9376e9=0x0,_0x403f4b=t,_0x1a36ee=this[_0x406e28(0x1c8)],_0x1fb78d=0x0,_0xd8733f=Date['now']())=>{const _0xc0fcb0=_0x406e28;if(_0x9376e9<=0x0)return clearTimeout(this[_0xc0fcb0(0x193)]),void(this[_0xc0fcb0(0x193)]=null);clearTimeout(this[_0xc0fcb0(0x193)]),this[_0xc0fcb0(0x193)]=setTimeout(()=>{const _0x56f251=_0xc0fcb0;_0x1fb78d+=0x1,_0x9376e9-=this[_0x56f251(0x1c8)];let _0x38e5f9=this['format_num2date'](_0x9376e9);_0x403f4b({'remain':_0x9376e9,'obj':_0x38e5f9});const _0x1fada9=Date[_0x56f251(0x1ca)]()-(_0xd8733f+_0x1fb78d*this[_0x56f251(0x1c8)]);let _0x3a9657=this['__interval']-_0x1fada9;_0x3a9657<0x0&&(_0x3a9657=0x0),this[_0x56f251(0x164)](_0x9376e9,_0x403f4b,_0x3a9657,_0x1fb78d,_0xd8733f);},_0x1a36ee);},this[_0x406e28(0x18f)]=_0x230ba6=>new Promise(_0x3f3197=>setTimeout(_0x3f3197,_0x230ba6)),this[_0x406e28(0x1c1)]=(_0x2e0d15,_0x335f70='万')=>_0x2e0d15<0x2710?_0x2e0d15:(Math[_0x406e28(0x183)](_0x2e0d15/0x3e8)/0xa)[_0x406e28(0x1c2)](0x1)+_0x335f70,this['chunk']=(_0x58e915,_0x5bcdbe,_0x572adc=!0x1)=>{const _0x1fd428=_0x406e28;if(!Array[_0x1fd428(0x1c0)](_0x58e915)||_0x5bcdbe<=0x0)return[];const _0x5a9a20=[];for(let _0x3d556d=0x0;_0x3d556d<_0x58e915[_0x1fd428(0x1c9)];_0x3d556d+=_0x5bcdbe){const _0x3e5a17=_0x58e915[_0x1fd428(0x175)](_0x3d556d,_0x3d556d+_0x5bcdbe);_0x572adc?_0x3e5a17[_0x1fd428(0x1c9)]===_0x5bcdbe&&_0x5a9a20[_0x1fd428(0x1be)](_0x3e5a17):_0x5a9a20[_0x1fd428(0x1be)](_0x3e5a17);}return _0x5a9a20;},this[_0x406e28(0x1bc)]=(_0x2aac6d,_0x8e35d3=0xc8,_0x31a7c8=!0x1)=>{let _0x444fc6,_0x402270=null;return function(..._0x2c8de7){const _0x178015=_0x1a71,_0x461537=this,_0x44d996=_0x31a7c8&&!_0x402270;return _0x402270&&clearTimeout(_0x402270),_0x402270=setTimeout(()=>{_0x402270=null,_0x31a7c8||(_0x444fc6=_0x2aac6d['apply'](_0x461537,_0x2c8de7));},_0x8e35d3),_0x44d996&&(_0x444fc6=_0x2aac6d[_0x178015(0x1b2)](_0x461537,_0x2c8de7)),_0x444fc6;};},this[_0x406e28(0x1b6)]=(_0x2953ed,_0x3b51aa=!0x1)=>{const _0xa83316=_0x406e28;let _0xea7569=[];return _0x2953ed[_0xa83316(0x173)](_0x438788=>{const _0x4a4553=_0xa83316;_0x3b51aa&&Array[_0x4a4553(0x1c0)](_0x438788)?_0xea7569=_0xea7569['concat'](this[_0x4a4553(0x1b6)](_0x438788,_0x3b51aa)):_0xea7569[_0x4a4553(0x1be)](_0x438788);}),_0xea7569;},this['safeRequest']=(_0x55e025,_0x38a92f)=>_0x55e025&&_0x55e025['then']?_0x55e025[_0x406e28(0x196)]?_0x55e025[_0x406e28(0x179)](_0x1b5154=>[null,_0x1b5154])[_0x406e28(0x196)](_0x57082c=>(_0x38a92f&&Object[_0x406e28(0x1a2)](_0x57082c,_0x38a92f),[_0x57082c,void 0x0])):_0x55e025[_0x406e28(0x179)](_0xd74db5=>[null,_0xd74db5]):Promise['resolve']([null,_0x55e025]),this[_0x406e28(0x1af)]=_0x81d20a=>{const _0x49967c=_0x406e28,{str:_0x31049d,likeStr:_0x3e758b,separator:_0x5d5b93='-',caseSensitive:_0x5a7639=!0x1,symbol:_0x4d3a52=''}=_0x81d20a,_0x56ecae=(_0x3e758b||'')[_0x49967c(0x176)](_0x5d5b93),_0x54f746=(_0x31049d||'')['split'](_0x5d5b93);return _0x56ecae[_0x49967c(0x18e)]((_0x289b54,_0x10cff4)=>_0x289b54===_0x4d3a52||(_0x5a7639?_0x289b54===_0x54f746[_0x10cff4]:_0x54f746[_0x10cff4]&&_0x289b54[_0x49967c(0x16a)]()===_0x54f746[_0x10cff4][_0x49967c(0x16a)]()));},this['convertArr2Disable']=_0x1ca404=>{const _0x448b74=_0x406e28;var _0x43cd2d;const _0x363c45=[],{skuObjArr:_0x1093fc=[],skuArrField:_0x2c815a,checkedIndexArr:_0x1ddcb1=[],combineSkuArr:_0x10cbb2=[],disabledArr:_0x19ec77=[],combineSeparator:_0x5a5614='-',combineSkuField:_0x398be1='id'}=_0x1ca404;for(let _0x1d1bb5=0x0;_0x1d1bb5<_0x1093fc[_0x448b74(0x1c9)];_0x1d1bb5++){const _0x27baa4=_0x2c815a?(null===(_0x43cd2d=_0x1093fc[_0x1d1bb5])||void 0x0===_0x43cd2d?void 0x0:_0x43cd2d[_0x2c815a])||[]:_0x1093fc[_0x1d1bb5]||[];Array['isArray'](_0x363c45[_0x1d1bb5])||(_0x363c45[_0x1d1bb5]=[]);for(let _0x50e846=0x0;_0x50e846<_0x27baa4['length'];_0x50e846++){const _0x21236d=_0x1ddcb1['slice'](0x0,_0x1d1bb5),_0x171232=_0x1ddcb1[_0x448b74(0x175)](_0x1d1bb5+0x1),_0xc40c03=_0x21236d['concat'](_0x50e846)['concat'](_0x171232)[_0x448b74(0x1a9)](_0x5a5614),_0x4fba44=_0x10cbb2[_0x448b74(0x1b1)](_0x25279b=>this['checkPattern']({'str':_0x25279b[_0x398be1],'likeStr':_0xc40c03,'separator':_0x5a5614})),_0x14ed59=_0x19ec77[_0x448b74(0x168)](_0x28edee=>{const _0x4c85cc=_0x448b74,{field:_0xfd81b4,disabledFun:_0x39e841,disabledFieldValue:_0x38eea4}=_0x28edee,_0x1dda36=_0x4fba44[_0x4c85cc(0x180)](_0x22f2a1=>_0x39e841(_0x22f2a1));return{[_0xfd81b4]:_0x1dda36?_0x38eea4:!_0x38eea4};})[_0x448b74(0x197)]((_0x158629,_0x467dd1)=>Object['assign'](Object[_0x448b74(0x1a2)]({},_0x158629),_0x467dd1),{});_0x363c45[_0x1d1bb5][_0x50e846]=_0x14ed59;}}return _0x363c45;},this[_0x406e28(0x17d)]=_0x3d4319=>{const _0x218d97=_0x406e28;let _0x5e4f9a=null;const _0x5c6b66=new Proxy(_0x3d4319,{'construct':(_0x1371f0,_0x4d86e4)=>_0x5e4f9a||(_0x5e4f9a=_0x218d97(0x1b4)!=typeof Reflect&&Reflect[_0x218d97(0x181)]?Reflect[_0x218d97(0x181)](_0x1371f0,_0x4d86e4):new _0x1371f0(..._0x4d86e4),_0x5e4f9a)});return _0x5c6b66[_0x218d97(0x15e)][_0x218d97(0x17a)]=_0x5c6b66,_0x5c6b66;},this[_0x406e28(0x187)]=_0x1b5ec1=>{const _0x3925c7=_0x406e28,{list:_0x344b35,selected:_0x3e093c,selectedValueInListFieldName:_0x112660,childrenFieldName:_0x1f3ed7}=_0x1b5ec1;if(!_0x3e093c[_0x3925c7(0x1c9)])return;const _0x18f663=_0x3e093c[_0x3e093c['length']-0x1],_0x32011a=_0x148fd4=>{const _0x5753f6=_0x3925c7;for(const _0x1cf56d of _0x148fd4){if(_0x1cf56d[_0x112660]===_0x18f663)return _0x1cf56d;const _0x19d53c=_0x1cf56d[_0x1f3ed7];if(Array[_0x5753f6(0x1c0)](_0x19d53c)&&_0x19d53c['length']){const _0x31fbd2=_0x32011a(_0x19d53c);if(_0x31fbd2)return _0x31fbd2;}}};return _0x32011a(_0x344b35);},this[_0x406e28(0x177)]=(_0x180d31,_0x2a76b4=/\{([^}]+)\}/g)=>{const _0x2f58a5=_0x406e28;if(null==_0x180d31)return[];const _0x293b61=String(_0x180d31);if(!_0x293b61)return[];const _0x998cbc=_0x2a76b4 instanceof RegExp?_0x2a76b4:new RegExp(_0x2a76b4[_0x2f58a5(0x16b)]('/')&&_0x2a76b4[_0x2f58a5(0x1a7)]('/')?_0x2a76b4[_0x2f58a5(0x175)](0x1,-0x1):_0x2a76b4[_0x2f58a5(0x1aa)](/[.*+?^${}()|[\]\\]/g,_0x2f58a5(0x1bd)),'g'),_0x48ba6c=[];let _0x2d2166;for(;null!==(_0x2d2166=_0x998cbc[_0x2f58a5(0x1c7)](_0x293b61));){const _0x5e50f1=_0x2d2166[0x1]||_0x2d2166[0x0];_0x5e50f1&&!/^\d+$/[_0x2f58a5(0x1a1)](_0x5e50f1)&&_0x48ba6c[_0x2f58a5(0x1be)](_0x5e50f1);}return _0x48ba6c;},this['replaceTemplate']=(_0x94a747,_0x1a62f6,_0x489ff0=/\{([^}]+)\}/g)=>{const _0x268b46=_0x406e28,_0x506f4c=_0x489ff0 instanceof RegExp?_0x489ff0:new RegExp(_0x489ff0[_0x268b46(0x16b)]('/')&&_0x489ff0[_0x268b46(0x1a7)]('/')?_0x489ff0[_0x268b46(0x175)](0x1,-0x1):_0x489ff0[_0x268b46(0x1aa)](/[.*+?^${}()|[\]\\]/g,_0x268b46(0x1bd)),'g');if('function'==typeof _0x1a62f6){let _0x23fd73=0x0;return _0x94a747[_0x268b46(0x1aa)](_0x506f4c,(..._0x382200)=>{const [_0x651976,..._0x3cd32b]=_0x382200,_0x24f5d4=_0x1a62f6(_0x651976,_0x23fd73,..._0x3cd32b);return _0x23fd73++,_0x24f5d4;});}if(Array[_0x268b46(0x1c0)](_0x1a62f6)){let _0x39c85f=0x0;return _0x94a747['replace'](_0x506f4c,()=>{var _0x2341e3;return null!==(_0x2341e3=_0x1a62f6[_0x39c85f++])&&void 0x0!==_0x2341e3?_0x2341e3:'';});}return _0x94a747[_0x268b46(0x1aa)](_0x506f4c,_0x1a62f6);};}[_0x3058c2(0x169)](_0x570822=Date['now'](),_0x25faf9=0x1){const _0x5acecb=_0x3058c2;return this[_0x5acecb(0x19b)]({'date':_0x570822,'hour':_0x25faf9,'type':_0x5acecb(0x169)});}[_0x3058c2(0x1bb)](_0x150278=Date[_0x3058c2(0x1ca)](),_0x1cd152=0x1){const _0x5db9ef=_0x3058c2;return this[_0x5db9ef(0x19b)]({'date':_0x150278,'hour':_0x1cd152,'type':_0x5db9ef(0x1bb)});}[_0x3058c2(0x163)](_0x28b6fa=Date[_0x3058c2(0x1ca)](),_0xe6df2a=0x1){const _0x5e3c6f=_0x3058c2;return this[_0x5e3c6f(0x19b)]({'date':_0x28b6fa,'hour':_0xe6df2a,'type':_0x5e3c6f(0x163)});}['after_gt_hour'](_0x468b38=Date[_0x3058c2(0x1ca)](),_0x373039=0x1){const _0x5de667=_0x3058c2;return this['__compare_time']({'date':_0x468b38,'hour':_0x373039,'type':_0x5de667(0x191)});}[_0x3058c2(0x194)](_0x33985a){const _0xa7baf9=_0x3058c2,_0x42a86c=this[_0xa7baf9(0x1b0)](_0x33985a);return new Date()[_0xa7baf9(0x19f)]()===new Date(_0x42a86c)['getFullYear']();}[_0x3058c2(0x1a8)](_0x390fc7){const _0x33af41=_0x3058c2,_0x4ef303=this['__date2timestamp'](_0x390fc7),_0x439435=new Date(_0x4ef303),_0x5b2a67=this[_0x33af41(0x195)](_0x439435[_0x33af41(0x162)]()+0x1),_0x39d595=this[_0x33af41(0x195)](_0x439435['getDate']()),_0x13751a=this[_0x33af41(0x195)](_0x439435[_0x33af41(0x171)]()),_0x4355e8=this[_0x33af41(0x195)](_0x439435['getMinutes']()),_0xe902a6=this['__get_suffix2'](_0x439435['getSeconds']());return{'year':String(_0x439435[_0x33af41(0x19f)]()),'month':_0x5b2a67,'day':_0x39d595,'hour':_0x13751a,'minute':_0x4355e8,'seconds':_0xe902a6,'day_of_week':String(_0x439435[_0x33af41(0x16d)]())};}[_0x3058c2(0x192)]({num:_0x4894f9=0x0,decimal:_0x574b0c=0x1,divide:_0x5bd25f=0x2710,suffix:_0x58a424='万',show_suffix_always:_0x4216cc=!0x1}){const _0x43f25f=_0x3058c2;if(!_0x4894f9)return 0x0;if(_0x5bd25f<=0x0||_0x574b0c<0x0)return _0x4216cc?_0x4894f9+'\x20'+_0x58a424:_0x4894f9;const _0x55da25=parseFloat(_0x4894f9);if(_0x55da25<=0x0)return _0x4216cc?_0x55da25+'\x20'+_0x58a424:_0x55da25;if(_0x55da25>0x0&&_0x55da25<_0x5bd25f)return _0x4216cc?_0x55da25+'\x20'+_0x58a424:_0x55da25;const [_0x275a77,_0x789fb3]=(_0x55da25/_0x5bd25f)['toFixed'](_0x574b0c)[_0x43f25f(0x176)]('.');return _0x789fb3&&0x0!==parseFloat(_0x789fb3)?_0x275a77+'.'+_0x789fb3+'\x20'+_0x58a424:_0x275a77+'\x20'+_0x58a424;}[_0x3058c2(0x1a3)](_0x2251d4=Date[_0x3058c2(0x1ca)]()){const _0x580b4d=_0x3058c2,_0x48b614=parseInt(_0x2251d4/0x3e8/0x3c/0x3c/0x18%0x18),_0x27ddd9=parseInt(_0x2251d4/0x3e8/0x3c/0x3c%0x18),_0x26a04f=parseInt(_0x2251d4/0x3e8/0x3c%0x3c),_0x69d9fb=parseInt(_0x2251d4/0x3e8%0x3c);return{'day':this[_0x580b4d(0x195)](_0x48b614),'hour':this['__get_suffix2'](_0x27ddd9),'minute':this[_0x580b4d(0x195)](_0x26a04f),'seconds':this[_0x580b4d(0x195)](_0x69d9fb)};}[_0x3058c2(0x1ac)](_0x29155c=t,_0x380e93=0x3c){const _0x357037=_0x3058c2;let _0x161747;clearTimeout(_0x161747);let _0x53f708=0x3e8*_0x380e93,_0x2f1c1f=this[_0x357037(0x1a3)](_0x53f708),_0x384dfb={'remain':_0x53f708,'obj':_0x2f1c1f};_0x29155c(_0x384dfb);let _0x562b54=this;return function _0x506dd0(_0x4543cc=0x0,_0x3d3bc9=t,_0x5a9366=0x3e8,_0x4aa080=0x0,_0x1903f4=Date[_0x357037(0x1ca)]()){if(_0x4543cc<=0x0)return clearTimeout(_0x161747),_0x562b54=null,_0x161747=null,_0x53f708=null,_0x2f1c1f=null,_0x384dfb=null,void _0x3d3bc9({'remain':0x0,'obj':{'day':'00','hour':'00','minute':'00','seconds':'00'}});clearTimeout(_0x161747),_0x161747=setTimeout(()=>{const _0x32dac5=_0x1a71;_0x4aa080+=0x1,_0x4543cc-=0x3e8;let _0x560793=_0x562b54[_0x32dac5(0x1a3)](_0x4543cc);_0x3d3bc9({'remain':_0x4543cc,'obj':_0x560793});let _0x2b42a3=0x3e8-(Date['now']()-(_0x1903f4+0x3e8*_0x4aa080));_0x2b42a3<0x0&&(_0x2b42a3=0x0),_0x506dd0(_0x4543cc,_0x3d3bc9,_0x2b42a3,_0x4aa080,_0x1903f4);},_0x5a9366);}(_0x53f708,_0x29155c,0x3e8),()=>{clearTimeout(_0x161747),_0x562b54=null,_0x161747=null,_0x53f708=null,_0x2f1c1f=null,_0x384dfb=null;};}[_0x3058c2(0x1b7)](_0x3f3bcf=Date['now']()){const _0x19be85=_0x3058c2,_0x2e3271=Math[_0x19be85(0x183)](_0x3f3bcf/0x5265c00),_0x4b438=Math[_0x19be85(0x183)](_0x3f3bcf%0x5265c00/0x36ee80),_0xa5230b=Math[_0x19be85(0x183)](_0x3f3bcf%0x36ee80/0xea60),_0x263d35=Math['floor'](_0x3f3bcf%0xea60/0x3e8);return{'day':this[_0x19be85(0x195)](_0x2e3271),'hour':this[_0x19be85(0x195)](_0x4b438),'minute':this[_0x19be85(0x195)](_0xa5230b),'seconds':this[_0x19be85(0x195)](_0x263d35)};}['count_down'](_0x19d928=Date[_0x3058c2(0x1ca)](),_0x57575c=t){const _0x34dedb=_0x3058c2;let _0x2e5134;clearTimeout(_0x2e5134);let _0x44cb84=this,_0x130ac6=this[_0x34dedb(0x1b0)](_0x19d928),_0x509888=_0x130ac6-Date['now'](),_0x2a0556=this[_0x34dedb(0x1b7)](_0x509888),_0x31ff33={'remain':_0x509888,'obj':_0x2a0556};return _0x57575c(_0x31ff33),function _0x57b620(_0x3593ed=0x0,_0x5c7ee5=t,_0x25e44d=0x3e8,_0x5ce648=0x0,_0x33a283=Date['now']()){if(_0x3593ed<=0x0)return clearTimeout(_0x2e5134),_0x2e5134=null,_0x44cb84=null,_0x130ac6=null,_0x509888=null,_0x2a0556=null,_0x31ff33=null,void _0x5c7ee5({'remain':0x0,'obj':{'day':'00','hour':'00','minute':'00','seconds':'00'}});clearTimeout(_0x2e5134),_0x2e5134=setTimeout(()=>{_0x5ce648+=0x1,_0x3593ed-=0x3e8;let _0x266254=_0x44cb84['format_timestamp_to_day_hour_minute_second'](_0x3593ed);_0x5c7ee5({'remain':_0x3593ed,'obj':_0x266254});let _0x4581c2=0x3e8-(Date['now']()-(_0x33a283+0x3e8*_0x5ce648));_0x4581c2<0x0&&(_0x4581c2=0x0),_0x57b620(_0x3593ed,_0x5c7ee5,_0x4581c2,_0x5ce648,_0x33a283);},_0x25e44d);}(_0x509888,_0x57575c,0x3e8),()=>{clearTimeout(_0x2e5134),_0x2e5134=null,_0x44cb84=null,_0x130ac6=null,_0x509888=null,_0x2a0556=null,_0x31ff33=null;};}[_0x3058c2(0x19a)](_0x53e608=0x1,_0x1ed87b=Date[_0x3058c2(0x1ca)]()){return this['__date2timestamp'](_0x1ed87b)+0x3c*_0x53e608*0x3c*0x3e8;}[_0x3058c2(0x1b5)](_0x2b04a2,_0x435f99=0x2){const _0x3f5187=_0x3058c2;try{const _0x396f7a=parseFloat(_0x2b04a2),_0x4e60f8=_0x396f7a['toString']()[_0x3f5187(0x176)]('.');let _0xb3fa8d=!0x1,_0x35f418='';_0x4e60f8[0x1]&&(_0x35f418=_0x4e60f8[0x1][_0x3f5187(0x1aa)](/0+$/,''),_0xb3fa8d=_0x35f418['length']>0x0);let _0x53e432=0x0;_0xb3fa8d&&(_0x53e432=void 0x0!==_0x435f99?_0x435f99:_0x35f418[_0x3f5187(0x1c9)]);const _0x537959=_0x396f7a['toFixed'](_0x53e432)[_0x3f5187(0x176)]('.'),_0x455bfb=(_0x537959[0x0]||'')[_0x3f5187(0x1aa)](/(\d)(?=(\d{3})+$)/g,_0x3f5187(0x18d));return _0x537959[0x1]?_0x455bfb+'.'+_0x537959[0x1]:_0x455bfb;}catch(_0x49bdd2){return 0x0;}}[_0x3058c2(0x1a5)](_0x465f85){const _0x14f5c1=_0x3058c2;var _0x336fb7;try{const _0x46f40=(null===(_0x336fb7=_0x465f85['toString']()[_0x14f5c1(0x176)]('.')[0x1])||void 0x0===_0x336fb7?void 0x0:_0x336fb7[_0x14f5c1(0x1c9)])||0x0;let _0x33db4a=_0x465f85[_0x14f5c1(0x16e)]()[_0x14f5c1(0x1aa)](/\d+/,function(_0x2b9a61){const _0x5e9387=_0x14f5c1;return _0x2b9a61[_0x5e9387(0x1aa)](/(\d)(?=(\d{3})+$)/g,function(_0x3e0726){return _0x3e0726+',';});});return _0x46f40&&(_0x33db4a=_0x33db4a[_0x14f5c1(0x1aa)](/\d+\.\d+/,function(_0x3d62e1){const _0xc3c4c5=_0x14f5c1;return _0x3d62e1[_0xc3c4c5(0x1aa)](/(\d)(?=(\d{3})+\.)/g,function(_0x2ea92b){return _0x2ea92b+',';});})),_0x33db4a;}catch(_0x4e6033){return 0x0;}}[_0x3058c2(0x15f)](_0x851bfa){const _0x5d6a09=_0x3058c2;return null==_0x851bfa||(_0x5d6a09(0x17f)===this[_0x5d6a09(0x19d)](_0x851bfa)?!_0x851bfa['trim']():_0x5d6a09(0x170)===this[_0x5d6a09(0x19d)](_0x851bfa)?!_0x851bfa[_0x5d6a09(0x1c9)]:'Object'===this['__get_type'](_0x851bfa)&&!Object[_0x5d6a09(0x198)](_0x851bfa)[_0x5d6a09(0x1c9)]);}[_0x3058c2(0x1b3)](_0x78bd69,_0x2bcfed=0x1){const _0x464038=_0x3058c2;let _0x30d851;if(!this[_0x464038(0x1c3)](_0x78bd69))return()=>{clearTimeout(_0x30d851),_0x30d851=void 0x0;};const _0x1560d4=0x3c*_0x2bcfed*0x3e8,_0x48e851=()=>{_0x78bd69(),_0x30d851=setTimeout(_0x48e851,_0x1560d4);};return _0x48e851(),()=>{clearTimeout(_0x30d851),_0x30d851=void 0x0;};}[_0x3058c2(0x1ba)](_0x8c6eb3,_0x43c896,_0x1ded86=!0x1){const _0x32d302=_0x3058c2,_0x1a4db7=this[_0x32d302(0x186)](_0x8c6eb3)||this[_0x32d302(0x165)](_0x8c6eb3),_0x3e51d9=this[_0x32d302(0x186)](_0x43c896)||this['__is_object'](_0x43c896);if(!_0x1a4db7||!_0x3e51d9)return _0x1ded86?_0x8c6eb3===_0x43c896:_0x8c6eb3==_0x43c896;const _0x1c8325=Object['keys'](_0x8c6eb3),_0x3f00e3=Object[_0x32d302(0x198)](_0x43c896);return 0x0===_0x1c8325[_0x32d302(0x1c9)]&&0x0===_0x3f00e3['length']||_0x1c8325['length']===_0x3f00e3[_0x32d302(0x1c9)]&&_0x1c8325[_0x32d302(0x18e)](_0x4a6ada=>{const _0x3a54cb=_0x32d302,_0x4bfb73=this[_0x3a54cb(0x186)](_0x8c6eb3[_0x4a6ada])||this[_0x3a54cb(0x165)](_0x8c6eb3[_0x4a6ada]),_0x9b59a=this[_0x3a54cb(0x186)](_0x43c896[_0x4a6ada])||this['__is_object'](_0x43c896[_0x4a6ada]);return _0x4bfb73&&_0x9b59a?this[_0x3a54cb(0x1ba)](_0x8c6eb3[_0x4a6ada],_0x43c896[_0x4a6ada],_0x1ded86):_0x1ded86?_0x8c6eb3[_0x4a6ada]===_0x43c896[_0x4a6ada]:_0x8c6eb3[_0x4a6ada]==_0x43c896[_0x4a6ada];});}[_0x3058c2(0x189)](_0xb61264,_0x2f5036,_0x4d0112=!0x1){const _0xa58896=_0x3058c2,_0x3defb1=this['__is_array'](_0xb61264)||this[_0xa58896(0x165)](_0xb61264),_0x374d8c=this[_0xa58896(0x186)](_0x2f5036)||this[_0xa58896(0x165)](_0x2f5036);if(!_0x3defb1||!_0x374d8c)return _0x4d0112?_0xb61264===_0x2f5036:_0xb61264==_0x2f5036;const _0x9c7a9d=Object[_0xa58896(0x198)](_0xb61264),_0x2c88a5=Object[_0xa58896(0x198)](_0x2f5036);return 0x0===_0x2c88a5['length']||!(0x0===_0x9c7a9d[_0xa58896(0x1c9)]||_0x9c7a9d[_0xa58896(0x1c9)]<_0x2c88a5[_0xa58896(0x1c9)])&&_0x2c88a5[_0xa58896(0x18e)](_0xfb38f8=>{const _0x23a287=_0xa58896;if(_0x9c7a9d[_0x23a287(0x17e)](_0xfb38f8)<0x0)return!0x1;const _0x16d62c=this[_0x23a287(0x186)](_0xb61264[_0xfb38f8])||this[_0x23a287(0x165)](_0xb61264[_0xfb38f8]),_0x15fe47=this[_0x23a287(0x186)](_0x2f5036[_0xfb38f8])||this[_0x23a287(0x165)](_0x2f5036[_0xfb38f8]);return _0x16d62c&&_0x15fe47?this['contains'](_0xb61264[_0xfb38f8],_0x2f5036[_0xfb38f8],_0x4d0112):_0x4d0112?_0xb61264[_0xfb38f8]===_0x2f5036[_0xfb38f8]:_0xb61264[_0xfb38f8]==_0x2f5036[_0xfb38f8];});}}();function _0xb26f(){const _0x29577f=['__an_hour','2080706iNWIDZ','checkPattern','__date2timestamp','filter','apply','poll','undefined','format_thousandth','flatten','format_timestamp_to_day_hour_minute_second','__loop_time2','1672BQcizr','is_equal','before_gt_hour','debounce','\x5c$&','push','getTime','isArray','roxFormatThousandth','toFixed','__is_function','8802056WCUexS','seconds','table','exec','__interval','length','now','padStart','log','bind','prototype','is_empty','__ticker2','20dwfpvg','getMonth','after_lt_hour','__loop_time','__is_object','console','{}.constructor(\x22return\x20this\x22)(\x20)','map','before_lt_hour','toLowerCase','startsWith','string','getDay','toString','exception','Array','getHours','2762039gCbnnY','forEach','second','slice','split','pickList','Invalid\x20Date','then','constructor','Function','hour','createSingleTon','indexOf','String','some','construct','trace','floor','return\x20(function()\x20','warn','__is_array','findDeepValue','abs','contains','day','36aUPDFR','offset_time','$1,','every','sleep','2099385dNFSvR','after_gt_hour','format_count','__ticker','is_current_year','__get_suffix2','catch','reduce','keys','2283mmNFpj','add','__compare_time','The\x20second\x20parameter\x20has\x20an\x20error','__get_type','698780ZrBRmD','getFullYear','__proto__','test','assign','format_num2date','29698jKKGnC','format_thousandth_with_same_dotlen','call','endsWith','get_time_obj','join','replace','minute','count_down_by_remain_seconds'];_0xb26f=function(){return _0x29577f;};return _0xb26f();}export{e as default,e as helper};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ interface FindDeepValueOptions<T, K> {
|
|
|
4
4
|
selectedValueInListFieldName: K;
|
|
5
5
|
childrenFieldName: K;
|
|
6
6
|
}
|
|
7
|
+
type ReplacementType = string | string[] | ((match: string, index: number, ...groups: string[]) => string);
|
|
7
8
|
|
|
8
9
|
type DateType = number | string | Date;
|
|
9
10
|
type CompareType = "before_lt_hour" | "before_gt_hour" | "after_lt_hour" | "after_gt_hour";
|
|
@@ -110,6 +111,8 @@ declare class Helper {
|
|
|
110
111
|
}[][];
|
|
111
112
|
createSingleTon: <T extends Constructor>(className: T) => T;
|
|
112
113
|
findDeepValue: <T extends Record<string, any>, K extends Extract<keyof T, string>>(options: FindDeepValueOptions<T, K>) => T | undefined;
|
|
114
|
+
pickList: (urlTemplate: string | number | null | undefined, pattern?: RegExp | string) => string[];
|
|
115
|
+
replaceTemplate: (template: string, replacement: ReplacementType, pattern?: RegExp | string) => string;
|
|
113
116
|
}
|
|
114
117
|
declare const helper: Helper;
|
|
115
118
|
|