@bdky/aaas-pilot-kit 1.0.2

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.
Files changed (76) hide show
  1. package/README.md +222 -0
  2. package/dist/http.cjs.js +2 -0
  3. package/dist/http.cjs.js.LICENSE.txt +1 -0
  4. package/dist/http.esm.js +2 -0
  5. package/dist/http.esm.js.LICENSE.txt +1 -0
  6. package/dist/http.umd.js +2 -0
  7. package/dist/http.umd.js.LICENSE.txt +1 -0
  8. package/dist/index.cjs.js +44 -0
  9. package/dist/index.cjs.js.LICENSE.txt +45 -0
  10. package/dist/index.esm.js +44 -0
  11. package/dist/index.esm.js.LICENSE.txt +45 -0
  12. package/dist/index.umd.js +44 -0
  13. package/dist/index.umd.js.LICENSE.txt +45 -0
  14. package/dist/ky-aaas-pilot-kit.umd.js +44 -0
  15. package/dist/ky-aaas-pilot-kit.umd.js.LICENSE.txt +45 -0
  16. package/dist/libs/aaas-pilot-kit/src/http.d.ts +4 -0
  17. package/dist/libs/aaas-pilot-kit/src/index.d.ts +5 -0
  18. package/dist/libs/aaas-pilot-kit/src/lib/DI/types.d.ts +12 -0
  19. package/dist/libs/aaas-pilot-kit/src/lib/aaas-pilot-kit.d.ts +5 -0
  20. package/dist/libs/aaas-pilot-kit/src/lib/api/request.d.ts +9 -0
  21. package/dist/libs/aaas-pilot-kit/src/lib/constants/env.d.ts +1 -0
  22. package/dist/libs/aaas-pilot-kit/src/lib/controller.d.ts +107 -0
  23. package/dist/libs/aaas-pilot-kit/src/lib/error/BaseError.d.ts +12 -0
  24. package/dist/libs/aaas-pilot-kit/src/lib/error/ErrorEmitter.d.ts +54 -0
  25. package/dist/libs/aaas-pilot-kit/src/lib/error/ErrorHandler.d.ts +17 -0
  26. package/dist/libs/aaas-pilot-kit/src/lib/error/ErrorManager.d.ts +34 -0
  27. package/dist/libs/aaas-pilot-kit/src/lib/error/codes.d.ts +57 -0
  28. package/dist/libs/aaas-pilot-kit/src/lib/error/index.d.ts +16 -0
  29. package/dist/libs/aaas-pilot-kit/src/lib/error/monitoring/MonitoringError.d.ts +46 -0
  30. package/dist/libs/aaas-pilot-kit/src/lib/error/reporters/ConsoleReporter.d.ts +4 -0
  31. package/dist/libs/aaas-pilot-kit/src/lib/error/reporters/HttpReporter.d.ts +16 -0
  32. package/dist/libs/aaas-pilot-kit/src/lib/error/reporters/index.d.ts +2 -0
  33. package/dist/libs/aaas-pilot-kit/src/lib/error/services/AgentError.d.ts +17 -0
  34. package/dist/libs/aaas-pilot-kit/src/lib/error/services/AsrError.d.ts +23 -0
  35. package/dist/libs/aaas-pilot-kit/src/lib/error/services/ConversationError.d.ts +23 -0
  36. package/dist/libs/aaas-pilot-kit/src/lib/error/services/DigitalHumanError.d.ts +32 -0
  37. package/dist/libs/aaas-pilot-kit/src/lib/error/services/index.d.ts +4 -0
  38. package/dist/libs/aaas-pilot-kit/src/lib/error/types.d.ts +41 -0
  39. package/dist/libs/aaas-pilot-kit/src/lib/error/utils/ErrorUtils.d.ts +7 -0
  40. package/dist/libs/aaas-pilot-kit/src/lib/service/agent/aiobAgentService.d.ts +69 -0
  41. package/dist/libs/aaas-pilot-kit/src/lib/service/agent/baseAgentService.d.ts +65 -0
  42. package/dist/libs/aaas-pilot-kit/src/lib/service/agent/cspAgentService.d.ts +90 -0
  43. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/aiWorkerConversationBean.d.ts +39 -0
  44. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/clientConversationBean.d.ts +25 -0
  45. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/ImageContent.d.ts +25 -0
  46. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/MultimodalContent.d.ts +42 -0
  47. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/TextContent.d.ts +41 -0
  48. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/VideoContent.d.ts +26 -0
  49. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/content/index.d.ts +8 -0
  50. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/conversationBean.d.ts +25 -0
  51. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/conversationService.d.ts +36 -0
  52. package/dist/libs/aaas-pilot-kit/src/lib/service/conversation/index.d.ts +4 -0
  53. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/BaseDigitalHumanService.d.ts +62 -0
  54. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/CloudDigitalHumanService.d.ts +102 -0
  55. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/PictureClientDigitalHumanService.d.ts +85 -0
  56. package/dist/libs/aaas-pilot-kit/src/lib/service/digital-human/interface.d.ts +100 -0
  57. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/asr/baseAsrService.d.ts +82 -0
  58. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/asr/brtcAsrService.d.ts +38 -0
  59. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/signal/base.d.ts +19 -0
  60. package/dist/libs/aaas-pilot-kit/src/lib/service/rtc-asr/signal/brtc.d.ts +69 -0
  61. package/dist/libs/aaas-pilot-kit/src/lib/utils/applyTextReplacements.d.ts +15 -0
  62. package/dist/libs/aaas-pilot-kit/src/lib/utils/customXmlParser.d.ts +46 -0
  63. package/dist/libs/aaas-pilot-kit/src/lib/utils/isEmptyObject.d.ts +14 -0
  64. package/dist/libs/aaas-pilot-kit/src/lib/utils/isPlainObject.d.ts +13 -0
  65. package/dist/libs/aaas-pilot-kit/src/lib/utils/noop.d.ts +1 -0
  66. package/dist/libs/aaas-pilot-kit/src/lib/utils/sleep.d.ts +1 -0
  67. package/dist/libs/aaas-pilot-kit/src/lib/utils/toQueryString.d.ts +1 -0
  68. package/dist/libs/aaas-pilot-kit/src/lib/utils/ua.d.ts +3 -0
  69. package/dist/libs/aaas-pilot-kit/src/samples/react/Route/index.d.ts +3 -0
  70. package/dist/libs/aaas-pilot-kit/src/samples/react/conversation.d.ts +2 -0
  71. package/dist/libs/aaas-pilot-kit/src/samples/react/index.d.ts +1 -0
  72. package/dist/libs/aaas-pilot-kit/src/test-setup.d.ts +1 -0
  73. package/dist/libs/aaas-pilot-kit/src/types/agent.d.ts +8 -0
  74. package/dist/libs/aaas-pilot-kit/src/types/common.d.ts +5 -0
  75. package/dist/libs/aaas-pilot-kit/src/types/config.d.ts +552 -0
  76. package/package.json +64 -0
package/README.md ADDED
@@ -0,0 +1,222 @@
1
+ # AaaS Pilot Kit
2
+
3
+ > 🤖 开箱即用的数字员工基础套件: 无缝串联 AI Agent、ASR 与数字人渲染服务,全链路可观测、关键点位可追踪, 打造真正流畅自然的数字员工体验。
4
+
5
+ 原生 JavaScript SDK,无任何框架依赖,可在任何前端项目中使用。提供完整的 TypeScript 类型支持。
6
+
7
+ ## 📚 文档与资源
8
+
9
+ - 📖 **完整文档**: [aaas-pilot-kit-docs.cloud.baidu.com](https://aaas-pilot-kit-docs.cloud.baidu.com)
10
+ - 🔗 **API 参考**: 详细的 API 文档和配置选项
11
+ - 💡 **示例代码**: 更多使用场景和集成案例
12
+ - 📝 **更新日志**: 查看版本更新和变更记录
13
+
14
+ ## 📦 安装
15
+
16
+ ```bash
17
+ # npm
18
+ npm install @bdky/aaas-pilot-kit
19
+
20
+ # yarn
21
+ yarn add @bdky/aaas-pilot-kit
22
+
23
+ # pnpm
24
+ pnpm add @bdky/aaas-pilot-kit
25
+ ```
26
+
27
+ ## 🚀 快速开始
28
+
29
+ ```typescript
30
+ import {createAaaSPilotKit} from '@bdky/aaas-pilot-kit';
31
+
32
+ // 初始化 SDK
33
+ const controller = createAaaSPilotKit({
34
+ figureId: '209337', // 数字人 ID
35
+ ttsPer: 'LITE_audiobook_female_1', // 语音音色
36
+ agentConfig: {
37
+ token: 'your-token', // Agent Token
38
+ robotId: 'your-robot-id' // 机器人 ID
39
+ }
40
+ });
41
+
42
+ // 监听就绪事件
43
+ controller.emitter.on('ready', () => {
44
+ console.log('SDK 已就绪');
45
+ controller.playFromFullText('您好,我是智能助手,有什么可以帮您?');
46
+ });
47
+
48
+ // 监听对话消息
49
+ controller.emitter.on('conversation_add', (conversation) => {
50
+ console.log('新消息:', conversation.text);
51
+ });
52
+
53
+ // 挂载到 DOM
54
+ await controller.mount(document.getElementById('container'));
55
+ ```
56
+
57
+ ## 📖 核心 API
58
+
59
+ ### 初始化配置
60
+
61
+ ```typescript
62
+ interface IOptions {
63
+ figureId: string; // 数字人 ID
64
+ ttsPer: string; // TTS 音色
65
+ agentConfig: {
66
+ token?: string; // Agent Token
67
+ robotId?: string; // 机器人 ID
68
+ };
69
+ // ... 更多配置选项
70
+ }
71
+ ```
72
+
73
+ ### 控制器方法
74
+
75
+ ```typescript
76
+ // 挂载到 DOM
77
+ await controller.mount(element: HTMLElement);
78
+
79
+ // 文本输入(触发对话)
80
+ controller.input(text: string);
81
+
82
+ // 播放文本(TTS)
83
+ controller.playFromFullText(text: string);
84
+
85
+ // 检查是否需要手动激活
86
+ controller.checkNeedsManualActivation(): boolean;
87
+
88
+ // 手动激活(处理浏览器自动播放限制)
89
+ controller.activateManually(): void;
90
+
91
+ // 销毁实例
92
+ controller.dispose(): void;
93
+ ```
94
+
95
+ ### 事件监听
96
+
97
+ ```typescript
98
+ // SDK 就绪
99
+ controller.emitter.on('ready', () => {});
100
+
101
+ // 新对话消息
102
+ controller.emitter.on('conversation_add', (conversation) => {});
103
+
104
+ // 错误事件
105
+ controller.emitter.on('error', (error) => {});
106
+
107
+ // ASR 识别结果
108
+ controller.emitter.on('asr_result', (result) => {});
109
+ ```
110
+
111
+ ## 💡 最佳实践
112
+
113
+ ### 1. 等待 Ready 事件
114
+
115
+ 在执行任何操作前,务必等待 `ready` 事件:
116
+
117
+ ```typescript
118
+ controller.emitter.on('ready', () => {
119
+ // ✅ 在这里安全地开始交互
120
+ controller.input('开始对话');
121
+ });
122
+ ```
123
+
124
+ ### 2. 处理浏览器自动播放限制
125
+
126
+ 某些浏览器(尤其是移动端)会限制自动播放,需要手动激活:
127
+
128
+ ```typescript
129
+ let isReady = false;
130
+
131
+ controller.emitter.on('ready', () => {
132
+ isReady = true;
133
+ });
134
+
135
+ // 在用户交互(如点击)后激活
136
+ button.addEventListener('click', () => {
137
+ if (isReady && controller.checkNeedsManualActivation()) {
138
+ controller.activateManually();
139
+ }
140
+ });
141
+ ```
142
+
143
+ > ⚠️ **iOS 微信环境**: 必须在用户交互后调用 `activateManually()` 才能正常播放音频和渲染数字人。
144
+
145
+ ### 3. 错误处理
146
+
147
+ 建议监听错误事件并进行适当处理:
148
+
149
+ ```typescript
150
+ controller.emitter.on('error', (error) => {
151
+ console.error('SDK 错误:', error);
152
+ // 上报错误、显示提示等
153
+ });
154
+ ```
155
+
156
+ ### 4. 资源清理
157
+
158
+ 组件销毁时务必清理资源:
159
+
160
+ ```typescript
161
+ // 原生 JS
162
+ window.addEventListener('beforeunload', () => {
163
+ controller.dispose();
164
+ });
165
+
166
+ // React
167
+ useEffect(() => {
168
+ return () => {
169
+ controller.dispose();
170
+ };
171
+ }, []);
172
+
173
+ // Vue
174
+ onUnmount(() => {
175
+ controller.dispose();
176
+ });
177
+ ```
178
+
179
+ ## 🔧 TypeScript 支持
180
+
181
+ SDK 提供完整的 TypeScript 类型定义:
182
+
183
+ ```typescript
184
+ import type {
185
+ IAaaSPilotKitController,
186
+ IAaaSPilotKitEmitter,
187
+ IOptions,
188
+ IConversation
189
+ } from '@bdky/aaas-pilot-kit';
190
+
191
+ // 类型安全的配置
192
+ const options: IOptions = {
193
+ figureId: '209337',
194
+ ttsPer: 'LITE_audiobook_female_1',
195
+ agentConfig: {
196
+ token: 'your-token'
197
+ }
198
+ };
199
+
200
+ // 类型化的事件回调
201
+ controller.emitter.on('conversation_add', (conversation: IConversation) => {
202
+ console.log(conversation.id, conversation.text, conversation.type);
203
+ });
204
+ ```
205
+
206
+ ## 📦 相关包
207
+
208
+ - **React 版本**: [@bdky/aaas-pilot-kit-react](https://npmjs.com/package/@bdky/aaas-pilot-kit-react) - React Hooks 封装
209
+ - **Vue3 版本**: [@bdky/aaas-pilot-kit-vue3](https://npmjs.com/package/@bdky/aaas-pilot-kit-vue3) - Vue3 Composition API 封装
210
+
211
+
212
+ ## ❓ 帮助与支持
213
+
214
+ 遇到问题或有建议?欢迎通过以下方式联系我们:
215
+
216
+ - 📧 [发送邮件至维护团队](https://aaas-pilot-kit-docs.cloud.baidu.com/docs/vanilla/faq#%E6%9B%B4%E5%A4%9A%E5%B8%AE%E5%8A%A9)
217
+ - 📖 查看[常见问题文档](https://aaas-pilot-kit-docs.cloud.baidu.com/docs/vanilla/faq)
218
+
219
+
220
+ <p align="center">
221
+ Made with ❤️ by 百度智能云客悦 Ky-FE Team
222
+ </p>
@@ -0,0 +1,2 @@
1
+ /*! For license information please see http.cjs.js.LICENSE.txt */
2
+ "use strict";var __webpack_modules__={"../../node_modules/core-js/internals/a-callable.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js"),r=t("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not a function")}},"../../node_modules/core-js/internals/a-possible-prototype.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-possible-prototype.js"),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s("Can't set "+r(e)+" as a prototype")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/well-known-symbol.js"),r=t("../../node_modules/core-js/internals/object-create.js"),s=t("../../node_modules/core-js/internals/object-define-property.js").f,i=n("unscopables"),a=Array.prototype;void 0===a[i]&&s(a,i,{configurable:!0,value:r(null)}),e.exports=function(e){a[i][e]=!0}},"../../node_modules/core-js/internals/an-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-object.js"),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(r(e)+" is not an object")}},"../../node_modules/core-js/internals/array-buffer-basic-detection.js":function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"../../node_modules/core-js/internals/array-buffer-view-core.js":function(e,o,t){var n,r,s,i=t("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),a=t("../../node_modules/core-js/internals/descriptors.js"),l=t("../../node_modules/core-js/internals/global-this.js"),u=t("../../node_modules/core-js/internals/is-callable.js"),c=t("../../node_modules/core-js/internals/is-object.js"),d=t("../../node_modules/core-js/internals/has-own-property.js"),j=t("../../node_modules/core-js/internals/classof.js"),f=t("../../node_modules/core-js/internals/try-to-string.js"),p=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),_=t("../../node_modules/core-js/internals/define-built-in.js"),m=t("../../node_modules/core-js/internals/define-built-in-accessor.js"),y=t("../../node_modules/core-js/internals/object-is-prototype-of.js"),h=t("../../node_modules/core-js/internals/object-get-prototype-of.js"),b=t("../../node_modules/core-js/internals/object-set-prototype-of.js"),g=t("../../node_modules/core-js/internals/well-known-symbol.js"),v=t("../../node_modules/core-js/internals/uid.js"),w=t("../../node_modules/core-js/internals/internal-state.js"),x=w.enforce,T=w.get,k=l.Int8Array,R=k&&k.prototype,O=l.Uint8ClampedArray,E=O&&O.prototype,S=k&&h(k),A=R&&h(R),P=Object.prototype,q=l.TypeError,C=g("toStringTag"),I=v("TYPED_ARRAY_TAG"),U="TypedArrayConstructor",D=i&&!!b&&"Opera"!==j(l.opera),F=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},M=function(e){var o=h(e);if(c(o)){var t=T(o);return t&&d(t,U)?t[U]:M(o)}},H=function(e){if(!c(e))return!1;var o=j(e);return d(L,o)||d(N,o)};for(n in L)(s=(r=l[n])&&r.prototype)?x(s)[U]=r:D=!1;for(n in N)(s=(r=l[n])&&r.prototype)&&(x(s)[U]=r);if((!D||!u(S)||S===Function.prototype)&&(S=function(){throw new q("Incorrect invocation")},D))for(n in L)l[n]&&b(l[n],S);if((!D||!A||A===P)&&(A=S.prototype,D))for(n in L)l[n]&&b(l[n].prototype,A);if(D&&h(E)!==A&&b(E,A),a&&!d(A,C))for(n in F=!0,m(A,C,{configurable:!0,get:function(){return c(this)?this[I]:void 0}}),L)l[n]&&p(l[n],I,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&I,aTypedArray:function(e){if(H(e))return e;throw new q("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||y(S,e)))return e;throw new q(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,o,t,n){if(a){if(t)for(var r in L){var s=l[r];if(s&&d(s.prototype,e))try{delete s.prototype[e]}catch(t){try{s.prototype[e]=o}catch(e){}}}(!A[e]||t)&&_(A,e,t?o:D&&R[e]||o,n)}},exportTypedArrayStaticMethod:function(e,o,t){var n,r;if(a){if(b){if(t){for(n in L)if((r=l[n])&&d(r,e))try{delete r[e]}catch(e){}}if(S[e]&&!t)return;try{return _(S,e,t?o:D&&S[e]||o)}catch(e){}}for(n in L)(r=l[n])&&(!r[e]||t)&&_(r,e,o)}},getTypedArrayConstructor:M,isView:function(e){if(!c(e))return!1;var o=j(e);return"DataView"===o||d(L,o)||d(N,o)},isTypedArray:H,TypedArray:S,TypedArrayPrototype:A}},"../../node_modules/core-js/internals/array-includes.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-indexed-object.js"),r=t("../../node_modules/core-js/internals/to-absolute-index.js"),s=t("../../node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(o,t,i){var a,l=n(o),u=s(l);if(0===u)return!e&&-1;var c=r(i,u);if(e&&t!=t){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===t)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n({}.toString),s=n("".slice);e.exports=function(e){return s(r(e),8,-1)}},"../../node_modules/core-js/internals/classof.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-string-tag-support.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/classof-raw.js"),i=t("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),a=Object,l="Arguments"===s(function(){return arguments}()),u=function(e,o){try{return e[o]}catch(e){}};e.exports=n?s:function(e){var o,t,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=u(o=a(e),i))?t:l?s(o):"Object"===(n=s(o))&&r(o.callee)?"Arguments":n}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/has-own-property.js"),r=t("../../node_modules/core-js/internals/own-keys.js"),s=t("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=t("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,t){for(var a=r(o),l=i.f,u=s.f,c=0;c<a.length;c++){var d=a[c];n(e,d)||t&&n(t,d)||l(e,d,u(o,d))}}},"../../node_modules/core-js/internals/correct-prototype-getter.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/object-define-property.js"),s=t("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,o,t){return r.f(e,o,s(1,t))}:function(e,o,t){return e[o]=t,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,o){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:o}}},"../../node_modules/core-js/internals/define-built-in-accessor.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/make-built-in.js"),r=t("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,t){return t.get&&n(t.get,o,{getter:!0}),t.set&&n(t.set,o,{setter:!0}),r.f(e,o,t)}},"../../node_modules/core-js/internals/define-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js"),r=t("../../node_modules/core-js/internals/object-define-property.js"),s=t("../../node_modules/core-js/internals/make-built-in.js"),i=t("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,o,t,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:o;if(n(t)&&s(t,u,a),a.global)l?e[o]=t:i(o,t);else{try{a.unsafe?e[o]&&(l=!0):delete e[o]}catch(e){}l?e[o]=t:r.f(e,o,{value:t,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=Object.defineProperty;e.exports=function(e,o){try{r(n,e,{value:o,configurable:!0,writable:!0})}catch(t){n[e]=o}return o}},"../../node_modules/core-js/internals/descriptors.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=n.document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js").navigator,r=n&&n.userAgent;e.exports=r?String(r):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,o,t){var n,r,s=t("../../node_modules/core-js/internals/global-this.js"),i=t("../../node_modules/core-js/internals/environment-user-agent.js"),a=s.process,l=s.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},"../../node_modules/core-js/internals/export.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),i=t("../../node_modules/core-js/internals/define-built-in.js"),a=t("../../node_modules/core-js/internals/define-global-property.js"),l=t("../../node_modules/core-js/internals/copy-constructor-properties.js"),u=t("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,o){var t,c,d,j,f,p=e.target,_=e.global,m=e.stat;if(t=_?n:m?n[p]||a(p,{}):n[p]&&n[p].prototype)for(c in o){if(j=o[c],d=e.dontCallGetSet?(f=r(t,c))&&f.value:t[c],!u(_?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof j==typeof d)continue;l(j,d)}(e.sham||d&&d.sham)&&s(j,"sham",!0),i(t,c,j,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,o,t){e.exports=!t("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=r(s,"name"),l=a&&(!n||n&&i(s,"name").configurable);e.exports={EXISTS:a,PROPER:a&&"something"===(function(){}).name,CONFIGURABLE:l}},"../../node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/a-callable.js");e.exports=function(e,o,t){try{return n(r(Object.getOwnPropertyDescriptor(e,o)[t]))}catch(e){}}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype,s=r.call,i=n&&r.bind.bind(s,s);e.exports=n?i:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,o){var t;return arguments.length<2?r(t=n[e])?t:void 0:n[e]&&n[e][o]}},"../../node_modules/core-js/internals/get-method.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/a-callable.js"),r=t("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,o){var t=e[o];return r(t)?void 0:n(t)}},"../../node_modules/core-js/internals/global-this.js":function(e,o,t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t.g&&t.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/to-object.js"),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,o){return s(r(e),o)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!r(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/classof-raw.js"),i=Object,a=n("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):i(e)}:i},"../../node_modules/core-js/internals/inspect-source.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/shared-store.js"),i=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,o,t){var n,r,s,i=t("../../node_modules/core-js/internals/weak-map-basic-detection.js"),a=t("../../node_modules/core-js/internals/global-this.js"),l=t("../../node_modules/core-js/internals/is-object.js"),u=t("../../node_modules/core-js/internals/create-non-enumerable-property.js"),c=t("../../node_modules/core-js/internals/has-own-property.js"),d=t("../../node_modules/core-js/internals/shared-store.js"),j=t("../../node_modules/core-js/internals/shared-key.js"),f=t("../../node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",_=a.TypeError,m=a.WeakMap;if(i||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,o){if(y.has(e))throw new _(p);return o.facade=e,y.set(e,o),o},r=function(e){return y.get(e)||{}},s=function(e){return y.has(e)}}else{var h=j("state");f[h]=!0,n=function(e,o){if(c(e,h))throw new _(p);return o.facade=e,u(e,h,o),o},r=function(e){return c(e,h)?e[h]:{}},s=function(e){return c(e,h)}}e.exports={set:n,get:r,has:s,enforce:function(e){return s(e)?r(e):n(e,{})},getterFor:function(e){return function(o){var t;if(!l(o)||(t=r(o)).type!==e)throw new _("Incompatible receiver, "+e+" required");return t}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var o="object"==typeof document&&document.all;e.exports=void 0===o&&void 0!==o?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/fails.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,i=function(e,o){var t=l[a(e)];return t===c||t!==u&&(r(o)?n(o):!!o)},a=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-possible-prototype.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-object.js");e.exports=function(e){return n(e)||null===e}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/get-built-in.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/object-is-prototype-of.js"),i=t("../../node_modules/core-js/internals/use-symbol-as-uid.js"),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var o=n("Symbol");return r(o)&&s(o.prototype,a(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/is-callable.js"),i=t("../../node_modules/core-js/internals/has-own-property.js"),a=t("../../node_modules/core-js/internals/descriptors.js"),l=t("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,u=t("../../node_modules/core-js/internals/inspect-source.js"),c=t("../../node_modules/core-js/internals/internal-state.js"),d=c.enforce,j=c.get,f=String,p=Object.defineProperty,_=n("".slice),m=n("".replace),y=n([].join),h=a&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),g=e.exports=function(e,o,t){"Symbol("===_(f(o),0,7)&&(o="["+m(f(o),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(o="get "+o),t&&t.setter&&(o="set "+o),(!i(e,"name")||l&&e.name!==o)&&(a?p(e,"name",{value:o,configurable:!0}):e.name=o),h&&t&&i(t,"arity")&&e.length!==t.arity&&p(e,"length",{value:t.arity});try{t&&i(t,"constructor")&&t.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return i(n,"source")||(n.source=y(b,"string"==typeof o?o:"")),e};Function.prototype.toString=g(function(){return s(this)&&j(this).source||u(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var o=Math.ceil,t=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?t:o)(n)}},"../../node_modules/core-js/internals/object-create.js":function(e,o,t){var n,r=t("../../node_modules/core-js/internals/an-object.js"),s=t("../../node_modules/core-js/internals/object-define-properties.js"),i=t("../../node_modules/core-js/internals/enum-bug-keys.js"),a=t("../../node_modules/core-js/internals/hidden-keys.js"),l=t("../../node_modules/core-js/internals/html.js"),u=t("../../node_modules/core-js/internals/document-create-element.js"),c=t("../../node_modules/core-js/internals/shared-key.js"),d="prototype",j="script",f=c("IE_PROTO"),p=function(){},_=function(e){return"<"+j+">"+e+"</"+j+">"},m=function(e){e.write(_("")),e.close();var o=e.parentWindow.Object;return e=null,o},y=function(){var e,o=u("iframe");return o.style.display="none",l.appendChild(o),o.src=String("java"+j+":"),(e=o.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}h="undefined"!=typeof document?document.domain&&n?m(n):y():m(n);for(var e=i.length;e--;)delete h[d][i[e]];return h()};a[f]=!0,e.exports=Object.create||function(e,o){var t;return null!==e?(p[d]=r(e),t=new p,p[d]=null,t[f]=e):t=h(),void 0===o?t:s.f(t,o)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=t("../../node_modules/core-js/internals/object-define-property.js"),i=t("../../node_modules/core-js/internals/an-object.js"),a=t("../../node_modules/core-js/internals/to-indexed-object.js"),l=t("../../node_modules/core-js/internals/object-keys.js");o.f=n&&!r?Object.defineProperties:function(e,o){i(e);for(var t,n=a(o),r=l(o),u=r.length,c=0;u>c;)s.f(e,t=r[c++],n[t]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/ie8-dom-define.js"),s=t("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),i=t("../../node_modules/core-js/internals/an-object.js"),a=t("../../node_modules/core-js/internals/to-property-key.js"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",j="configurable",f="writable";o.f=n?s?function(e,o,t){if(i(e),o=a(o),i(t),"function"==typeof e&&"prototype"===o&&"value"in t&&f in t&&!t[f]){var n=c(e,o);n&&n[f]&&(e[o]=t.value,t={configurable:j in t?t[j]:n[j],enumerable:d in t?t[d]:n[d],writable:!1})}return u(e,o,t)}:u:function(e,o,t){if(i(e),o=a(o),i(t),r)try{return u(e,o,t)}catch(e){}if("get"in t||"set"in t)throw new l("Accessors not supported");return"value"in t&&(e[o]=t.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/function-call.js"),s=t("../../node_modules/core-js/internals/object-property-is-enumerable.js"),i=t("../../node_modules/core-js/internals/create-property-descriptor.js"),a=t("../../node_modules/core-js/internals/to-indexed-object.js"),l=t("../../node_modules/core-js/internals/to-property-key.js"),u=t("../../node_modules/core-js/internals/has-own-property.js"),c=t("../../node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;o.f=n?d:function(e,o){if(e=a(e),o=l(o),c)try{return d(e,o)}catch(e){}if(u(e,o))return i(!r(s.f,e,o),e[o])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/object-keys-internal.js"),r=t("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,o){o.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-get-prototype-of.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/has-own-property.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/to-object.js"),i=t("../../node_modules/core-js/internals/shared-key.js"),a=t("../../node_modules/core-js/internals/correct-prototype-getter.js"),l=i("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var o=s(e);if(n(o,l))return o[l];var t=o.constructor;return r(t)&&o instanceof t?t.prototype:o instanceof u?c:null}},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t("../../node_modules/core-js/internals/has-own-property.js"),s=t("../../node_modules/core-js/internals/to-indexed-object.js"),i=t("../../node_modules/core-js/internals/array-includes.js").indexOf,a=t("../../node_modules/core-js/internals/hidden-keys.js"),l=n([].push);e.exports=function(e,o){var t,n=s(e),u=0,c=[];for(t in n)!r(a,t)&&r(n,t)&&l(c,t);for(;o.length>u;)r(n,t=o[u++])&&(~i(c,t)||l(c,t));return c}},"../../node_modules/core-js/internals/object-keys.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/object-keys-internal.js"),r=t("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,r)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,o){var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;o.f=n&&!t.call({1:2},1)?function(e){var o=n(this,e);return!!o&&o.enumerable}:t},"../../node_modules/core-js/internals/object-set-prototype-of.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this-accessor.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=t("../../node_modules/core-js/internals/require-object-coercible.js"),i=t("../../node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,o=!1,t={};try{(e=n(Object.prototype,"__proto__","set"))(t,[]),o=t instanceof Array}catch(e){}return function(t,n){return s(t),i(n),r(t)&&(o?e(t,n):t.__proto__=n),t}}():void 0)},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-call.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=t("../../node_modules/core-js/internals/is-object.js"),i=TypeError;e.exports=function(e,o){var t,a;if("string"===o&&r(t=e.toString)&&!s(a=n(t,e))||r(t=e.valueOf)&&!s(a=n(t,e))||"string"!==o&&r(t=e.toString)&&!s(a=n(t,e)))return a;throw new i("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/get-built-in.js"),r=t("../../node_modules/core-js/internals/function-uncurry-this.js"),s=t("../../node_modules/core-js/internals/object-get-own-property-names.js"),i=t("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),a=t("../../node_modules/core-js/internals/an-object.js"),l=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var o=s.f(a(e)),t=i.f;return t?l(o,t(e)):o}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-null-or-undefined.js"),r=TypeError;e.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/shared.js"),r=t("../../node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/is-pure.js"),r=t("../../node_modules/core-js/internals/global-this.js"),s=t("../../node_modules/core-js/internals/define-global-property.js"),i="__core-js_shared__",a=e.exports=r[i]||s(i,{});(a.versions||(a.versions=[])).push({version:"3.44.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,o){return n[e]||(n[e]=o||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/environment-v8-version.js"),r=t("../../node_modules/core-js/internals/fails.js"),s=t("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.max,s=Math.min;e.exports=function(e,o){var t=n(e);return t<0?r(t+o,0):s(t,o)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/indexed-object.js"),r=t("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(r(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var o=+e;return o!=o||0===o?0:n(o)}},"../../node_modules/core-js/internals/to-length.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.min;e.exports=function(e){var o=n(e);return o>0?r(o,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/require-object-coercible.js"),r=Object;e.exports=function(e){return r(n(e))}},"../../node_modules/core-js/internals/to-offset.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-positive-integer.js"),r=RangeError;e.exports=function(e,o){var t=n(e);if(t%o)throw new r("Wrong offset");return t}},"../../node_modules/core-js/internals/to-positive-integer.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=RangeError;e.exports=function(e){var o=n(e);if(o<0)throw new r("The argument can't be less than 0");return o}},"../../node_modules/core-js/internals/to-primitive.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-call.js"),r=t("../../node_modules/core-js/internals/is-object.js"),s=t("../../node_modules/core-js/internals/is-symbol.js"),i=t("../../node_modules/core-js/internals/get-method.js"),a=t("../../node_modules/core-js/internals/ordinary-to-primitive.js"),l=t("../../node_modules/core-js/internals/well-known-symbol.js"),u=TypeError,c=l("toPrimitive");e.exports=function(e,o){if(!r(e)||s(e))return e;var t,l=i(e,c);if(l){if(void 0===o&&(o="default"),!r(t=n(l,e,o))||s(t))return t;throw new u("Can't convert object to primitive value")}return void 0===o&&(o="number"),a(e,o)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/to-primitive.js"),r=t("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var o=n(e,"string");return r(o)?o:o+""}},"../../node_modules/core-js/internals/to-string-tag-support.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),r={};r[n]="z",e.exports="[object z]"===String(r)},"../../node_modules/core-js/internals/try-to-string.js":function(e){var o=String;e.exports=function(e){try{return o(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/function-uncurry-this.js"),r=0,s=Math.random(),i=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,o,t){e.exports=t("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/descriptors.js"),r=t("../../node_modules/core-js/internals/fails.js");e.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/is-callable.js"),s=n.WeakMap;e.exports=r(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/shared.js"),s=t("../../node_modules/core-js/internals/has-own-property.js"),i=t("../../node_modules/core-js/internals/uid.js"),a=t("../../node_modules/core-js/internals/symbol-constructor-detection.js"),l=t("../../node_modules/core-js/internals/use-symbol-as-uid.js"),u=n.Symbol,c=r("wks"),d=l?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return s(c,e)||(c[e]=a&&s(u,e)?u[e]:d("Symbol."+e)),c[e]}},"../../node_modules/core-js/modules/es.array.includes.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/export.js"),r=t("../../node_modules/core-js/internals/array-includes.js").includes,s=t("../../node_modules/core-js/internals/fails.js"),i=t("../../node_modules/core-js/internals/add-to-unscopables.js");n({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,o,t){t("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:t("../../node_modules/core-js/internals/has-own-property.js")})},"../../node_modules/core-js/modules/es.typed-array.set.js":function(e,o,t){var n=t("../../node_modules/core-js/internals/global-this.js"),r=t("../../node_modules/core-js/internals/function-call.js"),s=t("../../node_modules/core-js/internals/array-buffer-view-core.js"),i=t("../../node_modules/core-js/internals/length-of-array-like.js"),a=t("../../node_modules/core-js/internals/to-offset.js"),l=t("../../node_modules/core-js/internals/to-object.js"),u=t("../../node_modules/core-js/internals/fails.js"),c=n.RangeError,d=n.Int8Array,j=d&&d.prototype,f=j&&j.set,p=s.aTypedArray,_=s.exportTypedArrayMethod,m=!u(function(){var e=new Uint8ClampedArray(2);return r(f,e,{length:1,0:3},1),3!==e[1]}),y=m&&s.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});_("set",function(e){p(this);var o=a(arguments.length>1?arguments[1]:void 0,1),t=l(e);if(m)return r(f,this,t,o);var n=this.length,s=i(t),u=0;if(s+o>n)throw new c("Wrong length");for(;u<s;)this[o+u]=t[u++]},!m||y)}},__webpack_module_cache__={};function __webpack_require__(e){var o=__webpack_module_cache__[e];if(void 0!==o)return o.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=(e,o)=>{for(var t in o)__webpack_require__.o(o,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),__webpack_require__.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TimeoutError:()=>t,ky:()=>A,sseHook:()=>e,HTTPError:()=>o});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{createHook:()=>q}),__webpack_require__("../../node_modules/core-js/modules/es.object.has-own.js"),__webpack_require__("../../node_modules/core-js/modules/es.array.includes.js");class o extends Error{constructor(e,o,t){let n=e.status||0===e.status?e.status:"",r=e.statusText||"",s=`${n} ${r}`.trim();super(`Request failed with ${s?`status code ${s}`:"an unknown error"}: ${o.method} ${o.url}`),this.name="HTTPError",this.response=e,this.request=o,this.options=t}}class t extends Error{constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}__webpack_require__("../../node_modules/core-js/modules/es.typed-array.set.js");let n=(()=>{let e=!1,o=!1,t="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&t)try{o=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!o})(),r="function"==typeof globalThis.AbortController,s="function"==typeof globalThis.ReadableStream,i="function"==typeof globalThis.FormData,a=["get","post","put","patch","head","delete"],l={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},u=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,c=Symbol("stop"),d={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},j={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},f=e=>{if(!e)return 0;if(e instanceof FormData){let o=0;for(let[t,n]of e)o+=u,o+=new TextEncoder().encode(`Content-Disposition: form-data; name="${t}"`).length,o+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return o}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let o=JSON.stringify(e);return new TextEncoder().encode(o).length}catch{}return 0},p=(e,o)=>{let t=Number(e.headers.get("content-length"))||0,n=0;return 204===e.status?(o&&o({percent:1,totalBytes:t,transferredBytes:n},new Uint8Array),new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new Response(new ReadableStream({async start(r){let s=e.body.getReader();async function i(){let{done:e,value:a}=await s.read();if(e)return void r.close();o&&(n+=a.byteLength,o({percent:0===t?0:n/t,transferredBytes:n,totalBytes:t},a)),r.enqueue(a),await i()}o&&o({percent:0,transferredBytes:0,totalBytes:t},new Uint8Array),await i()}}),{status:e.status,statusText:e.statusText,headers:e.headers})},_=(e,o)=>{let t=f(e.body),n=0;return new Request(e,{duplex:"half",body:new ReadableStream({async start(r){let s=e.body instanceof ReadableStream?e.body.getReader():new Response("").body.getReader();async function i(){let{done:e,value:a}=await s.read();if(e){o&&o({percent:1,transferredBytes:n,totalBytes:Math.max(t,n)},new Uint8Array),r.close();return}n+=a.byteLength;let l=0===t?0:n/t;(t<n||1===l)&&(l=.99),o&&o({percent:Number(l.toFixed(2)),transferredBytes:n,totalBytes:t},a),r.enqueue(a),await i()}await i()}})})},m=e=>null!==e&&"object"==typeof e,y=function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];for(let e of o)if((!m(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return v({},...o)},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=new globalThis.Headers(e),n=o instanceof globalThis.Headers;for(let[e,r]of new globalThis.Headers(o).entries())n&&"undefined"===r||void 0===r?t.delete(e):t.set(e,r);return t};function b(e,o,t){var n,r;return Object.hasOwn(o,t)&&void 0===o[t]?[]:v(null!=(n=e[t])?n:[],null!=(r=o[t])?r:[])}let g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:b(e,o,"beforeRequest"),beforeRetry:b(e,o,"beforeRetry"),afterResponse:b(e,o,"afterResponse"),beforeError:b(e,o,"beforeError")}},v=function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];let n={},r={},s={};for(let e of o)if(Array.isArray(e))Array.isArray(n)||(n=[]),n=[...n,...e];else if(m(e)){for(let[o,t]of Object.entries(e))m(t)&&o in n&&(t=v(n[o],t)),n={...n,[o]:t};m(e.hooks)&&(s=g(s,e.hooks),n.hooks=s),m(e.headers)&&(r=h(r,e.headers),n.headers=r)}return n},w=e=>a.includes(e)?e.toUpperCase():e,x={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...x,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...x,...e}};async function k(e,o,n,r){return new Promise((s,i)=>{let a=setTimeout(()=>{n&&n.abort(),i(new t(e))},r.timeout);r.fetch(e,o).then(s).catch(i).then(()=>{clearTimeout(a)})})}async function R(e,o){let{signal:t}=o;return new Promise((o,n)=>{function r(){clearTimeout(s),n(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",r,{once:!0}));let s=setTimeout(()=>{null==t||t.removeEventListener("abort",r),o()},e)})}let O=(e,o)=>{let t={};for(let n in o)n in j||n in d||n in e||(t[n]=o[n]);return t};class E{static create(e,t){let n=new E(e,t),r=async()=>{if("number"==typeof n._options.timeout&&n._options.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n._fetch();for(let o of n._options.hooks.afterResponse){let t=await o(n.request,n._options,n._decorateResponse(e.clone()));t instanceof globalThis.Response&&(e=t)}if(n._decorateResponse(e),!e.ok&&n._options.throwHttpErrors){let t=new o(e,n.request,n._options);for(let e of n._options.hooks.beforeError)t=await e(t);throw t}if(n._options.onDownloadProgress){if("function"!=typeof n._options.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!s)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return p(e.clone(),n._options.onDownloadProgress)}return e},i=(n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(r):r()).finally(async()=>{if(!n.request.bodyUsed){var e;await (null==(e=n.request.body)?void 0:e.cancel())}});for(let[e,o]of Object.entries(l))i[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||o);let r=await i;if("json"===e){if(204===r.status||0===(await r.clone().arrayBuffer()).byteLength)return"";if(t.parseJson)return t.parseJson(await r.text())}return r[e]()};return i}constructor(e,o={}){var t,s,a,l,u,c,d,j,f;if(this._retryCount=0,this._input=e,this._options={...o,headers:h(this._input.headers,o.headers),hooks:g({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:w(null!=(s=null!=(t=o.method)?t:this._input.method)?s:"GET"),prefixUrl:String(o.prefixUrl||""),retry:T(o.retry),throwHttpErrors:!1!==o.throwHttpErrors,timeout:null!=(a=o.timeout)?a:1e4,fetch:null!=(l=o.fetch)?l:globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(r){let e=null!=(u=this._options.signal)?u:this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(n&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=null!=(j=null==(c=(d=this._options).stringifyJson)?void 0:c.call(d,this._options.json))?j:JSON.stringify(this._options.json),this._options.headers.set("content-type",null!=(f=this._options.headers.get("content-type"))?f:"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let e="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);(i&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(o,{...this.request}),this._options)}if(this._options.onUploadProgress){if("function"!=typeof this._options.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!n)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=_(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof t)throw e;if(e instanceof o){var n,r,s,i;if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let o=null!=(s=null!=(r=null!=(n=e.response.headers.get("Retry-After"))?n:e.response.headers.get("RateLimit-Reset"))?r:e.response.headers.get("X-RateLimit-Reset"))?s:e.response.headers.get("X-Rate-Limit-Reset");if(o&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(o);Number.isNaN(e)?e=Date.parse(o)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let t=null!=(i=this._options.retry.maxRetryAfter)?i:e;return e<t?e:t}if(413===e.response.status)throw e}let a=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,a)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(t){let o=Math.min(this._calculateRetryDelay(t),0x7fffffff);if(this._retryCount<1)throw t;for(let e of(await R(o,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:t,retryCount:this._retryCount})===c)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let o=await e(this.request,this._options);if(o instanceof Request){this.request=o;break}if(o instanceof Response)return o}let e=O(this.request,this._options),o=this.request;return(this.request=o.clone(),!1===this._options.timeout)?this._options.fetch(o,e):k(o,e,this.abortController,this._options)}}let S=e=>{let o=(o,t)=>E.create(o,y(e,t));for(let t of a)o[t]=(o,n)=>E.create(o,y(e,n,{method:t}));return o.create=e=>S(y(e)),o.extend=o=>("function"==typeof o&&(o=o(null!=e?e:{})),S(y(e,o))),o.stop=c,o},A=S(),P=[239,187,191],q=e=>async(o,t,n)=>{if(!n.ok||!n.body)return;let r=!1,s=o=>{var t;r||(r=!0,null==(t=e.onCompleted)||t.call(e,o))},i=n.body.getReader(),a=new TextDecoder("utf8"),l=function(e){let o,t,n,r,s,i,a;return l(),{feed:function(l){var u;t=t?t+l:l,o&&(u=t,P.every((e,o)=>u.charCodeAt(o)===e))&&(t=t.slice(P.length)),o=!1;let c=t.length,d=0,j=!1;for(;d<c;){let o;j&&("\n"===t[d]&&++d,j=!1);let l=-1,u=r;for(let e=n;l<0&&e<c;++e)":"===(o=t[e])&&u<0?u=e-d:"\r"===o?(j=!0,l=e-d):"\n"===o&&(l=e-d);if(l<0){n=c-d,r=u;break}n=0,r=-1,function(o,t,n,r){if(0===r){a.length>0&&(e({type:"event",id:s,event:i||void 0,data:a.slice(0,-1)}),a="",s=void 0),i=void 0;return}let l=n<0,u=o.slice(t,t+(l?r:n)),c=0;c=l?r:" "===o[t+n+1]?n+2:n+1;let d=t+c,j=r-c,f=o.slice(d,d+j).toString();if("data"===u)a+=f?"".concat(f,"\n"):"\n";else if("event"===u)i=f;else if("id"!==u||f.includes("\0")){if("retry"===u){let o=parseInt(f,10);Number.isNaN(o)||e({type:"reconnect-interval",value:o})}}else s=f}(t,d,u,l),d+=l+1}d===c?t="":d>0&&(t=t.slice(d))},reset:l};function l(){o=!0,t="",n=0,r=-1,s=void 0,i=void 0,a=""}}(o=>{var t,n,r;if("event"===o.type&&(null==(t=e.onMessage)||t.call(e,o)),"event"===o.type&&o.data)for(let t of(null==(n=e.onEvent)||n.call(e,o),o.data.split("\n")))e.onData(t);else"reconnect-interval"===o.type&&(null==(r=e.onReconnectInterval)||r.call(e,o.value))}),u=()=>{i.read().then(e=>{if(e.done)return void s();l.feed(a.decode(e.value,{stream:!0})),u()}).catch(t=>{var n;if(o.signal.aborted){null==(n=e.onAborted)||n.call(e);return}s(t)})};return u(),n}})(),exports.HTTPError=__webpack_exports__.HTTPError,exports.TimeoutError=__webpack_exports__.TimeoutError,exports.ky=__webpack_exports__.ky,exports.sseHook=__webpack_exports__.sseHook,__webpack_exports__)-1===["HTTPError","TimeoutError","ky","sseHook"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1 @@
1
+ /*! MIT License © Sindre Sorhus */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see http.esm.js.LICENSE.txt */
2
+ var e={"../../node_modules/core-js/internals/a-callable.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-callable.js"),r=n("../../node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(t(e))return e;throw new s(r(e)+" is not a function")}},"../../node_modules/core-js/internals/a-possible-prototype.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-possible-prototype.js"),r=String,s=TypeError;e.exports=function(e){if(t(e))return e;throw new s("Can't set "+r(e)+" as a prototype")}},"../../node_modules/core-js/internals/add-to-unscopables.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/well-known-symbol.js"),r=n("../../node_modules/core-js/internals/object-create.js"),s=n("../../node_modules/core-js/internals/object-define-property.js").f,i=t("unscopables"),l=Array.prototype;void 0===l[i]&&s(l,i,{configurable:!0,value:r(null)}),e.exports=function(e){l[i][e]=!0}},"../../node_modules/core-js/internals/an-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-object.js"),r=String,s=TypeError;e.exports=function(e){if(t(e))return e;throw new s(r(e)+" is not an object")}},"../../node_modules/core-js/internals/array-buffer-basic-detection.js":function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"../../node_modules/core-js/internals/array-buffer-view-core.js":function(e,o,n){var t,r,s,i=n("../../node_modules/core-js/internals/array-buffer-basic-detection.js"),l=n("../../node_modules/core-js/internals/descriptors.js"),a=n("../../node_modules/core-js/internals/global-this.js"),u=n("../../node_modules/core-js/internals/is-callable.js"),c=n("../../node_modules/core-js/internals/is-object.js"),d=n("../../node_modules/core-js/internals/has-own-property.js"),j=n("../../node_modules/core-js/internals/classof.js"),f=n("../../node_modules/core-js/internals/try-to-string.js"),p=n("../../node_modules/core-js/internals/create-non-enumerable-property.js"),m=n("../../node_modules/core-js/internals/define-built-in.js"),y=n("../../node_modules/core-js/internals/define-built-in-accessor.js"),h=n("../../node_modules/core-js/internals/object-is-prototype-of.js"),_=n("../../node_modules/core-js/internals/object-get-prototype-of.js"),b=n("../../node_modules/core-js/internals/object-set-prototype-of.js"),g=n("../../node_modules/core-js/internals/well-known-symbol.js"),v=n("../../node_modules/core-js/internals/uid.js"),w=n("../../node_modules/core-js/internals/internal-state.js"),x=w.enforce,T=w.get,R=a.Int8Array,O=R&&R.prototype,S=a.Uint8ClampedArray,A=S&&S.prototype,E=R&&_(R),P=O&&_(O),k=Object.prototype,q=a.TypeError,C=g("toStringTag"),I=v("TYPED_ARRAY_TAG"),U="TypedArrayConstructor",D=i&&!!b&&"Opera"!==j(a.opera),F=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},M=function(e){var o=_(e);if(c(o)){var n=T(o);return n&&d(n,U)?n[U]:M(o)}},B=function(e){if(!c(e))return!1;var o=j(e);return d(L,o)||d(N,o)};for(t in L)(s=(r=a[t])&&r.prototype)?x(s)[U]=r:D=!1;for(t in N)(s=(r=a[t])&&r.prototype)&&(x(s)[U]=r);if((!D||!u(E)||E===Function.prototype)&&(E=function(){throw new q("Incorrect invocation")},D))for(t in L)a[t]&&b(a[t],E);if((!D||!P||P===k)&&(P=E.prototype,D))for(t in L)a[t]&&b(a[t].prototype,P);if(D&&_(A)!==P&&b(A,P),l&&!d(P,C))for(t in F=!0,y(P,C,{configurable:!0,get:function(){return c(this)?this[I]:void 0}}),L)a[t]&&p(a[t],I,t);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&I,aTypedArray:function(e){if(B(e))return e;throw new q("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||h(E,e)))return e;throw new q(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,o,n,t){if(l){if(n)for(var r in L){var s=a[r];if(s&&d(s.prototype,e))try{delete s.prototype[e]}catch(n){try{s.prototype[e]=o}catch(e){}}}(!P[e]||n)&&m(P,e,n?o:D&&O[e]||o,t)}},exportTypedArrayStaticMethod:function(e,o,n){var t,r;if(l){if(b){if(n){for(t in L)if((r=a[t])&&d(r,e))try{delete r[e]}catch(e){}}if(E[e]&&!n)return;try{return m(E,e,n?o:D&&E[e]||o)}catch(e){}}for(t in L)(r=a[t])&&(!r[e]||n)&&m(r,e,o)}},getTypedArrayConstructor:M,isView:function(e){if(!c(e))return!1;var o=j(e);return"DataView"===o||d(L,o)||d(N,o)},isTypedArray:B,TypedArray:E,TypedArrayPrototype:P}},"../../node_modules/core-js/internals/array-includes.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-indexed-object.js"),r=n("../../node_modules/core-js/internals/to-absolute-index.js"),s=n("../../node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(o,n,i){var l,a=t(o),u=s(a);if(0===u)return!e&&-1;var c=r(i,u);if(e&&n!=n){for(;u>c;)if((l=a[c++])!=l)return!0}else for(;u>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"../../node_modules/core-js/internals/classof-raw.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=t({}.toString),s=t("".slice);e.exports=function(e){return s(r(e),8,-1)}},"../../node_modules/core-js/internals/classof.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-string-tag-support.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/classof-raw.js"),i=n("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),l=Object,a="Arguments"===s(function(){return arguments}()),u=function(e,o){try{return e[o]}catch(e){}};e.exports=t?s:function(e){var o,n,t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(o=l(e),i))?n:a?s(o):"Object"===(t=s(o))&&r(o.callee)?"Arguments":t}},"../../node_modules/core-js/internals/copy-constructor-properties.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/has-own-property.js"),r=n("../../node_modules/core-js/internals/own-keys.js"),s=n("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=n("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,n){for(var l=r(o),a=i.f,u=s.f,c=0;c<l.length;c++){var d=l[c];t(e,d)||n&&t(n,d)||a(e,d,u(o,d))}}},"../../node_modules/core-js/internals/correct-prototype-getter.js":function(e,o,n){e.exports=!n("../../node_modules/core-js/internals/fails.js")(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"../../node_modules/core-js/internals/create-non-enumerable-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/object-define-property.js"),s=n("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=t?function(e,o,n){return r.f(e,o,s(1,n))}:function(e,o,n){return e[o]=n,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,o){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:o}}},"../../node_modules/core-js/internals/define-built-in-accessor.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/make-built-in.js"),r=n("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,o,n){return n.get&&t(n.get,o,{getter:!0}),n.set&&t(n.set,o,{setter:!0}),r.f(e,o,n)}},"../../node_modules/core-js/internals/define-built-in.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-callable.js"),r=n("../../node_modules/core-js/internals/object-define-property.js"),s=n("../../node_modules/core-js/internals/make-built-in.js"),i=n("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,o,n,l){l||(l={});var a=l.enumerable,u=void 0!==l.name?l.name:o;if(t(n)&&s(n,u,l),l.global)a?e[o]=n:i(o,n);else{try{l.unsafe?e[o]&&(a=!0):delete e[o]}catch(e){}a?e[o]=n:r.f(e,o,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=Object.defineProperty;e.exports=function(e,o){try{r(t,e,{value:o,configurable:!0,writable:!0})}catch(n){t[e]=o}return o}},"../../node_modules/core-js/internals/descriptors.js":function(e,o,n){e.exports=!n("../../node_modules/core-js/internals/fails.js")(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/is-object.js"),s=t.document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"../../node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/environment-user-agent.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js").navigator,r=t&&t.userAgent;e.exports=r?String(r):""},"../../node_modules/core-js/internals/environment-v8-version.js":function(e,o,n){var t,r,s=n("../../node_modules/core-js/internals/global-this.js"),i=n("../../node_modules/core-js/internals/environment-user-agent.js"),l=s.process,a=s.Deno,u=l&&l.versions||a&&a.version,c=u&&u.v8;c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(r=+t[1]),e.exports=r},"../../node_modules/core-js/internals/export.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=n("../../node_modules/core-js/internals/create-non-enumerable-property.js"),i=n("../../node_modules/core-js/internals/define-built-in.js"),l=n("../../node_modules/core-js/internals/define-global-property.js"),a=n("../../node_modules/core-js/internals/copy-constructor-properties.js"),u=n("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,o){var n,c,d,j,f,p=e.target,m=e.global,y=e.stat;if(n=m?t:y?t[p]||l(p,{}):t[p]&&t[p].prototype)for(c in o){if(j=o[c],d=e.dontCallGetSet?(f=r(n,c))&&f.value:n[c],!u(m?c:p+(y?".":"#")+c,e.forced)&&void 0!==d){if(typeof j==typeof d)continue;a(j,d)}(e.sham||d&&d.sham)&&s(j,"sham",!0),i(n,c,j,e)}}},"../../node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/function-bind-native.js":function(e,o,n){e.exports=!n("../../node_modules/core-js/internals/fails.js")(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype.call;e.exports=t?r.bind(r):function(){return r.apply(r,arguments)}},"../../node_modules/core-js/internals/function-name.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,l=r(s,"name"),a=l&&(!t||t&&i(s,"name").configurable);e.exports={EXISTS:l,PROPER:l&&"something"===(function(){}).name,CONFIGURABLE:a}},"../../node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/a-callable.js");e.exports=function(e,o,n){try{return t(r(Object.getOwnPropertyDescriptor(e,o)[n]))}catch(e){}}},"../../node_modules/core-js/internals/function-uncurry-this.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-bind-native.js"),r=Function.prototype,s=r.call,i=t&&r.bind.bind(s,s);e.exports=t?i:function(e){return function(){return s.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,o){var n;return arguments.length<2?r(n=t[e])?n:void 0:t[e]&&t[e][o]}},"../../node_modules/core-js/internals/get-method.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/a-callable.js"),r=n("../../node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,o){var n=e[o];return r(n)?void 0:t(n)}},"../../node_modules/core-js/internals/global-this.js":function(e,o,n){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof n.g&&n.g)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/to-object.js"),s=t({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,o){return s(r(e),o)}},"../../node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"../../node_modules/core-js/internals/html.js":function(e,o,n){e.exports=n("../../node_modules/core-js/internals/get-built-in.js")("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/document-create-element.js");e.exports=!t&&!r(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/classof-raw.js"),i=Object,l=t("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?l(e,""):i(e)}:i},"../../node_modules/core-js/internals/inspect-source.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/shared-store.js"),i=t(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":function(e,o,n){var t,r,s,i=n("../../node_modules/core-js/internals/weak-map-basic-detection.js"),l=n("../../node_modules/core-js/internals/global-this.js"),a=n("../../node_modules/core-js/internals/is-object.js"),u=n("../../node_modules/core-js/internals/create-non-enumerable-property.js"),c=n("../../node_modules/core-js/internals/has-own-property.js"),d=n("../../node_modules/core-js/internals/shared-store.js"),j=n("../../node_modules/core-js/internals/shared-key.js"),f=n("../../node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",m=l.TypeError,y=l.WeakMap;if(i||d.state){var h=d.state||(d.state=new y);h.get=h.get,h.has=h.has,h.set=h.set,t=function(e,o){if(h.has(e))throw new m(p);return o.facade=e,h.set(e,o),o},r=function(e){return h.get(e)||{}},s=function(e){return h.has(e)}}else{var _=j("state");f[_]=!0,t=function(e,o){if(c(e,_))throw new m(p);return o.facade=e,u(e,_,o),o},r=function(e){return c(e,_)?e[_]:{}},s=function(e){return c(e,_)}}e.exports={set:t,get:r,has:s,enforce:function(e){return s(e)?r(e):t(e,{})},getterFor:function(e){return function(o){var n;if(!a(o)||(n=r(o)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},"../../node_modules/core-js/internals/is-callable.js":function(e){var o="object"==typeof document&&document.all;e.exports=void 0===o&&void 0!==o?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-forced.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/fails.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=/#|\.prototype\./,i=function(e,o){var n=a[l(e)];return n===c||n!==u&&(r(o)?t(o):!!o)},l=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"../../node_modules/core-js/internals/is-null-or-undefined.js":function(e){e.exports=function(e){return null==e}},"../../node_modules/core-js/internals/is-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:t(e)}},"../../node_modules/core-js/internals/is-possible-prototype.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-object.js");e.exports=function(e){return t(e)||null===e}},"../../node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"../../node_modules/core-js/internals/is-symbol.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/get-built-in.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/object-is-prototype-of.js"),i=n("../../node_modules/core-js/internals/use-symbol-as-uid.js"),l=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var o=t("Symbol");return r(o)&&s(o.prototype,l(e))}},"../../node_modules/core-js/internals/length-of-array-like.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return t(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/is-callable.js"),i=n("../../node_modules/core-js/internals/has-own-property.js"),l=n("../../node_modules/core-js/internals/descriptors.js"),a=n("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,u=n("../../node_modules/core-js/internals/inspect-source.js"),c=n("../../node_modules/core-js/internals/internal-state.js"),d=c.enforce,j=c.get,f=String,p=Object.defineProperty,m=t("".slice),y=t("".replace),h=t([].join),_=l&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),g=e.exports=function(e,o,n){"Symbol("===m(f(o),0,7)&&(o="["+y(f(o),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(o="get "+o),n&&n.setter&&(o="set "+o),(!i(e,"name")||a&&e.name!==o)&&(l?p(e,"name",{value:o,configurable:!0}):e.name=o),_&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?l&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var t=d(e);return i(t,"source")||(t.source=h(b,"string"==typeof o?o:"")),e};Function.prototype.toString=g(function(){return s(this)&&j(this).source||u(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":function(e){var o=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?n:o)(t)}},"../../node_modules/core-js/internals/object-create.js":function(e,o,n){var t,r=n("../../node_modules/core-js/internals/an-object.js"),s=n("../../node_modules/core-js/internals/object-define-properties.js"),i=n("../../node_modules/core-js/internals/enum-bug-keys.js"),l=n("../../node_modules/core-js/internals/hidden-keys.js"),a=n("../../node_modules/core-js/internals/html.js"),u=n("../../node_modules/core-js/internals/document-create-element.js"),c=n("../../node_modules/core-js/internals/shared-key.js"),d="prototype",j="script",f=c("IE_PROTO"),p=function(){},m=function(e){return"<"+j+">"+e+"</"+j+">"},y=function(e){e.write(m("")),e.close();var o=e.parentWindow.Object;return e=null,o},h=function(){var e,o=u("iframe");return o.style.display="none",a.appendChild(o),o.src=String("java"+j+":"),(e=o.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F},_=function(){try{t=new ActiveXObject("htmlfile")}catch(e){}_="undefined"!=typeof document?document.domain&&t?y(t):h():y(t);for(var e=i.length;e--;)delete _[d][i[e]];return _()};l[f]=!0,e.exports=Object.create||function(e,o){var n;return null!==e?(p[d]=r(e),n=new p,p[d]=null,n[f]=e):n=_(),void 0===o?n:s.f(n,o)}},"../../node_modules/core-js/internals/object-define-properties.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),s=n("../../node_modules/core-js/internals/object-define-property.js"),i=n("../../node_modules/core-js/internals/an-object.js"),l=n("../../node_modules/core-js/internals/to-indexed-object.js"),a=n("../../node_modules/core-js/internals/object-keys.js");o.f=t&&!r?Object.defineProperties:function(e,o){i(e);for(var n,t=l(o),r=a(o),u=r.length,c=0;u>c;)s.f(e,n=r[c++],t[n]);return e}},"../../node_modules/core-js/internals/object-define-property.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/ie8-dom-define.js"),s=n("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),i=n("../../node_modules/core-js/internals/an-object.js"),l=n("../../node_modules/core-js/internals/to-property-key.js"),a=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",j="configurable",f="writable";o.f=t?s?function(e,o,n){if(i(e),o=l(o),i(n),"function"==typeof e&&"prototype"===o&&"value"in n&&f in n&&!n[f]){var t=c(e,o);t&&t[f]&&(e[o]=n.value,n={configurable:j in n?n[j]:t[j],enumerable:d in n?n[d]:t[d],writable:!1})}return u(e,o,n)}:u:function(e,o,n){if(i(e),o=l(o),i(n),r)try{return u(e,o,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[o]=n.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/function-call.js"),s=n("../../node_modules/core-js/internals/object-property-is-enumerable.js"),i=n("../../node_modules/core-js/internals/create-property-descriptor.js"),l=n("../../node_modules/core-js/internals/to-indexed-object.js"),a=n("../../node_modules/core-js/internals/to-property-key.js"),u=n("../../node_modules/core-js/internals/has-own-property.js"),c=n("../../node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;o.f=t?d:function(e,o){if(e=l(e),o=a(o),c)try{return d(e,o)}catch(e){}if(u(e,o))return i(!r(s.f,e,o),e[o])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/object-keys-internal.js"),r=n("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(e){return t(e,r)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,o){o.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-get-prototype-of.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/has-own-property.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/to-object.js"),i=n("../../node_modules/core-js/internals/shared-key.js"),l=n("../../node_modules/core-js/internals/correct-prototype-getter.js"),a=i("IE_PROTO"),u=Object,c=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var o=s(e);if(t(o,a))return o[a];var n=o.constructor;return r(n)&&o instanceof n?n.prototype:o instanceof u?c:null}},"../../node_modules/core-js/internals/object-is-prototype-of.js":function(e,o,n){e.exports=n("../../node_modules/core-js/internals/function-uncurry-this.js")({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=n("../../node_modules/core-js/internals/has-own-property.js"),s=n("../../node_modules/core-js/internals/to-indexed-object.js"),i=n("../../node_modules/core-js/internals/array-includes.js").indexOf,l=n("../../node_modules/core-js/internals/hidden-keys.js"),a=t([].push);e.exports=function(e,o){var n,t=s(e),u=0,c=[];for(n in t)!r(l,n)&&r(t,n)&&a(c,n);for(;o.length>u;)r(t,n=o[u++])&&(~i(c,n)||a(c,n));return c}},"../../node_modules/core-js/internals/object-keys.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/object-keys-internal.js"),r=n("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return t(e,r)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":function(e,o){var n={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor;o.f=t&&!n.call({1:2},1)?function(e){var o=t(this,e);return!!o&&o.enumerable}:n},"../../node_modules/core-js/internals/object-set-prototype-of.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this-accessor.js"),r=n("../../node_modules/core-js/internals/is-object.js"),s=n("../../node_modules/core-js/internals/require-object-coercible.js"),i=n("../../node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,o=!1,n={};try{(e=t(Object.prototype,"__proto__","set"))(n,[]),o=n instanceof Array}catch(e){}return function(n,t){return s(n),i(t),r(n)&&(o?e(n,t):n.__proto__=t),n}}():void 0)},"../../node_modules/core-js/internals/ordinary-to-primitive.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-call.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=n("../../node_modules/core-js/internals/is-object.js"),i=TypeError;e.exports=function(e,o){var n,l;if("string"===o&&r(n=e.toString)&&!s(l=t(n,e))||r(n=e.valueOf)&&!s(l=t(n,e))||"string"!==o&&r(n=e.toString)&&!s(l=t(n,e)))return l;throw new i("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/get-built-in.js"),r=n("../../node_modules/core-js/internals/function-uncurry-this.js"),s=n("../../node_modules/core-js/internals/object-get-own-property-names.js"),i=n("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),l=n("../../node_modules/core-js/internals/an-object.js"),a=r([].concat);e.exports=t("Reflect","ownKeys")||function(e){var o=s.f(l(e)),n=i.f;return n?a(o,n(e)):o}},"../../node_modules/core-js/internals/require-object-coercible.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-null-or-undefined.js"),r=TypeError;e.exports=function(e){if(t(e))throw new r("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/shared-key.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/shared.js"),r=n("../../node_modules/core-js/internals/uid.js"),s=t("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},"../../node_modules/core-js/internals/shared-store.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/is-pure.js"),r=n("../../node_modules/core-js/internals/global-this.js"),s=n("../../node_modules/core-js/internals/define-global-property.js"),i="__core-js_shared__",l=e.exports=r[i]||s(i,{});(l.versions||(l.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/shared.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/shared-store.js");e.exports=function(e,o){return t[e]||(t[e]=o||{})}},"../../node_modules/core-js/internals/symbol-constructor-detection.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/environment-v8-version.js"),r=n("../../node_modules/core-js/internals/fails.js"),s=n("../../node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})},"../../node_modules/core-js/internals/to-absolute-index.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.max,s=Math.min;e.exports=function(e,o){var n=t(e);return n<0?r(n+o,0):s(n,o)}},"../../node_modules/core-js/internals/to-indexed-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/indexed-object.js"),r=n("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return t(r(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var o=+e;return o!=o||0===o?0:t(o)}},"../../node_modules/core-js/internals/to-length.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=Math.min;e.exports=function(e){var o=t(e);return o>0?r(o,0x1fffffffffffff):0}},"../../node_modules/core-js/internals/to-object.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/require-object-coercible.js"),r=Object;e.exports=function(e){return r(t(e))}},"../../node_modules/core-js/internals/to-offset.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-positive-integer.js"),r=RangeError;e.exports=function(e,o){var n=t(e);if(n%o)throw new r("Wrong offset");return n}},"../../node_modules/core-js/internals/to-positive-integer.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=RangeError;e.exports=function(e){var o=t(e);if(o<0)throw new r("The argument can't be less than 0");return o}},"../../node_modules/core-js/internals/to-primitive.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-call.js"),r=n("../../node_modules/core-js/internals/is-object.js"),s=n("../../node_modules/core-js/internals/is-symbol.js"),i=n("../../node_modules/core-js/internals/get-method.js"),l=n("../../node_modules/core-js/internals/ordinary-to-primitive.js"),a=n("../../node_modules/core-js/internals/well-known-symbol.js"),u=TypeError,c=a("toPrimitive");e.exports=function(e,o){if(!r(e)||s(e))return e;var n,a=i(e,c);if(a){if(void 0===o&&(o="default"),!r(n=t(a,e,o))||s(n))return n;throw new u("Can't convert object to primitive value")}return void 0===o&&(o="number"),l(e,o)}},"../../node_modules/core-js/internals/to-property-key.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/to-primitive.js"),r=n("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var o=t(e,"string");return r(o)?o:o+""}},"../../node_modules/core-js/internals/to-string-tag-support.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),r={};r[t]="z",e.exports="[object z]"===String(r)},"../../node_modules/core-js/internals/try-to-string.js":function(e){var o=String;e.exports=function(e){try{return o(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/function-uncurry-this.js"),r=0,s=Math.random(),i=t(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+s,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":function(e,o,n){e.exports=n("../../node_modules/core-js/internals/symbol-constructor-detection.js")&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/descriptors.js"),r=n("../../node_modules/core-js/internals/fails.js");e.exports=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/weak-map-basic-detection.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/is-callable.js"),s=t.WeakMap;e.exports=r(s)&&/native code/.test(String(s))},"../../node_modules/core-js/internals/well-known-symbol.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/shared.js"),s=n("../../node_modules/core-js/internals/has-own-property.js"),i=n("../../node_modules/core-js/internals/uid.js"),l=n("../../node_modules/core-js/internals/symbol-constructor-detection.js"),a=n("../../node_modules/core-js/internals/use-symbol-as-uid.js"),u=t.Symbol,c=r("wks"),d=a?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return s(c,e)||(c[e]=l&&s(u,e)?u[e]:d("Symbol."+e)),c[e]}},"../../node_modules/core-js/modules/es.array.includes.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/export.js"),r=n("../../node_modules/core-js/internals/array-includes.js").includes,s=n("../../node_modules/core-js/internals/fails.js"),i=n("../../node_modules/core-js/internals/add-to-unscopables.js");t({target:"Array",proto:!0,forced:s(function(){return![,].includes()})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},"../../node_modules/core-js/modules/es.object.has-own.js":function(e,o,n){n("../../node_modules/core-js/internals/export.js")({target:"Object",stat:!0},{hasOwn:n("../../node_modules/core-js/internals/has-own-property.js")})},"../../node_modules/core-js/modules/es.typed-array.set.js":function(e,o,n){var t=n("../../node_modules/core-js/internals/global-this.js"),r=n("../../node_modules/core-js/internals/function-call.js"),s=n("../../node_modules/core-js/internals/array-buffer-view-core.js"),i=n("../../node_modules/core-js/internals/length-of-array-like.js"),l=n("../../node_modules/core-js/internals/to-offset.js"),a=n("../../node_modules/core-js/internals/to-object.js"),u=n("../../node_modules/core-js/internals/fails.js"),c=t.RangeError,d=t.Int8Array,j=d&&d.prototype,f=j&&j.set,p=s.aTypedArray,m=s.exportTypedArrayMethod,y=!u(function(){var e=new Uint8ClampedArray(2);return r(f,e,{length:1,0:3},1),3!==e[1]}),h=y&&s.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});m("set",function(e){p(this);var o=l(arguments.length>1?arguments[1]:void 0,1),n=a(e);if(y)return r(f,this,n,o);var t=this.length,s=i(n),u=0;if(s+o>t)throw new c("Wrong length");for(;u<s;)this[o+u]=n[u++]},!y||h)}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var s=o[t]={exports:{}};return e[t].call(s.exports,s,s.exports,n),s.exports}n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};n.r(t),n.d(t,{createHook:()=>U}),n("../../node_modules/core-js/modules/es.object.has-own.js"),n("../../node_modules/core-js/modules/es.array.includes.js");class r extends Error{constructor(e,o,n){let t=e.status||0===e.status?e.status:"",r=e.statusText||"",s=`${t} ${r}`.trim();super(`Request failed with ${s?`status code ${s}`:"an unknown error"}: ${o.method} ${o.url}`),this.name="HTTPError",this.response=e,this.request=o,this.options=n}}class s extends Error{constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}n("../../node_modules/core-js/modules/es.typed-array.set.js");let i=(()=>{let e=!1,o=!1,n="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&n)try{o=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!o})(),l="function"==typeof globalThis.AbortController,a="function"==typeof globalThis.ReadableStream,u="function"==typeof globalThis.FormData,c=["get","post","put","patch","head","delete"],d={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},j=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,f=Symbol("stop"),p={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},m={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},y=e=>{if(!e)return 0;if(e instanceof FormData){let o=0;for(let[n,t]of e)o+=j,o+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,o+="string"==typeof t?new TextEncoder().encode(t).length:t.size;return o}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let o=JSON.stringify(e);return new TextEncoder().encode(o).length}catch{}return 0},h=(e,o)=>{let n=Number(e.headers.get("content-length"))||0,t=0;return 204===e.status?(o&&o({percent:1,totalBytes:n,transferredBytes:t},new Uint8Array),new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new Response(new ReadableStream({async start(r){let s=e.body.getReader();async function i(){let{done:e,value:l}=await s.read();if(e)return void r.close();o&&(t+=l.byteLength,o({percent:0===n?0:t/n,transferredBytes:t,totalBytes:n},l)),r.enqueue(l),await i()}o&&o({percent:0,transferredBytes:0,totalBytes:n},new Uint8Array),await i()}}),{status:e.status,statusText:e.statusText,headers:e.headers})},_=(e,o)=>{let n=y(e.body),t=0;return new Request(e,{duplex:"half",body:new ReadableStream({async start(r){let s=e.body instanceof ReadableStream?e.body.getReader():new Response("").body.getReader();async function i(){let{done:e,value:l}=await s.read();if(e){o&&o({percent:1,transferredBytes:t,totalBytes:Math.max(n,t)},new Uint8Array),r.close();return}t+=l.byteLength;let a=0===n?0:t/n;(n<t||1===a)&&(a=.99),o&&o({percent:Number(a.toFixed(2)),transferredBytes:t,totalBytes:n},l),r.enqueue(l),await i()}await i()}})})},b=e=>null!==e&&"object"==typeof e,g=function(){for(var e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];for(let e of o)if((!b(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return T({},...o)},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new globalThis.Headers(e),t=o instanceof globalThis.Headers;for(let[e,r]of new globalThis.Headers(o).entries())t&&"undefined"===r||void 0===r?n.delete(e):n.set(e,r);return n};function w(e,o,n){var t,r;return Object.hasOwn(o,n)&&void 0===o[n]?[]:T(null!=(t=e[n])?t:[],null!=(r=o[n])?r:[])}let x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:w(e,o,"beforeRequest"),beforeRetry:w(e,o,"beforeRetry"),afterResponse:w(e,o,"afterResponse"),beforeError:w(e,o,"beforeError")}},T=function(){for(var e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];let t={},r={},s={};for(let e of o)if(Array.isArray(e))Array.isArray(t)||(t=[]),t=[...t,...e];else if(b(e)){for(let[o,n]of Object.entries(e))b(n)&&o in t&&(n=T(t[o],n)),t={...t,[o]:n};b(e.hooks)&&(s=x(s,e.hooks),t.hooks=s),b(e.headers)&&(r=v(r,e.headers),t.headers=r)}return t},R=e=>c.includes(e)?e.toUpperCase():e,O={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...O,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...O,...e}};async function A(e,o,n,t){return new Promise((r,i)=>{let l=setTimeout(()=>{n&&n.abort(),i(new s(e))},t.timeout);t.fetch(e,o).then(r).catch(i).then(()=>{clearTimeout(l)})})}async function E(e,o){let{signal:n}=o;return new Promise((o,t)=>{function r(){clearTimeout(s),t(n.reason)}n&&(n.throwIfAborted(),n.addEventListener("abort",r,{once:!0}));let s=setTimeout(()=>{null==n||n.removeEventListener("abort",r),o()},e)})}let P=(e,o)=>{let n={};for(let t in o)t in m||t in p||t in e||(n[t]=o[t]);return n};class k{static create(e,o){let n=new k(e,o),t=async()=>{if("number"==typeof n._options.timeout&&n._options.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await n._fetch();for(let o of n._options.hooks.afterResponse){let t=await o(n.request,n._options,n._decorateResponse(e.clone()));t instanceof globalThis.Response&&(e=t)}if(n._decorateResponse(e),!e.ok&&n._options.throwHttpErrors){let o=new r(e,n.request,n._options);for(let e of n._options.hooks.beforeError)o=await e(o);throw o}if(n._options.onDownloadProgress){if("function"!=typeof n._options.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!a)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return h(e.clone(),n._options.onDownloadProgress)}return e},s=(n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(t):t()).finally(async()=>{if(!n.request.bodyUsed){var e;await (null==(e=n.request.body)?void 0:e.cancel())}});for(let[e,t]of Object.entries(d))s[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||t);let r=await s;if("json"===e){if(204===r.status||0===(await r.clone().arrayBuffer()).byteLength)return"";if(o.parseJson)return o.parseJson(await r.text())}return r[e]()};return s}constructor(e,o={}){var n,t,r,s,a,c,d,j,f;if(this._retryCount=0,this._input=e,this._options={...o,headers:v(this._input.headers,o.headers),hooks:x({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:R(null!=(t=null!=(n=o.method)?n:this._input.method)?t:"GET"),prefixUrl:String(o.prefixUrl||""),retry:S(o.retry),throwHttpErrors:!1!==o.throwHttpErrors,timeout:null!=(r=o.timeout)?r:1e4,fetch:null!=(s=o.fetch)?s:globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(l){let e=null!=(a=this._options.signal)?a:this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(i&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=null!=(j=null==(c=(d=this._options).stringifyJson)?void 0:c.call(d,this._options.json))?j:JSON.stringify(this._options.json),this._options.headers.set("content-type",null!=(f=this._options.headers.get("content-type"))?f:"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let e="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),o=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);(u&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(o,{...this.request}),this._options)}if(this._options.onUploadProgress){if("function"!=typeof this._options.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!i)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=_(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof s)throw e;if(e instanceof r){var o,n,t,i;if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let r=null!=(t=null!=(n=null!=(o=e.response.headers.get("Retry-After"))?o:e.response.headers.get("RateLimit-Reset"))?n:e.response.headers.get("X-RateLimit-Reset"))?t:e.response.headers.get("X-Rate-Limit-Reset");if(r&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(r);Number.isNaN(e)?e=Date.parse(r)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let o=null!=(i=this._options.retry.maxRetryAfter)?i:e;return e<o?e:o}if(413===e.response.status)throw e}let l=this._options.retry.delay(this._retryCount);return Math.min(this._options.retry.backoffLimit,l)}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(n){let o=Math.min(this._calculateRetryDelay(n),0x7fffffff);if(this._retryCount<1)throw n;for(let e of(await E(o,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:n,retryCount:this._retryCount})===f)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let o=await e(this.request,this._options);if(o instanceof Request){this.request=o;break}if(o instanceof Response)return o}let e=P(this.request,this._options),o=this.request;return(this.request=o.clone(),!1===this._options.timeout)?this._options.fetch(o,e):A(o,e,this.abortController,this._options)}}let q=e=>{let o=(o,n)=>k.create(o,g(e,n));for(let n of c)o[n]=(o,t)=>k.create(o,g(e,t,{method:n}));return o.create=e=>q(g(e)),o.extend=o=>("function"==typeof o&&(o=o(null!=e?e:{})),q(g(e,o))),o.stop=f,o},C=q(),I=[239,187,191],U=e=>async(o,n,t)=>{if(!t.ok||!t.body)return;let r=!1,s=o=>{var n;r||(r=!0,null==(n=e.onCompleted)||n.call(e,o))},i=t.body.getReader(),l=new TextDecoder("utf8"),a=function(e){let o,n,t,r,s,i,l;return a(),{feed:function(a){var u;n=n?n+a:a,o&&(u=n,I.every((e,o)=>u.charCodeAt(o)===e))&&(n=n.slice(I.length)),o=!1;let c=n.length,d=0,j=!1;for(;d<c;){let o;j&&("\n"===n[d]&&++d,j=!1);let a=-1,u=r;for(let e=t;a<0&&e<c;++e)":"===(o=n[e])&&u<0?u=e-d:"\r"===o?(j=!0,a=e-d):"\n"===o&&(a=e-d);if(a<0){t=c-d,r=u;break}t=0,r=-1,function(o,n,t,r){if(0===r){l.length>0&&(e({type:"event",id:s,event:i||void 0,data:l.slice(0,-1)}),l="",s=void 0),i=void 0;return}let a=t<0,u=o.slice(n,n+(a?r:t)),c=0;c=a?r:" "===o[n+t+1]?t+2:t+1;let d=n+c,j=r-c,f=o.slice(d,d+j).toString();if("data"===u)l+=f?"".concat(f,"\n"):"\n";else if("event"===u)i=f;else if("id"!==u||f.includes("\0")){if("retry"===u){let o=parseInt(f,10);Number.isNaN(o)||e({type:"reconnect-interval",value:o})}}else s=f}(n,d,u,a),d+=a+1}d===c?n="":d>0&&(n=n.slice(d))},reset:a};function a(){o=!0,n="",t=0,r=-1,s=void 0,i=void 0,l=""}}(o=>{var n,t,r;if("event"===o.type&&(null==(n=e.onMessage)||n.call(e,o)),"event"===o.type&&o.data)for(let n of(null==(t=e.onEvent)||t.call(e,o),o.data.split("\n")))e.onData(n);else"reconnect-interval"===o.type&&(null==(r=e.onReconnectInterval)||r.call(e,o.value))}),u=()=>{i.read().then(e=>{if(e.done)return void s();a.feed(l.decode(e.value,{stream:!0})),u()}).catch(n=>{var t;if(o.signal.aborted){null==(t=e.onAborted)||t.call(e);return}s(n)})};return u(),t};export{r as HTTPError,s as TimeoutError,C as ky,t as sseHook};
@@ -0,0 +1 @@
1
+ /*! MIT License © Sindre Sorhus */