(self["webpackChunkdatabasir_frontend"]=self["webpackChunkdatabasir_frontend"]||[]).push([[269],{9669:function(t,e,r){t.exports=r(1609)},5448:function(t,e,r){"use strict";var n=r(4867),o=r(6026),i=r(4372),a=r(5327),s=r(4097),u=r(4109),c=r(7985),f=r(5061),l=r(5655),p=r(5263);t.exports=function(t){return new Promise((function(e,r){var h,d=t.data,v=t.headers,g=t.responseType;function m(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(d)&&delete v["Content-Type"];var y=new XMLHttpRequest;if(t.auth){var x=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var b=s(t.baseURL,t.url);function E(){if(y){var n="getAllResponseHeaders"in y?u(y.getAllResponseHeaders()):null,i=g&&"text"!==g&&"json"!==g?y.response:y.responseText,a={data:i,status:y.status,statusText:y.statusText,headers:n,config:t,request:y};o((function(t){e(t),m()}),(function(t){r(t),m()}),a),y=null}}if(y.open(t.method.toUpperCase(),a(b,t.params,t.paramsSerializer),!0),y.timeout=t.timeout,"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(E)},y.onabort=function(){y&&(r(f("Request aborted",t,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(f("Network Error",t,null,y)),y=null},y.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||l.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var S=(t.withCredentials||c(b))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;S&&(v[t.xsrfHeaderName]=S)}"setRequestHeader"in y&&n.forEach(v,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete v[e]:y.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),g&&"json"!==g&&(y.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&y.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){y&&(r(!t||t&&t.type?new p("canceled"):t),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),d||(d=null),y.send(d)}))}},1609:function(t,e,r){"use strict";var n=r(4867),o=r(1849),i=r(321),a=r(7185),s=r(5655);function u(t){var e=new i(t),r=o(i.prototype.request,e);return n.extend(r,i.prototype,e),n.extend(r,e),r.create=function(e){return u(a(t,e))},r}var c=u(s);c.Axios=i,c.Cancel=r(5263),c.CancelToken=r(4972),c.isCancel=r(6502),c.VERSION=r(7288).version,c.all=function(t){return Promise.all(t)},c.spread=r(8713),c.isAxiosError=r(6268),t.exports=c,t.exports["default"]=c},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,r){"use strict";var n=r(5263);function o(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){f.headers[t]=n.merge(a)})),t.exports=f},7288:function(t){t.exports={version:"0.24.0"}},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:function(t,e,r){"use strict";var n=r(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={};function a(t,e,r){if("object"!==typeof t)throw new TypeError("options must be an object");var n=Object.keys(t),o=n.length;while(o-- >0){var i=n[o],a=e[i];if(a){var s=t[i],u=void 0===s||a(s,i,t);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}}o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,a){if(!1===t)throw new Error(o(n," has been removed"+(e?" in "+e:"")));return e&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,a)}},t.exports={assertOptions:a,validators:o}},4867:function(t,e,r){"use strict";var n=r(1849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function u(t){return"[object ArrayBuffer]"===o.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function f(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function l(t){return"string"===typeof t}function p(t){return"number"===typeof t}function h(t){return null!==t&&"object"===typeof t}function d(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function v(t){return"[object Date]"===o.call(t)}function g(t){return"[object File]"===o.call(t)}function m(t){return"[object Blob]"===o.call(t)}function y(t){return"[object Function]"===o.call(t)}function x(t){return h(t)&&y(t.pipe)}function w(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,l,p){var h=r+t.length,d=n.length,v=f;return void 0!==l&&(l=o(l),v=c),s(p,v,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,h);case"<":c=l[u(s,1,-1)];break;default:var f=+s;if(0===f)return o;if(f>d){var p=i(f/10);return 0===p?o:p<=d?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):o}c=n[f-1]}return void 0===c?"":c}))}},7850:function(t,e,r){var n=r(111),o=r(4326),i=r(5112),a=i("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},3929:function(t,e,r){var n=r(7854),o=r(7850),i=n.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},7651:function(t,e,r){var n=r(7854),o=r(6916),i=r(9670),a=r(614),s=r(4326),u=r(2261),c=n.TypeError;t.exports=function(t,e){var r=t.exec;if(a(r)){var n=o(r,t,e);return null!==n&&i(n),n}if("RegExp"===s(t))return o(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:function(t,e,r){"use strict";var n=r(6916),o=r(1702),i=r(1340),a=r(7066),s=r(2999),u=r(2309),c=r(30),f=r(9909).get,l=r(9441),p=r(7168),h=u("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,g=o("".charAt),m=o("".indexOf),y=o("".replace),x=o("".slice),w=function(){var t=/a/,e=/b*/g;return n(d,t,"a"),n(d,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),b=s.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],S=w||E||b||l||p;S&&(v=function(t){var e,r,o,s,u,l,p,S=this,O=f(S),R=i(t),T=O.raw;if(T)return T.lastIndex=S.lastIndex,e=n(v,T,R),S.lastIndex=T.lastIndex,e;var k=O.groups,j=b&&S.sticky,A=n(a,S),L=S.source,N=0,C=R;if(j&&(A=y(A,"y",""),-1===m(A,"g")&&(A+="g"),C=x(R,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==g(R,S.lastIndex-1))&&(L="(?: "+L+")",C=" "+C,N++),r=new RegExp("^(?:"+L+")",A)),E&&(r=new RegExp("^"+L+"$(?!\\s)",A)),w&&(o=S.lastIndex),s=n(d,j?r:S,C),j?s?(s.input=x(s.input,N),s[0]=x(s[0],N),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:w&&s&&(S.lastIndex=S.global?s.index+s[0].length:o),E&&s&&s.length>1&&n(h,s[0],r,(function(){for(u=1;ub)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},4916:function(t,e,r){"use strict";var n=r(2109),o=r(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},5306:function(t,e,r){"use strict";var n=r(2104),o=r(6916),i=r(1702),a=r(7007),s=r(7293),u=r(9670),c=r(614),f=r(9303),l=r(7466),p=r(1340),h=r(4488),d=r(1530),v=r(8173),g=r(647),m=r(7651),y=r(5112),x=y("replace"),w=Math.max,b=Math.min,E=i([].concat),S=i([].push),O=i("".indexOf),R=i("".slice),T=function(t){return void 0===t?t:String(t)},k=function(){return"$0"==="a".replace(/./,"$0")}(),j=function(){return!!/./[x]&&""===/./[x]("a","$0")}(),A=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));a("replace",(function(t,e,r){var i=j?"$":"$0";return[function(t,r){var n=h(this),i=void 0==t?void 0:v(t,x);return i?o(i,t,n,r):o(e,p(n),t,r)},function(t,o){var a=u(this),s=p(t);if("string"==typeof o&&-1===O(o,i)&&-1===O(o,"$<")){var h=r(e,a,s,o);if(h.done)return h.value}var v=c(o);v||(o=p(o));var y=a.global;if(y){var x=a.unicode;a.lastIndex=0}var k=[];while(1){var j=m(a,s);if(null===j)break;if(S(k,j),!y)break;var A=p(j[0]);""===A&&(a.lastIndex=d(s,l(a.lastIndex),x))}for(var L="",N=0,C=0;C=N&&(L+=R(s,N,P)+q,N=P+_.length)}return L+R(s,N)}]}),!A||!k||j)},6755:function(t,e,r){"use strict";var n=r(2109),o=r(1702),i=r(1236).f,a=r(7466),s=r(1340),u=r(3929),c=r(4488),f=r(4964),l=r(1913),p=o("".startsWith),h=o("".slice),d=Math.min,v=f("startsWith"),g=!l&&!v&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}();n({target:"String",proto:!0,forced:!g&&!v},{startsWith:function(t){var e=s(c(this));u(t);var r=a(d(arguments.length>1?arguments[1]:void 0,e.length)),n=s(t);return p?p(e,n,r):h(e,r,r+n.length)===n}})},5666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(C){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=R(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=c;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function g(){}function m(){}function y(){}var x={};u(x,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(L([])));b&&b!==r&&n.call(b,i)&&(x=b);var E=y.prototype=g.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;function i(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function R(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return N()}r.method=o,r.arg=i;while(1){var a=r.delegate;if(a){var s=T(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?d:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){while(++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},152:function(t,e,r){"use strict";r.d(e,{x4:function(){return o},rd:function(){return i},jb:function(){return a}});var n=r(3872),o=function(t){var e=new FormData;return e.append("username",t.username),e.append("password",t.password),n.Z.post("/login",e)},i=function(t,e){return n.Z.get("/oauth2/login/"+t,{params:e})},a=function(t){return n.Z.post("/access_tokens",{refreshToken:t})}},3872:function(t,e,r){"use strict";var n=r(8534),o=(r(5666),r(1539),r(4747),r(6755),r(4916),r(5306),r(9669)),i=r.n(o),a=r(7234),s=r(5954),u=r(1836),c=r(152),f={NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_API_URL;i().defaults.baseURL=f,i().defaults.timeout=2e4,i().defaults.withCredentials=!1,i().defaults.headers.post["Content-Type"]="application/json",i().defaults.headers.post["Access-Control-Allow-Origin-Type"]="*";var l=!1;function p(){l=!0}function h(){l=!1}var d=[];function v(t){d.push(t)}function g(){d.forEach((function(t){t()})),d=[]}function m(){u.E.removeUserLoginData(),s.Z.replace("/login")}function y(t){(0,a.z8)({message:t,type:"error",duration:5e3})}function x(){return w.apply(this,arguments)}function w(){return w=(0,n.Z)(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=u.E.getRefreshToken(),!e){t.next=8;break}return t.next=4,(0,c.jb)(e).then((function(t){if(!t.errCode)return u.r.saveAccessToken(t.data.accessToken,t.data.accessTokenExpireAt),t.data.accessToken;m()}));case 4:return r=t.sent,t.abrupt("return",r);case 8:m();case 9:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}i().interceptors.request.use(function(){var t=(0,n.Z)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!u.r.hasValidAccessToken()){t.next=5;break}return e.headers.Authorization="Bearer "+u.r.loadAccessToken(),t.abrupt("return",e);case 5:if("/access_tokens"!=e.url&&!e.url.startsWith("/oauth2")&&"/login"!=e.url){t.next=9;break}return t.abrupt("return",e);case 9:if(l){t.next=19;break}return p(),t.next=13,x();case 13:return e.headers.Authorization="Bearer "+u.r.loadAccessToken(),h(),g(),t.abrupt("return",e);case 19:return r=new Promise((function(t){v((function(){e.headers.Authorization="Bearer "+u.r.loadAccessToken(),t(e)}))})),t.abrupt("return",r);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){return h(),Promise.reject(t)})),i().interceptors.response.use((function(t){var e=t.data;return e.errCode&&y(e.errMessage),e}),(function(t){return 401==t.response.status?"X_0002"==t.response.data.errCode&&(u.E.removeUserLoginData(),y("登陆状态失效,请重新登陆"),m()):403==t.response.status?y("无执行该操作的权限"):y(t.message),Promise.reject(t)})),e["Z"]=i()},8534:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});r(1539);function n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}}}}]); //# sourceMappingURL=269-legacy.1ed6e867.js.map