@zjlab-fe/util 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function n(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}"function"==typeof SuppressedError&&SuppressedError;const r="%[a-f0-9]{2}",o=new RegExp("("+r+")|([^%]+?)","gi"),i=new RegExp("("+r+")+","gi");function s(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],s(n),s(r))}function a(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let n=1;n<t.length;n++)t=(e=s(t,n).join("")).match(o)||[];return e}}function c(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=i.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=a(n[0]);e!==n[0]&&(t[n[0]]=e)}n=i.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const n of r)e=e.replace(new RegExp(n,"g"),t[n]);return e}(e)}}function l(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}function u(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}const d=e=>null==e,f=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),p=Symbol("encodeFragmentIdentifier");function h(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function m(e,t){return t.encode?t.strict?f(e):encodeURIComponent(e):e}function w(e,t){return t.decode?c(e):e}function b(e){return Array.isArray(e)?e.sort():"object"==typeof e?b(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function g(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e,t,n){return"string"===n&&"string"==typeof e?e:"function"==typeof n&&"string"==typeof e?n(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==n||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function v(e){const t=(e=g(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function E(e,t){h((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&w(n,e).includes(e.arrayFormatSeparator);n=i?w(n,e):n;const s=o||i?n.split(e.arrayFormatSeparator).map((t=>w(t,e))):null===n?n:w(n,e);r[t]=s};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?w(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>w(t,e)));void 0!==r[t]?r[t]=[...r[t],...i]:r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[i,s]=u(e,"=");void 0===i&&(i=e),s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:w(s,t),n(w(i,t),s,r)}for(const[e,n]of Object.entries(r))if("object"==typeof n&&null!==n&&"string"!==t.types[e])for(const[r,o]of Object.entries(n)){const i=t.types[e]?t.types[e].replace("[]",""):void 0;n[r]=y(o,t,i)}else"object"==typeof n&&null!==n&&"string"===t.types[e]?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=y(n,t,t.types[e]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?b(n):n,e}),Object.create(null))}function x(e,t){if(!e)return"";h((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&d(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[m(t,e),"[",o,"]"].join("")]:[...n,[m(t,e),"[",m(o,e),"]=",m(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[m(t,e),"[]"].join("")]:[...n,[m(t,e),"[]=",m(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[m(t,e),":list="].join("")]:[...n,[m(t,e),":list=",m(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[m(n,e),t,m(o,e)].join("")]:[[r,m(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,m(t,e)]:[...n,[m(t,e),"=",m(r,e)].join("")]}}(t),o={};for(const[t,r]of Object.entries(e))n(t)||(o[t]=r);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?m(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?m(n,t)+"[]":o.reduce(r(n),[]).join("&"):m(n,t)+"="+m(o,t)})).filter((e=>e.length>0)).join("&")}function S(e,t){t={decode:!0,...t};let[n,r]=u(e,"#");return void 0===n&&(n=e),{url:n?.split("?")?.[0]??"",query:E(v(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:w(r,t)}:{}}}function T(e,t){t={encode:!0,strict:!0,[p]:!0,...t};const n=g(e.url).split("?")[0]||"";let r=x({...E(v(e.url),{sort:!1}),...e.query},t);r&&=`?${r}`;let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if("string"==typeof e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[p]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function _(e,t,n){n={parseFragmentIdentifier:!0,[p]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=S(e,n);return T({url:r,query:l(o,t),fragmentIdentifier:i},n)}var k=Object.freeze({__proto__:null,exclude:function(e,t,n){return _(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:v,parse:E,parseUrl:S,pick:_,stringify:x,stringifyUrl:T}),O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N,A={exports:{}};
1
+ var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function r(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}"function"==typeof SuppressedError&&SuppressedError;const n="%[a-f0-9]{2}",o=new RegExp("("+n+")|([^%]+?)","gi"),i=new RegExp("("+n+")+","gi");function s(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],s(r),s(n))}function a(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let r=1;r<t.length;r++)t=(e=s(t,r).join("")).match(o)||[];return e}}function c(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=i.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const e=a(r[0]);e!==r[0]&&(t[r[0]]=e)}r=i.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const r of n)e=e.replace(new RegExp(r,"g"),t[r]);return e}(e)}}function u(e,t){const r={};if(Array.isArray(t))for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(const n of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){t(n,e[n],e)&&Object.defineProperty(r,n,o)}}return r}function l(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const r=e.indexOf(t);return-1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}const d=e=>null==e,f=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),p=Symbol("encodeFragmentIdentifier");function h(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function m(e,t){return t.encode?t.strict?f(e):encodeURIComponent(e):e}function w(e,t){return t.decode?c(e):e}function b(e){return Array.isArray(e)?e.sort():"object"==typeof e?b(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function g(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e,t,r){return"string"===r&&"string"==typeof e?e:"function"==typeof r&&"string"==typeof e?r(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==r||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function v(e){const t=(e=g(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function E(e,t){h((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&w(r,e).includes(e.arrayFormatSeparator);r=i?w(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map((t=>w(t,e))):null===r?r:w(r,e);n[t]=s};case"bracket-separator":return(t,r,n)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(n[t]=r?w(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>w(t,e)));void 0!==n[t]?n[t]=[...n[t],...i]:n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[i,s]=l(e,"=");void 0===i&&(i=e),s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:w(s,t),r(w(i,t),s,n)}for(const[e,r]of Object.entries(n))if("object"==typeof r&&null!==r&&"string"!==t.types[e])for(const[n,o]of Object.entries(r)){const i=t.types[e]?t.types[e].replace("[]",""):void 0;r[n]=y(o,t,i)}else"object"==typeof r&&null!==r&&"string"===t.types[e]?n[e]=Object.values(r).join(t.arrayFormatSeparator):n[e]=y(r,t,t.types[e]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?b(r):r,e}),Object.create(null))}function x(e,t){if(!e)return"";h((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&d(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[m(t,e),"[",o,"]"].join("")]:[...r,[m(t,e),"[",m(o,e),"]=",m(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[m(t,e),"[]"].join("")]:[...r,[m(t,e),"[]=",m(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[m(t,e),":list="].join("")]:[...r,[m(t,e),":list=",m(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[m(r,e),t,m(o,e)].join("")]:[[n,m(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,m(t,e)]:[...r,[m(t,e),"=",m(n,e)].join("")]}}(t),o={};for(const[t,n]of Object.entries(e))r(t)||(o[t]=n);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?m(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?m(r,t)+"[]":o.reduce(n(r),[]).join("&"):m(r,t)+"="+m(o,t)})).filter((e=>e.length>0)).join("&")}function S(e,t){t={decode:!0,...t};let[r,n]=l(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:E(v(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:w(n,t)}:{}}}function T(e,t){t={encode:!0,strict:!0,[p]:!0,...t};const r=g(e.url).split("?")[0]||"";let n=x({...E(v(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let o=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"==typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,o=t[p]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${o}`}function _(e,t,r){r={parseFragmentIdentifier:!0,[p]:!1,...r};const{url:n,query:o,fragmentIdentifier:i}=S(e,r);return T({url:n,query:u(o,t),fragmentIdentifier:i},r)}var k=Object.freeze({__proto__:null,exclude:function(e,t,r){return _(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)},extract:v,parse:E,parseUrl:S,pick:_,stringify:x,stringifyUrl:T}),O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N,A={exports:{}};
2
2
  /*! @preserve
3
3
  * numeral.js
4
4
  * version : 2.0.6
5
5
  * author : Adam Draper
6
6
  * license : MIT
7
7
  * http://adamwdraper.github.com/Numeral-js/
8
- */N=A,function(e,t){N.exports?N.exports=t():e.numeral=t()}(O,(function(){var e,t,n,r,o,i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(e,t){this._input=e,this._value=t}return(e=function(n){var r,o,s,a;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(c.zeroFormat&&n===c.zeroFormat)r=0;else if(c.nullFormat&&n===c.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(o in i)if((a="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&n.match(a)){s=i[o].unformat;break}r=(s=s||e._.stringToNumber)(n)}else r=Number(n)||null;return new l(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof l},e._=t={numberToFormat:function(t,n,r){var o,i,a,c,l,u,d,f,p=s[e.options.currentLocale],h=!1,m=!1,w="",b=1e12,g=1e9,y=1e6,v="",E=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(w=" "),n=n.replace(new RegExp(w+"a[kmbt]?"),""),a>=b&&!i||"t"===i?(w+=p.abbreviations.trillion,t/=b):a<b&&a>=g&&!i||"b"===i?(w+=p.abbreviations.billion,t/=g):a<g&&a>=y&&!i||"m"===i?(w+=p.abbreviations.million,t/=y):(a<y&&a>=1e3&&!i||"k"===i)&&(w+=p.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),c=t.toString().split(".")[0],l=n.split(".")[1],d=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),v=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):v=e._.toFixed(t,l.length,r),c=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):c=e._.toFixed(t,0,r),w&&!i&&Number(c)>=1e3&&w!==p.abbreviations.trillion)switch(c=String(Number(c)/1e3),w){case p.abbreviations.thousand:w=p.abbreviations.million;break;case p.abbreviations.million:w=p.abbreviations.billion;break;case p.abbreviations.billion:w=p.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),E=!0),c.length<o)for(var x=o-c.length;x>0;x--)c="0"+c;return d>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(c=""),f=c+v+(w||""),h?f=(h&&E?"(":"")+f+(h&&E?")":""):u>=0?f=0===u?(E?"-":"+")+f:f+(E?"-":"+"):E&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,o=s[c.currentLocale],i=e,a={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)n=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),a)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(r)){n*=Math.pow(10,a[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var o,i,s,a,c=e.toString().split("."),l=t-(r||0);return o=2===c.length?Math.min(Math.max(c[1].length,l),t):l,s=Math.pow(10,o),a=(n(e+"e+"+o)/s).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),a=a.replace(i,"")),a}},e.options=c,e.formats=i,e.locales=s,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return s[c.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)c[e]=a[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,s,a,c,l,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.localeData(n)}catch(t){l=e.localeData(e.locale())}return i=l.currency.symbol,a=l.abbreviations,r=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==i)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==a.thousand&&u[0]!==a.million&&u[0]!==a.billion&&u[0]!==a.trillion)||(c=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(r)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(c):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(c)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(c)||!s[1].match(/^\d+$/))))},e.fn=l.prototype={clone:function(){return e(this)},format:function(t,n){var r,o,s,a=this._value,l=t||c.defaultFormat;if(n=n||Math.round,0===a&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===a&&null!==c.nullFormat)o=c.nullFormat;else{for(r in i)if(l.match(i[r].regexps.format)){s=i[r].format;break}o=(s=s||e._.numberToFormat)(a,l,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,o){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,o){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var s,a,c,l=e._.includes(o,"ib")?r:n,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=l.suffixes.length;s++)if(a=Math.pow(l.base,s),c=Math.pow(l.base,s+1),null===t||0===t||t>=a&&t<c){u+=l.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,o,i)+u},unformat:function(t){var o,i,s=e._.stringToNumber(t);if(s){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}}s*=i||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,s=e.locales[e.options.currentLocale],a={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":o=e._.insert(o,s.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+s.currency.symbol.length-1)}for(i=a.after.length-1;i>=0;i--)switch(a.after[i]){case"$":o=i===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+i)));break;case" ":o=i===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+i)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],(function(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e}));var C=R(A.exports);function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:j}=Object.prototype,{getPrototypeOf:P}=Object,L=(B=Object.create(null),e=>{const t=j.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});var B;const U=e=>(e=e.toLowerCase(),t=>L(t)===e),I=e=>t=>typeof t===e,{isArray:D}=Array,M=I("undefined");const z=U("ArrayBuffer");const q=I("string"),H=I("function"),$=I("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if("object"!==L(e))return!1;const t=P(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},J=U("Date"),W=U("File"),K=U("Blob"),X=U("FileList"),Q=U("URLSearchParams"),[Z,Y,ee,te]=["ReadableStream","Request","Response","Headers"].map(U);function ne(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),D(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function re(e,t){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 oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ie=e=>!M(e)&&e!==oe;const se=(ae="undefined"!=typeof Uint8Array&&P(Uint8Array),e=>ae&&e instanceof ae);var ae;const ce=U("HTMLFormElement"),le=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ue=U("RegExp"),de=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ne(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},fe="abcdefghijklmnopqrstuvwxyz",pe="0123456789",he={DIGIT:pe,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+pe};const me=U("AsyncFunction"),we=(be="function"==typeof setImmediate,ge=H(oe.postMessage),be?setImmediate:ge?((e,t)=>(oe.addEventListener("message",(({source:n,data:r})=>{n===oe&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),oe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var be,ge;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||we;var ve={isArray:D,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||H(e.append)&&("formdata"===(t=L(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&&z(e.buffer),t},isString:q,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isReadableStream:Z,isRequest:Y,isResponse:ee,isHeaders:te,isUndefined:M,isDate:J,isFile:W,isBlob:K,isRegExp:ue,isFunction:H,isStream:e=>V(e)&&H(e.pipe),isURLSearchParams:Q,isTypedArray:se,isFileList:X,forEach:ne,merge:function e(){const{caseless:t}=ie(this)&&this||{},n={},r=(r,o)=>{const i=t&&re(n,o)||o;G(n[i])&&G(r)?n[i]=e(n[i],r):G(r)?n[i]=e({},r):D(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ne(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ne(t,((t,r)=>{n&&H(t)?e[r]=F(t,n):e[r]=t}),{allOwnKeys:r}),e),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,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&P(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:L,kindOfTest:U,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(D(e))return e;let t=e.length;if(!$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.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:ce,hasOwnProperty:le,hasOwnProp:le,reduceDescriptors:de,freezeMethods:e=>{de(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 D(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:re,global:oe,isContextDefined:ie,ALPHABET:he,generateString:(e=16,t=he.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&H(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(V(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=D(e)?[]:{};return ne(e,((e,t)=>{const i=n(e,r+1);!M(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:me,isThenable:e=>e&&(V(e)||H(e))&&H(e.then)&&H(e.catch),setImmediate:we,asap:ye};function Ee(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)}ve.inherits(Ee,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:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=Ee.prototype,Se={};["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=>{Se[e]={value:e}})),Object.defineProperties(Ee,Se),Object.defineProperty(xe,"isAxiosError",{value:!0}),Ee.from=(e,t,n,r,o,i)=>{const s=Object.create(xe);return ve.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ee.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function Te(e){return ve.isPlainObject(e)||ve.isArray(e)}function _e(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,n){return e?e.concat(t).map((function(e,t){return e=_e(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Oe=ve.toFlatObject(ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Re(e,t,n){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ve.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ve.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ve.isDate(e))return e.toISOString();if(!a&&ve.isBlob(e))throw new Ee("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(e)||ve.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(ve.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ve.isArray(e)&&function(e){return ve.isArray(e)&&!e.some(Te)}(e)||(ve.isFileList(e)||ve.endsWith(n,"[]"))&&(a=ve.toArray(e)))return n=_e(n),a.forEach((function(e,r){!ve.isUndefined(e)&&null!==e&&t.append(!0===s?ke([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!Te(e)||(t.append(ke(o,n,i),c(e)),!1)}const u=[],d=Object.assign(Oe,{defaultVisitor:l,convertValue:c,isVisitable:Te});if(!ve.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ve.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),ve.forEach(n,(function(n,i){!0===(!(ve.isUndefined(n)||null===n)&&o.call(t,n,ve.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ae(e,t){this._pairs=[],e&&Re(e,this,t)}const Ce=Ae.prototype;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function je(e,t,n){if(!t)return e;const r=n&&n.encode||Fe,o=n&&n.serialize;let i;if(i=o?o(t,n):ve.isURLSearchParams(t)?t.toString():new Ae(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Ne)}:Ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Pe{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){ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ue="undefined"!=typeof window&&"undefined"!=typeof document,Ie=(De="undefined"!=typeof navigator&&navigator.product,Ue&&["ReactNative","NativeScript","NS"].indexOf(De)<0);var De;const Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ze=Ue&&window.location.href||"http://localhost";var qe={...Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:Ie,hasStandardBrowserWebWorkerEnv:Me,origin:ze}),...Be};function He(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ve.isArray(r)?r.length:i,a)return ve.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&ve.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ve.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const n={};return ve.forEachEntry(e,((e,r)=>{t(function(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const $e={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ve.isObject(e);o&&ve.isHTMLForm(e)&&(e=new FormData(e));if(ve.isFormData(e))return r?JSON.stringify(He(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Re(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return qe.isNode&&ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ve.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Ee.from(e,Ee.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:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));const Ve=ve.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 Ge=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:ve.isArray(e)?e.map(We):String(e)}function Ke(e,t,n,r,o){return ve.isFunction(r)?r.call(this,t,n):(o&&(t=n),ve.isString(t)?ve.isString(r)?-1!==t.indexOf(r):ve.isRegExp(r)?r.test(t):void 0:void 0)}class Xe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Je(t);if(!o)throw new Error("header name must be a non-empty string");const i=ve.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=We(e))}const i=(e,t)=>ve.forEach(e,((e,n)=>o(e,n,t)));if(ve.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((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]&&Ve[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(ve.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Je(e)){const n=ve.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(ve.isFunction(t))return t.call(this,e,n);if(ve.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e)){const n=ve.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ke(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Je(e)){const o=ve.findKey(n,e);!o||t&&!Ke(0,n[o],o,t)||(delete n[o],r=!0)}}return ve.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&&!Ke(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ve.forEach(this,((r,o)=>{const i=ve.findKey(n,o);if(i)return t[i]=We(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=We(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ve.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ve.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")}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[Ge]=this[Ge]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Je(e);t[r]||(!function(e,t){const n=ve.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 ve.isArray(e)?e.forEach(r):r(e),this}}function Qe(e,t){const n=this||$e,r=t||n,o=Xe.from(r.headers);let i=r.data;return ve.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ze(e){return!(!e||!e.__CANCEL__)}function Ye(e,t,n){Ee.call(this,null==e?"canceled":e,Ee.ERR_CANCELED,t,n),this.name="CanceledError"}function et(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ee("Request failed with status code "+n.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ve.reduceDescriptors(Xe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ve.freezeMethods(Xe),ve.inherits(Ye,Ee,{__CANCEL__:!0});const tt=(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,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let u=s,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},nt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rt=e=>(...t)=>ve.asap((()=>e(...t)));var ot=qe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ve.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},it=qe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];ve.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ve.isString(r)&&s.push("path="+r),ve.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function st(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const at=e=>e instanceof Xe?{...e}:e;function ct(e,t){t=t||{};const n={};function r(e,t,n){return ve.isPlainObject(e)&&ve.isPlainObject(t)?ve.merge.call({caseless:n},e,t):ve.isPlainObject(t)?ve.merge({},t):ve.isArray(t)?t.slice():t}function o(e,t,n){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ve.isUndefined(t))return r(void 0,t)}function s(e,t){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(at(e),at(t),!0)};return ve.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);ve.isUndefined(s)&&i!==a||(n[r]=s)})),n}var lt=e=>{const t=ct({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Xe.from(a),t.url=je(st(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ve.isFormData(r))if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qe.hasStandardBrowserEnv&&(o&&ve.isFunction(o)&&(o=o(t)),o||!1!==o&&ot(t.url))){const e=i&&s&&it.read(s);e&&a.set(i,e)}return t};var ut="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=lt(e);let o=r.data;const i=Xe.from(r.headers).normalize();let s,a,c,l,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function w(){if(!m)return;const r=Xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());et((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?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=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(n(new Ee("Request aborted",Ee.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Ee("Network Error",Ee.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Le;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ee(t,o.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ve.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ve.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([c,u]=tt(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,l]=tt(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Ye(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===qe.protocols.indexOf(b)?n(new Ee("Unsupported protocol "+b+":",Ee.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const dt=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ee?t:new Ye(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},ft=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},pt=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*ft(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let s,a=0,c=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return c(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},ht="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mt=ht&&"function"==typeof ReadableStream,wt=ht&&("function"==typeof TextEncoder?(bt=new TextEncoder,e=>bt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var bt;const gt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yt=mt&&gt((()=>{let e=!1;const t=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),vt=mt&&gt((()=>ve.isReadableStream(new Response("").body))),Et={stream:vt&&(e=>e.body)};var xt;ht&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Et[e]&&(Et[e]=ve.isFunction(xt[e])?t=>t[e]():(t,n)=>{throw new Ee(`Response type '${e}' is not supported`,Ee.ERR_NOT_SUPPORT,n)})})));const St=async(e,t)=>{const n=ve.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:ve.isBlob(e)?e.size:ve.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ve.isArrayBufferView(e)||ve.isArrayBuffer(e)?e.byteLength:(ve.isURLSearchParams(e)&&(e+=""),ve.isString(e)?(await wt(e)).byteLength:void 0))(t):n};const Tt={http:null,xhr:ut,fetch:ht&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=lt(e);l=l?(l+"").toLowerCase():"text";let p,h,[m,w]=o||i||s?dt([o,i],s):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&yt&&"get"!==n&&"head"!==n&&0!==(g=await St(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ve.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=nt(g,tt(rt(c)));r=pt(n.body,65536,e,t,wt)}}ve.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(h);const i=vt&&("stream"===l||"response"===l);if(vt&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=ve.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&nt(t,tt(rt(a),!0))||[];o=new Response(pt(o.body,65536,n,(()=>{r&&r(),i&&b()}),wt),e)}l=l||"text";let s=await Et[ve.findKey(Et,l)||"text"](o,e);return!i&&b(),w&&w(),await new Promise(((t,n)=>{et(t,n,{data:s,headers:Xe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,h),{cause:t.cause||t});throw Ee.from(t,t&&t.code,e,h)}})};ve.forEach(Tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _t=e=>`- ${e}`,kt=e=>ve.isFunction(e)||null===e||!1===e;var Ot=e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!kt(n)&&(r=Tt[(t=String(n)).toLowerCase()],void 0===r))throw new Ee(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ee("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_t).join("\n"):" "+_t(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function Nt(e){Rt(e),e.headers=Xe.from(e.headers),e.data=Qe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ot(e.adapter||$e.adapter)(e).then((function(t){return Rt(e),t.data=Qe.call(e,e.transformResponse,t),t.headers=Xe.from(t.headers),t}),(function(t){return Ze(t)||(Rt(e),t&&t.response&&(t.response.data=Qe.call(e,e.transformResponse,t.response),t.response.headers=Xe.from(t.response.headers))),Promise.reject(t)}))}const At="1.7.4",Ct={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ct[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ft={};Ct.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ee(r(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var jt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new Ee("option "+i+" must be "+n,Ee.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}},validators:Ct};const Pt=jt.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new Pe,response:new Pe}}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=ct(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&jt.assertOptions(n,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),null!=r&&(ve.isFunction(r)?t.paramsSerializer={serialize:r}:jt.assertOptions(r,{encode:Pt.function,serialize:Pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ve.merge(o.common,o[t.method]);o&&ve.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Xe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[Nt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=s.length;let f=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return je(st((e=ct(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ve.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,n){return this.request(ct(n||{},{method:e,url:t,data:(n||{}).data}))}})),ve.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ct(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));class Bt{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 Ye(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)}static source(){let e;return{token:new Bt((function(t){e=t})),cancel:e}}}const Ut={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};Object.entries(Ut).forEach((([e,t])=>{Ut[t]=e}));const It=function e(t){const n=new Lt(t),r=F(Lt.prototype.request,n);return ve.extend(r,Lt.prototype,n,{allOwnKeys:!0}),ve.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ct(t,n))},r}($e);function Dt(e){var t=new so,n=It.create({});return n.interceptors.request.use((function(t){var n,r=window[null!==(n=null==e?void 0:e.authTokenNamespace)&&void 0!==n?n:"_subApp"],o=null==r?void 0:r.token;return o&&(t.headers.Authorization="Bearer ".concat(o)),(null==r?void 0:r.language)&&(t.headers.language=r.language),t}),(function(e){return Promise.reject(e)})),n.interceptors.response.use((function(e){var n;return 401===(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.code)?(t.postMessage("login"),Promise.reject({code:401,msg:"用户未登录"})):e}),(function(e){var n,r,o,i,s;if(e.response&&(401===e.response.status&&t.postMessage("login"),(null===(r=null===(n=e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.msg)||(null===(i=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===i?void 0:i.message)))return Promise.reject(null===(s=e.response)||void 0===s?void 0:s.data);return Promise.reject(e)})),n}It.Axios=Lt,It.CanceledError=Ye,It.CancelToken=Bt,It.isCancel=Ze,It.VERSION=At,It.toFormData=Re,It.AxiosError=Ee,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 ve.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=ct,It.AxiosHeaders=Xe,It.formToJSON=e=>He(ve.isHTMLForm(e)?new FormData(e):e),It.getAdapter=Ot,It.HttpStatusCode=Ut,It.default=It;var Mt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function zt(e){if(!function(e){return"string"==typeof e&&Mt.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const qt=[];for(let e=0;e<256;++e)qt.push((e+256).toString(16).slice(1));function Ht(e,t=0){return(qt[e[t+0]]+qt[e[t+1]]+qt[e[t+2]]+qt[e[t+3]]+"-"+qt[e[t+4]]+qt[e[t+5]]+"-"+qt[e[t+6]]+qt[e[t+7]]+"-"+qt[e[t+8]]+qt[e[t+9]]+"-"+qt[e[t+10]]+qt[e[t+11]]+qt[e[t+12]]+qt[e[t+13]]+qt[e[t+14]]+qt[e[t+15]]).toLowerCase()}let $t;const Vt=new Uint8Array(16);function Gt(){if(!$t){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$t=crypto.getRandomValues.bind(crypto)}return $t(Vt)}const Jt={};function Wt(e,t,n){let r;const o=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)r=Kt(e.random??e.rng?.()??Gt(),e.msecs,e.nsecs,e.clockseq,e.node,t,n);else{const e=Date.now(),i=Gt();!function(e,t,n){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=16383&(n[8]<<8|n[9]));e.msecs=t}(Jt,e,i),r=Kt(i,Jt.msecs,Jt.nsecs,o?void 0:Jt.clockseq,o?void 0:Jt.node,t,n)}return t??Ht(r)}function Kt(e,t,n,r,o,i,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(s<0||s+16>i.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else i=new Uint8Array(16),s=0;t??=Date.now(),n??=0,r??=16383&(e[8]<<8|e[9]),o??=e.slice(10,16);const a=(1e4*(268435455&(t+=122192928e5))+n)%4294967296;i[s++]=a>>>24&255,i[s++]=a>>>16&255,i[s++]=a>>>8&255,i[s++]=255&a;const c=t/4294967296*1e4&268435455;i[s++]=c>>>8&255,i[s++]=255&c,i[s++]=c>>>24&15|16,i[s++]=c>>>16&255,i[s++]=r>>>8|128,i[s++]=255&r;for(let e=0;e<6;++e)i[s++]=o[e];return i}function Xt(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?zt(e):e);return"string"==typeof e?Ht(t):t}function Qt(e,t,n){e??={};let r=Wt({...e,_v6:!0},new Uint8Array(16));return r=Xt(r),Ht(r)}var Zt,Yt="user-agent",en="",tn={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},nn="browser",rn="cpu",on="device",sn="engine",an="os",cn="result",ln="name",un="type",dn="vendor",fn="version",pn="architecture",hn="major",mn="model",wn="console",bn="mobile",gn="tablet",yn="smarttv",vn="wearable",En="xr",xn="embedded",Sn="inapp",Tn="brands",_n="formFactors",kn="fullVersionList",On="platform",Rn="platformVersion",Nn="bitness",An="sec-ch-ua",Cn=An+"-full-version-list",Fn=An+"-arch",jn=An+"-"+Nn,Pn=An+"-form-factors",Ln=An+"-"+bn,Bn=An+"-"+mn,Un=An+"-"+On,In=Un+"-version",Dn=[Tn,kn,bn,mn,On,Rn,pn,_n,Nn],Mn="Amazon",zn="Apple",qn="ASUS",Hn="BlackBerry",$n="Google",Vn="Huawei",Gn="Lenovo",Jn="Honor",Wn="LG",Kn="Microsoft",Xn="Motorola",Qn="Nvidia",Zn="OnePlus",Yn="OPPO",er="Samsung",tr="Sharp",nr="Sony",rr="Xiaomi",or="Zebra",ir="Chrome",sr="Chromium",ar="Chromecast",cr="Edge",lr="Firefox",ur="Opera",dr="Facebook",fr="Sogou",pr="Mobile ",hr=" Browser",mr="Windows",wr=typeof window!==tn.UNDEFINED&&window.navigator?window.navigator:void 0,br=wr&&wr.userAgentData?wr.userAgentData:void 0,gr=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},yr=function(e,t){if(typeof e===tn.OBJECT&&e.length>0){for(var n in e)if(Sr(t)==Sr(e[n]))return!0;return!1}return!!Er(e)&&Sr(t)==Sr(e)},vr=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||!!t&&vr(e[n])},Er=function(e){return typeof e===tn.STRING},xr=function(e){if(e){for(var t=[],n=kr(/\\?\"/g,e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var o=Rr(n[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=Rr(n[r]);return t}},Sr=function(e){return Er(e)?e.toLowerCase():e},Tr=function(e){return Er(e)?kr(/[^\d\.]/g,e).split(".")[0]:void 0},_r=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];typeof n==tn.OBJECT&&2==n.length?this[n[0]]=n[1]:this[n]=void 0}return this},kr=function(e,t){return Er(t)?t.replace(e,en):t},Or=function(e){return kr(/\\?\"/g,e)},Rr=function(e,t){return e=kr(/^\s\s*/,String(e)),typeof t===tn.UNDEFINED?e:e.substring(0,t)},Nr=function(e,t){if(e&&t)for(var n,r,o,i,s,a,c=0;c<t.length&&!s;){var l=t[c],u=t[c+1];for(n=r=0;n<l.length&&!s&&l[n];)if(s=l[n++].exec(e))for(o=0;o<u.length;o++)a=s[++r],typeof(i=u[o])===tn.OBJECT&&i.length>0?2===i.length?typeof i[1]==tn.FUNCTION?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:i.length>=3&&(typeof i[1]!==tn.FUNCTION||i[1].exec&&i[1].test?3==i.length?this[i[0]]=a?a.replace(i[1],i[2]):void 0:4==i.length?this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0:i.length>4&&(this[i[0]]=a?i[3].apply(this,[a.replace(i[1],i[2])].concat(i.slice(4))):void 0):i.length>3?this[i[0]]=a?i[1].apply(this,i.slice(2)):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0):this[i]=a||void 0;c+=2}},Ar=function(e,t){for(var n in t)if(typeof t[n]===tn.OBJECT&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(yr(t[n][r],e))return"?"===n?void 0:n}else if(yr(t[n],e))return"?"===n?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},Cr={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Fr={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},jr={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Pr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[fn,[ln,pr+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[fn,[ln,cr+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[fn,[ln,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ln,fn],[/opios[\/ ]+([\w\.]+)/i],[fn,[ln,ur+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[fn,[ln,ur+" GX"]],[/\bopr\/([\w\.]+)/i],[fn,[ln,ur]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[fn,[ln,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[fn,[ln,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[ln,fn],[/quark(?:pc)?\/([-\w\.]+)/i],[fn,[ln,"Quark"]],[/\bddg\/([\w\.]+)/i],[fn,[ln,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[fn,[ln,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[fn,[ln,"WeChat"]],[/konqueror\/([\w\.]+)/i],[fn,[ln,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[fn,[ln,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[fn,[ln,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[fn,[ln,"Smart "+Gn+hr]],[/(avast|avg)\/([\w\.]+)/i],[[ln,/(.+)/,"$1 Secure"+hr],fn],[/\bfocus\/([\w\.]+)/i],[fn,[ln,lr+" Focus"]],[/\bopt\/([\w\.]+)/i],[fn,[ln,ur+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[fn,[ln,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[fn,[ln,"Dolphin"]],[/coast\/([\w\.]+)/i],[fn,[ln,ur+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[fn,[ln,"MIUI"+hr]],[/fxios\/([\w\.-]+)/i],[fn,[ln,pr+lr]],[/\bqihoobrowser\/?([\w\.]*)/i],[fn,[ln,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ln,/(.+)/,"$1Browser"],fn],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ln,/(.+)/,"$1"+hr],fn],[/samsungbrowser\/([\w\.]+)/i],[fn,[ln,er+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[fn,[ln,fr+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ln,fr+" Mobile"],fn],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ln,fn],[/(lbbrowser|rekonq)/i],[ln],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[fn,ln],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ln,dr],fn,[un,Sn]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[ln,fn,[un,Sn]],[/\bgsa\/([\w\.]+) .*safari\//i],[fn,[ln,"GSA"],[un,Sn]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[fn,[ln,"TikTok"],[un,Sn]],[/\[(linkedin)app\]/i],[ln,[un,Sn]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[ln,/(.+)/,"Zalo"],fn,[un,Sn]],[/(chromium)[\/ ]([-\w\.]+)/i],[ln,fn],[/headlesschrome(?:\/([\w\.]+)| )/i],[fn,[ln,ir+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[fn,[ln,cr+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ln,ir+" WebView"],fn],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[fn,[ln,"Android"+hr]],[/chrome\/([\w\.]+) mobile/i],[fn,[ln,pr+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ln,fn],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[fn,[ln,pr+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ln,pr+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[fn,ln],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ln,[fn,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ln,fn],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ln,pr+lr],fn],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ln,"Netscape"],fn],[/(wolvic|librewolf)\/([\w\.]+)/i],[ln,fn],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[fn,[ln,lr+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ln,[fn,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ln,[fn,/[^\d\.]+./,en]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[pn,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[pn,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[pn,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[pn,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[pn,"arm"]],[/ sun4\w[;\)]/i],[[pn,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[pn,/ower/,en,Sr]],[/mc680.0/i],[[pn,"68k"]],[/winnt.+\[axp/i],[[pn,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[mn,[dn,er],[un,gn]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[mn,[dn,er],[un,bn]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[mn,[dn,zn],[un,bn]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[mn,[dn,zn],[un,gn]],[/(macintosh);/i],[mn,[dn,zn]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[mn,[dn,tr],[un,bn]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[mn,[dn,Jn],[un,gn]],[/honor([-\w ]+)[;\)]/i],[mn,[dn,Jn],[un,bn]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[mn,[dn,Vn],[un,gn]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[mn,[dn,Vn],[un,bn]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[mn,/_/g," "],[dn,rr],[un,gn]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[mn,/_/g," "],[dn,rr],[un,bn]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[mn,[dn,Zn],[un,bn]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[mn,[dn,Yn],[un,bn]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[mn,[dn,Ar,{OnePlus:["203","304","403","404","413","415"],"*":Yn}],[un,gn]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[mn,[dn,"BLU"],[un,bn]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[mn,[dn,"Vivo"],[un,bn]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[mn,[dn,"Realme"],[un,bn]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[mn,[dn,Gn],[un,gn]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[mn,[dn,Gn],[un,bn]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[mn,[dn,Xn],[un,bn]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[mn,[dn,Xn],[un,gn]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[mn,[dn,Wn],[un,gn]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[mn,[dn,Wn],[un,bn]],[/(nokia) (t[12][01])/i],[dn,mn,[un,gn]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[mn,/_/g," "],[un,bn],[dn,"Nokia"]],[/(pixel (c|tablet))\b/i],[mn,[dn,$n],[un,gn]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[mn,[dn,$n],[un,bn]],[/(google) (pixelbook( go)?)/i],[dn,mn],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[mn,[dn,nr],[un,bn]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[mn,"Xperia Tablet"],[dn,nr],[un,gn]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[mn,[dn,Mn],[un,gn]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[mn,/(.+)/g,"Fire Phone $1"],[dn,Mn],[un,bn]],[/(playbook);[-\w\),; ]+(rim)/i],[mn,dn,[un,gn]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[mn,[dn,Hn],[un,bn]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[mn,[dn,qn],[un,gn]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[mn,[dn,qn],[un,bn]],[/(nexus 9)/i],[mn,[dn,"HTC"],[un,gn]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[dn,[mn,/_/g," "],[un,bn]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[mn,[dn,"TCL"],[un,gn]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[mn,[dn,"TCL"],[un,bn]],[/(itel) ((\w+))/i],[[dn,Sr],mn,[un,Ar,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[mn,[dn,"Acer"],[un,gn]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[mn,[dn,"Meizu"],[un,bn]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[mn,[dn,"Ulefone"],[un,bn]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[mn,[dn,"Energizer"],[un,bn]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[mn,[dn,"Cat"],[un,bn]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[mn,[dn,"Smartfren"],[un,bn]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[mn,[dn,"Nothing"],[un,bn]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[mn,[dn,"Archos"],[un,gn]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[mn,[dn,"Archos"],[un,bn]],[/; (n159v)/i],[mn,[dn,"HMD"],[un,bn]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[dn,mn,[un,gn]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[dn,mn,[un,bn]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[dn,mn,[un,gn]],[/(surface duo)/i],[mn,[dn,Kn],[un,gn]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[mn,[dn,"Fairphone"],[un,bn]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[mn,[dn,Qn],[un,gn]],[/(sprint) (\w+)/i],[dn,mn,[un,bn]],[/(kin\.[onetw]{3})/i],[[mn,/\./g," "],[dn,Kn],[un,bn]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[mn,[dn,or],[un,gn]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[mn,[dn,or],[un,bn]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[dn,[un,yn]],[/hbbtv.+maple;(\d+)/i],[[mn,/^/,"SmartTV"],[dn,er],[un,yn]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[dn,mn,[un,yn]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[dn,Wn],[un,yn]],[/(apple) ?tv/i],[dn,[mn,zn+" TV"],[un,yn]],[/crkey.*devicetype\/chromecast/i],[[mn,ar+" Third Generation"],[dn,$n],[un,yn]],[/crkey.*devicetype\/([^/]*)/i],[[mn,/^/,"Chromecast "],[dn,$n],[un,yn]],[/fuchsia.*crkey/i],[[mn,ar+" Nest Hub"],[dn,$n],[un,yn]],[/crkey/i],[[mn,ar],[dn,$n],[un,yn]],[/(portaltv)/i],[mn,[dn,dr],[un,yn]],[/droid.+aft(\w+)( bui|\))/i],[mn,[dn,Mn],[un,yn]],[/(shield \w+ tv)/i],[mn,[dn,Qn],[un,yn]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[mn,[dn,tr],[un,yn]],[/(bravia[\w ]+)( bui|\))/i],[mn,[dn,nr],[un,yn]],[/(mi(tv|box)-?\w+) bui/i],[mn,[dn,rr],[un,yn]],[/Hbbtv.*(technisat) (.*);/i],[dn,mn,[un,yn]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[dn,/.+\/(\w+)/,"$1",Ar,{LG:"lge"}],[mn,Rr],[un,yn]],[/(playstation \w+)/i],[mn,[dn,nr],[un,wn]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[mn,[dn,Kn],[un,wn]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[dn,mn,[un,wn]],[/droid.+; (shield)( bui|\))/i],[mn,[dn,Qn],[un,wn]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[mn,[dn,er],[un,vn]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[dn,mn,[un,vn]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[mn,[dn,Yn],[un,vn]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[mn,[dn,zn],[un,vn]],[/(opwwe\d{3})/i],[mn,[dn,Zn],[un,vn]],[/(moto 360)/i],[mn,[dn,Xn],[un,vn]],[/(smartwatch 3)/i],[mn,[dn,nr],[un,vn]],[/(g watch r)/i],[mn,[dn,Wn],[un,vn]],[/droid.+; (wt63?0{2,3})\)/i],[mn,[dn,or],[un,vn]],[/droid.+; (glass) \d/i],[mn,[dn,$n],[un,En]],[/(pico) ([\w ]+) os\d/i],[dn,mn,[un,En]],[/(quest( \d| pro)?s?).+vr/i],[mn,[dn,dr],[un,En]],[/mobile vr; rv.+firefox/i],[[un,En]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[dn,[un,xn]],[/(aeobc)\b/i],[mn,[dn,Mn],[un,xn]],[/(homepod).+mac os/i],[mn,[dn,zn],[un,xn]],[/windows iot/i],[[un,xn]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[mn,[un,yn]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[un,yn]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[mn,[un,Ar,{mobile:"Mobile",xr:"VR","*":gn}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[un,gn]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[un,bn]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[mn,[dn,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[fn,[ln,cr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ln,fn],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[fn,[ln,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ln,fn],[/ladybird\//i],[[ln,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[fn,ln]],os:[[/(windows nt) (6\.[23]); arm/i],[[ln,/N/,"R"],[fn,Ar,Cr]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[ln,fn],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[fn,/(;|\))/g,"",Ar,Cr],[ln,mr]],[/(windows ce)\/?([\d\.]*)/i],[ln,fn],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[fn,/_/g,"."],[ln,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[ln,"macOS"],[fn,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[fn,[ln,ar+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[fn,[ln,ar+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[fn,[ln,ar+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[fn,[ln,ar+" Linux"]],[/crkey\/([\d\.]+)/i],[fn,[ln,ar]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[fn,ln],[/(ubuntu) ([\w\.]+) like android/i],[[ln,/(.+)/,"$1 Touch"],fn],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[ln,fn],[/\(bb(10);/i],[fn,[ln,Hn]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[fn,[ln,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[fn,[ln,lr+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[fn,[ln,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[fn,Ar,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[ln,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[fn,[ln,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ln,"Chrome OS"],fn],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[ln,fn],[/(sunos) ?([\d\.]*)/i],[[ln,"Solaris"],fn],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ln,fn]]},Lr=(Zt={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},_r.call(Zt.init,[[nn,[ln,fn,hn,un]],[rn,[pn]],[on,[un,mn,dn]],[sn,[ln,fn]],[an,[ln,fn]]]),_r.call(Zt.isIgnore,[[nn,[fn,hn]],[sn,[fn]],[an,[fn]]]),_r.call(Zt.isIgnoreRgx,[[nn,/ ?browser$/i],[an,/ ?os$/i]]),_r.call(Zt.toString,[[nn,[ln,fn]],[rn,[pn]],[on,[dn,mn]],[sn,[ln,fn]],[an,[ln,fn]]]),Zt),Br=function(e,t){var n=Lr.init[t],r=Lr.isIgnore[t]||0,o=Lr.isIgnoreRgx[t]||0,i=Lr.toString[t]||0;function s(){_r.call(this,n)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return br?br.getHighEntropyValues(Dn).then((function(t){return e.setCH(new Ur(t,!1)).parseCH().get()})):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=cn&&(s.prototype.is=function(e){var t=!1;for(var n in this)if(this.hasOwnProperty(n)&&!yr(r,n)&&Sr(o?kr(o,this[n]):this[n])==Sr(o?kr(o,e):e)){if(t=!0,e!=tn.UNDEFINED)break}else if(e==tn.UNDEFINED&&t){t=!t;break}return t},s.prototype.toString=function(){var e=en;for(var t in i)typeof this[i[t]]!==tn.UNDEFINED&&(e+=(e?" ":en)+this[i[t]]);return e||tn.UNDEFINED}),br||(s.prototype.then=function(e){var t=this,n=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};n.prototype={is:s.prototype.is,toString:s.prototype.toString};var r=new n;return e(r),r}),new s};function Ur(e,t){if(e=e||{},_r.call(this,Dn),t)_r.call(this,[[Tn,xr(e[An])],[kn,xr(e[Cn])],[bn,/\?1/.test(e[Ln])],[mn,Or(e[Bn])],[On,Or(e[Un])],[Rn,Or(e[In])],[pn,Or(e[Fn])],[_n,xr(e[Pn])],[Nn,Or(e[jn])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==tn.UNDEFINED&&(this[n]=e[n])}function Ir(e,t,n,r){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(wr&&wr.userAgent==this.ua)switch(this.itemType){case nn:wr.brave&&typeof wr.brave.isBrave==tn.FUNCTION&&this.set(ln,"Brave");break;case on:!this.get(un)&&br&&br[bn]&&this.set(un,bn),"Macintosh"==this.get(mn)&&wr&&typeof wr.standalone!==tn.UNDEFINED&&wr.maxTouchPoints&&wr.maxTouchPoints>2&&this.set(mn,"iPad").set(un,gn);break;case an:!this.get(ln)&&br&&br[On]&&this.set(ln,br[On]);break;case cn:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(nn,t(nn)).set(rn,t(rn)).set(on,t(on)).set(sn,t(sn)).set(an,t(an))}return this},this.parseUA=function(){switch(this.itemType!=cn&&Nr.call(this.data,this.ua,this.rgxMap),this.itemType){case nn:this.set(hn,Tr(this.get(fn)));break;case an:if("iOS"==this.get(ln)&&"18.6"==this.get(fn)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(fn,e[1])}}return this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case nn:case sn:var n,r=e[kn]||e[Tn];if(r)for(var o=0;o<r.length;o++){var i=r[o].brand||r[o],s=r[o].version;this.itemType==nn&&!/not.a.brand/i.test(i)&&(!n||/Chrom/.test(n)&&i!=sr||n==cr&&/WebView2/.test(i))&&(i=Ar(i,jr),(n=this.get(ln))&&!/Chrom/.test(n)&&/Chrom/.test(i)||this.set(ln,i).set(fn,s).set(hn,Tr(s)),n=i),this.itemType==sn&&i==sr&&this.set(fn,s)}break;case rn:var a=e[pn];a&&(a&&"64"==e[Nn]&&(a+="64"),Nr.call(this.data,a+";",t));break;case on:if(e[bn]&&this.set(un,bn),e[mn]&&(this.set(mn,e[mn]),!this.get(un)||!this.get(dn))){var c={};Nr.call(c,"droid 9; "+e[mn]+")",t),!this.get(un)&&c.type&&this.set(un,c.type),!this.get(dn)&&c.vendor&&this.set(dn,c.vendor)}if(e[_n]){var l;if("string"!=typeof e[_n])for(var u=0;!l&&u<e[_n].length;)l=Ar(e[_n][u++],Fr);else l=Ar(e[_n],Fr);this.set(un,l)}break;case an:var d=e[On];if(d){var f=e[Rn];d==mr&&(f=parseInt(Tr(f),10)>=13?"11":"10"),this.set(ln,d).set(fn,f)}this.get(ln)==mr&&"Xbox"==e[mn]&&this.set(ln,"Xbox").set(fn,void 0);break;case cn:var p=this.data,h=function(t){return p[t].getItem().setCH(e).parseCH().get()};this.set(nn,h(nn)).set(rn,h(rn)).set(on,h(on)).set(sn,h(sn)).set(an,h(an))}return this},_r.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",Br(this,e)]]),this}function Dr(e,t,n){if(typeof e===tn.OBJECT?(vr(e,!0)?(typeof t===tn.OBJECT&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e!==tn.STRING||vr(t,!0)||(n=t,t=void 0),n)if(typeof n.append===tn.FUNCTION){var r={};n.forEach((function(e,t){r[String(t).toLowerCase()]=e})),n=r}else{var o={};for(var i in n)n.hasOwnProperty(i)&&(o[String(i).toLowerCase()]=n[i]);n=o}if(!(this instanceof Dr))return new Dr(e,t,n).getResult();var s=typeof e===tn.STRING?e:n&&n[Yt]?n[Yt]:wr&&wr.userAgent?wr.userAgent:en,a=new Ur(n,!0),c=t?function(e,t){var n={},r=t;if(!vr(t))for(var o in r={},t)for(var i in t[o])r[i]=t[o][i].concat(r[i]?r[i]:[]);for(var s in e)n[s]=r[s]&&r[s].length%2==0?r[s].concat(e[s]):e[s];return n}(Pr,t):Pr,l=function(e){return e==cn?function(){return new Ir(e,s,c,a).set("ua",s).set(nn,this.getBrowser()).set(rn,this.getCPU()).set(on,this.getDevice()).set(sn,this.getEngine()).set(an,this.getOS()).get()}:function(){return new Ir(e,s,c[e],a).parseUA().get()}};return _r.call(this,[["getBrowser",l(nn)],["getCPU",l(rn)],["getDevice",l(on)],["getEngine",l(sn)],["getOS",l(an)],["getResult",l(cn)],["getUA",function(){return s}],["setUA",function(e){return Er(e)&&(s=Rr(e,500)),this}]]).setUA(s),this}function Mr(e){if(!e)return!1;try{return JSON.parse(e),!0}catch(e){return!1}}function zr(e,t){void 0===t&&(t="[不可展示]");var n=typeof e;if("string"===n||"number"===n||"boolean"===n)return e;if(e instanceof Blob||e instanceof File)return"[Blob/File 数据]";if(null===e||"object"!==n)return t;if(Array.isArray(e))return e.map((function(e){return zr(e,t)}));for(var r={},o=0,i=Object.entries(e);o<i.length;o++){var s=i[o],a=s[0],c=s[1];r[a]=zr(c,t)}return r}Dr.VERSION="2.0.6",Dr.BROWSER=gr([ln,fn,hn,un]),Dr.CPU=gr([pn]),Dr.DEVICE=gr([mn,dn,un,wn,bn,yn,gn,vn,xn]),Dr.ENGINE=Dr.OS=gr([ln,fn]);var qr=function(){function r(e){this.sensitiveKeys=["password","pwd","token","accessToken","secret","auth"],this.ignoreUrls=["/tracking/z.png"],this.MAX_RESPONSE_SIZE=51200,this.logger=e,this.initXHRMonitor(),this.initFetchMonitor()}return r.prototype.processResponse=function(e,t){var n=t.includes("application/json"),r=t.includes("text/");if(!n&&!r)return{response:{dataType:"[非json/text类型的数据]"}};var o="",i=0;try{o="string"==typeof e?e:JSON.stringify(e),i=new Blob([o]).size}catch(t){o=String(e||""),i=new Blob([o]).size}if(i>this.MAX_RESPONSE_SIZE)return{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((i/1024).toFixed(1),"KB),已忽略]")}};try{var s=n?JSON.parse(o):o;return Mr(o)?{response:s}:{response:{dataType:"[文本类型数据]",data:s}}}catch(e){return{response:{dataType:"[非json/text类型的数据]"}}}},r.prototype.processFetchResponse=function(e){return t(this,void 0,void 0,(function(){var t,r,o,i,s;return n(this,(function(n){switch(n.label){case 0:r=0,o=e.headers.get("Content-Type")||"",n.label=1;case 1:return n.trys.push([1,7,,8]),o.includes("application/json")?[4,e.json()]:[3,3];case 2:return t=n.sent(),i=JSON.stringify(t),r=new Blob([i]).size,[3,6];case 3:return o.includes("text/")?[4,e.text()]:[3,5];case 4:return s=n.sent(),t={dataType:"[文本类型数据]",data:s},r=new Blob([s]).size,[3,6];case 5:return[2,{response:{dataType:"[非json/text类型的数据]"}}];case 6:return r>this.MAX_RESPONSE_SIZE?[2,{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((r/1024).toFixed(1),"KB),已忽略]")}}]:[2,{response:t}];case 7:return n.sent(),[2,{response:{dataType:"[非json/text类型的数据]"}}];case 8:return[2]}}))}))},r.prototype.initXHRMonitor=function(){var e=window.XMLHttpRequest,t=this;window.XMLHttpRequest=function(){var n=new e;n._customHeaders={};var r={url:"",method:"GET",params:null,startTime:0,endTime:0,duration:0,status:0,response:null,responseSize:0,error:null,msg:null},o=n.open.bind(n);n.open=function(e,n){if(r.method=e.toUpperCase(),r.url=n.split("?")[0],"GET"===r.method&&n.includes("?")){var i=n.split("?")[1];r.params=t.parseQueryString(i)}o(e,n)};var i=n.setRequestHeader.bind(n);n.setRequestHeader=function(e,t){n._customHeaders[e.toLowerCase()]=t,i(e,t)};var s=n.send.bind(n);return n.send=function(e){r.startTime=performance.now(),"GET"!==r.method&&e&&(r.params=t.parsePostData(e,n)),s(e)},n.addEventListener("load",(function(){r.endTime=performance.now(),r.duration=Number((r.endTime-r.startTime).toFixed(1)),r.status=n.status;var e=n.getResponseHeader("Content-Type")||"",o=t.processResponse(n.responseText||n.response,e).response;r.response=o,r.msg=(null==o?void 0:o.msg)||(null==o?void 0:o.message),t.handleRequestResult(r)})),n.addEventListener("error",(function(e){r.endTime=performance.now(),r.duration=Number((r.endTime-r.startTime).toFixed(1)),r.status=0,r.error="Network Error",t.handleRequestResult(r)})),n.addEventListener("abort",(function(){r.endTime=performance.now(),r.duration=Number((r.endTime-r.startTime).toFixed(1)),r.status=-1,r.error="Request Aborted",t.handleRequestResult(r)})),n}},r.prototype.initFetchMonitor=function(){var e=window.fetch.bind(window),r=this;window.fetch=function(o,i){return t(this,void 0,void 0,(function(){var t,s,a,c,l,u;return n(this,(function(n){switch(n.label){case 0:"GET"===(t={url:"string"==typeof o?o.split("?")[0]:o instanceof URL?o.href.split("?")[0]:o.url.split("?")[0],method:((null==i?void 0:i.method)||"GET").toUpperCase(),params:null,startTime:performance.now(),endTime:0,duration:0,status:0,response:null,error:null,msg:null}).method?t.url.includes("?")&&(s=t.url.split("?")[1],t.params=r.parseQueryString(s)):t.params=(null==i?void 0:i.body)?r.parsePostData(i.body,{headers:i.headers}):null,n.label=1;case 1:return n.trys.push([1,4,,5]),[4,e(o,i)];case 2:return a=n.sent(),c=a.clone(),t.endTime=performance.now(),t.duration=Number((t.endTime-t.startTime).toFixed(1)),t.status=a.status,[4,r.processFetchResponse(c)];case 3:return l=n.sent().response,t.response=l,t.msg=(null==l?void 0:l.msg)||(null==l?void 0:l.message),r.handleRequestResult(t),[2,a];case 4:throw u=n.sent(),t.endTime=performance.now(),t.duration=Number((t.endTime-t.startTime).toFixed(1)),t.status=0,t.error=u instanceof Error?u.message:"Fetch Unknown Error",r.handleRequestResult(t),u;case 5:return[2]}}))}))}},r.prototype.parseQueryString=function(e){var t={};if(e)return e.split("&").forEach((function(e){var n=e.split("="),r=n[0],o=n[1];r&&(t[decodeURIComponent(r)]=decodeURIComponent(o||""))})),t},r.prototype.parsePostData=function(e,t){if(e instanceof FormData){var n={};return e.forEach((function(e,t){n[t]=e})),zr(n)}if(e instanceof Blob||e instanceof File)return{dataType:"[Blob/File 数据]"};var r="";if("_customHeaders"in t&&t._customHeaders&&(r=t._customHeaders["content-type"]||""),!r&&"headers"in t&&t.headers){var o=t.headers;r="object"!=typeof o||o instanceof Headers?o.get("Content-Type")||"":o["Content-Type"]||o["content-type"]||""}if(!r&&"getResponseHeader"in t&&(r=t.getResponseHeader("Content-Type")||""),!r&&"string"==typeof e&&Mr(e)&&(r="application/json;charset=utf-8"),(r=r.toLowerCase()).includes("application/json")&&"string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return r.includes("application/x-www-form-urlencoded")&&"string"==typeof e?this.parseQueryString(e):{dataType:"[不可展示]"}},r.prototype.handleRequestResult=function(t){if(!this.ignoreUrls.some((function(e){return t.url.includes(e)}))){var n=this.filterSensitiveData(e({},t));this.logger.logAPI(n)}},r.prototype.filterSensitiveData=function(e){if(!e||"object"!=typeof e||e instanceof Blob||e instanceof FormData)return e;var t=Array.isArray(e)?[]:{},n=function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var o=n.toLowerCase();r.sensitiveKeys.some((function(e){return o.includes(e)}))?t[n]="***[已脱敏]***":t[n]=r.filterSensitiveData(e[n])}},r=this;for(var o in e)n(o);return t},r}();function Hr(e){var t,n;e instanceof Error?n=e:(n=new Error("非标准错误:".concat(String(e)))).name="NonStandardError";var r=function(e){if(!e)return{file:"未知文件",line:"未知行",column:"未知列"};var t=e.split("\n").filter((function(e){return e.trim()})),n=t[1]||t[0],r=n?/at (?:.+ )?\(?(.+?):(\d+):(\d+)\)?/.exec(n):null;return r?{file:r[1]||"未知文件",line:parseInt(r[2],10)||"未知行",column:parseInt(r[3],10)||"未知列"}:{file:"未知文件",line:"未知行",column:"未知列"}}(n.stack);return{type:n.name||"Error",message:n.message||"无错误描述",timestamp:Date.now(),file:r.file,line:r.line,column:r.column,stack:n.stack||"无堆栈信息",extra:{reason:n.cause,response:null===(t=n.response)||void 0===t?void 0:t.data}}}function $r(e,t){var n=Hr(e);t.logError(n)}var Vr=function(){function r(e){var t=this;if(this.config={pid:""},this.dataQueue=[],this.performanceData={begin:0,fpt:0,tti:0,ready:0,load:0},this.currentLocationPath="",this.canSendTTI=!0,this.pvId="",this.systemInfo={detector_browser:"",detector_browser_version:"",detector_device:"",detector_os:"",detector_os_version:"",http_user_agent:""},r.instance)console.error("BrowserLogger 类只能实例化一次!");else if(e&&"object"==typeof e)if(null==e?void 0:e.pid){this.config=e;var n=(new Dr).getResult();this.systemInfo={detector_browser:n.browser.name||"",detector_browser_version:n.browser.version||"",detector_device:n.device.model||"pc",detector_os:n.os.name||"",detector_os_version:n.os.version||"",http_user_agent:n.ua||""},r.instance=this,this.init(),this.currentLocationPath=window.location.pathname,document.addEventListener("DOMContentLoaded",(function(){t.performanceData.ready=function(){if(!window.performance)return 0;var e=performance.getEntriesByType("navigation");if(0===e.length)return 0;var t=e[0];return Math.round(10*t.domContentLoadedEventStart)/10}()}));var o=window.history.pushState;window.history.pushState=function(e,n,r){o.call(window.history,e,n,r),window.location.pathname!==t.currentLocationPath&&t.reSendPV()};var i,s=window.history.replaceState;window.history.replaceState=function(e,n,r){s.call(window.history,e,n,r),window.location.pathname!==t.currentLocationPath&&t.reSendPV()},window.addEventListener("popstate",(function(){window.location.pathname!==t.currentLocationPath&&t.reSendPV()})),new qr(this),i=this,"undefined"!=typeof window&&(window.addEventListener("error",(function(e){e.preventDefault(),$r(e.error,i)})),window.addEventListener("unhandledrejection",(function(e){e.preventDefault(),$r(e.reason,i)})))}else console.error("pid 不能为空!");else console.error("初始化参数不能为空!")}return r.prototype.reSendPV=function(){this.currentLocationPath=window.location.pathname,this.canSendTTI=!0,this.sendPV()},r.prototype.init=function(){return t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return this.sendPV(),[4,new Promise((function(e){if(window.PerformanceObserver){var t=new PerformanceObserver((function(n){console.log("+++ paint 类型指标",n),n.getEntries().forEach((function(n){if("first-paint"===n.name){var r=n.startTime;e({success:!0,fpTime:Math.round(10*r)/10,message:"获取 FP 时间成功"}),t.disconnect()}}))}));t.observe({type:"paint",buffered:!0})}else e({success:!1,message:"浏览器不支持 PerformanceObserver",fpTime:0})}))];case 1:return(e=t.sent()).success&&(this.performanceData.fpt=e.fpTime,console.log("FP 时间(实时监听):",e)),[2]}}))}))},r.singleton=function(e){return r.instance||(r.instance=new r(e)),r.instance},r.prototype.sendPV=function(){this.pvId=Qt().replace(/-/g,""),this.performanceData.begin=Date.now();var t=e({t:"pv",begin:Date.now(),pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(t)},r.prototype.logAPI=function(t){var n=e({t:"api",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.startTime,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},n),{api:t.url,success:t.status>=200&&t.status<300&&!t.error?1:0,time:t.duration,code:t.status,msg:t.msg,req_data:t.params,res_data:t.response,method:t.method}))},r.prototype.logError=function(t){if("AxiosError"!==t.type){var n=e({t:"error",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.timestamp,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},n),{cate:t.type,msg:t.message,stack:t.stack,file:t.file,line:t.line,col:t.column,err:""}))}},r.prototype.logTTI=function(){if(this.canSendTTI){this.canSendTTI=!1,this.performanceData.tti=Date.now()-this.performanceData.begin,this.performanceData.load=this.performanceData.tti;var t=e({t:"perf",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e(e({},t),{fpt:this.performanceData.fpt,tti:this.performanceData.tti,load:this.performanceData.load,ready:this.performanceData.ready}),this.systemInfo))}},r.prototype.setConfig=function(t){this.config=e(e({},this.config),t)},r.prototype.start=function(){if(this.config.pid){if(!this.config.uid){var t=window.localStorage.getItem("log_uid");t?this.config.uid=t:(this.config.uid=Qt().replace(/-/g,""),window.localStorage.setItem("log_uid",this.config.uid))}if(this.dataQueue.length)for(;this.dataQueue.length;){var n=this.dataQueue.shift();this.realSendLog(e(e({},n),{pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name}))}}else console.error("未配置 pid")},r.prototype.innerSendLog=function(e){this.config.pid&&this.config.uid?this.realSendLog(e):this.dataQueue.push(e)},r.prototype.realSendLog=function(e){It.post("https://haina-datahub.zero2x.org/tracking/z.png",e).catch((function(e){console.error("+++ send log error",e)}))},r.prototype.sendLog=function(t,n,r){var o=e({t:"custom",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},o),{spm:t,custom_log_type:n,custom_log_data:r}))},r.instance=null,r}();var Gr=[],Jr=!1;function Wr(e,t){return new Promise((function(n,r){try{var o=void 0;o="string"==typeof t?t:JSON.stringify(t);var i=(new TextEncoder).encode(o),s=new Blob([i]);It.put(e,s,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:function(e){var t=e.loaded/e.total*100;console.log("上传进度:".concat(t,"%")),100===t&&n(!0)}})}catch(e){console.log("+++ err",e),r(e)}}))}function Kr(){var e=window.location.hostname;return/^(?!test-).*zero2x\.org$/i.test(e)}function Xr(){return!!["haina-datahub.zero2x.org","test-haina-datahub.zero2x.org"].includes(window.location.hostname)}function Qr(e,t){for(var n=t||{},r=n.locale,o=void 0===r?"zh":r,i=n.precision,s=void 0===i?0:i,a=n.showByte,c=void 0!==a&&a,l=n.splitUnit,u=void 0!==l&&l,d="",f=0;f<s;f++)d+="0";if(!1===c&&"zh"===o)return e>=1e8?u?{num:C(e/1e8).format("0.[".concat(d,"]")),unit:"亿"}:"".concat(C(e/1e8).format("0.[".concat(d,"]")),"亿"):e>=1e4?u?{num:C(e/1e4).format("0.[".concat(d,"]")),unit:"万"}:"".concat(C(e/1e4).format("0.[".concat(d,"]")),"万"):u?{num:"".concat(e),unit:""}:"".concat(e);var p="";p=0===s?"0b":"0.[".concat(d,"b]");var h=C(e).format(p),m=function(e){var t={size:0,unit:"B"};if(!e)return t;var n=e.match(/^([\d.]+)\s*([KMGTPEZY]?B?)?$/i);if(!n)return t;var r=parseFloat(n[1]),o=(n[2]||"B").toUpperCase();return 1===o.length&&"B"!==o&&(o+="B"),{size:r,unit:o}}(h),w=m.size,b=m.unit;if(!0===c)return u?{num:"".concat(w),unit:b}:h;if(u){var g=b.replace("K","k");return g&&(g=g.substring(0,g.length-1)),{num:"".concat(w),unit:g}}return(h=h.substring(0,h.length-1)).replace("K","k")}function Zr(e,t,n,r,o){var i;if(t)window.open(e);else{var s=o||"zh";Gr.push({url:e,headers:r,locale:s}),Jr||(Jr=!0,null===(i=null==n?void 0:n.loading)||void 0===i||i.call(n,"zh"===s?"下载中":"Downloading"),Yr(n))}}function Yr(e){if(Gr.length>0){var t=Gr.shift(),n="string"==typeof t?t:t.url,r="string"==typeof t?{}:t.headers||{},o="string"==typeof t?"zh":t.locale||"zh";fetch(n,{headers:r}).then((function(e){if(200===(null==e?void 0:e.status)){var t=function(e){if(!e)return"";var t=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(e);return t&&t[1]?t[1].replace(/['"]/g,""):""}(e.headers.get("Content-Disposition"))||function(e){if(e){var t=e.split("/").pop();if(t&&t.indexOf(".")>-1)return decodeURIComponent(t.split("?")[0])}return""}(n);return e.blob().then((function(e){var n=URL.createObjectURL(e),r=document.createElement("a");r.style.display="none",document.body.appendChild(r),r.href=n,t&&(r.download=t),r.click(),r.remove(),URL.revokeObjectURL(n)}))}return Promise.reject({message:null==e?void 0:e.statusText})})).catch((function(){var t;null===(t=null==e?void 0:e.error)||void 0===t||t.call(e,"zh"===o?"文件下载异常:".concat(n):"File download error: ".concat(n))})).finally((function(){setTimeout((function(){Yr(e)}),1e3)}))}else Jr=!1}function eo(e){var t=e,n=e.indexOf("?");-1!==n&&(t=e.substring(0,n));var r=t.lastIndexOf(".");return t.substring(r+1)}function to(e){return new Promise((function(t){if(e&&e.length>0){var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0),r=function(){n.length>0?setTimeout(o):setTimeout((function(){t(null)}))},o=function(){var e=n.shift(),t=eo(e);if("js"===t||"mjs"===t){if(!document.querySelector('script[src="'.concat(e,'"]'))){var o=document.createElement("script");return o.src=e,"mjs"===t&&(o.type="module"),document.head.appendChild(o),o.onload=r,void(o.onerror=r)}}else if("css"===t&&!document.querySelector('link[href="'.concat(e,'"]'))){var i=document.createElement("link");return i.rel="stylesheet",i.href=e,document.head.appendChild(i),i.onload=r,void(i.onerror=r)}r()};o()}else t(null)}))}function no(e){if(Array.isArray(e)){var t=[];return e.forEach((function(e){t.push(no(e))})),t}if("[object Object]"===Object.prototype.toString.call(e)){var n={};return Object.keys(e).forEach((function(t){n[t]=no(e[t])})),n}return"string"==typeof e?e.trim():e}var ro,oo="zjlab_util_ifm";!function(e){e.HASH_CHANGE="zjlab_util_ifm_hashChange",e.PUSH_STATE="zjlab_util_ifm_pushState",e.REPLACE_STATE="zjlab_util_ifm_replaceState"}(ro||(ro={}));var io,so=function(){function e(){this.onMessageCallback={}}return e.prototype.postMessageToIfm=function(e,t,n,r){var o;if(e){var i=void 0;"function"==typeof n?i=n:r&&(i=r);var s="".concat(oo,"_").concat(t);i&&this.onMessage(t,i,!0),null===(o=e.contentWindow)||void 0===o||o.postMessage({type:s,data:"function"==typeof n?null:n},"*")}else console.error("postMessage error, no parent")},e.prototype.postMessage=function(e,t,n){if(window.parent&&window.parent!==window){var r=void 0;"function"==typeof t?r=t:n&&(r=n);var o="";o=-1!==[ro.HASH_CHANGE,ro.PUSH_STATE,ro.REPLACE_STATE].indexOf(e)?e:"".concat(oo,"_").concat(e),r&&this.onMessage(e,r,!0),window.parent.postMessage({type:o,data:"function"==typeof t?null:t},"*")}else console.error("postMessage error, no parent")},e.prototype.onMessage=function(e,t,n){var r=function(o){var i=o.data||{},s=i.data,a=i.type;(-1!==[ro.HASH_CHANGE,ro.PUSH_STATE,ro.REPLACE_STATE].indexOf(e)&&a===e||a==="".concat(oo,"_").concat(e))&&(n&&window.removeEventListener("message",r),t(s))};this.onMessageCallback[e]||(this.onMessageCallback[e]=[]),this.onMessageCallback[e].push(r),window.addEventListener("message",r)},e.prototype.destroy=function(){var e=this,t=Object.keys(this.onMessageCallback);t.length>0&&t.forEach((function(t){var n;null===(n=e.onMessageCallback[t])||void 0===n||n.forEach((function(e){window.removeEventListener("message",e)}))}))},e}();function ao(){window.addEventListener("message",(function(e){var t=e.data||{},n=t.data,r=t.type;if(r===ro.HASH_CHANGE||r===ro.PUSH_STATE||r===ro.REPLACE_STATE){var o="".concat(window.location.pathname,"?iframeUrl=").concat(encodeURIComponent(n.href));console.log("+++ iframe url data",r,n),window.history.replaceState(null,"",o)}}))}function co(e){var t=k.parse(window.location.search,{decode:!1});return(null==t?void 0:t.iframeUrl)?decodeURIComponent(t.iframeUrl):e}function lo(e,t){var n=new so;if(window.parent&&window.parent!==window){window.onhashchange=function(){n.postMessage(ro.HASH_CHANGE,{href:window.location.href})};var r=window.history.pushState;window.history.pushState=function(e,t,o){r.call(window.history,e,t,o),o&&n.postMessage(ro.PUSH_STATE,{href:-1!==o.indexOf("//")?o:window.location.origin+o})};var o=window.history.replaceState;window.history.replaceState=function(e,t,r){o.call(window.history,e,t,r),r&&n.postMessage(ro.REPLACE_STATE,{href:-1!==r.indexOf("//")?r:window.location.origin+r})},window.addEventListener("popstate",(function(e){n.postMessage(ro.REPLACE_STATE,{href:window.location.href})})),n.postMessage("getUserInfo",(function(n){var r;window[null!==(r=null==t?void 0:t.namespace)&&void 0!==r?r:"_subApp"]=n,e&&e(n)}))}}!function(e){e.zh="zh",e.en="en"}(io||(io={}));export{Vr as BrowserLogger,so as IfmChannel,to as appendAsset,Zr as downloadFile,Qr as formatNumber,Dt as getAxiosInstanceWithAuth,eo as getFileExt,co as getIframeUrl,Kr as isOnline,Xr as isPublicNetwork,ao as mainAppInit,lo as subAppInit,no as trimObj,Wr as uploadToOSS};
8
+ */N=A,function(e,t){N.exports?N.exports=t():e.numeral=t()}(O,(function(){var e,t,r,n,o,i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,s,a;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(c.zeroFormat&&r===c.zeroFormat)n=0;else if(c.nullFormat&&r===c.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((a="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(a)){s=i[o].unformat;break}n=(s=s||e._.stringToNumber)(r)}else n=Number(r)||null;return new u(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,r,n){var o,i,a,c,u,l,d,f,p=s[e.options.currentLocale],h=!1,m=!1,w="",b=1e12,g=1e9,y=1e6,v="",E=!1;if(t=t||0,a=Math.abs(t),e._.includes(r,"(")?(h=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(l=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(i=!!(i=r.match(/a(k|m|b|t)?/))&&i[1],e._.includes(r," a")&&(w=" "),r=r.replace(new RegExp(w+"a[kmbt]?"),""),a>=b&&!i||"t"===i?(w+=p.abbreviations.trillion,t/=b):a<b&&a>=g&&!i||"b"===i?(w+=p.abbreviations.billion,t/=g):a<g&&a>=y&&!i||"m"===i?(w+=p.abbreviations.million,t/=y):(a<y&&a>=1e3&&!i||"k"===i)&&(w+=p.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),c=t.toString().split(".")[0],u=r.split(".")[1],d=r.indexOf(","),o=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):v=e._.toFixed(t,u.length,n),c=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):c=e._.toFixed(t,0,n),w&&!i&&Number(c)>=1e3&&w!==p.abbreviations.trillion)switch(c=String(Number(c)/1e3),w){case p.abbreviations.thousand:w=p.abbreviations.million;break;case p.abbreviations.million:w=p.abbreviations.billion;break;case p.abbreviations.billion:w=p.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),E=!0),c.length<o)for(var x=o-c.length;x>0;x--)c="0"+c;return d>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===r.indexOf(".")&&(c=""),f=c+v+(w||""),h?f=(h&&E?"(":"")+f+(h&&E?")":""):l>=0?f=0===l?(E?"-":"+")+f:f+(E?"-":"+"):E&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=s[c.currentLocale],i=e,a={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,a[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,s,a,c=e.toString().split("."),u=t-(n||0);return o=2===c.length?Math.min(Math.max(c[1].length,u),t):u,s=Math.pow(10,o),a=(r(e+"e+"+o)/s).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),a=a.replace(i,"")),a}},e.options=c,e.formats=i,e.locales=s,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return s[c.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)c[e]=a[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,s,a,c,u,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(r)}catch(t){u=e.localeData(e.locale())}return i=u.currency.symbol,a=u.abbreviations,n=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==i)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==a.thousand&&l[0]!==a.million&&l[0]!==a.billion&&l[0]!==a.trillion)||(c=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(n)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(c):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(c)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(c)||!s[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,s,a=this._value,u=t||c.defaultFormat;if(r=r||Math.round,0===a&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===a&&null!==c.nullFormat)o=c.nullFormat;else{for(n in i)if(u.match(i[n].regexps.format)){s=i[n].format;break}o=(s=s||e._.numberToFormat)(a,u,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var s,a,c,u=e._.includes(o,"ib")?n:r,l=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=u.suffixes.length;s++)if(a=Math.pow(u.base,s),c=Math.pow(u.base,s+1),null===t||0===t||t>=a&&t<c){l+=u.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,o,i)+l},unformat:function(t){var o,i,s=e._.stringToNumber(t);if(s){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}s*=i||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,s=e.locales[e.options.currentLocale],a={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":o=e._.insert(o,s.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+s.currency.symbol.length-1)}for(i=a.after.length-1;i>=0;i--)switch(a.after[i]){case"$":o=i===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+i)));break;case" ":o=i===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+i)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e}));var C=R(A.exports);function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:j}=Object.prototype,{getPrototypeOf:P}=Object,L=(B=Object.create(null),e=>{const t=j.call(e);return B[t]||(B[t]=t.slice(8,-1).toLowerCase())});var B;const U=e=>(e=e.toLowerCase(),t=>L(t)===e),I=e=>t=>typeof t===e,{isArray:D}=Array,M=I("undefined");const z=U("ArrayBuffer");const q=I("string"),H=I("function"),$=I("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if("object"!==L(e))return!1;const t=P(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},J=U("Date"),W=U("File"),K=U("Blob"),X=U("FileList"),Q=U("URLSearchParams"),[Z,Y,ee,te]=["ReadableStream","Request","Response","Headers"].map(U);function re(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),D(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function ne(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ie=e=>!M(e)&&e!==oe;const se=(ae="undefined"!=typeof Uint8Array&&P(Uint8Array),e=>ae&&e instanceof ae);var ae;const ce=U("HTMLFormElement"),ue=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),le=U("RegExp"),de=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};re(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},fe="abcdefghijklmnopqrstuvwxyz",pe="0123456789",he={DIGIT:pe,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+pe};const me=U("AsyncFunction"),we=(be="function"==typeof setImmediate,ge=H(oe.postMessage),be?setImmediate:ge?((e,t)=>(oe.addEventListener("message",(({source:r,data:n})=>{r===oe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),oe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var be,ge;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||we;var ve={isArray:D,isArrayBuffer:z,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(e.constructor)&&H(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||H(e.append)&&("formdata"===(t=L(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&&z(e.buffer),t},isString:q,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isReadableStream:Z,isRequest:Y,isResponse:ee,isHeaders:te,isUndefined:M,isDate:J,isFile:W,isBlob:K,isRegExp:le,isFunction:H,isStream:e=>V(e)&&H(e.pipe),isURLSearchParams:Q,isTypedArray:se,isFileList:X,forEach:re,merge:function e(){const{caseless:t}=ie(this)&&this||{},r={},n=(n,o)=>{const i=t&&ne(r,o)||o;G(r[i])&&G(n)?r[i]=e(r[i],n):G(n)?r[i]=e({},n):D(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&re(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(re(t,((t,n)=>{r&&H(t)?e[n]=F(t,r):e[n]=t}),{allOwnKeys:n}),e),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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&P(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:L,kindOfTest:U,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!$(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ce,hasOwnProperty:ue,hasOwnProp:ue,reduceDescriptors:de,freezeMethods:e=>{de(e,((t,r)=>{if(H(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];H(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return D(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ne,global:oe,isContextDefined:ie,ALPHABET:he,generateString:(e=16,t=he.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&H(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(V(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=D(e)?[]:{};return re(e,((e,t)=>{const i=r(e,n+1);!M(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:me,isThenable:e=>e&&(V(e)||H(e))&&H(e.then)&&H(e.catch),setImmediate:we,asap:ye};function Ee(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}ve.inherits(Ee,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:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xe=Ee.prototype,Se={};["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=>{Se[e]={value:e}})),Object.defineProperties(Ee,Se),Object.defineProperty(xe,"isAxiosError",{value:!0}),Ee.from=(e,t,r,n,o,i)=>{const s=Object.create(xe);return ve.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ee.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function Te(e){return ve.isPlainObject(e)||ve.isArray(e)}function _e(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=_e(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Oe=ve.toFlatObject(ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Re(e,t,r){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ve.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ve.isDate(e))return e.toISOString();if(!a&&ve.isBlob(e))throw new Ee("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(e)||ve.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(ve.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ve.isArray(e)&&function(e){return ve.isArray(e)&&!e.some(Te)}(e)||(ve.isFileList(e)||ve.endsWith(r,"[]"))&&(a=ve.toArray(e)))return r=_e(r),a.forEach((function(e,n){!ve.isUndefined(e)&&null!==e&&t.append(!0===s?ke([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!Te(e)||(t.append(ke(o,r,i),c(e)),!1)}const l=[],d=Object.assign(Oe,{defaultVisitor:u,convertValue:c,isVisitable:Te});if(!ve.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ve.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),ve.forEach(r,(function(r,i){!0===(!(ve.isUndefined(r)||null===r)&&o.call(t,r,ve.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ae(e,t){this._pairs=[],e&&Re(e,this,t)}const Ce=Ae.prototype;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function je(e,t,r){if(!t)return e;const n=r&&r.encode||Fe,o=r&&r.serialize;let i;if(i=o?o(t,r):ve.isURLSearchParams(t)?t.toString():new Ae(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Ne)}:Ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Pe{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ue="undefined"!=typeof window&&"undefined"!=typeof document,Ie=(De="undefined"!=typeof navigator&&navigator.product,Ue&&["ReactNative","NativeScript","NS"].indexOf(De)<0);var De;const Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ze=Ue&&window.location.href||"http://localhost";var qe={...Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:Ie,hasStandardBrowserWebWorkerEnv:Me,origin:ze}),...Be};function He(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ve.isArray(n)?n.length:i,a)return ve.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&ve.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&ve.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const r={};return ve.forEachEntry(e,((e,n)=>{t(function(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const $e={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ve.isObject(e);o&&ve.isHTMLForm(e)&&(e=new FormData(e));if(ve.isFormData(e))return n?JSON.stringify(He(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Re(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return qe.isNode&&ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ve.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Ee.from(e,Ee.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:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));const Ve=ve.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 Ge=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:ve.isArray(e)?e.map(We):String(e)}function Ke(e,t,r,n,o){return ve.isFunction(n)?n.call(this,t,r):(o&&(t=r),ve.isString(t)?ve.isString(n)?-1!==t.indexOf(n):ve.isRegExp(n)?n.test(t):void 0:void 0)}class Xe{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Je(t);if(!o)throw new Error("header name must be a non-empty string");const i=ve.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=We(e))}const i=(e,t)=>ve.forEach(e,((e,r)=>o(e,r,t)));if(ve.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(ve.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=Je(e)){const r=ve.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ve.isFunction(t))return t.call(this,e,r);if(ve.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Je(e)){const r=ve.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ke(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Je(e)){const o=ve.findKey(r,e);!o||t&&!Ke(0,r[o],o,t)||(delete r[o],n=!0)}}return ve.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ke(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ve.forEach(this,((n,o)=>{const i=ve.findKey(r,o);if(i)return t[i]=We(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=We(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ve.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ve.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Ge]=this[Ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Je(e);t[n]||(!function(e,t){const r=ve.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return ve.isArray(e)?e.forEach(n):n(e),this}}function Qe(e,t){const r=this||$e,n=t||r,o=Xe.from(n.headers);let i=n.data;return ve.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ze(e){return!(!e||!e.__CANCEL__)}function Ye(e,t,r){Ee.call(this,null==e?"canceled":e,Ee.ERR_CANCELED,t,r),this.name="CanceledError"}function et(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ve.reduceDescriptors(Xe.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),ve.freezeMethods(Xe),ve.inherits(Ye,Ee,{__CANCEL__:!0});const tt=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,d=0;for(;l!==i;)d+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout((()=>{n=null,s(r)}),i-a)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},rt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},nt=e=>(...t)=>ve.asap((()=>e(...t)));var ot=qe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=ve.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},it=qe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];ve.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ve.isString(n)&&s.push("path="+n),ve.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function st(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const at=e=>e instanceof Xe?{...e}:e;function ct(e,t){t=t||{};const r={};function n(e,t,r){return ve.isPlainObject(e)&&ve.isPlainObject(t)?ve.merge.call({caseless:r},e,t):ve.isPlainObject(t)?ve.merge({},t):ve.isArray(t)?t.slice():t}function o(e,t,r){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!ve.isUndefined(t))return n(void 0,t)}function s(e,t){return ve.isUndefined(t)?ve.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(at(e),at(t),!0)};return ve.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);ve.isUndefined(s)&&i!==a||(r[n]=s)})),r}var ut=e=>{const t=ct({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Xe.from(a),t.url=je(st(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ve.isFormData(n))if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qe.hasStandardBrowserEnv&&(o&&ve.isFunction(o)&&(o=o(t)),o||!1!==o&&ot(t.url))){const e=i&&s&&it.read(s);e&&a.set(i,e)}return t};var lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ut(e);let o=n.data;const i=Xe.from(n.headers).normalize();let s,a,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function w(){if(!m)return;const n=Xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());et((function(e){t(e),h()}),(function(e){r(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Le;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Ee(t,o.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ve.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ve.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([c,l]=tt(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,u]=tt(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new Ye(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===qe.protocols.indexOf(b)?r(new Ee("Unsupported protocol "+b+":",Ee.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const dt=(e,t)=>{let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ee?t:new Ye(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},ft=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},pt=(e,t,r,n,o)=>{const i=async function*(e,t,r){for await(const n of e)yield*ft(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,o);let s,a=0,c=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let o=n.byteLength;if(r){let e=a+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},ht="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mt=ht&&"function"==typeof ReadableStream,wt=ht&&("function"==typeof TextEncoder?(bt=new TextEncoder,e=>bt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var bt;const gt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yt=mt&&gt((()=>{let e=!1;const t=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),vt=mt&&gt((()=>ve.isReadableStream(new Response("").body))),Et={stream:vt&&(e=>e.body)};var xt;ht&&(xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Et[e]&&(Et[e]=ve.isFunction(xt[e])?t=>t[e]():(t,r)=>{throw new Ee(`Response type '${e}' is not supported`,Ee.ERR_NOT_SUPPORT,r)})})));const St=async(e,t)=>{const r=ve.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:ve.isBlob(e)?e.size:ve.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ve.isArrayBufferView(e)||ve.isArrayBuffer(e)?e.byteLength:(ve.isURLSearchParams(e)&&(e+=""),ve.isString(e)?(await wt(e)).byteLength:void 0))(t):r};const Tt={http:null,xhr:lt,fetch:ht&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=ut(e);u=u?(u+"").toLowerCase():"text";let p,h,[m,w]=o||i||s?dt([o,i],s):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let g;try{if(c&&yt&&"get"!==r&&"head"!==r&&0!==(g=await St(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(ve.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=rt(g,tt(nt(c)));n=pt(r.body,65536,e,t,wt)}}ve.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:d});let o=await fetch(h);const i=vt&&("stream"===u||"response"===u);if(vt&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=ve.toFiniteNumber(o.headers.get("content-length")),[r,n]=a&&rt(t,tt(nt(a),!0))||[];o=new Response(pt(o.body,65536,r,(()=>{n&&n(),i&&b()}),wt),e)}u=u||"text";let s=await Et[ve.findKey(Et,u)||"text"](o,e);return!i&&b(),w&&w(),await new Promise(((t,r)=>{et(t,r,{data:s,headers:Xe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,e,h),{cause:t.cause||t});throw Ee.from(t,t&&t.code,e,h)}})};ve.forEach(Tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _t=e=>`- ${e}`,kt=e=>ve.isFunction(e)||null===e||!1===e;var Ot=e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!kt(r)&&(n=Tt[(t=String(r)).toLowerCase()],void 0===n))throw new Ee(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ee("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_t).join("\n"):" "+_t(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function Nt(e){Rt(e),e.headers=Xe.from(e.headers),e.data=Qe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ot(e.adapter||$e.adapter)(e).then((function(t){return Rt(e),t.data=Qe.call(e,e.transformResponse,t),t.headers=Xe.from(t.headers),t}),(function(t){return Ze(t)||(Rt(e),t&&t.response&&(t.response.data=Qe.call(e,e.transformResponse,t.response),t.response.headers=Xe.from(t.response.headers))),Promise.reject(t)}))}const At="1.7.4",Ct={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ct[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Ft={};Ct.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Ee(n(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!Ft[o]&&(Ft[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var jt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Ee("option "+i+" must be "+r,Ee.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ee("Unknown option "+i,Ee.ERR_BAD_OPTION)}},validators:Ct};const Pt=jt.validators;class Lt{constructor(e){this.defaults=e,this.interceptors={request:new Pe,response:new Pe}}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 r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ct(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&jt.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),null!=n&&(ve.isFunction(n)?t.paramsSerializer={serialize:n}:jt.assertOptions(n,{encode:Pt.function,serialize:Pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ve.merge(o.common,o[t.method]);o&&ve.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Xe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!a){const e=[Nt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=s.length;let f=t;for(d=0;d<l;){const e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return je(st((e=ct(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ve.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,r){return this.request(ct(r||{},{method:e,url:t,data:(r||{}).data}))}})),ve.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ct(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));class Bt{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ye(e,n,o),t(r.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)}static source(){let e;return{token:new Bt((function(t){e=t})),cancel:e}}}const Ut={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};Object.entries(Ut).forEach((([e,t])=>{Ut[t]=e}));const It=function e(t){const r=new Lt(t),n=F(Lt.prototype.request,r);return ve.extend(n,Lt.prototype,r,{allOwnKeys:!0}),ve.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ct(t,r))},n}($e);function Dt(e){var t=new so,r=It.create({});return r.interceptors.request.use((function(t){var r,n=window[null!==(r=null==e?void 0:e.authTokenNamespace)&&void 0!==r?r:"_subApp"],o=null==n?void 0:n.token;return o&&(t.headers.Authorization="Bearer ".concat(o)),(null==n?void 0:n.language)&&(t.headers.language=n.language),t}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var r;return 401===(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.code)?(t.postMessage("login"),Promise.reject({code:401,msg:"用户未登录"})):e}),(function(e){var r,n,o,i,s;if(e.response&&(401===e.response.status&&t.postMessage("login"),(null===(n=null===(r=e.response)||void 0===r?void 0:r.data)||void 0===n?void 0:n.msg)||(null===(i=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===i?void 0:i.message)))return Promise.reject(null===(s=e.response)||void 0===s?void 0:s.data);return Promise.reject(e)})),r}It.Axios=Lt,It.CanceledError=Ye,It.CancelToken=Bt,It.isCancel=Ze,It.VERSION=At,It.toFormData=Re,It.AxiosError=Ee,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 ve.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=ct,It.AxiosHeaders=Xe,It.formToJSON=e=>He(ve.isHTMLForm(e)?new FormData(e):e),It.getAdapter=Ot,It.HttpStatusCode=Ut,It.default=It;var Mt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function zt(e){if(!function(e){return"string"==typeof e&&Mt.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const qt=[];for(let e=0;e<256;++e)qt.push((e+256).toString(16).slice(1));function Ht(e,t=0){return(qt[e[t+0]]+qt[e[t+1]]+qt[e[t+2]]+qt[e[t+3]]+"-"+qt[e[t+4]]+qt[e[t+5]]+"-"+qt[e[t+6]]+qt[e[t+7]]+"-"+qt[e[t+8]]+qt[e[t+9]]+"-"+qt[e[t+10]]+qt[e[t+11]]+qt[e[t+12]]+qt[e[t+13]]+qt[e[t+14]]+qt[e[t+15]]).toLowerCase()}let $t;const Vt=new Uint8Array(16);function Gt(){if(!$t){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$t=crypto.getRandomValues.bind(crypto)}return $t(Vt)}const Jt={};function Wt(e,t,r){let n;const o=e?._v6??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e)n=Kt(e.random??e.rng?.()??Gt(),e.msecs,e.nsecs,e.clockseq,e.node,t,r);else{const e=Date.now(),i=Gt();!function(e,t,r){e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0);e.node||(e.node=r.slice(10,16),e.node[0]|=1,e.clockseq=16383&(r[8]<<8|r[9]));e.msecs=t}(Jt,e,i),n=Kt(i,Jt.msecs,Jt.nsecs,o?void 0:Jt.clockseq,o?void 0:Jt.node,t,r)}return t??Ht(n)}function Kt(e,t,r,n,o,i,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(s<0||s+16>i.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else i=new Uint8Array(16),s=0;t??=Date.now(),r??=0,n??=16383&(e[8]<<8|e[9]),o??=e.slice(10,16);const a=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;i[s++]=a>>>24&255,i[s++]=a>>>16&255,i[s++]=a>>>8&255,i[s++]=255&a;const c=t/4294967296*1e4&268435455;i[s++]=c>>>8&255,i[s++]=255&c,i[s++]=c>>>24&15|16,i[s++]=c>>>16&255,i[s++]=n>>>8|128,i[s++]=255&n;for(let e=0;e<6;++e)i[s++]=o[e];return i}function Xt(e){const t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?zt(e):e);return"string"==typeof e?Ht(t):t}function Qt(e,t,r){e??={};let n=Wt({...e,_v6:!0},new Uint8Array(16));return n=Xt(n),Ht(n)}var Zt,Yt="user-agent",er="",tr={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},rr="browser",nr="cpu",or="device",ir="engine",sr="os",ar="result",cr="name",ur="type",lr="vendor",dr="version",fr="architecture",pr="major",hr="model",mr="console",wr="mobile",br="tablet",gr="smarttv",yr="wearable",vr="xr",Er="embedded",xr="inapp",Sr="brands",Tr="formFactors",_r="fullVersionList",kr="platform",Or="platformVersion",Rr="bitness",Nr="sec-ch-ua",Ar=Nr+"-full-version-list",Cr=Nr+"-arch",Fr=Nr+"-"+Rr,jr=Nr+"-form-factors",Pr=Nr+"-"+wr,Lr=Nr+"-"+hr,Br=Nr+"-"+kr,Ur=Br+"-version",Ir=[Sr,_r,wr,hr,kr,Or,fr,Tr,Rr],Dr="Amazon",Mr="Apple",zr="ASUS",qr="BlackBerry",Hr="Google",$r="Huawei",Vr="Lenovo",Gr="Honor",Jr="LG",Wr="Microsoft",Kr="Motorola",Xr="Nvidia",Qr="OnePlus",Zr="OPPO",Yr="Samsung",en="Sharp",tn="Sony",rn="Xiaomi",nn="Zebra",on="Chrome",sn="Chromium",an="Chromecast",cn="Edge",un="Firefox",ln="Opera",dn="Facebook",fn="Sogou",pn="Mobile ",hn=" Browser",mn="Windows",wn=typeof window!==tr.UNDEFINED&&window.navigator?window.navigator:void 0,bn=wn&&wn.userAgentData?wn.userAgentData:void 0,gn=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},yn=function(e,t){if(typeof e===tr.OBJECT&&e.length>0){for(var r in e)if(Sn(t)==Sn(e[r]))return!0;return!1}return!!En(e)&&Sn(t)==Sn(e)},vn=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&vn(e[r])},En=function(e){return typeof e===tr.STRING},xn=function(e){if(e){for(var t=[],r=kn(/\\?\"/g,e).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var o=Rn(r[n]).split(";v=");t[n]={brand:o[0],version:o[1]}}else t[n]=Rn(r[n]);return t}},Sn=function(e){return En(e)?e.toLowerCase():e},Tn=function(e){return En(e)?kn(/[^\d\.]/g,e).split(".")[0]:void 0},_n=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==tr.OBJECT&&2==r.length?this[r[0]]=r[1]:this[r]=void 0}return this},kn=function(e,t){return En(t)?t.replace(e,er):t},On=function(e){return kn(/\\?\"/g,e)},Rn=function(e,t){return e=kn(/^\s\s*/,String(e)),typeof t===tr.UNDEFINED?e:e.substring(0,t)},Nn=function(e,t){if(e&&t)for(var r,n,o,i,s,a,c=0;c<t.length&&!s;){var u=t[c],l=t[c+1];for(r=n=0;r<u.length&&!s&&u[r];)if(s=u[r++].exec(e))for(o=0;o<l.length;o++)a=s[++n],typeof(i=l[o])===tr.OBJECT&&i.length>0?2===i.length?typeof i[1]==tr.FUNCTION?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:i.length>=3&&(typeof i[1]!==tr.FUNCTION||i[1].exec&&i[1].test?3==i.length?this[i[0]]=a?a.replace(i[1],i[2]):void 0:4==i.length?this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0:i.length>4&&(this[i[0]]=a?i[3].apply(this,[a.replace(i[1],i[2])].concat(i.slice(4))):void 0):i.length>3?this[i[0]]=a?i[1].apply(this,i.slice(2)):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0):this[i]=a||void 0;c+=2}},An=function(e,t){for(var r in t)if(typeof t[r]===tr.OBJECT&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(yn(t[r][n],e))return"?"===r?void 0:r}else if(yn(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},Cn={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Fn={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},jn={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Pn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[dr,[cr,pn+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[dr,[cr,cn+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[dr,[cr,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[cr,dr],[/opios[\/ ]+([\w\.]+)/i],[dr,[cr,ln+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[dr,[cr,ln+" GX"]],[/\bopr\/([\w\.]+)/i],[dr,[cr,ln]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[dr,[cr,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[dr,[cr,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[cr,dr],[/quark(?:pc)?\/([-\w\.]+)/i],[dr,[cr,"Quark"]],[/\bddg\/([\w\.]+)/i],[dr,[cr,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[dr,[cr,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[dr,[cr,"WeChat"]],[/konqueror\/([\w\.]+)/i],[dr,[cr,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[dr,[cr,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[dr,[cr,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[dr,[cr,"Smart "+Vr+hn]],[/(avast|avg)\/([\w\.]+)/i],[[cr,/(.+)/,"$1 Secure"+hn],dr],[/\bfocus\/([\w\.]+)/i],[dr,[cr,un+" Focus"]],[/\bopt\/([\w\.]+)/i],[dr,[cr,ln+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[dr,[cr,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[dr,[cr,"Dolphin"]],[/coast\/([\w\.]+)/i],[dr,[cr,ln+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[dr,[cr,"MIUI"+hn]],[/fxios\/([\w\.-]+)/i],[dr,[cr,pn+un]],[/\bqihoobrowser\/?([\w\.]*)/i],[dr,[cr,"360"]],[/\b(qq)\/([\w\.]+)/i],[[cr,/(.+)/,"$1Browser"],dr],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[cr,/(.+)/,"$1"+hn],dr],[/samsungbrowser\/([\w\.]+)/i],[dr,[cr,Yr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[dr,[cr,fn+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[cr,fn+" Mobile"],dr],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[cr,dr],[/(lbbrowser|rekonq)/i],[cr],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[dr,cr],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[cr,dn],dr,[ur,xr]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[cr,dr,[ur,xr]],[/\bgsa\/([\w\.]+) .*safari\//i],[dr,[cr,"GSA"],[ur,xr]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[dr,[cr,"TikTok"],[ur,xr]],[/\[(linkedin)app\]/i],[cr,[ur,xr]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[cr,/(.+)/,"Zalo"],dr,[ur,xr]],[/(chromium)[\/ ]([-\w\.]+)/i],[cr,dr],[/headlesschrome(?:\/([\w\.]+)| )/i],[dr,[cr,on+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[dr,[cr,cn+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[cr,on+" WebView"],dr],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[dr,[cr,"Android"+hn]],[/chrome\/([\w\.]+) mobile/i],[dr,[cr,pn+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[cr,dr],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[dr,[cr,pn+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[cr,pn+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[dr,cr],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[cr,[dr,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[cr,dr],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[cr,pn+un],dr],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[cr,"Netscape"],dr],[/(wolvic|librewolf)\/([\w\.]+)/i],[cr,dr],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[dr,[cr,un+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[cr,[dr,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[cr,[dr,/[^\d\.]+./,er]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[fr,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[fr,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[fr,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[fr,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[fr,"arm"]],[/ sun4\w[;\)]/i],[[fr,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[fr,/ower/,er,Sn]],[/mc680.0/i],[[fr,"68k"]],[/winnt.+\[axp/i],[[fr,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[hr,[lr,Yr],[ur,br]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[hr,[lr,Yr],[ur,wr]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[hr,[lr,Mr],[ur,wr]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[hr,[lr,Mr],[ur,br]],[/(macintosh);/i],[hr,[lr,Mr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[hr,[lr,en],[ur,wr]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[hr,[lr,Gr],[ur,br]],[/honor([-\w ]+)[;\)]/i],[hr,[lr,Gr],[ur,wr]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[hr,[lr,$r],[ur,br]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[hr,[lr,$r],[ur,wr]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[hr,/_/g," "],[lr,rn],[ur,br]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[hr,/_/g," "],[lr,rn],[ur,wr]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[hr,[lr,Qr],[ur,wr]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[hr,[lr,Zr],[ur,wr]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[hr,[lr,An,{OnePlus:["203","304","403","404","413","415"],"*":Zr}],[ur,br]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[hr,[lr,"BLU"],[ur,wr]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[hr,[lr,"Vivo"],[ur,wr]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[hr,[lr,"Realme"],[ur,wr]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[hr,[lr,Vr],[ur,br]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[hr,[lr,Vr],[ur,wr]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[hr,[lr,Kr],[ur,wr]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[hr,[lr,Kr],[ur,br]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[hr,[lr,Jr],[ur,br]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[hr,[lr,Jr],[ur,wr]],[/(nokia) (t[12][01])/i],[lr,hr,[ur,br]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[hr,/_/g," "],[ur,wr],[lr,"Nokia"]],[/(pixel (c|tablet))\b/i],[hr,[lr,Hr],[ur,br]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[hr,[lr,Hr],[ur,wr]],[/(google) (pixelbook( go)?)/i],[lr,hr],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[hr,[lr,tn],[ur,wr]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[hr,"Xperia Tablet"],[lr,tn],[ur,br]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[hr,[lr,Dr],[ur,br]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[hr,/(.+)/g,"Fire Phone $1"],[lr,Dr],[ur,wr]],[/(playbook);[-\w\),; ]+(rim)/i],[hr,lr,[ur,br]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[hr,[lr,qr],[ur,wr]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[hr,[lr,zr],[ur,br]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[hr,[lr,zr],[ur,wr]],[/(nexus 9)/i],[hr,[lr,"HTC"],[ur,br]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[lr,[hr,/_/g," "],[ur,wr]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[hr,[lr,"TCL"],[ur,br]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[hr,[lr,"TCL"],[ur,wr]],[/(itel) ((\w+))/i],[[lr,Sn],hr,[ur,An,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[hr,[lr,"Acer"],[ur,br]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[hr,[lr,"Meizu"],[ur,wr]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[hr,[lr,"Ulefone"],[ur,wr]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[hr,[lr,"Energizer"],[ur,wr]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[hr,[lr,"Cat"],[ur,wr]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[hr,[lr,"Smartfren"],[ur,wr]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[hr,[lr,"Nothing"],[ur,wr]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[hr,[lr,"Archos"],[ur,br]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[hr,[lr,"Archos"],[ur,wr]],[/; (n159v)/i],[hr,[lr,"HMD"],[ur,wr]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[lr,hr,[ur,br]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[lr,hr,[ur,wr]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[lr,hr,[ur,br]],[/(surface duo)/i],[hr,[lr,Wr],[ur,br]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[hr,[lr,"Fairphone"],[ur,wr]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[hr,[lr,Xr],[ur,br]],[/(sprint) (\w+)/i],[lr,hr,[ur,wr]],[/(kin\.[onetw]{3})/i],[[hr,/\./g," "],[lr,Wr],[ur,wr]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[hr,[lr,nn],[ur,br]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[hr,[lr,nn],[ur,wr]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[lr,[ur,gr]],[/hbbtv.+maple;(\d+)/i],[[hr,/^/,"SmartTV"],[lr,Yr],[ur,gr]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[lr,hr,[ur,gr]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[lr,Jr],[ur,gr]],[/(apple) ?tv/i],[lr,[hr,Mr+" TV"],[ur,gr]],[/crkey.*devicetype\/chromecast/i],[[hr,an+" Third Generation"],[lr,Hr],[ur,gr]],[/crkey.*devicetype\/([^/]*)/i],[[hr,/^/,"Chromecast "],[lr,Hr],[ur,gr]],[/fuchsia.*crkey/i],[[hr,an+" Nest Hub"],[lr,Hr],[ur,gr]],[/crkey/i],[[hr,an],[lr,Hr],[ur,gr]],[/(portaltv)/i],[hr,[lr,dn],[ur,gr]],[/droid.+aft(\w+)( bui|\))/i],[hr,[lr,Dr],[ur,gr]],[/(shield \w+ tv)/i],[hr,[lr,Xr],[ur,gr]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[hr,[lr,en],[ur,gr]],[/(bravia[\w ]+)( bui|\))/i],[hr,[lr,tn],[ur,gr]],[/(mi(tv|box)-?\w+) bui/i],[hr,[lr,rn],[ur,gr]],[/Hbbtv.*(technisat) (.*);/i],[lr,hr,[ur,gr]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[lr,/.+\/(\w+)/,"$1",An,{LG:"lge"}],[hr,Rn],[ur,gr]],[/(playstation \w+)/i],[hr,[lr,tn],[ur,mr]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[hr,[lr,Wr],[ur,mr]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[lr,hr,[ur,mr]],[/droid.+; (shield)( bui|\))/i],[hr,[lr,Xr],[ur,mr]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[hr,[lr,Yr],[ur,yr]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[lr,hr,[ur,yr]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[hr,[lr,Zr],[ur,yr]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[hr,[lr,Mr],[ur,yr]],[/(opwwe\d{3})/i],[hr,[lr,Qr],[ur,yr]],[/(moto 360)/i],[hr,[lr,Kr],[ur,yr]],[/(smartwatch 3)/i],[hr,[lr,tn],[ur,yr]],[/(g watch r)/i],[hr,[lr,Jr],[ur,yr]],[/droid.+; (wt63?0{2,3})\)/i],[hr,[lr,nn],[ur,yr]],[/droid.+; (glass) \d/i],[hr,[lr,Hr],[ur,vr]],[/(pico) ([\w ]+) os\d/i],[lr,hr,[ur,vr]],[/(quest( \d| pro)?s?).+vr/i],[hr,[lr,dn],[ur,vr]],[/mobile vr; rv.+firefox/i],[[ur,vr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[lr,[ur,Er]],[/(aeobc)\b/i],[hr,[lr,Dr],[ur,Er]],[/(homepod).+mac os/i],[hr,[lr,Mr],[ur,Er]],[/windows iot/i],[[ur,Er]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[hr,[ur,gr]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[ur,gr]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[hr,[ur,An,{mobile:"Mobile",xr:"VR","*":br}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[ur,br]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[ur,wr]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[hr,[lr,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[dr,[cr,cn+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[cr,dr],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[dr,[cr,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[cr,dr],[/ladybird\//i],[[cr,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[dr,cr]],os:[[/(windows nt) (6\.[23]); arm/i],[[cr,/N/,"R"],[dr,An,Cn]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[cr,dr],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[dr,/(;|\))/g,"",An,Cn],[cr,mn]],[/(windows ce)\/?([\d\.]*)/i],[cr,dr],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[dr,/_/g,"."],[cr,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[cr,"macOS"],[dr,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[dr,[cr,an+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[dr,[cr,an+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[dr,[cr,an+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[dr,[cr,an+" Linux"]],[/crkey\/([\d\.]+)/i],[dr,[cr,an]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[dr,cr],[/(ubuntu) ([\w\.]+) like android/i],[[cr,/(.+)/,"$1 Touch"],dr],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[cr,dr],[/\(bb(10);/i],[dr,[cr,qr]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[dr,[cr,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[dr,[cr,un+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[dr,[cr,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[dr,An,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[cr,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[dr,[cr,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[cr,"Chrome OS"],dr],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[cr,dr],[/(sunos) ?([\d\.]*)/i],[[cr,"Solaris"],dr],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[cr,dr]]},Ln=(Zt={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},_n.call(Zt.init,[[rr,[cr,dr,pr,ur]],[nr,[fr]],[or,[ur,hr,lr]],[ir,[cr,dr]],[sr,[cr,dr]]]),_n.call(Zt.isIgnore,[[rr,[dr,pr]],[ir,[dr]],[sr,[dr]]]),_n.call(Zt.isIgnoreRgx,[[rr,/ ?browser$/i],[sr,/ ?os$/i]]),_n.call(Zt.toString,[[rr,[cr,dr]],[nr,[fr]],[or,[lr,hr]],[ir,[cr,dr]],[sr,[cr,dr]]]),Zt),Bn=function(e,t){var r=Ln.init[t],n=Ln.isIgnore[t]||0,o=Ln.isIgnoreRgx[t]||0,i=Ln.toString[t]||0;function s(){_n.call(this,r)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return bn?bn.getHighEntropyValues(Ir).then((function(t){return e.setCH(new Un(t,!1)).parseCH().get()})):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=ar&&(s.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!yn(n,r)&&Sn(o?kn(o,this[r]):this[r])==Sn(o?kn(o,e):e)){if(t=!0,e!=tr.UNDEFINED)break}else if(e==tr.UNDEFINED&&t){t=!t;break}return t},s.prototype.toString=function(){var e=er;for(var t in i)typeof this[i[t]]!==tr.UNDEFINED&&(e+=(e?" ":er)+this[i[t]]);return e||tr.UNDEFINED}),bn||(s.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:s.prototype.is,toString:s.prototype.toString};var n=new r;return e(n),n}),new s};function Un(e,t){if(e=e||{},_n.call(this,Ir),t)_n.call(this,[[Sr,xn(e[Nr])],[_r,xn(e[Ar])],[wr,/\?1/.test(e[Pr])],[hr,On(e[Lr])],[kr,On(e[Br])],[Or,On(e[Ur])],[fr,On(e[Cr])],[Tr,xn(e[jr])],[Rr,On(e[Fr])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==tr.UNDEFINED&&(this[r]=e[r])}function In(e,t,r,n){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(wn&&wn.userAgent==this.ua)switch(this.itemType){case rr:wn.brave&&typeof wn.brave.isBrave==tr.FUNCTION&&this.set(cr,"Brave");break;case or:!this.get(ur)&&bn&&bn[wr]&&this.set(ur,wr),"Macintosh"==this.get(hr)&&wn&&typeof wn.standalone!==tr.UNDEFINED&&wn.maxTouchPoints&&wn.maxTouchPoints>2&&this.set(hr,"iPad").set(ur,br);break;case sr:!this.get(cr)&&bn&&bn[kr]&&this.set(cr,bn[kr]);break;case ar:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(rr,t(rr)).set(nr,t(nr)).set(or,t(or)).set(ir,t(ir)).set(sr,t(sr))}return this},this.parseUA=function(){switch(this.itemType!=ar&&Nn.call(this.data,this.ua,this.rgxMap),this.itemType){case rr:this.set(pr,Tn(this.get(dr)));break;case sr:if("iOS"==this.get(cr)&&"18.6"==this.get(dr)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(dr,e[1])}}return this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case rr:case ir:var r,n=e[_r]||e[Sr];if(n)for(var o=0;o<n.length;o++){var i=n[o].brand||n[o],s=n[o].version;this.itemType==rr&&!/not.a.brand/i.test(i)&&(!r||/Chrom/.test(r)&&i!=sn||r==cn&&/WebView2/.test(i))&&(i=An(i,jn),(r=this.get(cr))&&!/Chrom/.test(r)&&/Chrom/.test(i)||this.set(cr,i).set(dr,s).set(pr,Tn(s)),r=i),this.itemType==ir&&i==sn&&this.set(dr,s)}break;case nr:var a=e[fr];a&&(a&&"64"==e[Rr]&&(a+="64"),Nn.call(this.data,a+";",t));break;case or:if(e[wr]&&this.set(ur,wr),e[hr]&&(this.set(hr,e[hr]),!this.get(ur)||!this.get(lr))){var c={};Nn.call(c,"droid 9; "+e[hr]+")",t),!this.get(ur)&&c.type&&this.set(ur,c.type),!this.get(lr)&&c.vendor&&this.set(lr,c.vendor)}if(e[Tr]){var u;if("string"!=typeof e[Tr])for(var l=0;!u&&l<e[Tr].length;)u=An(e[Tr][l++],Fn);else u=An(e[Tr],Fn);this.set(ur,u)}break;case sr:var d=e[kr];if(d){var f=e[Or];d==mn&&(f=parseInt(Tn(f),10)>=13?"11":"10"),this.set(cr,d).set(dr,f)}this.get(cr)==mn&&"Xbox"==e[hr]&&this.set(cr,"Xbox").set(dr,void 0);break;case ar:var p=this.data,h=function(t){return p[t].getItem().setCH(e).parseCH().get()};this.set(rr,h(rr)).set(nr,h(nr)).set(or,h(or)).set(ir,h(ir)).set(sr,h(sr))}return this},_n.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",r],["data",Bn(this,e)]]),this}function Dn(e,t,r){if(typeof e===tr.OBJECT?(vn(e,!0)?(typeof t===tr.OBJECT&&(r=t),t=e):(r=e,t=void 0),e=void 0):typeof e!==tr.STRING||vn(t,!0)||(r=t,t=void 0),r)if(typeof r.append===tr.FUNCTION){var n={};r.forEach((function(e,t){n[String(t).toLowerCase()]=e})),r=n}else{var o={};for(var i in r)r.hasOwnProperty(i)&&(o[String(i).toLowerCase()]=r[i]);r=o}if(!(this instanceof Dn))return new Dn(e,t,r).getResult();var s=typeof e===tr.STRING?e:r&&r[Yt]?r[Yt]:wn&&wn.userAgent?wn.userAgent:er,a=new Un(r,!0),c=t?function(e,t){var r={},n=t;if(!vn(t))for(var o in n={},t)for(var i in t[o])n[i]=t[o][i].concat(n[i]?n[i]:[]);for(var s in e)r[s]=n[s]&&n[s].length%2==0?n[s].concat(e[s]):e[s];return r}(Pn,t):Pn,u=function(e){return e==ar?function(){return new In(e,s,c,a).set("ua",s).set(rr,this.getBrowser()).set(nr,this.getCPU()).set(or,this.getDevice()).set(ir,this.getEngine()).set(sr,this.getOS()).get()}:function(){return new In(e,s,c[e],a).parseUA().get()}};return _n.call(this,[["getBrowser",u(rr)],["getCPU",u(nr)],["getDevice",u(or)],["getEngine",u(ir)],["getOS",u(sr)],["getResult",u(ar)],["getUA",function(){return s}],["setUA",function(e){return En(e)&&(s=Rn(e,500)),this}]]).setUA(s),this}function Mn(e){if(!e)return!1;try{return JSON.parse(e),!0}catch(e){return!1}}function zn(e,t){void 0===t&&(t="[不可展示]");var r=typeof e;if("string"===r||"number"===r||"boolean"===r)return e;if(e instanceof Blob||e instanceof File)return"[Blob/File 数据]";if(null===e||"object"!==r)return t;if(Array.isArray(e))return e.map((function(e){return zn(e,t)}));for(var n={},o=0,i=Object.entries(e);o<i.length;o++){var s=i[o],a=s[0],c=s[1];n[a]=zn(c,t)}return n}Dn.VERSION="2.0.6",Dn.BROWSER=gn([cr,dr,pr,ur]),Dn.CPU=gn([fr]),Dn.DEVICE=gn([hr,lr,ur,mr,wr,gr,br,yr,Er]),Dn.ENGINE=Dn.OS=gn([cr,dr]);var qn=function(){function n(e){this.sensitiveKeys=["password","pwd","token","accessToken","secret","auth"],this.ignoreUrls=["/tracking/z.png"],this.MAX_RESPONSE_SIZE=51200,this.logger=e,this.initXHRMonitor(),this.initFetchMonitor()}return n.prototype.processResponse=function(e,t){var r=t.includes("application/json"),n=t.includes("text/");if(!r&&!n)return{response:{dataType:"[非json/text类型的数据]"}};var o="",i=0;try{o="string"==typeof e?e:JSON.stringify(e),i=new Blob([o]).size}catch(t){o=String(e||""),i=new Blob([o]).size}if(i>this.MAX_RESPONSE_SIZE)return{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((i/1024).toFixed(1),"KB),已忽略]")}};try{var s=r?JSON.parse(o):o;return Mn(o)?{response:s}:{response:{dataType:"[文本类型数据]",data:s}}}catch(e){return{response:{dataType:"[非json/text类型的数据]"}}}},n.prototype.processFetchResponse=function(e){return t(this,void 0,void 0,(function(){var t,n,o,i,s;return r(this,(function(r){switch(r.label){case 0:n=0,o=e.headers.get("Content-Type")||"",r.label=1;case 1:return r.trys.push([1,7,,8]),o.includes("application/json")?[4,e.json()]:[3,3];case 2:return t=r.sent(),i=JSON.stringify(t),n=new Blob([i]).size,[3,6];case 3:return o.includes("text/")?[4,e.text()]:[3,5];case 4:return s=r.sent(),t={dataType:"[文本类型数据]",data:s},n=new Blob([s]).size,[3,6];case 5:return[2,{response:{dataType:"[非json/text类型的数据]"}}];case 6:return n>this.MAX_RESPONSE_SIZE?[2,{response:{dataSizeLimit:"[响应数据超过 ".concat(this.MAX_RESPONSE_SIZE/1024,"KB(实际 ").concat((n/1024).toFixed(1),"KB),已忽略]")}}]:[2,{response:t}];case 7:return r.sent(),[2,{response:{dataType:"[非json/text类型的数据]"}}];case 8:return[2]}}))}))},n.prototype.initXHRMonitor=function(){var e=window.XMLHttpRequest,t=this;window.XMLHttpRequest=function(){var r=new e;r._customHeaders={};var n={url:"",method:"GET",params:null,startTime:0,endTime:0,duration:0,status:0,response:null,responseSize:0,error:null,msg:null},o=r.open.bind(r);r.open=function(e,r){if(n.method=e.toUpperCase(),n.url=r.split("?")[0],"GET"===n.method&&r.includes("?")){var i=r.split("?")[1];n.params=t.parseQueryString(i)}o(e,r)};var i=r.setRequestHeader.bind(r);r.setRequestHeader=function(e,t){r._customHeaders[e.toLowerCase()]=t,i(e,t)};var s=r.send.bind(r);return r.send=function(e){n.startTime=performance.now(),"GET"!==n.method&&e&&(n.params=t.parsePostData(e,r)),s(e)},r.addEventListener("load",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=r.status;var e=r.getResponseHeader("Content-Type")||"",o=t.processResponse(r.responseText||r.response,e).response;n.response=o,n.msg=(null==o?void 0:o.msg)||(null==o?void 0:o.message)||r.statusText,t.handleRequestResult(n)})),r.addEventListener("error",(function(e){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Network Error",t.handleRequestResult(n)})),r.addEventListener("abort",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=-1,n.error="Request Aborted",t.handleRequestResult(n)})),r.addEventListener("timeout",(function(){n.endTime=performance.now(),n.duration=Number((n.endTime-n.startTime).toFixed(1)),n.status=0,n.error="Timeout",t.handleRequestResult(n)})),r}},n.prototype.initFetchMonitor=function(){var e=window.fetch.bind(window),n=this;window.fetch=function(o,i){return t(this,void 0,void 0,(function(){var t,s,a,c,u,l;return r(this,(function(r){switch(r.label){case 0:"GET"===(t={url:"string"==typeof o?o.split("?")[0]:o instanceof URL?o.href.split("?")[0]:o.url.split("?")[0],method:((null==i?void 0:i.method)||"GET").toUpperCase(),params:null,startTime:performance.now(),endTime:0,duration:0,status:0,response:null,error:null,msg:null}).method?t.url.includes("?")&&(s=t.url.split("?")[1],t.params=n.parseQueryString(s)):t.params=(null==i?void 0:i.body)?n.parsePostData(i.body,{headers:i.headers}):null,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e(o,i)];case 2:return a=r.sent(),c=a.clone(),t.endTime=performance.now(),t.duration=Number((t.endTime-t.startTime).toFixed(1)),t.status=a.status,[4,n.processFetchResponse(c)];case 3:return u=r.sent().response,t.response=u,t.msg=(null==u?void 0:u.msg)||(null==u?void 0:u.message)||a.statusText,n.handleRequestResult(t),[2,a];case 4:throw l=r.sent(),t.endTime=performance.now(),t.duration=Number((t.endTime-t.startTime).toFixed(1)),t.status=0,t.error=l instanceof Error?l.message:"Fetch Unknown Error",n.handleRequestResult(t),l;case 5:return[2]}}))}))}},n.prototype.parseQueryString=function(e){var t={};if(e)return e.split("&").forEach((function(e){var r=e.split("="),n=r[0],o=r[1];n&&(t[decodeURIComponent(n)]=decodeURIComponent(o||""))})),t},n.prototype.parsePostData=function(e,t){if(e instanceof FormData){var r={};return e.forEach((function(e,t){r[t]=e})),zn(r)}if(e instanceof Blob||e instanceof File)return{dataType:"[Blob/File 数据]"};var n="";if("_customHeaders"in t&&t._customHeaders&&(n=t._customHeaders["content-type"]||""),!n&&"headers"in t&&t.headers){var o=t.headers;n="object"!=typeof o||o instanceof Headers?o.get("Content-Type")||"":o["Content-Type"]||o["content-type"]||""}if(!n&&"getResponseHeader"in t&&(n=t.getResponseHeader("Content-Type")||""),!n&&"string"==typeof e&&Mn(e)&&(n="application/json;charset=utf-8"),(n=n.toLowerCase()).includes("application/json")&&"string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return n.includes("application/x-www-form-urlencoded")&&"string"==typeof e?this.parseQueryString(e):{dataType:"[不可展示]"}},n.prototype.handleRequestResult=function(t){if(!this.ignoreUrls.some((function(e){return t.url.includes(e)}))){var r=this.filterSensitiveData(e({},t));this.logger.logAPI(r)}},n.prototype.filterSensitiveData=function(e){if(!e||"object"!=typeof e||e instanceof Blob||e instanceof FormData)return e;var t=Array.isArray(e)?[]:{},r=function(r){if(Object.prototype.hasOwnProperty.call(e,r)){var o=r.toLowerCase();n.sensitiveKeys.some((function(e){return o.includes(e)}))?t[r]="***[已脱敏]***":t[r]=n.filterSensitiveData(e[r])}},n=this;for(var o in e)r(o);return t},n}();function Hn(e){var t,r;e instanceof Error?r=e:(r=new Error("非标准错误:".concat(String(e)))).name="NonStandardError";var n=function(e){if(!e)return{file:"未知文件",line:"未知行",column:"未知列"};var t=e.split("\n").filter((function(e){return e.trim()})),r=t[1]||t[0],n=r?/at (?:.+ )?\(?(.+?):(\d+):(\d+)\)?/.exec(r):null;return n?{file:n[1]||"未知文件",line:parseInt(n[2],10)||"未知行",column:parseInt(n[3],10)||"未知列"}:{file:"未知文件",line:"未知行",column:"未知列"}}(r.stack);return{type:r.name||"Error",message:r.message||"无错误描述",timestamp:Date.now(),file:n.file,line:n.line,column:n.column,stack:r.stack||"无堆栈信息",extra:{reason:r.cause,response:null===(t=r.response)||void 0===t?void 0:t.data}}}function $n(e,t){var r=Hn(e);t.logError(r)}var Vn=function(){function n(e){var t=this;if(this.config={pid:""},this.dataQueue=[],this.performanceData={begin:0,fpt:0,tti:0,ready:0,load:0},this.currentLocationPath="",this.canSendTTI=!0,this.pvId="",this.systemInfo={detector_browser:"",detector_browser_version:"",detector_device:"",detector_os:"",detector_os_version:"",http_user_agent:""},n.instance)console.error("BrowserLogger 类只能实例化一次!");else if(e&&"object"==typeof e)if(null==e?void 0:e.pid){this.config=e;var r=(new Dn).getResult();this.systemInfo={detector_browser:r.browser.name||"",detector_browser_version:r.browser.version||"",detector_device:r.device.model||"pc",detector_os:r.os.name||"",detector_os_version:r.os.version||"",http_user_agent:r.ua||""},n.instance=this,this.init(),this.currentLocationPath=window.location.pathname,document.addEventListener("DOMContentLoaded",(function(){t.performanceData.ready=function(){if(!window.performance)return 0;var e=performance.getEntriesByType("navigation");if(0===e.length)return 0;var t=e[0];return Math.round(10*t.domContentLoadedEventStart)/10}()}));var o=window.history.pushState;window.history.pushState=function(e,r,n){o.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()};var i,s=window.history.replaceState;window.history.replaceState=function(e,r,n){s.call(window.history,e,r,n),window.location.pathname!==t.currentLocationPath&&t.reSendPV()},window.addEventListener("popstate",(function(){window.location.pathname!==t.currentLocationPath&&t.reSendPV()})),new qn(this),i=this,"undefined"!=typeof window&&(window.addEventListener("error",(function(e){e.preventDefault(),$n(e.error,i)})),window.addEventListener("unhandledrejection",(function(e){e.preventDefault(),$n(e.reason,i)})))}else console.error("pid 不能为空!");else console.error("初始化参数不能为空!")}return n.prototype.reSendPV=function(){this.currentLocationPath=window.location.pathname,this.canSendTTI=!0,this.sendPV()},n.prototype.init=function(){return t(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return this.sendPV(),[4,new Promise((function(e){if(window.PerformanceObserver){var t=new PerformanceObserver((function(r){console.log("+++ paint 类型指标",r),r.getEntries().forEach((function(r){if("first-paint"===r.name){var n=r.startTime;e({success:!0,fpTime:Math.round(10*n)/10,message:"获取 FP 时间成功"}),t.disconnect()}}))}));t.observe({type:"paint",buffered:!0})}else e({success:!1,message:"浏览器不支持 PerformanceObserver",fpTime:0})}))];case 1:return(e=t.sent()).success&&(this.performanceData.fpt=e.fpTime,console.log("FP 时间(实时监听):",e)),[2]}}))}))},n.singleton=function(e){return n.instance||(n.instance=new n(e)),n.instance},n.prototype.sendPV=function(){this.pvId=Qt().replace(/-/g,""),this.performanceData.begin=Date.now();var t=e({t:"pv",begin:Date.now(),pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(t)},n.prototype.logAPI=function(t){var r=e({t:"api",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.startTime,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{api:t.url,success:t.status>=200&&t.status<300&&!t.error?1:0,time:t.duration,code:t.status,msg:t.error?t.error:t.msg,req_data:t.params,res_data:t.response,method:t.method}))},n.prototype.logError=function(t){if("AxiosError"!==t.type){var r=e({t:"error",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:t.timestamp,dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},r),{cate:t.type,msg:t.message,stack:t.stack,file:t.file,line:t.line,col:t.column,err:""}))}},n.prototype.logTTI=function(){if(this.canSendTTI){this.canSendTTI=!1,this.performanceData.tti=Date.now()-this.performanceData.begin,this.performanceData.load=this.performanceData.tti;var t=e({t:"perf",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e(e({},t),{fpt:this.performanceData.fpt,tti:this.performanceData.tti,load:this.performanceData.load,ready:this.performanceData.ready}),this.systemInfo))}},n.prototype.setConfig=function(t){this.config=e(e({},this.config),t)},n.prototype.start=function(){if(this.config.pid){if(!this.config.uid){var t=window.localStorage.getItem("log_uid");t?this.config.uid=t:(this.config.uid=Qt().replace(/-/g,""),window.localStorage.setItem("log_uid",this.config.uid))}if(this.dataQueue.length)for(;this.dataQueue.length;){var r=this.dataQueue.shift();this.realSendLog(e(e({},r),{pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name}))}}else console.error("未配置 pid")},n.prototype.innerSendLog=function(e){this.config.pid&&this.config.uid?this.realSendLog(e):this.dataQueue.push(e)},n.prototype.realSendLog=function(e){It.post("https://haina-datahub.zero2x.org/tracking/z.png",e).catch((function(e){console.error("+++ send log error",e)}))},n.prototype.sendLog=function(t,r,n){var o=e({t:"custom",pid:this.config.pid,uid:this.config.uid,user_name:this.config.user_name,begin:Date.now(),dl:window.location.origin+window.location.pathname,full_url:window.location.href,page:window.location.pathname,pv_id:this.pvId,times:1},this.systemInfo);this.innerSendLog(e(e({},o),{spm:t,custom_log_type:r,custom_log_data:n}))},n.instance=null,n}();var Gn=[],Jn=!1;function Wn(e,t){return new Promise((function(r,n){try{var o=void 0;o="string"==typeof t?t:JSON.stringify(t);var i=(new TextEncoder).encode(o),s=new Blob([i]);It.put(e,s,{headers:{"Content-Type":"application/octet-stream"},onUploadProgress:function(e){var t=e.loaded/e.total*100;console.log("上传进度:".concat(t,"%")),100===t&&r(!0)}})}catch(e){console.log("+++ err",e),n(e)}}))}function Kn(){var e=window.location.hostname;return/^(?!test-).*zero2x\.org$/i.test(e)}function Xn(){return!!["haina-datahub.zero2x.org","test-haina-datahub.zero2x.org"].includes(window.location.hostname)}function Qn(e,t){for(var r=t||{},n=r.locale,o=void 0===n?"zh":n,i=r.precision,s=void 0===i?0:i,a=r.showByte,c=void 0!==a&&a,u=r.splitUnit,l=void 0!==u&&u,d="",f=0;f<s;f++)d+="0";if(!1===c&&"zh"===o)return e>=1e8?l?{num:C(e/1e8).format("0.[".concat(d,"]")),unit:"亿"}:"".concat(C(e/1e8).format("0.[".concat(d,"]")),"亿"):e>=1e4?l?{num:C(e/1e4).format("0.[".concat(d,"]")),unit:"万"}:"".concat(C(e/1e4).format("0.[".concat(d,"]")),"万"):l?{num:"".concat(e),unit:""}:"".concat(e);var p="";p=0===s?"0b":"0.[".concat(d,"b]");var h=C(e).format(p),m=function(e){var t={size:0,unit:"B"};if(!e)return t;var r=e.match(/^([\d.]+)\s*([KMGTPEZY]?B?)?$/i);if(!r)return t;var n=parseFloat(r[1]),o=(r[2]||"B").toUpperCase();return 1===o.length&&"B"!==o&&(o+="B"),{size:n,unit:o}}(h),w=m.size,b=m.unit;if(!0===c)return l?{num:"".concat(w),unit:b}:h;if(l){var g=b.replace("K","k");return g&&(g=g.substring(0,g.length-1)),{num:"".concat(w),unit:g}}return(h=h.substring(0,h.length-1)).replace("K","k")}function Zn(e,t,r,n,o){var i;if(t)window.open(e);else{var s=o||"zh";Gn.push({url:e,headers:n,locale:s}),Jn||(Jn=!0,null===(i=null==r?void 0:r.loading)||void 0===i||i.call(r,"zh"===s?"下载中":"Downloading"),Yn(r))}}function Yn(e){if(Gn.length>0){var t=Gn.shift(),r="string"==typeof t?t:t.url,n="string"==typeof t?{}:t.headers||{},o="string"==typeof t?"zh":t.locale||"zh";fetch(r,{headers:n}).then((function(e){if(200===(null==e?void 0:e.status)){var t=function(e){if(!e)return"";var t=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(e);return t&&t[1]?t[1].replace(/['"]/g,""):""}(e.headers.get("Content-Disposition"))||function(e){if(e){var t=e.split("/").pop();if(t&&t.indexOf(".")>-1)return decodeURIComponent(t.split("?")[0])}return""}(r);return e.blob().then((function(e){var r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",document.body.appendChild(n),n.href=r,t&&(n.download=t),n.click(),n.remove(),URL.revokeObjectURL(r)}))}return Promise.reject({message:null==e?void 0:e.statusText})})).catch((function(){var t;null===(t=null==e?void 0:e.error)||void 0===t||t.call(e,"zh"===o?"文件下载异常:".concat(r):"File download error: ".concat(r))})).finally((function(){setTimeout((function(){Yn(e)}),1e3)}))}else Jn=!1}function eo(e){var t=e,r=e.indexOf("?");-1!==r&&(t=e.substring(0,r));var n=t.lastIndexOf(".");return t.substring(n+1)}function to(e){return new Promise((function(t){if(e&&e.length>0){var r=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],e,!0),n=function(){r.length>0?setTimeout(o):setTimeout((function(){t(null)}))},o=function(){var e=r.shift(),t=eo(e);if("js"===t||"mjs"===t){if(!document.querySelector('script[src="'.concat(e,'"]'))){var o=document.createElement("script");return o.src=e,"mjs"===t&&(o.type="module"),document.head.appendChild(o),o.onload=n,void(o.onerror=n)}}else if("css"===t&&!document.querySelector('link[href="'.concat(e,'"]'))){var i=document.createElement("link");return i.rel="stylesheet",i.href=e,document.head.appendChild(i),i.onload=n,void(i.onerror=n)}n()};o()}else t(null)}))}function ro(e){if(Array.isArray(e)){var t=[];return e.forEach((function(e){t.push(ro(e))})),t}if("[object Object]"===Object.prototype.toString.call(e)){var r={};return Object.keys(e).forEach((function(t){r[t]=ro(e[t])})),r}return"string"==typeof e?e.trim():e}var no,oo="zjlab_util_ifm";!function(e){e.HASH_CHANGE="zjlab_util_ifm_hashChange",e.PUSH_STATE="zjlab_util_ifm_pushState",e.REPLACE_STATE="zjlab_util_ifm_replaceState"}(no||(no={}));var io,so=function(){function e(){this.onMessageCallback={}}return e.prototype.postMessageToIfm=function(e,t,r,n){var o;if(e){var i=void 0;"function"==typeof r?i=r:n&&(i=n);var s="".concat(oo,"_").concat(t);i&&this.onMessage(t,i,!0),null===(o=e.contentWindow)||void 0===o||o.postMessage({type:s,data:"function"==typeof r?null:r},"*")}else console.error("postMessage error, no parent")},e.prototype.postMessage=function(e,t,r){if(window.parent&&window.parent!==window){var n=void 0;"function"==typeof t?n=t:r&&(n=r);var o="";o=-1!==[no.HASH_CHANGE,no.PUSH_STATE,no.REPLACE_STATE].indexOf(e)?e:"".concat(oo,"_").concat(e),n&&this.onMessage(e,n,!0),window.parent.postMessage({type:o,data:"function"==typeof t?null:t},"*")}else console.error("postMessage error, no parent")},e.prototype.onMessage=function(e,t,r){var n=function(o){var i=o.data||{},s=i.data,a=i.type;(-1!==[no.HASH_CHANGE,no.PUSH_STATE,no.REPLACE_STATE].indexOf(e)&&a===e||a==="".concat(oo,"_").concat(e))&&(r&&window.removeEventListener("message",n),t(s))};this.onMessageCallback[e]||(this.onMessageCallback[e]=[]),this.onMessageCallback[e].push(n),window.addEventListener("message",n)},e.prototype.destroy=function(){var e=this,t=Object.keys(this.onMessageCallback);t.length>0&&t.forEach((function(t){var r;null===(r=e.onMessageCallback[t])||void 0===r||r.forEach((function(e){window.removeEventListener("message",e)}))}))},e}();function ao(){window.addEventListener("message",(function(e){var t=e.data||{},r=t.data,n=t.type;if(n===no.HASH_CHANGE||n===no.PUSH_STATE||n===no.REPLACE_STATE){var o="".concat(window.location.pathname,"?iframeUrl=").concat(encodeURIComponent(r.href));console.log("+++ iframe url data",n,r),window.history.replaceState(null,"",o)}}))}function co(e){var t=k.parse(window.location.search,{decode:!1});return(null==t?void 0:t.iframeUrl)?decodeURIComponent(t.iframeUrl):e}function uo(e,t){var r=new so;if(window.parent&&window.parent!==window){window.onhashchange=function(){r.postMessage(no.HASH_CHANGE,{href:window.location.href})};var n=window.history.pushState;window.history.pushState=function(e,t,o){n.call(window.history,e,t,o),o&&r.postMessage(no.PUSH_STATE,{href:-1!==o.indexOf("//")?o:window.location.origin+o})};var o=window.history.replaceState;window.history.replaceState=function(e,t,n){o.call(window.history,e,t,n),n&&r.postMessage(no.REPLACE_STATE,{href:-1!==n.indexOf("//")?n:window.location.origin+n})},window.addEventListener("popstate",(function(e){r.postMessage(no.REPLACE_STATE,{href:window.location.href})})),r.postMessage("getUserInfo",(function(r){var n;window[null!==(n=null==t?void 0:t.namespace)&&void 0!==n?n:"_subApp"]=r,e&&e(r)}))}}!function(e){e.zh="zh",e.en="en"}(io||(io={}));export{Vn as BrowserLogger,so as IfmChannel,to as appendAsset,Zn as downloadFile,Qn as formatNumber,Dt as getAxiosInstanceWithAuth,eo as getFileExt,co as getIframeUrl,Kn as isOnline,Xn as isPublicNetwork,ao as mainAppInit,uo as subAppInit,ro as trimObj,Wn as uploadToOSS};