UNPKG

bt-tools

Version:
1 lines 20.5 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BtTools=e():t.BtTools=e()}(self,function(){return(()=>{var r={3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:(t,e,r)=>{var n=r(111);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},5787:t=>{t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},9670:(t,e,r)=>{var n=r(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},1318:(t,e,r)=>{var a=r(5656),f=r(7466),s=r(1400),r=function(u){return function(t,e,r){var n,o=a(t),i=f(o.length),c=s(r,i);if(u&&e!=e){for(;c<i;)if((n=o[c++])!=n)return!0}else for(;c<i;c++)if((u||c in o)&&o[c]===e)return u||c||0;return!u&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},7072:(t,e,r)=>{var o=r(5112)("iterator"),i=!1;try{var n=0,c={next:function(){return{done:!!n++}},return:function(){i=!0}};c[o]=function(){return this},Array.from(c,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,r)=>{var n=r(1694),o=r(4326),i=r(5112)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?t:c?o(e):"Object"==(t=o(e))&&"function"==typeof e.callee?"Arguments":t}},9920:(t,e,r)=>{var u=r(6656),a=r(3887),f=r(1236),s=r(3070);t.exports=function(t,e){for(var r=a(e),n=s.f,o=f.f,i=0;i<r.length;i++){var c=r[i];u(t,c)||n(t,c,o(e,c))}}},8880:(t,e,r)=>{var n=r(9781),o=r(3070),i=r(9114);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9781:(t,e,r)=>{r=r(7293);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:(t,e,r)=>{var n=r(7854),r=r(111),o=n.document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},7871:t=>{t.exports="object"==typeof window},6833:(t,e,r)=>{r=r(8113);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},5268:(t,e,r)=>{var n=r(4326),r=r(7854);t.exports="process"==n(r.process)},1036:(t,e,r)=>{r=r(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:(t,e,r)=>{r=r(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,r)=>{var n,o,i=r(7854),r=r(8113),i=i.process,i=i&&i.versions,i=i&&i.v8;i?o=(n=i.split("."))[0]<4?1:n[0]+n[1]:r&&(!(n=r.match(/Edge\/(\d+)/))||74<=n[1])&&(n=r.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,r)=>{var f=r(7854),s=r(1236).f,p=r(8880),l=r(1320),v=r(3505),h=r(9920),d=r(4705);t.exports=function(t,e){var r,n,o,i=t.target,c=t.global,u=t.stat,a=c?f:u?f[i]||v(i,{}):(f[i]||{}).prototype;if(a)for(r in e){if(n=e[r],o=t.noTargetGet?(o=s(a,r))&&o.value:a[r],!d(c?r:i+(u?".":"#")+r,t.forced)&&void 0!==o){if(typeof n==typeof o)continue;h(n,o)}(t.sham||o&&o.sham)&&p(n,"sham",!0),l(a,r,n,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:(t,e,r)=>{var i=r(3099);t.exports=function(n,o,t){if(i(n),void 0===o)return n;switch(t){case 0:return function(){return n.call(o)};case 1:return function(t){return n.call(o,t)};case 2:return function(t,e){return n.call(o,t,e)};case 3:return function(t,e,r){return n.call(o,t,e,r)}}return function(){return n.apply(o,arguments)}}},5005:(t,e,r)=>{function n(t){return"function"==typeof t?t:void 0}var o=r(857),i=r(7854);t.exports=function(t,e){return arguments.length<2?n(o[t])||n(i[t]):o[t]&&o[t][e]||i[t]&&i[t][e]}},1246:(t,e,r)=>{var n=r(648),o=r(7497),i=r(5112)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},7854:(t,e,r)=>{function n(t){return t&&t.Math==Math&&t}t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},6656:(t,e,r)=>{var n=r(7908),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(n(t),e)}},3501:t=>{t.exports={}},842:(t,e,r)=>{var n=r(7854);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},490:(t,e,r)=>{r=r(5005);t.exports=r("document","documentElement")},4664:(t,e,r)=>{var n=r(9781),o=r(7293),i=r(317);t.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},8361:(t,e,r)=>{var n=r(7293),o=r(4326),i="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},2788:(t,e,r)=>{var r=r(5465),n=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return n.call(t)}),t.exports=r.inspectSource},9909:(t,e,r)=>{var n,o,i,c,u,a,f,s,p=r(8536),l=r(7854),v=r(111),h=r(8880),d=r(6656),y=r(5465),g=r(6200),r=r(3501),x="Object already initialized",l=l.WeakMap;f=p||y.state?(n=y.state||(y.state=new l),o=n.get,i=n.has,c=n.set,u=function(t,e){if(i.call(n,t))throw new TypeError(x);return e.facade=t,c.call(n,t,e),e},a=function(t){return o.call(n,t)||{}},function(t){return i.call(n,t)}):(r[s=g("state")]=!0,u=function(t,e){if(d(t,s))throw new TypeError(x);return e.facade=t,h(t,s,e),e},a=function(t){return d(t,s)?t[s]:{}},function(t){return d(t,s)}),t.exports={set:u,get:a,has:f,enforce:function(t){return f(t)?a(t):u(t,{})},getterFor:function(r){return function(t){var e;if(!v(t)||(e=a(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}}},7659:(t,e,r)=>{var n=r(5112),o=r(7497),i=n("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},4705:(t,e,r)=>{var n=r(7293),o=/#|\.prototype\./,r=function(t,e){t=c[i(t)];return t==a||t!=u&&("function"==typeof e?n(e):!!e)},i=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=r.data={},u=r.NATIVE="N",a=r.POLYFILL="P";t.exports=r},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},408:(t,e,r)=>{function y(t,e){this.stopped=t,this.result=e}var g=r(9670),x=r(7659),m=r(7466),b=r(9974),w=r(1246),j=r(9212);t.exports=function(t,e,r){function n(t){return i&&j(i),new y(!0,t)}function o(t){return l?(g(t),h?d(t[0],t[1],n):d(t[0],t[1])):h?d(t,n):d(t)}var i,c,u,a,f,s,p=r&&r.that,l=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),d=b(e,p,1+l+h);if(v)i=t;else{if("function"!=typeof(v=w(t)))throw TypeError("Target is not iterable");if(x(v)){for(c=0,u=m(t.length);c<u;c++)if((a=o(t[c]))&&a instanceof y)return a;return new y(!1)}i=v.call(t)}for(f=i.next;!(s=f.call(i)).done;){try{a=o(s.value)}catch(t){throw j(i),t}if("object"==typeof a&&a&&a instanceof y)return a}return new y(!1)}},9212:(t,e,r)=>{var n=r(9670);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},7497:t=>{t.exports={}},5948:(t,e,r)=>{var n,o,i,c,u,a,f,s,p=r(7854),l=r(1236).f,v=r(261).set,h=r(6833),d=r(1036),y=r(5268),g=p.MutationObserver||p.WebKitMutationObserver,x=p.document,m=p.process,r=p.Promise,l=l(p,"queueMicrotask"),l=l&&l.value;l||(n=function(){var t,e;for(y&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?c():i=void 0,t}}i=void 0,t&&t.enter()},c=h||y||d||!g||!x?r&&r.resolve?((f=r.resolve(void 0)).constructor=r,s=f.then,function(){s.call(f,n)}):y?function(){m.nextTick(n)}:function(){v.call(p,n)}:(u=!0,a=x.createTextNode(""),new g(n).observe(a,{characterData:!0}),function(){a.data=u=!u})),t.exports=l||function(t){t={fn:t,next:void 0};i&&(i.next=t),o||(o=t,c()),i=t}},3366:(t,e,r)=>{r=r(7854);t.exports=r.Promise},133:(t,e,r)=>{var n=r(7392),r=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8536:(t,e,r)=>{var n=r(7854),r=r(2788),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(r(n))},8523:(t,e,r)=>{"use strict";function n(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e}),this.resolve=o(r),this.reject=o(n)}var o=r(3099);t.exports.f=function(t){return new n(t)}},3070:(t,e,r)=>{var n=r(9781),o=r(4664),i=r(9670),c=r(7593),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(i(t),e=c(e,!0),i(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:(t,e,r)=>{var n=r(9781),o=r(5296),i=r(9114),c=r(5656),u=r(7593),a=r(6656),f=r(4664),s=Object.getOwnPropertyDescriptor;e.f=n?s:function(t,e){if(t=c(t),e=u(e,!0),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},8006:(t,e,r)=>{var n=r(6324),o=r(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},6324:(t,e,r)=>{var c=r(6656),u=r(5656),a=r(1318).indexOf,f=r(3501);t.exports=function(t,e){var r,n=u(t),o=0,i=[];for(r in n)!c(f,r)&&c(n,r)&&i.push(r);for(;e.length>o;)c(n,r=e[o++])&&(~a(i,r)||i.push(r));return i}},5296:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){t=n(this,t);return!!t&&t.enumerable}:r},7674:(t,e,r)=>{var o=r(9670),i=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(t){}return function(t,e){return o(t),i(e),n?r.call(t,e):t.__proto__=e,t}}():void 0)},288:(t,e,r)=>{"use strict";var n=r(1694),o=r(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},3887:(t,e,r)=>{var n=r(5005),o=r(8006),i=r(5181),c=r(9670);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(c(t)),r=i.f;return r?e.concat(r(t)):e}},857:(t,e,r)=>{r=r(7854);t.exports=r},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,r)=>{var n=r(9670),o=r(111),i=r(8523);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;t=i.f(t);return(0,t.resolve)(e),t.promise}},2248:(t,e,r)=>{var o=r(1320);t.exports=function(t,e,r){for(var n in e)o(t,n,e[n],r);return t}},1320:(t,e,r)=>{var u=r(7854),a=r(8880),f=r(6656),s=r(3505),n=r(2788),r=r(9909),o=r.get,p=r.enforce,l=String(String).split("String");(t.exports=function(t,e,r,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,c=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||f(r,"name")||a(r,"name",e),(n=p(r)).source||(n.source=l.join("string"==typeof e?e:""))),t!==u?(o?!c&&t[e]&&(i=!0):delete t[e],i?t[e]=r:a(t,e,r)):i?t[e]=r:s(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||n(this)})},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,r)=>{var n=r(7854),o=r(8880);t.exports=function(e,r){try{o(n,e,r)}catch(t){n[e]=r}return r}},6340:(t,e,r)=>{"use strict";var n=r(5005),o=r(3070),i=r(5112),c=r(9781),u=i("species");t.exports=function(t){var e=n(t),t=o.f;c&&e&&!e[u]&&t(e,u,{configurable:!0,get:function(){return this}})}},8003:(t,e,r)=>{var n=r(3070).f,o=r(6656),i=r(5112)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},6200:(t,e,r)=>{var n=r(2309),o=r(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,e,r)=>{var n=r(7854),o=r(3505),r="__core-js_shared__",r=n[r]||o(r,{});t.exports=r},2309:(t,e,r)=>{var n=r(1913),o=r(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(t,e,r)=>{var n=r(9670),o=r(3099),i=r(5112)("species");t.exports=function(t,e){var r,t=n(t).constructor;return void 0===t||null==(r=n(t)[i])?e:o(r)}},261:(t,e,r)=>{function n(t){var e;w.hasOwnProperty(t)&&(e=w[t],delete w[t],e())}function o(t){return function(){n(t)}}function i(t){n(t.data)}var c,u=r(7854),a=r(7293),f=r(9974),s=r(490),p=r(317),l=r(6833),v=r(5268),h=u.location,d=u.setImmediate,y=u.clearImmediate,g=u.process,x=u.MessageChannel,m=u.Dispatch,b=0,w={},j="onreadystatechange",r=function(t){u.postMessage(t+"",h.protocol+"//"+h.host)};d&&y||(d=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return w[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},c(b),b},y=function(t){delete w[t]},v?c=function(t){g.nextTick(o(t))}:m&&m.now?c=function(t){m.now(o(t))}:x&&!l?(x=(l=new x).port2,l.port1.onmessage=i,c=f(x.postMessage,x,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&h&&"file:"!==h.protocol&&!a(r)?(c=r,u.addEventListener("message",i,!1)):c=j in p("script")?function(t){s.appendChild(p("script"))[j]=function(){s.removeChild(this),n(t)}}:function(t){setTimeout(o(t),0)}),t.exports={set:d,clear:y}},1400:(t,e,r)=>{var n=r(9958),o=Math.max,i=Math.min;t.exports=function(t,e){t=n(t);return t<0?o(t+e,0):i(t,e)}},5656:(t,e,r)=>{var n=r(8361),o=r(4488);t.exports=function(t){return n(o(t))}},9958:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},7466:(t,e,r)=>{var n=r(9958),o=Math.min;t.exports=function(t){return 0<t?o(n(t),9007199254740991):0}},7908:(t,e,r)=>{var n=r(4488);t.exports=function(t){return Object(n(t))}},7593:(t,e,r)=>{var o=r(111);t.exports=function(t,e){if(!o(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!o(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!o(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!o(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},1694:(t,e,r)=>{var n={};n[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},9711:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},3307:(t,e,r)=>{r=r(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:(t,e,r)=>{var n=r(7854),o=r(2309),i=r(6656),c=r(9711),u=r(133),r=r(3307),a=o("wks"),f=n.Symbol,s=r?f:f&&f.withoutSetter||c;t.exports=function(t){return i(a,t)&&(u||"string"==typeof a[t])||(u&&i(f,t)?a[t]=f[t]:a[t]=s("Symbol."+t)),a[t]}},1539:(t,e,r)=>{var n=r(1694),o=r(1320),r=r(288);n||o(Object.prototype,"toString",r,{unsafe:!0})},8674:(t,e,r)=>{"use strict";function h(t){var e;return!(!j(t)||"function"!=typeof(e=t.then))&&e}function o(p,l){var v;p.notified||(p.notified=!0,v=p.reactions,I(function(){for(var t=p.value,e=1==p.state,r=0;v.length>r;){var n,o,i,c=v[r++],u=e?c.ok:c.fail,a=c.resolve,f=c.reject,s=c.domain;try{u?(e||(2===p.rejection&&it(p),p.rejection=1),!0===u?n=t:(s&&s.enter(),n=u(t),s&&(s.exit(),i=!0)),n===c.promise?f(Y("Promise-chain cycle")):(o=h(n))?o.call(n,a,f):a(n)):f(t)}catch(t){s&&!i&&s.exit(),f(t)}}p.reactions=[],p.notified=!1,l&&!p.rejection&&nt(p)}))}function i(t,e,r){var n,o;$?((n=J.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),v.dispatchEvent(n)):n={promise:e,reason:r},!tt&&(o=v["on"+t])?o(n):t===et&&A("Unhandled promise rejection",r)}function c(e,r,n){return function(t){e(r,t,n)}}function u(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=2,o(t,!0))}var n,a,f,s,p=r(2109),l=r(1913),v=r(7854),d=r(5005),y=r(3366),g=r(1320),x=r(2248),m=r(7674),b=r(8003),w=r(6340),j=r(111),S=r(3099),O=r(5787),T=r(2788),E=r(408),_=r(7072),P=r(6707),M=r(261).set,I=r(5948),C=r(9478),A=r(842),k=r(8523),R=r(2534),F=r(9909),N=r(4705),D=r(5112),L=r(7871),z=r(5268),q=r(7392),B=D("species"),U="Promise",W=F.get,G=F.set,K=F.getterFor(U),F=y&&y.prototype,H=y,V=F,Y=v.TypeError,J=v.document,Q=v.process,X=k.f,Z=X,$=!!(J&&J.createEvent&&v.dispatchEvent),tt="function"==typeof PromiseRejectionEvent,et="unhandledrejection",rt=!1,N=N(U,function(){var t=T(H),e=t!==String(H);if(!e&&66===q)return!0;if(l&&!V.finally)return!0;if(51<=q&&/native code/.test(t))return!1;var r=new H(function(t){t(1)}),t=function(t){t(function(){},function(){})};return(r.constructor={})[B]=t,!(rt=r.then(function(){})instanceof t)||!e&&L&&!tt}),_=N||!_(function(t){H.all(t).catch(function(){})}),nt=function(o){M.call(v,function(){var t,e=o.facade,r=o.value,n=ot(o);if(n&&(t=R(function(){z?Q.emit("unhandledRejection",r,e):i(et,e,r)}),o.rejection=z||ot(o)?2:1,t.error))throw t.value})},ot=function(t){return 1!==t.rejection&&!t.parent},it=function(e){M.call(v,function(){var t=e.facade;z?Q.emit("rejectionHandled",t):i("rejectionhandled",t,e.value)})},ct=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw Y("Promise can't be resolved itself");var n=h(t);n?I(function(){var e={done:!1};try{n.call(t,c(ct,e,r),c(u,e,r))}catch(t){u(e,t,r)}}):(r.value=t,r.state=1,o(r,!1))}catch(t){u({done:!1},t,r)}}};if(N&&(V=(H=function(t){O(this,H,U),S(t),n.call(this);var e=W(this);try{t(c(ct,e),c(u,e))}catch(t){u(e,t)}}).prototype,(n=function(t){G(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=x(V,{then:function(t,e){var r=K(this),n=X(P(this,H));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=z?Q.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&o(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new n,e=W(t);this.promise=t,this.resolve=c(ct,e),this.reject=c(u,e)},k.f=X=function(t){return t===H||t===f?new a:Z(t)},!l&&"function"==typeof y&&F!==Object.prototype)){s=F.then,rt||(g(F,"then",function(t,e){var r=this;return new H(function(t,e){s.call(r,t,e)}).then(t,e)},{unsafe:!0}),g(F,"catch",V.catch,{unsafe:!0}));try{delete F.constructor}catch(t){}m&&m(F,V)}p({global:!0,wrap:!0,forced:N},{Promise:H}),b(H,U,!1,!0),w(U),f=d(U),p({target:U,stat:!0,forced:N},{reject:function(t){var e=X(this);return e.reject.call(void 0,t),e.promise}}),p({target:U,stat:!0,forced:l||N},{resolve:function(t){return C(l&&this===f?H:this,t)}}),p({target:U,stat:!0,forced:_},{all:function(t){var u=this,e=X(u),a=e.resolve,f=e.reject,r=R(function(){var n=S(u.resolve),o=[],i=0,c=1;E(t,function(t){var e=i++,r=!1;o.push(void 0),c++,n.call(u,t).then(function(t){r||(r=!0,o[e]=t,--c||a(o))},f)}),--c||a(o)});return r.error&&f(r.value),e.promise},race:function(t){var r=this,n=X(r),o=n.reject,e=R(function(){var e=S(r.resolve);E(t,function(t){e.call(r,t).then(n.resolve,o)})});return e.error&&o(e.value),n.promise}})},2564:(t,e,r)=>{var n=r(2109),o=r(7854),i=r(8113),c=[].slice,r=function(o){return function(t,e){var r=2<arguments.length,n=r?c.call(arguments,2):void 0;return o(r?function(){("function"==typeof t?t:Function(t)).apply(this,n)}:t,e)}};n({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:r(o.setTimeout),setInterval:r(o.setInterval)})}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;e=n[t]={exports:{}};return r[t](e,e.exports,o),e.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};return(()=>{"use strict";o.r(e),o.d(e,{default:()=>t});o(1539),o(8674),o(2564);const t=function(t,e){var r=(t||{}).config,n=r||{},o=n.retry,i=void 0===(n=n.retryDelay)?3e3:n;return console.log("[RequestAgainSend-未重试前]:>>>",o,null==r?void 0:r.__retryCount),o?(r.__retryCount=(null==r?void 0:r.__retryCount)||0,(null==r?void 0:r.__retryCount)>=(null==r?void 0:r.retry)?t:(r.__retryCount+=1,console.log("[RequestAgainSend-准备重试]:>>>",o,null==r?void 0:r.__retryCount),new Promise(function(t,e){var r=setTimeout(function(){t(),clearTimeout(r)},i)}).then(function(){return e(r)}))):t}})(),e})()});