cool-common-utils 0.0.1-beta.8 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var r=require("./commons/tslib.es6-DVnGIs25.js"),e=require("./commons/xlsx_js-1FJ_3QBZ.js");require("./commons/crypto-BjswgmPi.js");var t=e.requireXlsx_min();exports.exportExcelXlsx=function(e){void 0===e&&(e={});var n=Object.assign({columns:[],data:[],sheetName:"sheet1",fileName:"excel",fileType:"xlsx"},e);if(0===n.columns.length)return console.log("Add columns!");var a=function(e,t,n){if(void 0===n&&(n=0),t[n]||(t[n]=[]),n){var _=new Array(t[n-1].length-1-t[n].length).fill("");t[n]=r.__spreadArray(r.__spreadArray([],r.__read(t[n]),!1),r.__read(_),!1)}return e.reduce(function(e,_){if(t[n]=r.__spreadArray(r.__spreadArray([],r.__read(t[n]),!1),[_.label],!1),_.children&&_.children.length){var o=a(_.children,t,n+1),l=new Array(o-1).fill("");return t[n]=r.__spreadArray(r.__spreadArray([],r.__read(t[n]),!1),r.__read(l),!1),e+o}return e+1},0)},_=function(e){return e.reduce(function(e,t){return t.children&&t.children.length?r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(_(t.children)),!1):r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[t],!1)},[])},o=_(n.columns),l=n.data.map(function(r){return o.map(function(e){return{v:String(r[e.field]),t:"s",s:{font:{name:"黑体"},alignment:{vertical:"center",horizontal:"center"},border:{bottom:{style:"thin",color:{rgb:"D0D0D0"}},left:{style:"thin",color:{rgb:"D0D0D0"}},top:{style:"thin",color:{rgb:"D0D0D0"}},right:{style:"thin",color:{rgb:"D0D0D0"}}}}}})}),i=function(){var e=[];a(n.columns,e);var t=Math.max.apply(Math,r.__spreadArray([],r.__read(e.map(function(r){return r.length})),!1));return e.map(function(e){var n=e.map(function(r){return{v:r,t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}}});if(n.length<t){var a=new Array(t-n.length).fill({v:"",t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}});n=r.__spreadArray(r.__spreadArray([],r.__read(n),!1),r.__read(a),!1)}return n})}(),s=r.__spreadArray(r.__spreadArray([],r.__read(i),!1),r.__read(l),!1),c=l.reduce(function(e,t){return e.length?e.map(function(e,n){return r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[t[n]],!1)}):r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(t.map(function(r){return[r]})),!1)},[]).map(function(e){return Math.max.apply(Math,r.__spreadArray([],r.__read(e.map(function(r){return String(r.v).split("").reduce(function(r,e){return r+(function(r){return/[^\dA-Za-z]/.test(r)}(e)?2:1)},0)})),!1))}),d=t.utils.aoa_to_sheet(s);d["!merges"]=i.reduce(function(e,t,n){return n<i.length-1?r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read((_=n,o=i,l=function(e){return o.reduce(function(t,n,a){return a<_?r.__spreadArray(r.__spreadArray([],r.__read(t),!1),[n[e].v],!1):t},[]).filter(function(r){return r}).length},(a=t).reduce(function(e,t,n){return t.v?o[_+1][n].v?a[n+1].v?e:r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[{s:{r:_,c:n}}],!1):r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[{s:{r:_,c:n},e:{r:(i=n,o.reduce(function(r,e,t){return e[i].v?r:t},_)),c:n}}],!1):n===a.length-1&&!l(n)||!l(n)?(e[e.length-1].e={r:_,c:n},e):e;var i},[]))),!1):e;var a,_,o,l},[]),d["!cols"]=c.map(function(r){return{wch:r+4||10}}),d["!rows"]=r.__spreadArray(r.__spreadArray([],r.__read(i.map(function(){return{hpx:20}})),!1),r.__read(l.map(function(){return{hpx:18}})),!1);var u=t.utils.book_new();t.utils.book_append_sheet(u,d,n.sheetName),t.writeFile(u,"".concat(n.fileName,".").concat(n.fileType))};
1
+ "use strict";var r=require("./commons/tslib.es6-DVnGIs25.js"),e=require("./commons/xlsx_js-qidrMB31.js");require("./commons/crypto-CT1W49ET.js"),require("./commons/socket_io-Bw6JUjpU.js");var t=e.requireXlsx_min();exports.exportExcelXlsx=function(e){void 0===e&&(e={});var n=Object.assign({columns:[],data:[],sheetName:"sheet1",fileName:"excel",fileType:"xlsx"},e);if(0===n.columns.length)return console.log("Add columns!");var a=function(e,t,n){if(void 0===n&&(n=0),t[n]||(t[n]=[]),n){var _=new Array(t[n-1].length-1-t[n].length).fill("");t[n]=r.__spreadArray(r.__spreadArray([],r.__read(t[n]),!1),r.__read(_),!1)}return e.reduce(function(e,_){if(t[n]=r.__spreadArray(r.__spreadArray([],r.__read(t[n]),!1),[_.label],!1),_.children&&_.children.length){var o=a(_.children,t,n+1),l=new Array(o-1).fill("");return t[n]=r.__spreadArray(r.__spreadArray([],r.__read(t[n]),!1),r.__read(l),!1),e+o}return e+1},0)},_=function(e){return e.reduce(function(e,t){return t.children&&t.children.length?r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(_(t.children)),!1):r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[t],!1)},[])},o=_(n.columns),l=n.data.map(function(r){return o.map(function(e){return{v:String(r[e.field]),t:"s",s:{font:{name:"黑体"},alignment:{vertical:"center",horizontal:"center"},border:{bottom:{style:"thin",color:{rgb:"D0D0D0"}},left:{style:"thin",color:{rgb:"D0D0D0"}},top:{style:"thin",color:{rgb:"D0D0D0"}},right:{style:"thin",color:{rgb:"D0D0D0"}}}}}})}),i=function(){var e=[];a(n.columns,e);var t=Math.max.apply(Math,r.__spreadArray([],r.__read(e.map(function(r){return r.length})),!1));return e.map(function(e){var n=e.map(function(r){return{v:r,t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}}});if(n.length<t){var a=new Array(t-n.length).fill({v:"",t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}});n=r.__spreadArray(r.__spreadArray([],r.__read(n),!1),r.__read(a),!1)}return n})}(),s=r.__spreadArray(r.__spreadArray([],r.__read(i),!1),r.__read(l),!1),c=l.reduce(function(e,t){return e.length?e.map(function(e,n){return r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[t[n]],!1)}):r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(t.map(function(r){return[r]})),!1)},[]).map(function(e){return Math.max.apply(Math,r.__spreadArray([],r.__read(e.map(function(r){return String(r.v).split("").reduce(function(r,e){return r+(function(r){return/[^\dA-Za-z]/.test(r)}(e)?2:1)},0)})),!1))}),d=t.utils.aoa_to_sheet(s);d["!merges"]=i.reduce(function(e,t,n){return n<i.length-1?r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read((_=n,o=i,l=function(e){return o.reduce(function(t,n,a){return a<_?r.__spreadArray(r.__spreadArray([],r.__read(t),!1),[n[e].v],!1):t},[]).filter(function(r){return r}).length},(a=t).reduce(function(e,t,n){return t.v?o[_+1][n].v?a[n+1].v?e:r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[{s:{r:_,c:n}}],!1):r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[{s:{r:_,c:n},e:{r:(i=n,o.reduce(function(r,e,t){return e[i].v?r:t},_)),c:n}}],!1):n===a.length-1&&!l(n)||!l(n)?(e[e.length-1].e={r:_,c:n},e):e;var i},[]))),!1):e;var a,_,o,l},[]),d["!cols"]=c.map(function(r){return{wch:r+4||10}}),d["!rows"]=r.__spreadArray(r.__spreadArray([],r.__read(i.map(function(){return{hpx:20}})),!1),r.__read(l.map(function(){return{hpx:18}})),!1);var u=t.utils.book_new();t.utils.book_append_sheet(u,d,n.sheetName),t.writeFile(u,"".concat(n.fileName,".").concat(n.fileType))};
@@ -1 +1 @@
1
- import{c as t,b as r}from"./commons/tslib.es6-BjAlDJRq.js";import{r as n}from"./commons/xlsx_js-tM8yRcK1.js";import"./commons/crypto-BOlv9wnL.js";var e=n(),o=function(n){void 0===n&&(n={});var o=Object.assign({columns:[],data:[],sheetName:"sheet1",fileName:"excel",fileType:"xlsx"},n);if(0===o.columns.length)return console.log("Add columns!");var l=function(n,e,o){if(void 0===o&&(o=0),e[o]||(e[o]=[]),o){var i=new Array(e[o-1].length-1-e[o].length).fill("");e[o]=t(t([],r(e[o]),!1),r(i),!1)}return n.reduce(function(n,i){if(e[o]=t(t([],r(e[o]),!1),[i.label],!1),i.children&&i.children.length){var c=l(i.children,e,o+1),u=new Array(c-1).fill("");return e[o]=t(t([],r(e[o]),!1),r(u),!1),n+c}return n+1},0)},i=function(n){return n.reduce(function(n,e){return e.children&&e.children.length?t(t([],r(n),!1),r(i(e.children)),!1):t(t([],r(n),!1),[e],!1)},[])},c=i(o.columns),u=o.data.map(function(t){return c.map(function(r){return{v:String(t[r.field]),t:"s",s:{font:{name:"黑体"},alignment:{vertical:"center",horizontal:"center"},border:{bottom:{style:"thin",color:{rgb:"D0D0D0"}},left:{style:"thin",color:{rgb:"D0D0D0"}},top:{style:"thin",color:{rgb:"D0D0D0"}},right:{style:"thin",color:{rgb:"D0D0D0"}}}}}})}),a=function(){var n=[];l(o.columns,n);var e=Math.max.apply(Math,t([],r(n.map(function(t){return t.length})),!1));return n.map(function(n){var o=n.map(function(t){return{v:t,t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}}});if(o.length<e){var l=new Array(e-o.length).fill({v:"",t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}});o=t(t([],r(o),!1),r(l),!1)}return o})}(),s=t(t([],r(a),!1),r(u),!1),f=u.reduce(function(n,e){return n.length?n.map(function(n,o){return t(t([],r(n),!1),[e[o]],!1)}):t(t([],r(n),!1),r(e.map(function(t){return[t]})),!1)},[]).map(function(n){return Math.max.apply(Math,t([],r(n.map(function(t){return String(t.v).split("").reduce(function(t,r){return t+(function(t){return/[^\dA-Za-z]/.test(t)}(r)?2:1)},0)})),!1))}),h=e.utils.aoa_to_sheet(s);h["!merges"]=a.reduce(function(n,e,o){return o<a.length-1?t(t([],r(n),!1),r((i=o,c=a,u=function(n){return c.reduce(function(e,o,l){return l<i?t(t([],r(e),!1),[o[n].v],!1):e},[]).filter(function(t){return t}).length},(l=e).reduce(function(n,e,o){return e.v?c[i+1][o].v?l[o+1].v?n:t(t([],r(n),!1),[{s:{r:i,c:o}}],!1):t(t([],r(n),!1),[{s:{r:i,c:o},e:{r:(a=o,c.reduce(function(t,r,n){return r[a].v?t:n},i)),c:o}}],!1):o===l.length-1&&!u(o)||!u(o)?(n[n.length-1].e={r:i,c:o},n):n;var a},[]))),!1):n;var l,i,c,u},[]),h["!cols"]=f.map(function(t){return{wch:t+4||10}}),h["!rows"]=t(t([],r(a.map(function(){return{hpx:20}})),!1),r(u.map(function(){return{hpx:18}})),!1);var m=e.utils.book_new();e.utils.book_append_sheet(m,h,o.sheetName),e.writeFile(m,"".concat(o.fileName,".").concat(o.fileType))};export{o as exportExcelXlsx};
1
+ import{c as t,b as r}from"./commons/tslib.es6-BjAlDJRq.js";import{r as n}from"./commons/xlsx_js-D6tizOBX.js";import"./commons/crypto-DuLLVHQr.js";import"./commons/socket_io-CSNhVzSE.js";var e=n(),o=function(n){void 0===n&&(n={});var o=Object.assign({columns:[],data:[],sheetName:"sheet1",fileName:"excel",fileType:"xlsx"},n);if(0===o.columns.length)return console.log("Add columns!");var l=function(n,e,o){if(void 0===o&&(o=0),e[o]||(e[o]=[]),o){var i=new Array(e[o-1].length-1-e[o].length).fill("");e[o]=t(t([],r(e[o]),!1),r(i),!1)}return n.reduce(function(n,i){if(e[o]=t(t([],r(e[o]),!1),[i.label],!1),i.children&&i.children.length){var c=l(i.children,e,o+1),u=new Array(c-1).fill("");return e[o]=t(t([],r(e[o]),!1),r(u),!1),n+c}return n+1},0)},i=function(n){return n.reduce(function(n,e){return e.children&&e.children.length?t(t([],r(n),!1),r(i(e.children)),!1):t(t([],r(n),!1),[e],!1)},[])},c=i(o.columns),u=o.data.map(function(t){return c.map(function(r){return{v:String(t[r.field]),t:"s",s:{font:{name:"黑体"},alignment:{vertical:"center",horizontal:"center"},border:{bottom:{style:"thin",color:{rgb:"D0D0D0"}},left:{style:"thin",color:{rgb:"D0D0D0"}},top:{style:"thin",color:{rgb:"D0D0D0"}},right:{style:"thin",color:{rgb:"D0D0D0"}}}}}})}),a=function(){var n=[];l(o.columns,n);var e=Math.max.apply(Math,t([],r(n.map(function(t){return t.length})),!1));return n.map(function(n){var o=n.map(function(t){return{v:t,t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}}});if(o.length<e){var l=new Array(e-o.length).fill({v:"",t:"s",s:{font:{bold:!0,name:"黑体"},alignment:{vertical:"center",horizontal:"center"},fill:{fgColor:{rgb:"EEEEEE"}},border:{bottom:{style:"thin",color:{rgb:"C2C2C2"}},left:{style:"thin",color:{rgb:"C2C2C2"}},top:{style:"thin",color:{rgb:"C2C2C2"}},right:{style:"thin",color:{rgb:"C2C2C2"}}}}});o=t(t([],r(o),!1),r(l),!1)}return o})}(),s=t(t([],r(a),!1),r(u),!1),f=u.reduce(function(n,e){return n.length?n.map(function(n,o){return t(t([],r(n),!1),[e[o]],!1)}):t(t([],r(n),!1),r(e.map(function(t){return[t]})),!1)},[]).map(function(n){return Math.max.apply(Math,t([],r(n.map(function(t){return String(t.v).split("").reduce(function(t,r){return t+(function(t){return/[^\dA-Za-z]/.test(t)}(r)?2:1)},0)})),!1))}),h=e.utils.aoa_to_sheet(s);h["!merges"]=a.reduce(function(n,e,o){return o<a.length-1?t(t([],r(n),!1),r((i=o,c=a,u=function(n){return c.reduce(function(e,o,l){return l<i?t(t([],r(e),!1),[o[n].v],!1):e},[]).filter(function(t){return t}).length},(l=e).reduce(function(n,e,o){return e.v?c[i+1][o].v?l[o+1].v?n:t(t([],r(n),!1),[{s:{r:i,c:o}}],!1):t(t([],r(n),!1),[{s:{r:i,c:o},e:{r:(a=o,c.reduce(function(t,r,n){return r[a].v?t:n},i)),c:o}}],!1):o===l.length-1&&!u(o)||!u(o)?(n[n.length-1].e={r:i,c:o},n):n;var a},[]))),!1):n;var l,i,c,u},[]),h["!cols"]=f.map(function(t){return{wch:t+4||10}}),h["!rows"]=t(t([],r(a.map(function(){return{hpx:20}})),!1),r(u.map(function(){return{hpx:18}})),!1);var m=e.utils.book_new();e.utils.book_append_sheet(m,h,o.sheetName),e.writeFile(m,"".concat(o.fileName,".").concat(o.fileType))};export{o as exportExcelXlsx};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("./request.js"),r=require("./message.js"),t=require("./websocket.js"),o=require("./socket-io.js"),s=require("./mqtt.js"),d=require("./aes.js"),i=require("./verification-code.js"),a=require("./canvas-water.js"),n=require("./utils.js"),p=require("./excel-xlsx-util.js"),x=require("./amap-utils.js");require("./commons/tslib.es6-DVnGIs25.js"),require("./commons/axios-BVpIaJdH.js"),require("./commons/crypto-BjswgmPi.js"),require("./commons/qs-CRBVMDlV.js"),require("./commons/sweetalert-B1ksMzDj.js"),require("./commons/socket_io-DNSuC_vR.js"),require("./commons/mqtt-CsLh6xMv.js"),require("./commons/xlsx_js-1FJ_3QBZ.js"),exports.CreateRequest=e.CreateRequest,exports.SweetAlert=r.SweetAlert,exports.SweetConfirm=r.SweetConfirm,exports.SweetError=r.SweetError,exports.SweetSuccess=r.SweetSuccess,exports.SweetWarning=r.SweetWarning,Object.defineProperty(exports,"EventId",{enumerable:!0,get:function(){return t.EventId}}),exports.Websocket=t.Websocket,exports.SocketIO=o.SocketIO,exports.MQTTClient=s.MQTTClient,exports.decryptAES=d.decryptAES,exports.encryptAES=d.encryptAES,exports.codeRandomColor=i.codeRandomColor,exports.drawCode=i.drawCode,exports.CanvasWater=a.CanvasWater,exports.addWater=a.addWater,exports.TransformConvertor=n.TransformConvertor,exports.UUID=n.UUID,exports.flattenDeepArray=n.flattenDeepArray,exports.formatNumber=n.formatNumber,exports.formatSearchFiled=n.formatSearchFiled,exports.getSelectName=n.getSelectName,exports.getTreeName=n.getTreeName,exports.isJson=n.isJson,exports.isNumber=n.isNumber,exports.platformListGenerate=n.platformListGenerate,exports.replaceUrlOrigin=n.replaceUrlOrigin,exports.exportExcelXlsx=p.exportExcelXlsx,exports.AddCarPolyline=x.AddCarPolyline,exports.AddCircleList=x.AddCircleList,exports.AddCircleMarkerList=x.AddCircleMarkerList,exports.AddCluster=x.AddCluster,exports.AddClusterFormGeoJson=x.AddClusterFormGeoJson,exports.AddHideMarkerList=x.AddHideMarkerList,exports.AddInfoWindow=x.AddInfoWindow,exports.AddLabelMarkerList=x.AddLabelMarkerList,exports.AddMarkerFormGeoJson=x.AddMarkerFormGeoJson,exports.AddMarkerList=x.AddMarkerList,exports.AddPolygonFormGeoJson=x.AddPolygonFormGeoJson,exports.AddPolygonList=x.AddPolygonList,exports.AddPolylineFormGeoJson=x.AddPolylineFormGeoJson,exports.AddPolylineList=x.AddPolylineList,exports.AddTrack=x.AddTrack,exports.AddTrackInfoWindow=x.AddTrackInfoWindow,exports.AddTrackList=x.AddTrackList,exports.RealtimeTrack=x.RealtimeTrack,exports.RectSelect=x.RectSelect,exports.setCenter=x.setCenter,exports.setCenterZoom=x.setCenterZoom,exports.setMapFitView=x.setMapFitView;
1
+ "use strict";var e=require("./request.js"),r=require("./message.js"),t=require("./websocket.js"),o=require("./socket-io.js"),s=require("./mqtt.js"),d=require("./aes.js"),i=require("./verification-code.js"),a=require("./canvas-water.js"),n=require("./utils.js"),p=require("./excel-xlsx-util.js"),x=require("./amap-utils.js");require("./commons/tslib.es6-DVnGIs25.js"),require("./commons/axios-DsdlaZnY.js"),require("./commons/socket_io-Bw6JUjpU.js"),require("./commons/qs-yb498JEx.js"),require("./commons/crypto-CT1W49ET.js"),require("./commons/sweetalert-B1ksMzDj.js"),require("./commons/mqtt-CsLh6xMv.js"),require("./commons/xlsx_js-qidrMB31.js"),exports.CreateRequest=e.CreateRequest,exports.SweetAlert=r.SweetAlert,exports.SweetConfirm=r.SweetConfirm,exports.SweetError=r.SweetError,exports.SweetSuccess=r.SweetSuccess,exports.SweetWarning=r.SweetWarning,Object.defineProperty(exports,"EventId",{enumerable:!0,get:function(){return t.EventId}}),exports.Websocket=t.Websocket,exports.SocketIO=o.SocketIO,exports.MQTTClient=s.MQTTClient,exports.decryptAES=d.decryptAES,exports.encryptAES=d.encryptAES,exports.codeRandomColor=i.codeRandomColor,exports.drawCode=i.drawCode,exports.CanvasWater=a.CanvasWater,exports.addWater=a.addWater,exports.TransformConvertor=n.TransformConvertor,exports.UUID=n.UUID,exports.flattenDeepArray=n.flattenDeepArray,exports.formatNumber=n.formatNumber,exports.formatSearchFiled=n.formatSearchFiled,exports.getSelectName=n.getSelectName,exports.getTreeName=n.getTreeName,exports.isJson=n.isJson,exports.isNumber=n.isNumber,exports.platformListGenerate=n.platformListGenerate,exports.replaceUrlOrigin=n.replaceUrlOrigin,exports.exportExcelXlsx=p.exportExcelXlsx,exports.AddCarPolyline=x.AddCarPolyline,exports.AddCircleList=x.AddCircleList,exports.AddCircleMarkerList=x.AddCircleMarkerList,exports.AddCluster=x.AddCluster,exports.AddClusterFormGeoJson=x.AddClusterFormGeoJson,exports.AddHideMarkerList=x.AddHideMarkerList,exports.AddInfoWindow=x.AddInfoWindow,exports.AddLabelMarkerList=x.AddLabelMarkerList,exports.AddMarkerFormGeoJson=x.AddMarkerFormGeoJson,exports.AddMarkerList=x.AddMarkerList,exports.AddPolygonFormGeoJson=x.AddPolygonFormGeoJson,exports.AddPolygonList=x.AddPolygonList,exports.AddPolylineFormGeoJson=x.AddPolylineFormGeoJson,exports.AddPolylineList=x.AddPolylineList,exports.AddTrack=x.AddTrack,exports.AddTrackInfoWindow=x.AddTrackInfoWindow,exports.AddTrackList=x.AddTrackList,exports.RealtimeTrack=x.RealtimeTrack,exports.RectSelect=x.RectSelect,exports.setCenter=x.setCenter,exports.setCenterZoom=x.setCenterZoom,exports.setMapFitView=x.setMapFitView;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{CreateRequest}from"./request.mjs";export{SweetAlert,SweetConfirm,SweetError,SweetSuccess,SweetWarning}from"./message.mjs";export{EventId,Websocket}from"./websocket.mjs";export{SocketIO}from"./socket-io.mjs";export{MQTTClient}from"./mqtt.mjs";export{decryptAES,encryptAES}from"./aes.mjs";export{codeRandomColor,drawCode}from"./verification-code.mjs";export{CanvasWater,addWater}from"./canvas-water.mjs";export{TransformConvertor,UUID,flattenDeepArray,formatNumber,formatSearchFiled,getSelectName,getTreeName,isJson,isNumber,platformListGenerate,replaceUrlOrigin}from"./utils.mjs";export{exportExcelXlsx}from"./excel-xlsx-util.mjs";export{AddCarPolyline,AddCircleList,AddCircleMarkerList,AddCluster,AddClusterFormGeoJson,AddHideMarkerList,AddInfoWindow,AddLabelMarkerList,AddMarkerFormGeoJson,AddMarkerList,AddPolygonFormGeoJson,AddPolygonList,AddPolylineFormGeoJson,AddPolylineList,AddTrack,AddTrackInfoWindow,AddTrackList,RealtimeTrack,RectSelect,setCenter,setCenterZoom,setMapFitView}from"./amap-utils.mjs";import"./commons/tslib.es6-BjAlDJRq.js";import"./commons/axios-CbsIbMet.js";import"./commons/crypto-BOlv9wnL.js";import"./commons/qs-DfP5ai96.js";import"./commons/sweetalert-DMYmZawW.js";import"./commons/socket_io-CdBGfI8s.js";import"./commons/mqtt-ClqAR6Iy.js";import"./commons/xlsx_js-tM8yRcK1.js";
1
+ export{CreateRequest}from"./request.mjs";export{SweetAlert,SweetConfirm,SweetError,SweetSuccess,SweetWarning}from"./message.mjs";export{EventId,Websocket}from"./websocket.mjs";export{SocketIO}from"./socket-io.mjs";export{MQTTClient}from"./mqtt.mjs";export{decryptAES,encryptAES}from"./aes.mjs";export{codeRandomColor,drawCode}from"./verification-code.mjs";export{CanvasWater,addWater}from"./canvas-water.mjs";export{TransformConvertor,UUID,flattenDeepArray,formatNumber,formatSearchFiled,getSelectName,getTreeName,isJson,isNumber,platformListGenerate,replaceUrlOrigin}from"./utils.mjs";export{exportExcelXlsx}from"./excel-xlsx-util.mjs";export{AddCarPolyline,AddCircleList,AddCircleMarkerList,AddCluster,AddClusterFormGeoJson,AddHideMarkerList,AddInfoWindow,AddLabelMarkerList,AddMarkerFormGeoJson,AddMarkerList,AddPolygonFormGeoJson,AddPolygonList,AddPolylineFormGeoJson,AddPolylineList,AddTrack,AddTrackInfoWindow,AddTrackList,RealtimeTrack,RectSelect,setCenter,setCenterZoom,setMapFitView}from"./amap-utils.mjs";import"./commons/tslib.es6-BjAlDJRq.js";import"./commons/axios-DxFWCEd0.js";import"./commons/socket_io-CSNhVzSE.js";import"./commons/qs-D46UmmL2.js";import"./commons/crypto-DuLLVHQr.js";import"./commons/sweetalert-DMYmZawW.js";import"./commons/mqtt-ClqAR6Iy.js";import"./commons/xlsx_js-D6tizOBX.js";
package/dist/message.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("./commons/crypto-BjswgmPi.js"),t=require("./commons/sweetalert-B1ksMzDj.js").requireSweetalert_min(),o=e.getDefaultExportFromCjs(t);exports.SweetAlert=function(e){return void 0===e&&(e=""),o({title:"",text:e,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{confirm:{text:"确定",value:!0,visible:!0,className:"",closeModal:!0}}})},exports.SweetConfirm=function(e,t,i,s){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===i&&(i="取消"),void 0===s&&(s="确定"),o({title:t,text:e,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{cancel:{text:i,value:!1,visible:!0,className:"",closeModal:!0},confirm:{text:s,value:!0,visible:!0,className:"",closeModal:!0}}})},exports.SweetError=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=2e3),o({title:"错误",text:e,icon:"error",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:t})},exports.SweetSuccess=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=2e3),o({title:e,text:"".concat(t/1e3,"秒后自动关闭"),icon:"success",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:t})},exports.SweetWarning=function(e,t,i){return void 0===e&&(e=""),void 0===t&&(t="提示"),void 0===i&&(i=2e3),o({title:t,text:e,icon:"warning",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:i})};
1
+ "use strict";var e=require("./commons/socket_io-Bw6JUjpU.js"),t=require("./commons/sweetalert-B1ksMzDj.js").requireSweetalert_min(),o=e.getDefaultExportFromCjs(t);exports.SweetAlert=function(e){return void 0===e&&(e=""),o({title:"",text:e,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{confirm:{text:"确定",value:!0,visible:!0,className:"",closeModal:!0}}})},exports.SweetConfirm=function(e,t,i,s){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===i&&(i="取消"),void 0===s&&(s="确定"),o({title:t,text:e,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{cancel:{text:i,value:!1,visible:!0,className:"",closeModal:!0},confirm:{text:s,value:!0,visible:!0,className:"",closeModal:!0}}})},exports.SweetError=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=2e3),o({title:"错误",text:e,icon:"error",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:t})},exports.SweetSuccess=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=2e3),o({title:e,text:"".concat(t/1e3,"秒后自动关闭"),icon:"success",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:t})},exports.SweetWarning=function(e,t,i){return void 0===e&&(e=""),void 0===t&&(t="提示"),void 0===i&&(i=2e3),o({title:t,text:e,icon:"warning",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:i})};
package/dist/message.mjs CHANGED
@@ -1 +1 @@
1
- import{g as t}from"./commons/crypto-BOlv9wnL.js";import{r as e}from"./commons/sweetalert-DMYmZawW.js";var o=t(e()),i=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=2e3),o({title:t,text:"".concat(e/1e3,"秒后自动关闭"),icon:"success",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:e})},c=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=2e3),o({title:"错误",text:t,icon:"error",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:e})},n=function(t,e,i){return void 0===t&&(t=""),void 0===e&&(e="提示"),void 0===i&&(i=2e3),o({title:e,text:t,icon:"warning",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:i})},s=function(t,e,i,c){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===i&&(i="取消"),void 0===c&&(c="确定"),o({title:e,text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{cancel:{text:i,value:!1,visible:!0,className:"",closeModal:!0},confirm:{text:c,value:!0,visible:!0,className:"",closeModal:!0}}})},l=function(t){return void 0===t&&(t=""),o({title:"",text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{confirm:{text:"确定",value:!0,visible:!0,className:"",closeModal:!0}}})};export{l as SweetAlert,s as SweetConfirm,c as SweetError,i as SweetSuccess,n as SweetWarning};
1
+ import{a as t}from"./commons/socket_io-CSNhVzSE.js";import{r as e}from"./commons/sweetalert-DMYmZawW.js";var o=t(e()),i=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=2e3),o({title:t,text:"".concat(e/1e3,"秒后自动关闭"),icon:"success",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:e})},s=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=2e3),o({title:"错误",text:t,icon:"error",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:e})},c=function(t,e,i){return void 0===t&&(t=""),void 0===e&&(e="提示"),void 0===i&&(i=2e3),o({title:e,text:t,icon:"warning",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:i})},n=function(t,e,i,s){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===i&&(i="取消"),void 0===s&&(s="确定"),o({title:e,text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{cancel:{text:i,value:!1,visible:!0,className:"",closeModal:!0},confirm:{text:s,value:!0,visible:!0,className:"",closeModal:!0}}})},l=function(t){return void 0===t&&(t=""),o({title:"",text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{confirm:{text:"确定",value:!0,visible:!0,className:"",closeModal:!0}}})};export{l as SweetAlert,n as SweetConfirm,s as SweetError,i as SweetSuccess,c as SweetWarning};
package/dist/request.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("./commons/tslib.es6-DVnGIs25.js"),t=require("./commons/axios-BVpIaJdH.js"),r=require("./commons/crypto-BjswgmPi.js"),n=require("./commons/qs-CRBVMDlV.js"),o=require("./message.js");require("./commons/sweetalert-B1ksMzDj.js");var i=n.requireLib(),s=r.getDefaultExportFromCjs(i),a=new Map([["form","application/x-www-form-urlencoded;charset=UTF-8"],["upload","multipart/form-data"]]),c=function(){function r(r,n){var o;this.config=e.__assign(e.__assign({},{type:"",timeout:0,responseType:"json",withCredentials:!1,proxy:!1,ERROR_CODES:["1005","1006","1008","1009"]}),n||{}),this.postType=this.config.type,this.instance=t.axios.create({baseURL:r,headers:{"Content-Type":null!==(o=a.get(this.config.type))&&void 0!==o?o:"application/json;charset=UTF-8"},timeout:this.config.timeout,responseType:this.config.responseType,withCredentials:this.config.withCredentials,proxy:this.config.proxy}),this.setupInterceptors()}return r.prototype.setupInterceptors=function(){var e=this;this.instance.interceptors.request.use(function(r){var n,o=null===(n=e.config)||void 0===n?void 0:n.Authorization;return o&&r.headers&&r.headers.set("Authorization",o),r.cancelToken=new t.axios.CancelToken(function(t){var n,o;null===(o=(n=e.config).cancelCallback)||void 0===o||o.call(n,{cancelToken:{name:r.url,cancel:t}})}),r},this.handleError),this.instance.interceptors.response.use(function(t){var r;return(null===(r=e.config.ERROR_CODES)||void 0===r?void 0:r.includes(String(t.data.code)))?(o.SweetError(t.data.msg).then(function(){var t,r;null===(r=(t=e.config).errorCallback)||void 0===r||r.call(t)}),Promise.reject(t.data.msg)):t.data},this.handleError)},r.prototype.handleError=function(e){return Promise.reject(e.message)},r.prototype.get=function(e,t){return this.instance.get(e,{params:t})},r.prototype.post=function(e,t){var r="form"===this.postType?s.stringify(t):t;return this.instance.post(e,r)},r.prototype.put=function(e,t){var r="form"===this.postType?s.stringify(t):t;return this.instance.put(e,r)},r.prototype.delete=function(e,t){return this.instance.delete(e,{params:{id:t}})},r}();exports.CreateRequest=c;
1
+ "use strict";var e=require("./commons/tslib.es6-DVnGIs25.js"),t=require("./commons/axios-DsdlaZnY.js"),r=require("./commons/socket_io-Bw6JUjpU.js"),o=require("./commons/qs-yb498JEx.js"),n=require("./message.js");require("./commons/crypto-CT1W49ET.js"),require("./commons/sweetalert-B1ksMzDj.js");var s=o.requireLib(),i=r.getDefaultExportFromCjs(s),a=new Map([["form","application/x-www-form-urlencoded;charset=UTF-8"],["upload","multipart/form-data"]]),c=function(){function r(r,o){var n;this.config=e.__assign(e.__assign({},{type:"",timeout:0,responseType:"json",withCredentials:!1,proxy:!1,ERROR_CODES:["1005","1006","1008","1009"]}),o||{}),this.postType=this.config.type,this.instance=t.axios.create({baseURL:r,headers:{"Content-Type":null!==(n=a.get(this.config.type))&&void 0!==n?n:"application/json;charset=UTF-8"},timeout:this.config.timeout,responseType:this.config.responseType,withCredentials:this.config.withCredentials,proxy:this.config.proxy}),this.setupInterceptors()}return r.prototype.setupInterceptors=function(){var e=this;this.instance.interceptors.request.use(function(r){var o,n,s=null===(n=(o=e.config).getAuthorization)||void 0===n?void 0:n.call(o);return console.log("AUTH_TOKEN",s),s&&r.headers&&r.headers.set("Authorization",s),r.cancelToken=new t.axios.CancelToken(function(t){var o,n;null===(n=(o=e.config).cancelCallback)||void 0===n||n.call(o,{cancelToken:{name:r.url,cancel:t}})}),r},this.handleError),this.instance.interceptors.response.use(function(t){var r;return(null===(r=e.config.ERROR_CODES)||void 0===r?void 0:r.includes(String(t.data.code)))?(n.SweetError(t.data.msg).then(function(){var t,r;null===(r=(t=e.config).errorCallback)||void 0===r||r.call(t)}),Promise.reject(t.data.msg)):t.data},this.handleError)},r.prototype.handleError=function(e){return Promise.reject(e.message)},r.prototype.get=function(e,t){return this.instance.get(e,{params:t})},r.prototype.post=function(e,t){var r="form"===this.postType?i.stringify(t):t;return this.instance.post(e,r)},r.prototype.put=function(e,t){var r="form"===this.postType?i.stringify(t):t;return this.instance.put(e,r)},r.prototype.delete=function(e,t){return this.instance.delete(e,{params:{id:t}})},r}();exports.CreateRequest=c;
package/dist/request.mjs CHANGED
@@ -1 +1 @@
1
- import{_ as t}from"./commons/tslib.es6-BjAlDJRq.js";import{a as e}from"./commons/axios-CbsIbMet.js";import{g as o}from"./commons/crypto-BOlv9wnL.js";import{r as n}from"./commons/qs-DfP5ai96.js";import{SweetError as r}from"./message.mjs";import"./commons/sweetalert-DMYmZawW.js";var i=o(n()),s=new Map([["form","application/x-www-form-urlencoded;charset=UTF-8"],["upload","multipart/form-data"]]),a=function(){function o(o,n){var r;this.config=t(t({},{type:"",timeout:0,responseType:"json",withCredentials:!1,proxy:!1,ERROR_CODES:["1005","1006","1008","1009"]}),n||{}),this.postType=this.config.type,this.instance=e.create({baseURL:o,headers:{"Content-Type":null!==(r=s.get(this.config.type))&&void 0!==r?r:"application/json;charset=UTF-8"},timeout:this.config.timeout,responseType:this.config.responseType,withCredentials:this.config.withCredentials,proxy:this.config.proxy}),this.setupInterceptors()}return o.prototype.setupInterceptors=function(){var t=this;this.instance.interceptors.request.use(function(o){var n,r=null===(n=t.config)||void 0===n?void 0:n.Authorization;return r&&o.headers&&o.headers.set("Authorization",r),o.cancelToken=new e.CancelToken(function(e){var n,r;null===(r=(n=t.config).cancelCallback)||void 0===r||r.call(n,{cancelToken:{name:o.url,cancel:e}})}),o},this.handleError),this.instance.interceptors.response.use(function(e){var o;return(null===(o=t.config.ERROR_CODES)||void 0===o?void 0:o.includes(String(e.data.code)))?(r(e.data.msg).then(function(){var e,o;null===(o=(e=t.config).errorCallback)||void 0===o||o.call(e)}),Promise.reject(e.data.msg)):e.data},this.handleError)},o.prototype.handleError=function(t){return Promise.reject(t.message)},o.prototype.get=function(t,e){return this.instance.get(t,{params:e})},o.prototype.post=function(t,e){var o="form"===this.postType?i.stringify(e):e;return this.instance.post(t,o)},o.prototype.put=function(t,e){var o="form"===this.postType?i.stringify(e):e;return this.instance.put(t,o)},o.prototype.delete=function(t,e){return this.instance.delete(t,{params:{id:e}})},o}();export{a as CreateRequest};
1
+ import{_ as t}from"./commons/tslib.es6-BjAlDJRq.js";import{a as e}from"./commons/axios-DxFWCEd0.js";import{a as o}from"./commons/socket_io-CSNhVzSE.js";import{r as n}from"./commons/qs-D46UmmL2.js";import{SweetError as r}from"./message.mjs";import"./commons/crypto-DuLLVHQr.js";import"./commons/sweetalert-DMYmZawW.js";var s=o(n()),i=new Map([["form","application/x-www-form-urlencoded;charset=UTF-8"],["upload","multipart/form-data"]]),a=function(){function o(o,n){var r;this.config=t(t({},{type:"",timeout:0,responseType:"json",withCredentials:!1,proxy:!1,ERROR_CODES:["1005","1006","1008","1009"]}),n||{}),this.postType=this.config.type,this.instance=e.create({baseURL:o,headers:{"Content-Type":null!==(r=i.get(this.config.type))&&void 0!==r?r:"application/json;charset=UTF-8"},timeout:this.config.timeout,responseType:this.config.responseType,withCredentials:this.config.withCredentials,proxy:this.config.proxy}),this.setupInterceptors()}return o.prototype.setupInterceptors=function(){var t=this;this.instance.interceptors.request.use(function(o){var n,r,s=null===(r=(n=t.config).getAuthorization)||void 0===r?void 0:r.call(n);return console.log("AUTH_TOKEN",s),s&&o.headers&&o.headers.set("Authorization",s),o.cancelToken=new e.CancelToken(function(e){var n,r;null===(r=(n=t.config).cancelCallback)||void 0===r||r.call(n,{cancelToken:{name:o.url,cancel:e}})}),o},this.handleError),this.instance.interceptors.response.use(function(e){var o;return(null===(o=t.config.ERROR_CODES)||void 0===o?void 0:o.includes(String(e.data.code)))?(r(e.data.msg).then(function(){var e,o;null===(o=(e=t.config).errorCallback)||void 0===o||o.call(e)}),Promise.reject(e.data.msg)):e.data},this.handleError)},o.prototype.handleError=function(t){return Promise.reject(t.message)},o.prototype.get=function(t,e){return this.instance.get(t,{params:e})},o.prototype.post=function(t,e){var o="form"===this.postType?s.stringify(e):e;return this.instance.post(t,o)},o.prototype.put=function(t,e){var o="form"===this.postType?s.stringify(e):e;return this.instance.put(t,o)},o.prototype.delete=function(t,e){return this.instance.delete(t,{params:{id:e}})},o}();export{a as CreateRequest};
package/dist/socket-io.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("./commons/tslib.es6-DVnGIs25.js"),t=require("./commons/socket_io-DNSuC_vR.js"),o=require("./utils.js"),s=function(){function s(e,t){void 0===t&&(t={}),this.socket=null,this.isConnected=!1,this.registerMessageHandlerMap=new Map,this.messageQueueList=new Map,this.options={reconnectionAttempts:5},this.options=Object.assign(this.options,t),this.createSocketIO(e)}return s.prototype.createSocketIO=function(o){var s,n,i,c,r,l,a,u=this;try{null===(i=this.socket)||void 0===i||i.disconnect(),this.socket=t.lookup(o,this.options),null===(c=this.socket)||void 0===c||c.on("connect",function(){var t,o,s;u.isConnected=!0;try{for(var n=e.__values(u.messageQueueList),i=n.next();!i.done;i=n.next()){var c=e.__read(i.value,2),r=c[0],l=c[1];null===(s=u.socket)||void 0===s||s.emit(l.event,l.data),u.messageQueueList.delete(r)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}console.log("socket.io连接成功")}),null===(r=this.socket)||void 0===r||r.on("disconnect",function(){u.isConnected=!1,console.log("socket.io连接断开")}),null===(l=this.socket)||void 0===l||l.on("connect_error",function(e){u.isConnected=!1,console.log("socket.io连接错误",e)});var d=function(e,t){null===(a=h.socket)||void 0===a||a.on(e,function(e){null==t||t(e)})},h=this;try{for(var v=e.__values(this.registerMessageHandlerMap),k=v.next();!k.done;k=v.next()){var p=e.__read(k.value,2);d(p[0],p[1])}}catch(e){s={error:e}}finally{try{k&&!k.done&&(n=v.return)&&n.call(v)}finally{if(s)throw s.error}}}catch(e){console.log("socket.io连接异常",e.message)}},s.prototype.disconnect=function(){this.socket&&(this.socket.disconnect(),this.socket=null,this.isConnected=!1,console.log("手动断开socket.io连接"))},s.prototype.send=function(e,t){var s;this.isConnected?null===(s=this.socket)||void 0===s||s.emit(e,t):this.messageQueueList.set("".concat(e,"-").concat(o.UUID(8,16)),{event:e,data:t})},s.prototype.registerMessageHandler=function(e,t){this.registerMessageHandlerMap.set(e,t)},s}();exports.SocketIO=s;
1
+ "use strict";var e=require("./commons/tslib.es6-DVnGIs25.js"),t=require("./commons/socket_io-Bw6JUjpU.js"),o=require("./utils.js"),s=function(){function s(e,t){void 0===t&&(t={}),this.socket=null,this.isConnected=!1,this.registerMessageHandlerMap=new Map,this.messageQueueList=new Map,this.options={reconnectionAttempts:5},this.options=Object.assign(this.options,t),this.createSocketIO(e)}return s.prototype.createSocketIO=function(o){var s,n,i,c,r,l,a,u=this;try{null===(i=this.socket)||void 0===i||i.disconnect(),this.socket=t.lookup(o,this.options),null===(c=this.socket)||void 0===c||c.on("connect",function(){var t,o,s;u.isConnected=!0;try{for(var n=e.__values(u.messageQueueList),i=n.next();!i.done;i=n.next()){var c=e.__read(i.value,2),r=c[0],l=c[1];null===(s=u.socket)||void 0===s||s.emit(l.event,l.data),u.messageQueueList.delete(r)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}console.log("socket.io连接成功")}),null===(r=this.socket)||void 0===r||r.on("disconnect",function(){u.isConnected=!1,console.log("socket.io连接断开")}),null===(l=this.socket)||void 0===l||l.on("connect_error",function(e){u.isConnected=!1,console.log("socket.io连接错误",e)});var d=function(e,t){null===(a=h.socket)||void 0===a||a.on(e,function(e){null==t||t(e)})},h=this;try{for(var v=e.__values(this.registerMessageHandlerMap),k=v.next();!k.done;k=v.next()){var p=e.__read(k.value,2);d(p[0],p[1])}}catch(e){s={error:e}}finally{try{k&&!k.done&&(n=v.return)&&n.call(v)}finally{if(s)throw s.error}}}catch(e){console.log("socket.io连接异常",e.message)}},s.prototype.disconnect=function(){this.socket&&(this.socket.disconnect(),this.socket=null,this.isConnected=!1,console.log("手动断开socket.io连接"))},s.prototype.send=function(e,t){var s;this.isConnected?null===(s=this.socket)||void 0===s||s.emit(e,t):this.messageQueueList.set("".concat(e,"-").concat(o.UUID(8,16)),{event:e,data:t})},s.prototype.registerMessageHandler=function(e,t){this.registerMessageHandlerMap.set(e,t)},s}();exports.SocketIO=s;
@@ -1 +1 @@
1
- import{a as t,b as e}from"./commons/tslib.es6-BjAlDJRq.js";import{l as o}from"./commons/socket_io-CdBGfI8s.js";import{UUID as s}from"./utils.mjs";var n=function(){function n(t,e){void 0===e&&(e={}),this.socket=null,this.isConnected=!1,this.registerMessageHandlerMap=new Map,this.messageQueueList=new Map,this.options={reconnectionAttempts:5},this.options=Object.assign(this.options,e),this.createSocketIO(t)}return n.prototype.createSocketIO=function(s){var n,i,c,r,l,a,u,d=this;try{null===(c=this.socket)||void 0===c||c.disconnect(),this.socket=o(s,this.options),null===(r=this.socket)||void 0===r||r.on("connect",function(){var o,s,n;d.isConnected=!0;try{for(var i=t(d.messageQueueList),c=i.next();!c.done;c=i.next()){var r=e(c.value,2),l=r[0],a=r[1];null===(n=d.socket)||void 0===n||n.emit(a.event,a.data),d.messageQueueList.delete(l)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}console.log("socket.io连接成功")}),null===(l=this.socket)||void 0===l||l.on("disconnect",function(){d.isConnected=!1,console.log("socket.io连接断开")}),null===(a=this.socket)||void 0===a||a.on("connect_error",function(t){d.isConnected=!1,console.log("socket.io连接错误",t)});var h=function(t,e){null===(u=f.socket)||void 0===u||u.on(t,function(t){null==e||e(t)})},f=this;try{for(var p=t(this.registerMessageHandlerMap),v=p.next();!v.done;v=p.next()){var k=e(v.value,2);h(k[0],k[1])}}catch(t){n={error:t}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}catch(t){console.log("socket.io连接异常",t.message)}},n.prototype.disconnect=function(){this.socket&&(this.socket.disconnect(),this.socket=null,this.isConnected=!1,console.log("手动断开socket.io连接"))},n.prototype.send=function(t,e){var o;this.isConnected?null===(o=this.socket)||void 0===o||o.emit(t,e):this.messageQueueList.set("".concat(t,"-").concat(s(8,16)),{event:t,data:e})},n.prototype.registerMessageHandler=function(t,e){this.registerMessageHandlerMap.set(t,e)},n}();export{n as SocketIO};
1
+ import{a as t,b as e}from"./commons/tslib.es6-BjAlDJRq.js";import{l as o}from"./commons/socket_io-CSNhVzSE.js";import{UUID as s}from"./utils.mjs";var n=function(){function n(t,e){void 0===e&&(e={}),this.socket=null,this.isConnected=!1,this.registerMessageHandlerMap=new Map,this.messageQueueList=new Map,this.options={reconnectionAttempts:5},this.options=Object.assign(this.options,e),this.createSocketIO(t)}return n.prototype.createSocketIO=function(s){var n,i,c,r,l,a,u,d=this;try{null===(c=this.socket)||void 0===c||c.disconnect(),this.socket=o(s,this.options),null===(r=this.socket)||void 0===r||r.on("connect",function(){var o,s,n;d.isConnected=!0;try{for(var i=t(d.messageQueueList),c=i.next();!c.done;c=i.next()){var r=e(c.value,2),l=r[0],a=r[1];null===(n=d.socket)||void 0===n||n.emit(a.event,a.data),d.messageQueueList.delete(l)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}console.log("socket.io连接成功")}),null===(l=this.socket)||void 0===l||l.on("disconnect",function(){d.isConnected=!1,console.log("socket.io连接断开")}),null===(a=this.socket)||void 0===a||a.on("connect_error",function(t){d.isConnected=!1,console.log("socket.io连接错误",t)});var h=function(t,e){null===(u=f.socket)||void 0===u||u.on(t,function(t){null==e||e(t)})},f=this;try{for(var p=t(this.registerMessageHandlerMap),v=p.next();!v.done;v=p.next()){var k=e(v.value,2);h(k[0],k[1])}}catch(t){n={error:t}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}catch(t){console.log("socket.io连接异常",t.message)}},n.prototype.disconnect=function(){this.socket&&(this.socket.disconnect(),this.socket=null,this.isConnected=!1,console.log("手动断开socket.io连接"))},n.prototype.send=function(t,e){var o;this.isConnected?null===(o=this.socket)||void 0===o||o.emit(t,e):this.messageQueueList.set("".concat(t,"-").concat(s(8,16)),{event:t,data:e})},n.prototype.registerMessageHandler=function(t,e){this.registerMessageHandlerMap.set(t,e)},n}();export{n as SocketIO};
@@ -13,7 +13,7 @@ export interface ConfigOptions {
13
13
  withCredentials: boolean;
14
14
  ERROR_CODES: string[];
15
15
  callback?: () => void;
16
- Authorization?: string;
16
+ getAuthorization?: () => string;
17
17
  errorCallback?: () => void;
18
18
  cancelCallback?: (cancelToken: any) => void;
19
19
  [key: string]: any;
@@ -31,7 +31,7 @@ export interface Options {
31
31
  }
32
32
  export declare class CreateRequest {
33
33
  private instance;
34
- private postType;
34
+ private readonly postType;
35
35
  private config;
36
36
  constructor(baseURL: string, options?: Options);
37
37
  /**
@@ -19,7 +19,7 @@ export declare const flattenDeepArray: (data: Record<string, any>[]) => Record<s
19
19
  * @param data 待检查的数据,可以是任意类型
20
20
  * @returns 如果数据是数字类型,则返回true;否则返回false
21
21
  */
22
- export declare const isNumber: (data: number | string) => data is number;
22
+ export declare const isNumber: (data: any) => data is number;
23
23
  export declare class TransformConvertor {
24
24
  private readonly M_PI;
25
25
  private readonly A;
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "cool-common-utils",
3
- "version": "0.0.1-beta.8",
3
+ "version": "1.0.1",
4
4
  "description": "cool工具函数库",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
- "unpkg": "./dist/index.umd.min.js",
8
7
  "types": "./dist/index.d.ts",
9
8
  "sideEffects": [
10
9
  "./dist/websocket.mjs",
@@ -17,6 +16,22 @@
17
16
  "files": [
18
17
  "dist"
19
18
  ],
19
+ "keywords": [
20
+ "cool-common-utils",
21
+ "cool-common-utils-ts",
22
+ "cool",
23
+ "websocket",
24
+ "utils",
25
+ "water",
26
+ "aes",
27
+ "export-xlsx",
28
+ "amap-utils",
29
+ "request",
30
+ "axios",
31
+ "mqtt",
32
+ "socket-io",
33
+ "sweetalert"
34
+ ],
20
35
  "scripts": {
21
36
  "serve": "rollup -w -c",
22
37
  "build:types": "tsc -b ./tsconfig.json",
@@ -30,10 +45,10 @@
30
45
  "author": "cool-boy",
31
46
  "license": "MIT",
32
47
  "dependencies": {
33
- "axios": "^1.13.2",
48
+ "axios": "^1.15.0",
34
49
  "crypto-js": "^4.2.0",
35
50
  "mqtt": "^5.14.1",
36
- "qs": "^6.14.0",
51
+ "qs": "^6.15.1",
37
52
  "socket.io-client": "^4.8.1",
38
53
  "sweetalert": "^2.1.2",
39
54
  "xlsx-js-style": "^1.2.0"
@@ -49,6 +64,7 @@
49
64
  "@rollup/plugin-terser": "^0.4.4",
50
65
  "@rollup/plugin-typescript": "^12.3.0",
51
66
  "@types/crypto-js": "^4.2.2",
67
+ "@types/fs-extra": "^11.0.4",
52
68
  "@types/jest": "^30.0.0",
53
69
  "@types/node": "^24.10.0",
54
70
  "@types/qs": "^6.14.0",
@@ -61,11 +77,11 @@
61
77
  "jest": "^30.2.0",
62
78
  "moment": "^2.30.1",
63
79
  "rimraf": "^6.1.0",
64
- "rollup": "^4.53.2",
80
+ "rollup": "^4.60.1",
65
81
  "rollup-plugin-polyfill-node": "^0.13.0",
66
82
  "ts-jest": "^29.4.5",
67
83
  "ts-node": "^10.9.2",
68
84
  "tslib": "^2.8.1",
69
85
  "typescript": "^5.9.3"
70
86
  }
71
- }
87
+ }
@@ -1 +0,0 @@
1
- "use strict";function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:r,toStringTag:o}=Symbol,s=(i=Object.create(null),e=>{const n=t.call(e);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:l}=Array,u=c("undefined");function f(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");const p=c("string"),h=c("function"),m=c("number"),b=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||r in e)},g=a("Date"),w=a("File"),E=a("Blob"),O=a("FileList"),R=a("URLSearchParams"),[S,T,A,v]=["ReadableStream","Request","Response","Headers"].map(a);function C(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(f(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function x(e,t){if(f(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,N=e=>!u(e)&&e!==j;const U=(P="undefined"!=typeof Uint8Array&&n(Uint8Array),e=>P&&e instanceof P);var P;const F=a("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=a("RegExp"),k=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)};const B=a("AsyncFunction"),D=(q="function"==typeof setImmediate,I=h(j.postMessage),q?setImmediate:I?(M=`axios@${Math.random()}`,z=[],j.addEventListener("message",({source:e,data:t})=>{e===j&&t===M&&z.length&&z.shift()()},!1),e=>{z.push(e),j.postMessage(M,"*")}):e=>setTimeout(e));var q,I,M,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||D;var J={isArray:l,isArrayBuffer:d,isBuffer:f,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=s(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:y,isEmptyObject:e=>{if(!b(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:T,isResponse:A,isHeaders:v,isUndefined:u,isDate:g,isFile:w,isBlob:E,isRegExp:L,isFunction:h,isStream:e=>b(e)&&h(e.pipe),isURLSearchParams:R,isTypedArray:U,isFileList:O,forEach:C,merge:function e(){const{caseless:t,skipUndefined:n}=N(this)&&this||{},r={},o=(o,s)=>{const i=t&&x(r,s)||s;y(r[i])&&y(o)?r[i]=e(r[i],o):y(o)?r[i]=e({},o):l(o)?r[i]=o.slice():n&&u(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&C(arguments[e],o);return r},extend:(t,n,r,{allOwnKeys:o}={})=>(C(n,(n,o)=>{r&&h(n)?t[o]=e(n,r):t[o]=n},{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[r]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:k,freezeMethods:e=>{k(e,(t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:j,isContextDefined:N,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[o]&&e[r])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(f(e))return e;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return C(e,(e,t)=>{const s=n(e,r+1);!u(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(b(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:D,asap:H,isIterable:e=>null!=e&&h(e[r])};function W(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}J.inherits(W,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const $=W.prototype,K={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{K[e]={value:e}}),Object.defineProperties(W,K),Object.defineProperty($,"isAxiosError",{value:!0}),W.from=(e,t,n,r,o,s)=>{const i=Object.create($);J.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return W.call(i,a,c,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};function V(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map(function(e,t){return e=X(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Q=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function Z(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])})).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!a&&J.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(V)}(e)||(J.isFileList(e)||J.endsWith(n,"[]"))&&(a=J.toArray(e)))return n=X(n),a.forEach(function(e,r){!J.isUndefined(e)&&null!==e&&t.append(!0===i?G([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!V(e)||(t.append(G(o,n,s),c(e)),!1)}const u=[],f=Object.assign(Q,{defaultVisitor:l,convertValue:c,isVisitable:V});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!J.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),J.forEach(n,function(n,s){!0===(!(J.isUndefined(n)||null===n)&&o.call(t,n,J.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])}),u.pop()}}(e),t}function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ee(e,t){this._pairs=[],e&&Z(e,this,t)}const te=ee.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function re(e,t,n){if(!t)return e;const r=n&&n.encode||ne;J.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):J.isURLSearchParams(t)?t.toString():new ee(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class oe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(t){null!==t&&e(t)})}}var se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ae="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,le=ae&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),ue="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=ae&&window.location.href||"http://localhost";var de={...Object.freeze({__proto__:null,hasBrowserEnv:ae,hasStandardBrowserEnv:le,hasStandardBrowserWebWorkerEnv:ue,navigator:ce,origin:fe}),...ie};function pe(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&J.isArray(r)?r.length:s,a)return J.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&J.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&J.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(e,r)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const he={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return r?JSON.stringify(pe(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new de.classes.URLSearchParams,{visitor:function(e,t,n,r){return de.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw W.from(e,W.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:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{he.headers[e]={}});const me=J.toObjectSet(["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"]);const be=Symbol("internals");function ye(e){return e&&String(e).trim().toLowerCase()}function ge(e){return!1===e||null==e?e:J.isArray(e)?e.map(ge):String(e)}function we(e,t,n,r,o){return J.isFunction(r)?r.call(this,t,n):(o&&(t=n),J.isString(t)?J.isString(r)?-1!==t.indexOf(r):J.isRegExp(r)?r.test(t):void 0:void 0)}let Ee=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ye(t);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=ge(e))}const s=(e,t)=>J.forEach(e,(e,n)=>o(e,n,t));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&me[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(J.isObject(e)&&J.isIterable(e)){let n,r,o={};for(const t of e){if(!J.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?J.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ye(e)){const n=J.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ye(e)){const n=J.findKey(this,e);return!(!n||void 0===this[n]||t&&!we(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ye(e)){const o=J.findKey(n,e);!o||t&&!we(0,n[o],o,t)||(delete n[o],r=!0)}}return J.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!we(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return J.forEach(this,(r,o)=>{const s=J.findKey(n,o);if(s)return t[s]=ge(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=ge(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&J.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[be]=this[be]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ye(e);t[r]||(!function(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}};function Oe(e,t){const n=this||he,r=t||n,o=Ee.from(r.headers);let s=r.data;return J.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Re(e){return!(!e||!e.__CANCEL__)}function Se(e,t,n){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,n),this.name="CanceledError"}function Te(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Ee.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),J.freezeMethods(Ee),J.inherits(Se,W,{__CANCEL__:!0});const Ae=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},ve=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ce=e=>(...t)=>J.asap(()=>e(...t));var xe=de.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,de.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,je=de.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&a.push(`path=${r}`),J.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),J.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ne(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ue=e=>e instanceof Ee?{...e}:e;function Pe(e,t){t=t||{};const n={};function r(e,t,n,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,n,o){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!J.isUndefined(t))return r(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken: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:a,headers:(e,t,n)=>o(Ue(e),Ue(t),0,!0)};return J.forEach(Object.keys({...e,...t}),function(r){const s=c[r]||o,i=s(e[r],t[r],r);J.isUndefined(i)&&s!==a||(n[r]=i)}),n}var Fe=e=>{const t=Pe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Ee.from(i),t.url=re(Ne(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),J.isFormData(n))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(de.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||!1!==r&&xe(t.url))){const e=o&&s&&je.read(s);e&&i.set(o,e)}return t};var _e="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Fe(e);let o=r.data;const s=Ee.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=Ee.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Te(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new W(t&&t.message?t.message:"Network Error",W.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||se;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&J.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),J.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=Ae(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Ae(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Se(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===de.protocols.indexOf(y)?n(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Le=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof W?t:new Se(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>J.asap(i),a}},ke=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Be=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},De=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Be(e))yield*ke(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:qe}=J,Ie=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:Me,TextEncoder:ze}=J.global,He=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Je=e=>{e=J.merge.call({skipUndefined:!0},Ie,e);const{fetch:t,Request:n,Response:r}=e,o=t?qe(t):"function"==typeof fetch,s=qe(n),i=qe(r);if(!o)return!1;const a=o&&qe(Me),c=o&&("function"==typeof ze?(l=new ze,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&He(()=>{let e=!1;const t=new n(de.origin,{body:new Me,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=i&&a&&He(()=>J.isReadableStream(new r("").body)),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){const t=new n(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:a,signal:c,cancelToken:l,timeout:h,onDownloadProgress:m,onUploadProgress:b,responseType:y,headers:g,withCredentials:w="same-origin",fetchOptions:E}=Fe(e),O=t||fetch;y=y?(y+"").toLowerCase():"text";let R=Le([c,l&&l.toAbortSignal()],h),S=null;const T=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let A;try{if(b&&u&&"get"!==i&&"head"!==i&&0!==(A=await p(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(J.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=ve(A,Ae(Ce(b)));a=De(t.body,65536,e,n)}}J.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,c={...E,signal:R,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=s&&new n(o,c);let l=await(s?O(S,E):O(o,c));const h=f&&("stream"===y||"response"===y);if(f&&(m||h&&T)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=J.toFiniteNumber(l.headers.get("content-length")),[n,o]=m&&ve(t,Ae(Ce(m),!0))||[];l=new r(De(l.body,65536,n,()=>{o&&o(),T&&T()}),e)}y=y||"text";let v=await d[J.findKey(d,y)||"text"](l,e);return!h&&T&&T(),await new Promise((t,n)=>{Te(t,n,{data:v,headers:Ee.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:S})})}catch(t){if(T&&T(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,S),{cause:t.cause||t});throw W.from(t,t&&t.code,e,S)}}},We=new Map,$e=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=We;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Je(t)),l=a;return a};$e();const Ke={http:null,xhr:_e,fetch:{get:$e}};J.forEach(Ke,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Ve=e=>`- ${e}`,Xe=e=>J.isFunction(e)||null===e||!1===e;var Ge={getAdapter:function(e,t){e=J.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!Xe(r)&&(o=Ke[(n=String(r)).toLowerCase()],void 0===o))throw new W(`Unknown adapter '${n}'`);if(o&&(J.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new W("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Ve).join("\n"):" "+Ve(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ke};function Qe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function Ze(e){Qe(e),e.headers=Ee.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ge.getAdapter(e.adapter||he.adapter,e)(e).then(function(t){return Qe(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Ee.from(t.headers),t},function(t){return Re(t)||(Qe(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Ee.from(t.response.headers))),Promise.reject(t)})}const Ye="1.13.2",et={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{et[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tt={};et.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ye+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new W(r(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!tt[o]&&(tt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},et.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var nt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new W("option "+s+" must be "+n,W.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}},validators:et};const rt=nt.validators;let ot=class{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Pe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nt.assertOptions(n,{silentJSONParsing:rt.transitional(rt.boolean),forcedJSONParsing:rt.transitional(rt.boolean),clarifyTimeoutError:rt.transitional(rt.boolean)},!1),null!=r&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:nt.assertOptions(r,{encode:rt.function,serialize:rt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nt.assertOptions(t,{baseUrl:rt.spelling("baseURL"),withXsrfToken:rt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&J.merge(o.common,o[t.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ee.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!a){const e=[Ze.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Ze.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return re(Ne((e=Pe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(e){ot.prototype[e]=function(t,n){return this.request(Pe(n||{},{method:e,url:t,data:(n||{}).data}))}}),J.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Pe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ot.prototype[e]=t(),ot.prototype[e+"Form"]=t(!0)});const st={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(st).forEach(([e,t])=>{st[t]=e});const it=function t(n){const r=new ot(n),o=e(ot.prototype.request,r);return J.extend(o,ot.prototype,r,{allOwnKeys:!0}),J.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Pe(n,e))},o}(he);it.Axios=ot,it.CanceledError=Se,it.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Se(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},it.isCancel=Re,it.VERSION=Ye,it.toFormData=Z,it.AxiosError=W,it.Cancel=it.CanceledError,it.all=function(e){return Promise.all(e)},it.spread=function(e){return function(t){return e.apply(null,t)}},it.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},it.mergeConfig=Pe,it.AxiosHeaders=Ee,it.formToJSON=e=>pe(J.isHTMLForm(e)?new FormData(e):e),it.getAdapter=Ge.getAdapter,it.HttpStatusCode=st,it.default=it;const{Axios:at,AxiosError:ct,CanceledError:lt,isCancel:ut,CancelToken:ft,VERSION:dt,all:pt,Cancel:ht,isAxiosError:mt,spread:bt,toFormData:yt,AxiosHeaders:gt,HttpStatusCode:wt,formToJSON:Et,getAdapter:Ot,mergeConfig:Rt}=it;exports.axios=it;
@@ -1 +0,0 @@
1
- function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:r,toStringTag:o}=Symbol,s=(i=Object.create(null),e=>{const n=t.call(e);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:l}=Array,u=c("undefined");function f(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");const p=c("string"),h=c("function"),m=c("number"),b=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||r in e)},g=a("Date"),w=a("File"),E=a("Blob"),O=a("FileList"),R=a("URLSearchParams"),[S,T,A,v]=["ReadableStream","Request","Response","Headers"].map(a);function C(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(f(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function x(e,t){if(f(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,N=e=>!u(e)&&e!==j;const U=(P="undefined"!=typeof Uint8Array&&n(Uint8Array),e=>P&&e instanceof P);var P;const F=a("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=a("RegExp"),k=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)};const B=a("AsyncFunction"),D=(q="function"==typeof setImmediate,I=h(j.postMessage),q?setImmediate:I?(M=`axios@${Math.random()}`,z=[],j.addEventListener("message",({source:e,data:t})=>{e===j&&t===M&&z.length&&z.shift()()},!1),e=>{z.push(e),j.postMessage(M,"*")}):e=>setTimeout(e));var q,I,M,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||D;var J={isArray:l,isArrayBuffer:d,isBuffer:f,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=s(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:y,isEmptyObject:e=>{if(!b(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:T,isResponse:A,isHeaders:v,isUndefined:u,isDate:g,isFile:w,isBlob:E,isRegExp:L,isFunction:h,isStream:e=>b(e)&&h(e.pipe),isURLSearchParams:R,isTypedArray:U,isFileList:O,forEach:C,merge:function e(){const{caseless:t,skipUndefined:n}=N(this)&&this||{},r={},o=(o,s)=>{const i=t&&x(r,s)||s;y(r[i])&&y(o)?r[i]=e(r[i],o):y(o)?r[i]=e({},o):l(o)?r[i]=o.slice():n&&u(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&C(arguments[e],o);return r},extend:(t,n,r,{allOwnKeys:o}={})=>(C(n,(n,o)=>{r&&h(n)?t[o]=e(n,r):t[o]=n},{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[r]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:k,freezeMethods:e=>{k(e,(t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:j,isContextDefined:N,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[o]&&e[r])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(f(e))return e;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return C(e,(e,t)=>{const s=n(e,r+1);!u(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(b(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:D,asap:H,isIterable:e=>null!=e&&h(e[r])};function W(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}J.inherits(W,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const $=W.prototype,K={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{K[e]={value:e}}),Object.defineProperties(W,K),Object.defineProperty($,"isAxiosError",{value:!0}),W.from=(e,t,n,r,o,s)=>{const i=Object.create($);J.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return W.call(i,a,c,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};function V(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map(function(e,t){return e=X(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Q=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function Z(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])})).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!a&&J.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(V)}(e)||(J.isFileList(e)||J.endsWith(n,"[]"))&&(a=J.toArray(e)))return n=X(n),a.forEach(function(e,r){!J.isUndefined(e)&&null!==e&&t.append(!0===i?G([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!V(e)||(t.append(G(o,n,s),c(e)),!1)}const u=[],f=Object.assign(Q,{defaultVisitor:l,convertValue:c,isVisitable:V});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!J.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),J.forEach(n,function(n,s){!0===(!(J.isUndefined(n)||null===n)&&o.call(t,n,J.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])}),u.pop()}}(e),t}function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ee(e,t){this._pairs=[],e&&Z(e,this,t)}const te=ee.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function re(e,t,n){if(!t)return e;const r=n&&n.encode||ne;J.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):J.isURLSearchParams(t)?t.toString():new ee(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class oe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(t){null!==t&&e(t)})}}var se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ae="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,le=ae&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),ue="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=ae&&window.location.href||"http://localhost";var de={...Object.freeze({__proto__:null,hasBrowserEnv:ae,hasStandardBrowserEnv:le,hasStandardBrowserWebWorkerEnv:ue,navigator:ce,origin:fe}),...ie};function pe(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&J.isArray(r)?r.length:s,a)return J.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&J.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&J.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(e,r)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const he={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return r?JSON.stringify(pe(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new de.classes.URLSearchParams,{visitor:function(e,t,n,r){return de.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw W.from(e,W.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:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{he.headers[e]={}});const me=J.toObjectSet(["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"]);const be=Symbol("internals");function ye(e){return e&&String(e).trim().toLowerCase()}function ge(e){return!1===e||null==e?e:J.isArray(e)?e.map(ge):String(e)}function we(e,t,n,r,o){return J.isFunction(r)?r.call(this,t,n):(o&&(t=n),J.isString(t)?J.isString(r)?-1!==t.indexOf(r):J.isRegExp(r)?r.test(t):void 0:void 0)}let Ee=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ye(t);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=ge(e))}const s=(e,t)=>J.forEach(e,(e,n)=>o(e,n,t));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&me[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(J.isObject(e)&&J.isIterable(e)){let n,r,o={};for(const t of e){if(!J.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?J.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ye(e)){const n=J.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ye(e)){const n=J.findKey(this,e);return!(!n||void 0===this[n]||t&&!we(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ye(e)){const o=J.findKey(n,e);!o||t&&!we(0,n[o],o,t)||(delete n[o],r=!0)}}return J.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!we(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return J.forEach(this,(r,o)=>{const s=J.findKey(n,o);if(s)return t[s]=ge(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=ge(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&J.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[be]=this[be]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ye(e);t[r]||(!function(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}};function Oe(e,t){const n=this||he,r=t||n,o=Ee.from(r.headers);let s=r.data;return J.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Re(e){return!(!e||!e.__CANCEL__)}function Se(e,t,n){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,n),this.name="CanceledError"}function Te(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Ee.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),J.freezeMethods(Ee),J.inherits(Se,W,{__CANCEL__:!0});const Ae=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},ve=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ce=e=>(...t)=>J.asap(()=>e(...t));var xe=de.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,de.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,je=de.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&a.push(`path=${r}`),J.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),J.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ne(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ue=e=>e instanceof Ee?{...e}:e;function Pe(e,t){t=t||{};const n={};function r(e,t,n,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,n,o){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!J.isUndefined(t))return r(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken: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:a,headers:(e,t,n)=>o(Ue(e),Ue(t),0,!0)};return J.forEach(Object.keys({...e,...t}),function(r){const s=c[r]||o,i=s(e[r],t[r],r);J.isUndefined(i)&&s!==a||(n[r]=i)}),n}var Fe=e=>{const t=Pe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Ee.from(i),t.url=re(Ne(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),J.isFormData(n))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(de.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||!1!==r&&xe(t.url))){const e=o&&s&&je.read(s);e&&i.set(o,e)}return t};var _e="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Fe(e);let o=r.data;const s=Ee.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=Ee.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Te(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new W(t&&t.message?t.message:"Network Error",W.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||se;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&J.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),J.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=Ae(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Ae(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Se(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===de.protocols.indexOf(y)?n(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Le=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof W?t:new Se(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>J.asap(i),a}},ke=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Be=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},De=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Be(e))yield*ke(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:qe}=J,Ie=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:Me,TextEncoder:ze}=J.global,He=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Je=e=>{e=J.merge.call({skipUndefined:!0},Ie,e);const{fetch:t,Request:n,Response:r}=e,o=t?qe(t):"function"==typeof fetch,s=qe(n),i=qe(r);if(!o)return!1;const a=o&&qe(Me),c=o&&("function"==typeof ze?(l=new ze,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&He(()=>{let e=!1;const t=new n(de.origin,{body:new Me,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=i&&a&&He(()=>J.isReadableStream(new r("").body)),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){const t=new n(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:a,signal:c,cancelToken:l,timeout:h,onDownloadProgress:m,onUploadProgress:b,responseType:y,headers:g,withCredentials:w="same-origin",fetchOptions:E}=Fe(e),O=t||fetch;y=y?(y+"").toLowerCase():"text";let R=Le([c,l&&l.toAbortSignal()],h),S=null;const T=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let A;try{if(b&&u&&"get"!==i&&"head"!==i&&0!==(A=await p(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(J.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=ve(A,Ae(Ce(b)));a=De(t.body,65536,e,n)}}J.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,c={...E,signal:R,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=s&&new n(o,c);let l=await(s?O(S,E):O(o,c));const h=f&&("stream"===y||"response"===y);if(f&&(m||h&&T)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=J.toFiniteNumber(l.headers.get("content-length")),[n,o]=m&&ve(t,Ae(Ce(m),!0))||[];l=new r(De(l.body,65536,n,()=>{o&&o(),T&&T()}),e)}y=y||"text";let v=await d[J.findKey(d,y)||"text"](l,e);return!h&&T&&T(),await new Promise((t,n)=>{Te(t,n,{data:v,headers:Ee.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:S})})}catch(t){if(T&&T(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,S),{cause:t.cause||t});throw W.from(t,t&&t.code,e,S)}}},We=new Map,$e=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=We;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Je(t)),l=a;return a};$e();const Ke={http:null,xhr:_e,fetch:{get:$e}};J.forEach(Ke,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Ve=e=>`- ${e}`,Xe=e=>J.isFunction(e)||null===e||!1===e;var Ge={getAdapter:function(e,t){e=J.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!Xe(r)&&(o=Ke[(n=String(r)).toLowerCase()],void 0===o))throw new W(`Unknown adapter '${n}'`);if(o&&(J.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new W("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Ve).join("\n"):" "+Ve(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ke};function Qe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function Ze(e){Qe(e),e.headers=Ee.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ge.getAdapter(e.adapter||he.adapter,e)(e).then(function(t){return Qe(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Ee.from(t.headers),t},function(t){return Re(t)||(Qe(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Ee.from(t.response.headers))),Promise.reject(t)})}const Ye="1.13.2",et={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{et[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tt={};et.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ye+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new W(r(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!tt[o]&&(tt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},et.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var nt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new W("option "+s+" must be "+n,W.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}},validators:et};const rt=nt.validators;let ot=class{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Pe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nt.assertOptions(n,{silentJSONParsing:rt.transitional(rt.boolean),forcedJSONParsing:rt.transitional(rt.boolean),clarifyTimeoutError:rt.transitional(rt.boolean)},!1),null!=r&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:nt.assertOptions(r,{encode:rt.function,serialize:rt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nt.assertOptions(t,{baseUrl:rt.spelling("baseURL"),withXsrfToken:rt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&J.merge(o.common,o[t.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ee.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!a){const e=[Ze.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Ze.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return re(Ne((e=Pe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(e){ot.prototype[e]=function(t,n){return this.request(Pe(n||{},{method:e,url:t,data:(n||{}).data}))}}),J.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Pe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ot.prototype[e]=t(),ot.prototype[e+"Form"]=t(!0)});const st={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(st).forEach(([e,t])=>{st[t]=e});const it=function t(n){const r=new ot(n),o=e(ot.prototype.request,r);return J.extend(o,ot.prototype,r,{allOwnKeys:!0}),J.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Pe(n,e))},o}(he);it.Axios=ot,it.CanceledError=Se,it.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Se(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},it.isCancel=Re,it.VERSION=Ye,it.toFormData=Z,it.AxiosError=W,it.Cancel=it.CanceledError,it.all=function(e){return Promise.all(e)},it.spread=function(e){return function(t){return e.apply(null,t)}},it.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},it.mergeConfig=Pe,it.AxiosHeaders=Ee,it.formToJSON=e=>pe(J.isHTMLForm(e)?new FormData(e):e),it.getAdapter=Ge.getAdapter,it.HttpStatusCode=st,it.default=it;const{Axios:at,AxiosError:ct,CanceledError:lt,isCancel:ut,CancelToken:ft,VERSION:dt,all:pt,Cancel:ht,isAxiosError:mt,spread:bt,toFormData:yt,AxiosHeaders:gt,HttpStatusCode:wt,formToJSON:Et,getAdapter:Ot,mergeConfig:Rt}=it;export{it as a};
@@ -1 +0,0 @@
1
- "use strict";var t,e,r,o,n,i,a,c,p,u,l,f,y,s,d,h,m,g,b,v,w,S,A,O,j,E,P,x,I,R,_,D,F,M,k,N,T,U,L,B,W,C,K,G,$,q,H,z,V,Q,J,X,Y,Z,tt,et,rt,ot,nt,it,at,ct,pt,ut,lt,ft,yt,st,dt,ht,mt,gt,bt,vt,wt,St,At,Ot,jt,Et,Pt,xt,It,Rt,_t,Dt,Ft,Mt,kt,Nt,Tt=require("./crypto-BjswgmPi.js");function Ut(){return e?t:(e=1,t=TypeError)}function Lt(){if(o)return r;o=1;var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&"function"==typeof e.get?e.get:null,i=t&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,s=Boolean.prototype.valueOf,d=Object.prototype.toString,h=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,A=Array.prototype.concat,O=Array.prototype.join,j=Array.prototype.slice,E=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function M(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-E(-t):E(t);if(o!==t){var n=String(o),i=g.call(e,n.length+1);return b.call(n,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var k=Tt.require$$0,N=k.custom,T=$(N)?N:null,U={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(t,e,r){var o=r.quoteStyle||e,n=U[o];return n+t+n}function W(t){return b.call(String(t),/"/g,"&quot;")}function C(t){return!_||!("object"==typeof t&&(_ in t||void 0!==t[_]))}function K(t){return"[object Array]"===z(t)&&C(t)}function G(t){return"[object RegExp]"===z(t)&&C(t)}function $(t){if(R)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}r=function t(e,r,o,a){var c=r||{};if(H(c,"quoteStyle")&&!H(U,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!H(c,"customInspect")||c.customInspect;if("boolean"!=typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Q(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var S=String(e);return v?M(e,S):S}if("bigint"==typeof e){var E=String(e)+"n";return v?M(e,E):E}var x=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof e)return K(e)?"[Array]":"[Object]";var N=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(c,o);if(void 0===a)a=[];else if(V(a,e)>=0)return"[Circular]";function L(e,r,n){if(r&&(a=j.call(a)).push(r),n){var i={depth:c.depth};return H(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),t(e,i,o+1,a)}return t(e,c,o+1,a)}if("function"==typeof e&&!G(e)){var q=function(t){if(t.name)return t.name;var e=m.call(h.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),J=et(e,L);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(J.length>0?" { "+O.call(J,", ")+" }":"")}if($(e)){var rt=R?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(e);return"object"!=typeof e||R?rt:X(rt)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var ot="<"+w.call(String(e.nodeName)),nt=e.attributes||[],it=0;it<nt.length;it++)ot+=" "+nt[it].name+"="+B(W(nt[it].value),"double",c);return ot+=">",e.childNodes&&e.childNodes.length&&(ot+="..."),ot+="</"+w.call(String(e.nodeName))+">"}if(K(e)){if(0===e.length)return"[]";var at=et(e,L);return N&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(at)?"["+tt(at,N)+"]":"[ "+O.call(at,", ")+" ]"}if(function(t){return"[object Error]"===z(t)&&C(t)}(e)){var ct=et(e,L);return"cause"in Error.prototype||!("cause"in e)||D.call(e,"cause")?0===ct.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(ct,", ")+" }":"{ ["+String(e)+"] "+O.call(A.call("[cause]: "+L(e.cause),ct),", ")+" }"}if("object"==typeof e&&d){if(T&&"function"==typeof e[T]&&k)return k(e,{depth:x-o});if("symbol"!==d&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!n||!t||"object"!=typeof t)return!1;try{n.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var pt=[];return i&&i.call(e,function(t,r){pt.push(L(r,e,!0)+" => "+L(t,e))}),Z("Map",n.call(e),pt,N)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{n.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ut=[];return u&&u.call(e,function(t){ut.push(L(t,e))}),Z("Set",p.call(e),ut,N)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return"[object Number]"===z(t)&&C(t)}(e))return X(L(Number(e)));if(function(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}(e))return X(L(P.call(e)));if(function(t){return"[object Boolean]"===z(t)&&C(t)}(e))return X(s.call(e));if(function(t){return"[object String]"===z(t)&&C(t)}(e))return X(L(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==Tt.commonjsGlobal&&e===Tt.commonjsGlobal)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===z(t)&&C(t)}(e)&&!G(e)){var lt=et(e,L),ft=F?F(e)===Object.prototype:e instanceof Object||e.constructor===Object,yt=e instanceof Object?"":"null prototype",st=!ft&&_&&Object(e)===e&&_ in e?g.call(z(e),8,-1):yt?"Object":"",dt=(ft||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(st||yt?"["+O.call(A.call([],st||[],yt||[]),": ")+"] ":"");return 0===lt.length?dt+"{}":N?dt+"{"+tt(lt,N)+"}":dt+"{ "+O.call(lt,", ")+" }"}return String(e)};var q=Object.prototype.hasOwnProperty||function(t){return t in this};function H(t,e){return q.call(t,e)}function z(t){return d.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function Q(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return Q(g.call(t,0,e.maxStringLength),e)+o}var n=L[e.quoteStyle||"single"];return n.lastIndex=0,B(b.call(b.call(t,n,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+v.call(e.toString(16))}function X(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function Z(t,e,r,o){return t+" ("+e+") {"+(o?tt(r,o):O.call(r,", "))+"}"}function tt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function et(t,e){var r=K(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=H(t,n)?e(t[n],t):""}var i,a="function"==typeof x?x(t):[];if(R){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var p in t)H(t,p)&&(r&&String(Number(p))===p&&p<t.length||R&&i["$"+p]instanceof Symbol||(S.call(/[^\w$]/,p)?o.push(e(p,t)+": "+e(t[p],t)):o.push(p+": "+e(t[p],t))));if("function"==typeof x)for(var u=0;u<a.length;u++)D.call(t,a[u])&&o.push("["+e(a[u])+"]: "+e(t[a[u]],t));return o}return r}function Bt(){if(i)return n;i=1;var t=Lt(),e=Ut(),r=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o};return n=function(){var o,n={assert:function(r){if(!n.has(r))throw new e("Side channel does not contain "+t(r))},delete:function(t){var e=o&&o.next,n=function(t,e){if(t)return r(t,e,!0)}(o,t);return n&&e&&e===n&&(o=void 0),!!n},get:function(t){return function(t,e){if(t){var o=r(t,e);return o&&o.value}}(o,t)},has:function(t){return function(t,e){return!!t&&!!r(t,e)}(o,t)},set:function(t,e){o||(o={next:void 0}),function(t,e,o){var n=r(t,e);n?n.value=o:t.next={key:e,next:t.next,value:o}}(o,t,e)}};return n}}function Wt(){return c?a:(c=1,a=Object)}function Ct(){return u?p:(u=1,p=Error)}function Kt(){return f?l:(f=1,l=EvalError)}function Gt(){return s?y:(s=1,y=RangeError)}function $t(){return h?d:(h=1,d=ReferenceError)}function qt(){return g?m:(g=1,m=SyntaxError)}function Ht(){return v?b:(v=1,b=URIError)}function zt(){return S?w:(S=1,w=Math.abs)}function Vt(){return O?A:(O=1,A=Math.floor)}function Qt(){return E?j:(E=1,j=Math.max)}function Jt(){return x?P:(x=1,P=Math.min)}function Xt(){return R?I:(R=1,I=Math.pow)}function Yt(){return D?_:(D=1,_=Math.round)}function Zt(){return M?F:(M=1,F=Number.isNaN||function(t){return t!=t})}function te(){if(N)return k;N=1;var t=Zt();return k=function(e){return t(e)||0===e?e:e<0?-1:1}}function ee(){return U?T:(U=1,T=Object.getOwnPropertyDescriptor)}function re(){if(B)return L;B=1;var t=ee();if(t)try{t([],"length")}catch(e){t=null}return L=t}function oe(){if(C)return W;C=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}return W=t}function ne(){if(q)return $;q=1;var t="undefined"!=typeof Symbol&&Symbol,e=G?K:(G=1,K=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return $=function(){return"function"==typeof t&&("function"==typeof Symbol&&("symbol"==typeof t("foo")&&("symbol"==typeof Symbol("bar")&&e())))}}function ie(){return z?H:(z=1,H="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function ae(){return Q?V:(Q=1,V=Wt().getPrototypeOf||null)}function ce(){if(X)return J;X=1;var t=Object.prototype.toString,e=Math.max,r=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};return J=function(o){var n=this;if("function"!=typeof n||"[object Function]"!==t.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,a=function(t,e){for(var r=[],o=e,n=0;o<t.length;o+=1,n+=1)r[n]=t[o];return r}(arguments,1),c=e(0,n.length-a.length),p=[],u=0;u<c;u++)p[u]="$"+u;if(i=Function("binder","return function ("+function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r}(p,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=n.apply(this,r(a,arguments));return Object(t)===t?t:this}return n.apply(o,r(a,arguments))}),n.prototype){var l=function(){};l.prototype=n.prototype,i.prototype=new l,l.prototype=null}return i},J}function pe(){if(Z)return Y;Z=1;var t=ce();return Y=Function.prototype.bind||t}function ue(){return et?tt:(et=1,tt=Function.prototype.call)}function le(){return ot?rt:(ot=1,rt=Function.prototype.apply)}function fe(){if(ct)return at;ct=1;var t=pe(),e=le(),r=ue(),o=it?nt:(it=1,nt="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return at=o||t.call(r,e)}function ye(){if(ut)return pt;ut=1;var t=pe(),e=Ut(),r=ue(),o=fe();return pt=function(n){if(n.length<1||"function"!=typeof n[0])throw new e("a function is required");return o(t,r,n)}}function se(){if(ft)return lt;ft=1;var t,e=ye(),r=re();try{t=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var o=!!t&&r&&r(Object.prototype,"__proto__"),n=Object,i=n.getPrototypeOf;return lt=o&&"function"==typeof o.get?e([o.get]):"function"==typeof i&&function(t){return i(null==t?t:n(t))}}function de(){if(st)return yt;st=1;var t=ie(),e=ae(),r=se();return yt=t?function(e){return t(e)}:e?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return e(t)}:r?function(t){return r(t)}:null}function he(){if(ht)return dt;ht=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=pe();return dt=r.call(t,e)}function me(){if(gt)return mt;var t;gt=1;var e=Wt(),r=Ct(),o=Kt(),n=Gt(),i=$t(),a=qt(),c=Ut(),p=Ht(),u=zt(),l=Vt(),f=Qt(),y=Jt(),s=Xt(),d=Yt(),h=te(),m=Function,g=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},b=re(),v=oe(),w=function(){throw new c},S=b?function(){try{return w}catch(t){try{return b(arguments,"callee").get}catch(t){return w}}}():w,A=ne()(),O=de(),j=ae(),E=ie(),P=le(),x=ue(),I={},R="undefined"!=typeof Uint8Array&&O?O(Uint8Array):t,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?t:ArrayBuffer,"%ArrayIteratorPrototype%":A&&O?O([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?t:Atomics,"%BigInt%":"undefined"==typeof BigInt?t:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?t:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?t:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?t:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?t:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?t:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?t:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?t:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&O?O(O([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":"undefined"==typeof Map?t:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&O?O((new Map)[Symbol.iterator]()):t,"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?t:Promise,"%Proxy%":"undefined"==typeof Proxy?t:Proxy,"%RangeError%":n,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?t:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?t:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&O?O((new Set)[Symbol.iterator]()):t,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&O?O(""[Symbol.iterator]()):t,"%Symbol%":A?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":R,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?t:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?t:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?t:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?t:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?t:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?t:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?t:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":P,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":j,"%Math.abs%":u,"%Math.floor%":l,"%Math.max%":f,"%Math.min%":y,"%Math.pow%":s,"%Math.round%":d,"%Math.sign%":h,"%Reflect.getPrototypeOf%":E};if(O)try{null.error}catch(t){var D=O(O(t));_["%Error.prototype%"]=D}var F=function t(e){var r;if("%AsyncFunction%"===e)r=g("async function () {}");else if("%GeneratorFunction%"===e)r=g("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=g("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&O&&(r=O(n.prototype))}return _[e]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=pe(),N=he(),T=k.call(x,Array.prototype.concat),U=k.call(P,Array.prototype.splice),L=k.call(x,String.prototype.replace),B=k.call(x,String.prototype.slice),W=k.call(x,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,G=function(t,e){var r,o=t;if(N(M,o)&&(o="%"+(r=M[o])[0]+"%"),N(_,o)){var n=_[o];if(n===I&&(n=F(o)),void 0===n&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new a("intrinsic "+t+" does not exist!")};return mt=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=B(t,0,1),r=B(t,-1);if("%"===e&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new a("invalid intrinsic syntax, expected opening `%`");var o=[];return L(t,C,function(t,e,r,n){o[o.length]=r?L(n,K,"$1"):e||t}),o}(t),o=r.length>0?r[0]:"",n=G("%"+o+"%",e),i=n.name,p=n.value,u=!1,l=n.alias;l&&(o=l[0],U(r,T([0,1],l)));for(var f=1,y=!0;f<r.length;f+=1){var s=r[f],d=B(s,0,1),h=B(s,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new a("property names with quotes must have matching quotes");if("constructor"!==s&&y||(u=!0),N(_,i="%"+(o+="."+s)+"%"))p=_[i];else if(null!=p){if(!(s in p)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(b&&f+1>=r.length){var m=b(p,s);p=(y=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:p[s]}else y=N(p,s),p=p[s];y&&!u&&(_[i]=p)}}return p},mt}function ge(){if(vt)return bt;vt=1;var t=me(),e=ye(),r=e([t("%String.prototype.indexOf%")]);return bt=function(o,n){var i=t(o,!!n);return"function"==typeof i&&r(o,".prototype.")>-1?e([i]):i}}function be(){if(St)return wt;St=1;var t=me(),e=ge(),r=Lt(),o=Ut(),n=t("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),p=e("Map.prototype.delete",!0),u=e("Map.prototype.size",!0);return wt=!!n&&function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+r(t))},delete:function(e){if(t){var r=p(t,e);return 0===u(t)&&(t=void 0),r}return!1},get:function(e){if(t)return i(t,e)},has:function(e){return!!t&&c(t,e)},set:function(e,r){t||(t=new n),a(t,e,r)}};return e}}function ve(){if(Et)return jt;Et=1;var t=Ut(),e=Lt(),r=Bt(),o=be(),n=function(){if(Ot)return At;Ot=1;var t=me(),e=ge(),r=Lt(),o=be(),n=Ut(),i=t("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),p=e("WeakMap.prototype.has",!0),u=e("WeakMap.prototype.delete",!0);return At=i?function(){var t,e,l={assert:function(t){if(!l.has(t))throw new n("Side channel does not contain "+r(t))},delete:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(t)return u(t,r)}else if(o&&e)return e.delete(r);return!1},get:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?a(t,r):e&&e.get(r)},has:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):!!e&&e.has(r)},set:function(r,n){i&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new i),c(t,r,n)):o&&(e||(e=o()),e.set(r,n))}};return l}:o}(),i=n||o||r;return jt=function(){var r,o={assert:function(r){if(!o.has(r))throw new t("Side channel does not contain "+e(r))},delete:function(t){return!!r&&r.delete(t)},get:function(t){return r&&r.get(t)},has:function(t){return!!r&&r.has(t)},set:function(t,e){r||(r=i()),r.set(t,e)}};return o}}function we(){if(xt)return Pt;xt=1;var t=String.prototype.replace,e=/%20/g,r="RFC3986";return Pt={default:r,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}}function Se(){if(Rt)return It;Rt=1;var t=we(),e=Object.prototype.hasOwnProperty,r=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),n=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r},i=1024;return It={arrayToObject:n,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],o=[],n=0;n<e.length;++n)for(var i=e[n],a=i.obj[i.prop],c=Object.keys(a),p=0;p<c.length;++p){var u=c[p],l=a[u];"object"==typeof l&&null!==l&&-1===o.indexOf(l)&&(e.push({obj:a,prop:u}),o.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),o=e.obj[e.prop];if(r(o)){for(var n=[],i=0;i<o.length;++i)void 0!==o[i]&&n.push(o[i]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(e,r,n,a,c){if(0===e.length)return e;var p=e;if("symbol"==typeof e?p=Symbol.prototype.toString.call(e):"string"!=typeof e&&(p=String(e)),"iso-8859-1"===n)return escape(p).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var u="",l=0;l<p.length;l+=i){for(var f=p.length>=i?p.slice(l,l+i):p,y=[],s=0;s<f.length;++s){var d=f.charCodeAt(s);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||c===t.RFC1738&&(40===d||41===d)?y[y.length]=f.charAt(s):d<128?y[y.length]=o[d]:d<2048?y[y.length]=o[192|d>>6]+o[128|63&d]:d<55296||d>=57344?y[y.length]=o[224|d>>12]+o[128|d>>6&63]+o[128|63&d]:(s+=1,d=65536+((1023&d)<<10|1023&f.charCodeAt(s)),y[y.length]=o[240|d>>18]+o[128|d>>12&63]+o[128|d>>6&63]+o[128|63&d])}u+=y.join("")}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(r(t)){for(var o=[],n=0;n<t.length;n+=1)o.push(e(t[n]));return o}return e(t)},merge:function t(o,i,a){if(!i)return o;if("object"!=typeof i&&"function"!=typeof i){if(r(o))o.push(i);else{if(!o||"object"!=typeof o)return[o,i];(a&&(a.plainObjects||a.allowPrototypes)||!e.call(Object.prototype,i))&&(o[i]=!0)}return o}if(!o||"object"!=typeof o)return[o].concat(i);var c=o;return r(o)&&!r(i)&&(c=n(o,a)),r(o)&&r(i)?(i.forEach(function(r,n){if(e.call(o,n)){var i=o[n];i&&"object"==typeof i&&r&&"object"==typeof r?o[n]=t(i,r,a):o.push(r)}else o[n]=r}),o):Object.keys(i).reduce(function(r,o){var n=i[o];return e.call(r,o)?r[o]=t(r[o],n,a):r[o]=n,r},c)}},It}function Ae(){if(Dt)return _t;Dt=1;var t=ve(),e=Se(),r=we(),o=Object.prototype.hasOwnProperty,n={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Array.isArray,a=Array.prototype.push,c=function(t,e){a.apply(t,i(e)?e:[e])},p=Date.prototype.toISOString,u=r.default,l={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},f={},y=function r(o,n,a,p,u,y,s,d,h,m,g,b,v,w,S,A,O,j){for(var E,P=o,x=j,I=0,R=!1;void 0!==(x=x.get(f))&&!R;){var _=x.get(o);if(I+=1,void 0!==_){if(_===I)throw new RangeError("Cyclic object value");R=!0}void 0===x.get(f)&&(I=0)}if("function"==typeof m?P=m(n,P):P instanceof Date?P=v(P):"comma"===a&&i(P)&&(P=e.maybeMap(P,function(t){return t instanceof Date?v(t):t})),null===P){if(y)return h&&!A?h(n,l.encoder,O,"key",w):n;P=""}if("string"==typeof(E=P)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||e.isBuffer(P))return h?[S(A?n:h(n,l.encoder,O,"key",w))+"="+S(h(P,l.encoder,O,"value",w))]:[S(n)+"="+S(String(P))];var D,F=[];if(void 0===P)return F;if("comma"===a&&i(P))A&&h&&(P=e.maybeMap(P,h)),D=[{value:P.length>0?P.join(",")||null:void 0}];else if(i(m))D=m;else{var M=Object.keys(P);D=g?M.sort(g):M}var k=d?String(n).replace(/\./g,"%2E"):String(n),N=p&&i(P)&&1===P.length?k+"[]":k;if(u&&i(P)&&0===P.length)return N+"[]";for(var T=0;T<D.length;++T){var U=D[T],L="object"==typeof U&&U&&void 0!==U.value?U.value:P[U];if(!s||null!==L){var B=b&&d?String(U).replace(/\./g,"%2E"):String(U),W=i(P)?"function"==typeof a?a(N,B):N:N+(b?"."+B:"["+B+"]");j.set(o,I);var C=t();C.set(f,j),c(F,r(L,W,a,p,u,y,s,d,"comma"===a&&A&&i(P)?null:h,m,g,b,v,w,S,A,O,C))}}return F};return _t=function(e,a){var p,u=e,f=function(t){if(!t)return l;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||l.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=r.default;if(void 0!==t.format){if(!o.call(r.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var c,p=r.formatters[a],u=l.filter;if(("function"==typeof t.filter||i(t.filter))&&(u=t.filter),c=t.arrayFormat in n?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":l.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=void 0===t.allowDots?!0===t.encodeDotInKeys||l.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:l.addQueryPrefix,allowDots:f,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:l.allowEmptyArrays,arrayFormat:c,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:l.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?l.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:l.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:l.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:l.encodeValuesOnly,filter:u,format:a,formatter:p,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:l.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:l.strictNullHandling}}(a);"function"==typeof f.filter?u=(0,f.filter)("",u):i(f.filter)&&(p=f.filter);var s=[];if("object"!=typeof u||null===u)return"";var d=n[f.arrayFormat],h="comma"===d&&f.commaRoundTrip;p||(p=Object.keys(u)),f.sort&&p.sort(f.sort);for(var m=t(),g=0;g<p.length;++g){var b=p[g],v=u[b];f.skipNulls&&null===v||c(s,y(v,b,d,h,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,m))}var w=s.join(f.delimiter),S=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""},_t}function Oe(){if(Mt)return Ft;Mt=1;var t=Se(),e=Object.prototype.hasOwnProperty,r=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},n=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},i=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},a=function(r,o,n,a){if(r){var c=n.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,p=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(c),l=u?c.slice(0,u.index):c,f=[];if(l){if(!n.plainObjects&&e.call(Object.prototype,l)&&!n.allowPrototypes)return;f.push(l)}for(var y=0;n.depth>0&&null!==(u=p.exec(c))&&y<n.depth;){if(y+=1,!n.plainObjects&&e.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(u[1])}if(u){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+c.slice(u.index)+"]")}return function(e,r,o,n){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var c=e.slice(0,-1).join("");a=Array.isArray(r)&&r[c]?r[c].length:0}for(var p=n?r:i(r,o,a),u=e.length-1;u>=0;--u){var l,f=e[u];if("[]"===f&&o.parseArrays)l=o.allowEmptyArrays&&(""===p||o.strictNullHandling&&null===p)?[]:t.combine([],p);else{l=o.plainObjects?{__proto__:null}:{};var y="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,s=o.decodeDotInKeys?y.replace(/%2E/g,"."):y,d=parseInt(s,10);o.parseArrays||""!==s?!isNaN(d)&&f!==s&&String(d)===s&&d>=0&&o.parseArrays&&d<=o.arrayLimit?(l=[])[d]=p:"__proto__"!==s&&(l[s]=p):l={0:p}}p=l}return p}(f,o,n,a)}};return Ft=function(c,p){var u=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=void 0===e.charset?o.charset:e.charset,n=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||t.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(p);if(""===c||null==c)return u.plainObjects?{__proto__:null}:{};for(var l="string"==typeof c?function(a,c){var p={__proto__:null},u=c.ignoreQueryPrefix?a.replace(/^\?/,""):a;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=c.parameterLimit===1/0?void 0:c.parameterLimit,f=u.split(c.delimiter,c.throwOnLimitExceeded?l+1:l);if(c.throwOnLimitExceeded&&f.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var y,s=-1,d=c.charset;if(c.charsetSentinel)for(y=0;y<f.length;++y)0===f[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[y]?d="utf-8":"utf8=%26%2310003%3B"===f[y]&&(d="iso-8859-1"),s=y,y=f.length);for(y=0;y<f.length;++y)if(y!==s){var h,m,g=f[y],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(h=c.decoder(g,o.decoder,d,"key"),m=c.strictNullHandling?null:""):(h=c.decoder(g.slice(0,v),o.decoder,d,"key"),m=t.maybeMap(i(g.slice(v+1),c,r(p[h])?p[h].length:0),function(t){return c.decoder(t,o.decoder,d,"value")})),m&&c.interpretNumericEntities&&"iso-8859-1"===d&&(m=n(String(m))),g.indexOf("[]=")>-1&&(m=r(m)?[m]:m);var w=e.call(p,h);w&&"combine"===c.duplicates?p[h]=t.combine(p[h],m):w&&"last"!==c.duplicates||(p[h]=m)}return p}(c,u):c,f=u.plainObjects?{__proto__:null}:{},y=Object.keys(l),s=0;s<y.length;++s){var d=y[s],h=a(d,l[d],u,"string"==typeof c);f=t.merge(f,h,u)}return!0===u.allowSparse?f:t.compact(f)}}exports.requireLib=function(){if(Nt)return kt;Nt=1;var t=Ae(),e=Oe();return kt={formats:we(),parse:e,stringify:t}};