UNPKG

teko-file-history

Version:

File history component for Teko system

1 lines 155 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("antd"),t=require("react"),r=require("dayjs"),n=require("antd/es/typography/Paragraph"),o=require("antd/es/typography/Text");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var u=a(t),l=i(t),s=a(r),c=a(n),f=a(o),d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};function p(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function h(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function u(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}l((n=n.apply(e,t||[])).next())}))}function m(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function y(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var g,v={DEV:"https://files.dev.tekoapis.net",STAG:"https://files.stage.tekoapis.net",PROD:"https://files.tekoapis.com"},b={DEV:"https://fps-bff.dev.tekoapis.net",STAG:"https://fps-bff.stag.tekoapis.net",PROD:"https://fps-bff.tekoapis.com"},w={DEV:"https://loyalty.develop.tekoapis.net",STAG:"https://loyalty.stage.tekoapis.net",PROD:"https://loyalty.tekoapis.com"},E={extension:".xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},S={extension:".pdf",mimeType:"application/pdf"},T=[{extension:".xls",mimeType:"application/vnd.ms-excel"},E,{extension:".csv",mimeType:"text/csv"},S],O={page:1,pageSize:10},k="".concat("DD/MM/YYYY"," ").concat("HH:mm:ss"),A={INIT:{code:"INIT",name:"Pending",color:"#FF7E17",colorCode:"orange"},PROCESSING:{code:"PROCESSING",name:"Processing",color:"#1954ADFF",colorCode:"blue"},FINISHED:{code:"FINISHED",name:"Finished",color:"#259B24",colorCode:"green"},FAILED:{code:"FAILED",name:"Failed",color:"#C1051C",colorCode:"red"}},x={clientId:0,env:"",language:"vi",classNames:{displayFlex:"d-flex",flexColumn:"flex-column",gapBase:"gap-base",gapHalf:"gap-half",marginBottomZero:"mb-0",marginTopHalf:"mt-half",marginHorizontalBase:"mx-base",paddingHorizontalBase:"px-base",paddingVerticalHalf:"py-half",textErrorColor:"text-error",textPrimaryColor:"text-primary"},tableProps:{isShowDebug:!0,isShowReload:!0,isShowCreatedBy:!0},uploaderProps:{importFileTemplateUrl:"",isShowUploader:!0,uploaderPosition:"right",maxFileSize:5,inputFileTypes:["xlsx"]},shouldReload:!1,setShouldReload:function(){},translate:function(e){return e}},C=t.createContext(x),R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},F={exports:{}},P=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},j=P,D=Object.prototype.toString,I=(g=Object.create(null),function(e){var t=D.call(e);return g[t]||(g[t]=t.slice(8,-1).toLowerCase())});function N(e){return e=e.toLowerCase(),function(t){return I(t)===e}}function U(e){return Array.isArray(e)}function _(e){return void 0===e}var B=N("ArrayBuffer");function M(e){return null!==e&&"object"==typeof e}function L(e){if("object"!==I(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var V=N("Date"),z=N("File"),H=N("Blob"),q=N("FileList");function Y(e){return"[object Function]"===D.call(e)}var W=N("URLSearchParams");function G(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),U(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var J,$=(J="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return J&&e instanceof J}),K={isArray:U,isArrayBuffer:B,isBuffer:function(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||D.call(e)===t||Y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&B(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:M,isPlainObject:L,isUndefined:_,isDate:V,isFile:z,isBlob:H,isFunction:Y,isStream:function(e){return M(e)&&Y(e.pipe)},isURLSearchParams:W,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:G,merge:function e(){var t={};function r(r,n){L(t[n])&&L(r)?t[n]=e(t[n],r):L(r)?t[n]=e({},r):U(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)G(arguments[n],r);return t},extend:function(e,t,r){return G(t,(function(t,n){e[n]=r&&"function"==typeof t?j(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,a,i={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)i[a=n[o]]||(t[a]=e[a],i[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:I,kindOfTest:N,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(_(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:$,isFileList:q},Z=K;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Q=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Z.isURLSearchParams(t))n=t.toString();else{var o=[];Z.forEach(t,(function(e,t){null!=e&&(Z.isArray(e)?t+="[]":e=[e],Z.forEach(e,(function(e){Z.isDate(e)?e=e.toISOString():Z.isObject(e)&&(e=JSON.stringify(e)),o.push(X(t)+"="+X(e))})))})),n=o.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},ee=K;function te(){this.handlers=[]}te.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},te.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},te.prototype.forEach=function(e){ee.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var re=te,ne="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function oe(){throw new Error("setTimeout has not been defined")}function ae(){throw new Error("clearTimeout has not been defined")}var ie=oe,ue=ae;function le(e){if(ie===setTimeout)return setTimeout(e,0);if((ie===oe||!ie)&&setTimeout)return ie=setTimeout,setTimeout(e,0);try{return ie(e,0)}catch(t){try{return ie.call(null,e,0)}catch(t){return ie.call(this,e,0)}}}"function"==typeof ne.setTimeout&&(ie=setTimeout),"function"==typeof ne.clearTimeout&&(ue=clearTimeout);var se,ce=[],fe=!1,de=-1;function pe(){fe&&se&&(fe=!1,se.length?ce=se.concat(ce):de=-1,ce.length&&he())}function he(){if(!fe){var e=le(pe);fe=!0;for(var t=ce.length;t;){for(se=ce,ce=[];++de<t;)se&&se[de].run();de=-1,t=ce.length}se=null,fe=!1,function(e){if(ue===clearTimeout)return clearTimeout(e);if((ue===ae||!ue)&&clearTimeout)return ue=clearTimeout,clearTimeout(e);try{return ue(e)}catch(t){try{return ue.call(null,e)}catch(t){return ue.call(this,e)}}}(e)}}function me(e,t){this.fun=e,this.array=t}me.prototype.run=function(){this.fun.apply(null,this.array)};function ye(){}var ge=ye,ve=ye,be=ye,we=ye,Ee=ye,Se=ye,Te=ye;var Oe=ne.performance||{},ke=Oe.now||Oe.mozNow||Oe.msNow||Oe.oNow||Oe.webkitNow||function(){return(new Date).getTime()};var Ae=new Date;var xe={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ce.push(new me(e,t)),1!==ce.length||fe||le(he)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ge,addListener:ve,once:be,off:we,removeListener:Ee,removeAllListeners:Se,emit:Te,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*ke.call(Oe),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ae)/1e3}},Ce=K,Re=K;function Fe(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Re.inherits(Fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Pe=Fe.prototype,je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){je[e]={value:e}})),Object.defineProperties(Fe,je),Object.defineProperty(Pe,"isAxiosError",{value:!0}),Fe.from=function(e,t,r,n,o,a){var i=Object.create(Pe);return Re.toFlatObject(e,i,(function(e){return e!==Error.prototype})),Fe.call(i,e.message,t,r,n,o),i.name=e.name,a&&Object.assign(i,a),i};var De=Fe,Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ne=[],Ue=[],_e="undefined"!=typeof Uint8Array?Uint8Array:Array,Be=!1;function Me(){Be=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Ne[t]=e[t],Ue[e.charCodeAt(t)]=t;Ue["-".charCodeAt(0)]=62,Ue["_".charCodeAt(0)]=63}function Le(e,t,r){for(var n,o,a=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(Ne[(o=n)>>18&63]+Ne[o>>12&63]+Ne[o>>6&63]+Ne[63&o]);return a.join("")}function Ve(e){var t;Be||Me();for(var r=e.length,n=r%3,o="",a=[],i=16383,u=0,l=r-n;u<l;u+=i)a.push(Le(e,u,u+i>l?l:u+i));return 1===n?(t=e[r-1],o+=Ne[t>>2],o+=Ne[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=Ne[t>>10],o+=Ne[t>>4&63],o+=Ne[t<<2&63],o+="="),a.push(o),a.join("")}function ze(e,t,r,n,o){var a,i,u=8*o-n-1,l=(1<<u)-1,s=l>>1,c=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=u;c>0;a=256*a+e[t+f],f+=d,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=256*i+e[t+f],f+=d,c-=8);if(0===a)a=1-s;else{if(a===l)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,n),a-=s}return(p?-1:1)*i*Math.pow(2,a-n)}function He(e,t,r,n,o,a){var i,u,l,s=8*a-o-1,c=(1<<s)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(i++,l/=2),i+f>=c?(u=0,i=c):i+f>=1?(u=(t*l-1)*Math.pow(2,o),i+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+p]=255&u,p+=h,u/=256,o-=8);for(i=i<<o|u,s+=o;s>0;e[r+p]=255&i,p+=h,i/=256,s-=8);e[r+p-h]|=128*m}var qe={}.toString,Ye=Array.isArray||function(e){return"[object Array]"==qe.call(e)};function We(){return Je.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ge(e,t){if(We()<t)throw new RangeError("Invalid typed array length");return Je.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Je.prototype:(null===e&&(e=new Je(t)),e.length=t),e}function Je(e,t,r){if(!(Je.TYPED_ARRAY_SUPPORT||this instanceof Je))return new Je(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Ze(this,e)}return $e(this,e,t,r)}function $e(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);Je.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Je.prototype:e=Xe(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Je.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|tt(t,r);e=Ge(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(et(t)){var r=0|Qe(t.length);return 0===(e=Ge(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Ge(e,0):Xe(e,t);if("Buffer"===t.type&&Ye(t.data))return Xe(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ke(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Ze(e,t){if(Ke(t),e=Ge(e,t<0?0:0|Qe(t)),!Je.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Xe(e,t){var r=t.length<0?0:0|Qe(t.length);e=Ge(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function Qe(e){if(e>=We())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+We().toString(16)+" bytes");return 0|e}function et(e){return!(null==e||!e._isBuffer)}function tt(e,t){if(et(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ct(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Rt(e).length;default:if(n)return Ct(e).length;t=(""+t).toLowerCase(),n=!0}}function rt(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return gt(this,t,r);case"utf8":case"utf-8":return pt(this,t,r);case"ascii":return mt(this,t,r);case"latin1":case"binary":return yt(this,t,r);case"base64":return dt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function nt(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function ot(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Je.from(t,n)),et(t))return 0===t.length?-1:at(e,t,r,n,o);if("number"==typeof t)return t&=255,Je.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):at(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function at(e,t,r,n,o){var a,i=1,u=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,u/=2,l/=2,r/=2}function s(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(a=r;a<u;a++)if(s(e,a)===s(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*i}else-1!==c&&(a-=a-c),c=-1}else for(r+l>u&&(r=u-l),a=r;a>=0;a--){for(var f=!0,d=0;d<l;d++)if(s(e,a+d)!==s(t,d)){f=!1;break}if(f)return a}return-1}function it(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var i=0;i<n;++i){var u=parseInt(t.substr(2*i,2),16);if(isNaN(u))return i;e[r+i]=u}return i}function ut(e,t,r,n){return Ft(Ct(t,e.length-r),e,r,n)}function lt(e,t,r,n){return Ft(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function st(e,t,r,n){return lt(e,t,r,n)}function ct(e,t,r,n){return Ft(Rt(t),e,r,n)}function ft(e,t,r,n){return Ft(function(e,t){for(var r,n,o,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o=r%256,a.push(o),a.push(n);return a}(t,e.length-r),e,r,n)}function dt(e,t,r){return 0===t&&r===e.length?Ve(e):Ve(e.slice(t,r))}function pt(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var a,i,u,l,s=e[o],c=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=r)switch(f){case 1:s<128&&(c=s);break;case 2:128==(192&(a=e[o+1]))&&(l=(31&s)<<6|63&a)>127&&(c=l);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(l=(15&s)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[o+1],i=e[o+2],u=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&u)&&(l=(15&s)<<18|(63&a)<<12|(63&i)<<6|63&u)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}return function(e){var t=e.length;if(t<=ht)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=ht));return r}(n)}Je.TYPED_ARRAY_SUPPORT=void 0===ne.TYPED_ARRAY_SUPPORT||ne.TYPED_ARRAY_SUPPORT,We(),Je.poolSize=8192,Je._augment=function(e){return e.__proto__=Je.prototype,e},Je.from=function(e,t,r){return $e(null,e,t,r)},Je.TYPED_ARRAY_SUPPORT&&(Je.prototype.__proto__=Uint8Array.prototype,Je.__proto__=Uint8Array),Je.alloc=function(e,t,r){return function(e,t,r,n){return Ke(t),t<=0?Ge(e,t):void 0!==r?"string"==typeof n?Ge(e,t).fill(r,n):Ge(e,t).fill(r):Ge(e,t)}(null,e,t,r)},Je.allocUnsafe=function(e){return Ze(null,e)},Je.allocUnsafeSlow=function(e){return Ze(null,e)},Je.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Pt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Pt(e.slice(0,0))}(e))},Je.compare=function(e,t){if(!et(e)||!et(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Je.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Je.concat=function(e,t){if(!Ye(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Je.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Je.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!et(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},Je.byteLength=tt,Je.prototype._isBuffer=!0,Je.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)nt(this,t,t+1);return this},Je.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)nt(this,t,t+3),nt(this,t+1,t+2);return this},Je.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)nt(this,t,t+7),nt(this,t+1,t+6),nt(this,t+2,t+5),nt(this,t+3,t+4);return this},Je.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?pt(this,0,e):rt.apply(this,arguments)},Je.prototype.equals=function(e){if(!et(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Je.compare(this,e)},Je.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Je.prototype.compare=function(e,t,r,n,o){if(!et(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),u=Math.min(a,i),l=this.slice(n,o),s=e.slice(t,r),c=0;c<u;++c)if(l[c]!==s[c]){a=l[c],i=s[c];break}return a<i?-1:i<a?1:0},Je.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Je.prototype.indexOf=function(e,t,r){return ot(this,e,t,r,!0)},Je.prototype.lastIndexOf=function(e,t,r){return ot(this,e,t,r,!1)},Je.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return it(this,e,t,r);case"utf8":case"utf-8":return ut(this,e,t,r);case"ascii":return lt(this,e,t,r);case"latin1":case"binary":return st(this,e,t,r);case"base64":return ct(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ht=4096;function mt(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function yt(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function gt(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",a=t;a<r;++a)o+=xt(e[a]);return o}function vt(e,t,r){for(var n=e.slice(t,r),o="",a=0;a<n.length;a+=2)o+=String.fromCharCode(n[a]+256*n[a+1]);return o}function bt(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function wt(e,t,r,n,o,a){if(!et(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Et(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-r,2);o<a;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function St(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-r,4);o<a;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function Tt(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ot(e,t,r,n,o){return o||Tt(e,0,r,4),He(e,t,r,n,23,4),r+4}function kt(e,t,r,n,o){return o||Tt(e,0,r,8),He(e,t,r,n,52,8),r+8}Je.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Je.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Je.prototype;else{var o=t-e;r=new Je(o,void 0);for(var a=0;a<o;++a)r[a]=this[a+e]}return r},Je.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||bt(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n},Je.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||bt(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Je.prototype.readUInt8=function(e,t){return t||bt(e,1,this.length),this[e]},Je.prototype.readUInt16LE=function(e,t){return t||bt(e,2,this.length),this[e]|this[e+1]<<8},Je.prototype.readUInt16BE=function(e,t){return t||bt(e,2,this.length),this[e]<<8|this[e+1]},Je.prototype.readUInt32LE=function(e,t){return t||bt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Je.prototype.readUInt32BE=function(e,t){return t||bt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Je.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||bt(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Je.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||bt(e,t,this.length);for(var n=t,o=1,a=this[e+--n];n>0&&(o*=256);)a+=this[e+--n]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},Je.prototype.readInt8=function(e,t){return t||bt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Je.prototype.readInt16LE=function(e,t){t||bt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Je.prototype.readInt16BE=function(e,t){t||bt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Je.prototype.readInt32LE=function(e,t){return t||bt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Je.prototype.readInt32BE=function(e,t){return t||bt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Je.prototype.readFloatLE=function(e,t){return t||bt(e,4,this.length),ze(this,e,!0,23,4)},Je.prototype.readFloatBE=function(e,t){return t||bt(e,4,this.length),ze(this,e,!1,23,4)},Je.prototype.readDoubleLE=function(e,t){return t||bt(e,8,this.length),ze(this,e,!0,52,8)},Je.prototype.readDoubleBE=function(e,t){return t||bt(e,8,this.length),ze(this,e,!1,52,8)},Je.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||wt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},Je.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||wt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},Je.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,1,255,0),Je.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Je.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,2,65535,0),Je.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Et(this,e,t,!0),t+2},Je.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,2,65535,0),Je.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Et(this,e,t,!1),t+2},Je.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,4,4294967295,0),Je.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):St(this,e,t,!0),t+4},Je.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,4,4294967295,0),Je.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):St(this,e,t,!1),t+4},Je.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);wt(this,e,t,r,o-1,-o)}var a=0,i=1,u=0;for(this[t]=255&e;++a<r&&(i*=256);)e<0&&0===u&&0!==this[t+a-1]&&(u=1),this[t+a]=(e/i|0)-u&255;return t+r},Je.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);wt(this,e,t,r,o-1,-o)}var a=r-1,i=1,u=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===u&&0!==this[t+a+1]&&(u=1),this[t+a]=(e/i|0)-u&255;return t+r},Je.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,1,127,-128),Je.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Je.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,2,32767,-32768),Je.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Et(this,e,t,!0),t+2},Je.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,2,32767,-32768),Je.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Et(this,e,t,!1),t+2},Je.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,4,2147483647,-2147483648),Je.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):St(this,e,t,!0),t+4},Je.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||wt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Je.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):St(this,e,t,!1),t+4},Je.prototype.writeFloatLE=function(e,t,r){return Ot(this,e,t,!0,r)},Je.prototype.writeFloatBE=function(e,t,r){return Ot(this,e,t,!1,r)},Je.prototype.writeDoubleLE=function(e,t,r){return kt(this,e,t,!0,r)},Je.prototype.writeDoubleBE=function(e,t,r){return kt(this,e,t,!1,r)},Je.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,a=n-r;if(this===e&&r<t&&t<n)for(o=a-1;o>=0;--o)e[o+t]=this[o+r];else if(a<1e3||!Je.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},Je.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Je.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var i=et(e)?e:Ct(new Je(e,n).toString()),u=i.length;for(a=0;a<r-t;++a)this[a+t]=i[a%u]}return this};var At=/[^+\/0-9A-Za-z-_]/g;function xt(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ct(e,t){var r;t=t||1/0;for(var n=e.length,o=null,a=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Rt(e){return function(e){var t,r,n,o,a,i;Be||Me();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[u-2]?2:"="===e[u-1]?1:0,i=new _e(3*u/4-a),n=a>0?u-4:u;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Ue[e.charCodeAt(t)]<<18|Ue[e.charCodeAt(t+1)]<<12|Ue[e.charCodeAt(t+2)]<<6|Ue[e.charCodeAt(t+3)],i[l++]=o>>16&255,i[l++]=o>>8&255,i[l++]=255&o;return 2===a?(o=Ue[e.charCodeAt(t)]<<2|Ue[e.charCodeAt(t+1)]>>4,i[l++]=255&o):1===a&&(o=Ue[e.charCodeAt(t)]<<10|Ue[e.charCodeAt(t+1)]<<4|Ue[e.charCodeAt(t+2)]>>2,i[l++]=o>>8&255,i[l++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(At,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ft(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Pt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var jt=K;var Dt=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":jt.isDate(e)?e.toISOString():jt.isArrayBuffer(e)||jt.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Je.from(e):e}return function e(o,a){if(jt.isPlainObject(o)||jt.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+a);r.push(o),jt.forEach(o,(function(r,o){if(!jt.isUndefined(r)){var i,u=a?a+"."+o:o;if(r&&!a&&"object"==typeof r)if(jt.endsWith(o,"{}"))r=JSON.stringify(r);else if(jt.endsWith(o,"[]")&&(i=jt.toArray(r)))return void i.forEach((function(e){!jt.isUndefined(e)&&t.append(u,n(e))}));e(r,u)}})),r.pop()}else t.append(a,n(o))}(e),t},It=De,Nt=K,Ut=Nt.isStandardBrowserEnv()?{write:function(e,t,r,n,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),Nt.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Nt.isString(n)&&i.push("path="+n),Nt.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},_t=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Bt=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Mt=function(e,t){return e&&!_t(t)?Bt(e,t):t},Lt=K,Vt=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],zt=K,Ht=zt.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=zt.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},qt=De;function Yt(e){qt.call(this,null==e?"canceled":e,qt.ERR_CANCELED),this.name="CanceledError"}K.inherits(Yt,qt,{__CANCEL__:!0});var Wt=Yt,Gt=K,Jt=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new It("Request failed with status code "+r.status,[It.ERR_BAD_REQUEST,It.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)},$t=Ut,Kt=Q,Zt=Mt,Xt=function(e){var t,r,n,o={};return e?(Lt.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Lt.trim(e.substr(0,n)).toLowerCase(),r=Lt.trim(e.substr(n+1)),t){if(o[t]&&Vt.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},Qt=Ht,er=Ie,tr=De,rr=Wt,nr=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},or=function(e){return new Promise((function(t,r){var n,o=e.data,a=e.headers,i=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}Gt.isFormData(o)&&Gt.isStandardBrowserEnv()&&delete a["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(s+":"+c)}var f=Zt(e.baseURL,e.url);function d(){if(l){var n="getAllResponseHeaders"in l?Xt(l.getAllResponseHeaders()):null,o={data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l};Jt((function(e){t(e),u()}),(function(e){r(e),u()}),o),l=null}}if(l.open(e.method.toUpperCase(),Kt(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new tr("Request aborted",tr.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new tr("Network Error",tr.ERR_NETWORK,e,l,l)),l=null},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||er;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new tr(t,n.clarifyTimeoutError?tr.ETIMEDOUT:tr.ECONNABORTED,e,l)),l=null},Gt.isStandardBrowserEnv()){var p=(e.withCredentials||Qt(f))&&e.xsrfCookieName?$t.read(e.xsrfCookieName):void 0;p&&(a[e.xsrfHeaderName]=p)}"setRequestHeader"in l&&Gt.forEach(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:l.setRequestHeader(t,e)})),Gt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){l&&(r(!e||e&&e.type?new rr:e),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||(o=null);var h=nr(f);h&&-1===["http","https","file"].indexOf(h)?r(new tr("Unsupported protocol "+h+":",tr.ERR_BAD_REQUEST,e)):l.send(o)}))},ar=K,ir=function(e,t){Ce.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},ur=De,lr=Dt,sr={"Content-Type":"application/x-www-form-urlencoded"};function cr(e,t){!ar.isUndefined(e)&&ar.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var fr,dr={transitional:Ie,adapter:(("undefined"!=typeof XMLHttpRequest||"[object process]"===Object.prototype.toString.call(xe))&&(fr=or),fr),transformRequest:[function(e,t){if(ir(t,"Accept"),ir(t,"Content-Type"),ar.isFormData(e)||ar.isArrayBuffer(e)||ar.isBuffer(e)||ar.isStream(e)||ar.isFile(e)||ar.isBlob(e))return e;if(ar.isArrayBufferView(e))return e.buffer;if(ar.isURLSearchParams(e))return cr(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=ar.isObject(e),o=t&&t["Content-Type"];if((r=ar.isFileList(e))||n&&"multipart/form-data"===o){var a=this.env&&this.env.FormData;return lr(r?{"files[]":e}:e,a&&new a)}return n||"application/json"===o?(cr(t,"application/json"),function(e,t,r){if(ar.isString(e))try{return(t||JSON.parse)(e),ar.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||dr.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&ar.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw ur.from(e,ur.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ar.forEach(["delete","get","head"],(function(e){dr.headers[e]={}})),ar.forEach(["post","put","patch"],(function(e){dr.headers[e]=ar.merge(sr)}));var pr=dr,hr=K,mr=pr,yr=function(e){return!(!e||!e.__CANCEL__)},gr=K,vr=function(e,t,r){var n=this||mr;return hr.forEach(r,(function(r){e=r.call(n,e,t)})),e},br=yr,wr=pr,Er=Wt;function Sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Er}var Tr=K,Or=function(e,t){t=t||{};var r={};function n(e,t){return Tr.isPlainObject(e)&&Tr.isPlainObject(t)?Tr.merge(e,t):Tr.isPlainObject(t)?Tr.merge({},t):Tr.isArray(t)?t.slice():t}function o(r){return Tr.isUndefined(t[r])?Tr.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function a(e){if(!Tr.isUndefined(t[e]))return n(void 0,t[e])}function i(r){return Tr.isUndefined(t[r])?Tr.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function u(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u};return Tr.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||o,n=t(e);Tr.isUndefined(n)&&t!==u||(r[e]=n)})),r},kr="0.27.2",Ar=kr,xr=De,Cr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Cr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Rr={};Cr.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Ar+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,a){if(!1===e)throw new xr(n(o," has been removed"+(t?" in "+t:"")),xr.ERR_DEPRECATED);return t&&!Rr[o]&&(Rr[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}};var Fr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new xr("options must be an object",xr.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],i=t[a];if(i){var u=e[a],l=void 0===u||i(u,a,e);if(!0!==l)throw new xr("option "+a+" must be "+l,xr.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new xr("Unknown option "+a,xr.ERR_BAD_OPTION)}},validators:Cr},Pr=K,jr=Q,Dr=re,Ir=function(e){return Sr(e),e.headers=e.headers||{},e.data=vr.call(e,e.data,e.headers,e.transformRequest),e.headers=gr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),gr.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||wr.adapter)(e).then((function(t){return Sr(e),t.data=vr.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return br(t)||(Sr(e),t&&t.response&&(t.response.data=vr.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Nr=Or,Ur=Mt,_r=Fr,Br=_r.validators;function Mr(e){this.defaults=e,this.interceptors={request:new Dr,response:new Dr}}Mr.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Nr(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&_r.assertOptions(r,{silentJSONParsing:Br.transitional(Br.boolean),forcedJSONParsing:Br.transitional(Br.boolean),clarifyTimeoutError:Br.transitional(Br.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var a,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!o){var u=[Ir,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),a=Promise.resolve(t);u.length;)a=a.then(u.shift(),u.shift());return a}for(var l=t;n.length;){var s=n.shift(),c=n.shift();try{l=s(l)}catch(e){c(e);break}}try{a=Ir(l)}catch(e){return Promise.reject(e)}for(;i.length;)a=a.then(i.shift(),i.shift());return a},Mr.prototype.getUri=function(e){e=Nr(this.defaults,e);var t=Ur(e.baseURL,e.url);return jr(t,e.params,e.paramsSerializer)},Pr.forEach(["delete","get","head","options"],(function(e){Mr.prototype[e]=function(t,r){return this.request(Nr(r||{},{method:e,url:t,data:(r||{}).data}))}})),Pr.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Nr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Mr.prototype[e]=t(),Mr.prototype[e+"Form"]=t(!0)}));var Lr=Mr,Vr=Wt;function zr(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Vr(e),t(r.reason))}))}zr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},zr.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},zr.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},zr.source=function(){var e;return{token:new zr((function(t){e=t})),cancel:e}};var Hr=zr,qr=K,Yr=K,Wr=P,Gr=Lr,Jr=Or;var $r=function e(t){var r=new Gr(t),n=Wr(Gr.prototype.request,r);return Yr.extend(n,Gr.prototype,r),Yr.extend(n,r),n.create=function(r){return e(Jr(t,r))},n}(pr);$r.Axios=Gr,$r.CanceledError=Wt,$r.CancelToken=Hr,$r.isCancel=yr,$r.VERSION=kr,$r.toFormData=Dt,$r.AxiosError=De,$r.Cancel=$r.CanceledError,$r.all=function(e){return Promise.all(e)},$r.spread=function(e){return function(t){return e.apply(null,t)}},$r.isAxiosError=function(e){return qr.isObject(e)&&!0===e.isAxiosError},F.exports=$r,F.exports.default=$r;var Kr=F.exports,Zr=function(e,t){var r=13===e.toString().length?e/1e3:e;return s.default.unix(r).format(null!=t?t:k)},Xr=function(e,t){var r=e.clientId,n=e.tableProps,o=void 0===n?{}:n,a=e.classNames,i=void 0===a?{}:a,u=e.uploaderProps,l=void 0===u?{}:u,s=e.isOverwriteDBConfig,c=void 0!==s&&s,f=p(e,["clientId","tableProps","classNames","uploaderProps","isOverwriteDBConfig"]),h=t.clientId,m=t.uiConfig,y=(void 0===m?{}:m).importHistoryTable,g=void 0===y?{}:y,v=p(t,["clientId","uiConfig"]),b=x.tableProps,w=x.uploaderProps,E=x.classNames,S=p(x,["tableProps","uploaderProps","classNames"]);return d(d(d({},S),{clientId:null!=h?h:r,classNames:d(d({},E),i),tableProps:d({},c?d(d(d({},b),g),o):d(d(d({},b),o),g)),uploaderProps:d({},c?d(d(d({},w),v),l):d(d(d({},w),l),v))}),f)},Qr=function(t,r){var n,o,a,i,u;if(!Kr.isCancel(t)){var l=t.response,s=null!==(u=null!==(o=null===(n=null==l?void 0:l.data)||void 0===n?void 0:n.message)&&void 0!==o?o:null===(i=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.error)||void 0===i?void 0:i.message)&&void 0!==u?u:r("SomethingWentWrongTryAgainLater");e.notification.error({message:r("Error"),description:s})}},en=function(t){"http"===(window.origin||window.location.origin||"").split(":")[0]&&e.notification.error({message:"Error",description:t})},tn=function(e){switch(e){case"en":default:return"en-US";case"vi":return"vi";case"fr":return"fr";case"id":return"id";case"km":return"km";case"ms":return"ms";case"zh":return"zh-Hans"}},rn={exports:{}};rn.exports=function e(t,r,n){var o,a,i=window,u="application/octet-stream",l=n||u,s=t,c=!r&&!n&&s,f=document.createElement("a"),d=function(e){return String(e)},p=i.Blob||i.MozBlob||i.WebKitBlob||d,h=r||"download";if(p=p.call?p.bind(i):Blob,"true"===String(this)&&(l=(s=[s,l])[0],s=s[1]),c&&c.length<2048&&(h=c.split("/").pop().split("?")[0],f.href=c,-1!==f.href.indexOf(c))){var m=new XMLHttpRequest;return m.open("GET",c,!0),m.responseType="blob",m.onload=function(t){e(t.target.response,h,u)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(s)){if(!(s.length>2096103.424&&p!==d))return navigator.msSaveBlob?navigator.msSaveBlob(b(s),h):w(s);l=(s=b(s)).type||u}else if(/([\x80-\xff])/.test(s)){for(var y=0,g=new Uint8Array(s.length),v=g.length;y<v;++y)g[y]=s.charCodeAt(y);s=new p([g],{type:l})}function b(e){for(var t=e.split(/[:;,]/),r=t[1],n=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),o=n.length,a=0,i=new Uint8Array(o);a<o;++a)i[a]=n.charCodeAt(a);return new p([i],{type:r})}function w(e,t){if("download"in f)return f.href=e,f.setAttribute("download",h),f.className="download-js-link",f.innerHTML="downloading...",f.style.display="none",document.body.appendChild(f),setTimeout((function(){f.click(),document.body.removeChild(f),!0===t&&setTimeout((function(){i.URL.revokeObjectURL(f.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,u)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var r=document.createElement("iframe");document.body.appendChild(r),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,u)),r.src=e,setTimeout((function()