@feedmepos/mf-payment 1.5.6-dev → 1.5.9-dev

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 (80) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-Cwt13ALm.js → Actions.vue_vue_type_script_setup_true_lang-RxsoXGmj.js} +2 -2
  2. package/dist/{Chargeback-BdT_s3at.js → Chargeback-XvqkgLyP.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CTA026mA.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BOeGeY7m.js} +1 -1
  4. package/dist/{OnboardForm-BsgH4rQ8.js → OnboardForm-B8UmhlIn.js} +5 -5
  5. package/dist/OnboardForm-KcIkwfeo.js +22211 -0
  6. package/dist/OnboardSubmission-BD3dlVhn.js +182 -0
  7. package/dist/{OnboardSubmission-DcFt464S.js → OnboardSubmission-Dsmx8jL-.js} +5 -5
  8. package/dist/{PayoutAccount-D1NqkA8w.js → PayoutAccount-CNWRsjWf.js} +4 -4
  9. package/dist/{PayoutAccount-5spM7Xnv.js → PayoutAccount-brrcSTyD.js} +5 -5
  10. package/dist/{PayoutAccountSetting-BSmvV6yF.js → PayoutAccountSetting-C_sOEhxT.js} +5 -5
  11. package/dist/{Restaurant-DCycaRR7.js → Restaurant-DFj4DxUs.js} +4 -4
  12. package/dist/{RestaurantSetting-D6s1uPMz.js → RestaurantSetting-DtW3agNP.js} +3 -3
  13. package/dist/{Settlement-DHebMBfs.js → Settlement-Ba9VT3_G.js} +3 -3
  14. package/dist/{Settlement-DlplAJW2.js → Settlement-BfBhdISH.js} +3 -3
  15. package/dist/{SettlementTransactions-D1FZ4SvU.js → SettlementTransactions-B201cJ6d.js} +4 -4
  16. package/dist/{SettlementTransactions-BB3jFvdP.js → SettlementTransactions-VXPpphL-.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-BsbxaRKL.js → Status.vue_vue_type_script_setup_true_lang-D8XZZvTw.js} +1 -1
  18. package/dist/{Terminal-DOf20nIw.js → Terminal-CVwd5a9c.js} +5 -5
  19. package/dist/{TerminalSetting-fwdOkBMF.js → TerminalSetting-BP3ZVciy.js} +3 -3
  20. package/dist/{Transaction-DRc7VdWm.js → Transaction-BSqDZOyl.js} +9 -9
  21. package/dist/{Transaction-BojSMumb.js → Transaction-BohAwJv-.js} +6 -6
  22. package/dist/{TransactionOld-CVid_gM_.js → TransactionOld-8HS433e9.js} +6 -6
  23. package/dist/{app-DewutbV3.js → app-Bij2cw9t.js} +1468 -703
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-BnwoyNOf.js → assets-Bfc4qvL9.js} +2 -2
  26. package/dist/{grafana-Bz7xSfdW.js → grafana-D6m7Ncb9.js} +1 -1
  27. package/dist/{index-D68osbqj.js → index-BqR-1lMt.js} +2 -2
  28. package/dist/{index-6TNmNay6.js → index-CJycbvdH.js} +1 -1
  29. package/dist/{index-Dqk3bGgi.js → index-CPRFae6C.js} +1 -1
  30. package/dist/{index-DqW_m_SE.js → index-CRRwtbB3.js} +1 -1
  31. package/dist/{index-Bi2r6bNV.js → index-CbtpnJDK.js} +1 -1
  32. package/dist/{index-DyEaoZ8f.js → index-DbXPVAha.js} +1 -1
  33. package/dist/{index-DaMy_lQ6.js → index-DrBQEK7n.js} +1 -1
  34. package/dist/{index-BcpQUz2-.js → index-ON0bN189.js} +1 -1
  35. package/dist/{index-BGliGchf.js → index-SR7HzFCM.js} +1 -1
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-D6hndvwu.js → index.vue_vue_type_script_setup_true_lang-ikp60oFB.js} +1 -1
  37. package/dist/package.json +2 -2
  38. package/dist/{payout-account-BTAtskf1.js → payout-account-DH7-4GB9.js} +3 -3
  39. package/dist/{softspace-25X2bjBx.js → softspace-D9cEyOQT.js} +1 -1
  40. package/dist/stores/payoutAccount.d.ts +24 -24
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
  43. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +24 -24
  44. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +28 -28
  45. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +28 -28
  46. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +24 -24
  47. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +24 -24
  48. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +28 -28
  49. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  50. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  51. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  52. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  53. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  54. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  55. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +10 -10
  56. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +10 -10
  57. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +10 -10
  58. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +10 -10
  59. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +10 -10
  60. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +10 -10
  61. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +10 -10
  62. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +10 -10
  63. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +10 -10
  64. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +10 -10
  65. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +10 -10
  66. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +10 -10
  67. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +10 -10
  68. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +10 -10
  69. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +10 -10
  70. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +10 -10
  71. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +10 -10
  72. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +10 -10
  73. package/dist/views/onboard-submission/cell/SignatureBoardV2.vue.d.ts +13 -0
  74. package/dist/views/onboard-submission/form/NTTSubmission.vue.d.ts +5 -0
  75. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +48 -48
  76. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +40 -40
  77. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +20 -20
  78. package/package.json +2 -2
  79. package/dist/OnboardForm-BGM0rOan.js +0 -839
  80. package/dist/OnboardSubmission-DrWzegfK.js +0 -173
@@ -1,9 +1,9 @@
1
- import { FmApp as Nn, routes as Ln, i18nMessages as Mn } from "@feedmepos/mf-financing";
2
- import { createRouter as Un, createWebHistory as xn, useRouter as Fn, useRoute as Bn } from "vue-router";
3
- import { computed as Nt, watch as q, defineComponent as Lt, ref as $n, resolveComponent as Mt, openBlock as Ut, createBlock as xt, h as Hn, onMounted as Vn, onBeforeMount as jn, unref as Wn } from "vue";
4
- import { useCoreStore as je, useI18n as zn } from "@feedmepos/mf-common";
5
- import { defineStore as Gn } from "pinia";
6
- import { components as qn } from "@feedmepos/ui-library";
1
+ import { FmApp as Dn, routes as Ln, i18nMessages as Mn } from "@feedmepos/mf-financing";
2
+ import { createRouter as Bn, createWebHistory as Un, useRouter as xn, useRoute as Fn } from "vue-router";
3
+ import { computed as Dt, watch as G, defineComponent as Lt, ref as Hn, resolveComponent as Mt, openBlock as Bt, createBlock as Ut, h as qn, onMounted as $n, onBeforeMount as Vn, unref as jn } from "vue";
4
+ import { useCoreStore as Ve, useI18n as Wn } from "@feedmepos/mf-common";
5
+ import { defineStore as zn } from "pinia";
6
+ import { components as Gn } from "@feedmepos/ui-library";
7
7
  const Kn = {
8
8
  components: {
9
9
  select: "Select filter entity",
@@ -177,11 +177,578 @@ const Kn = {
177
177
  description: "Enable SoftPOS and QR payments for in-store transactions.",
178
178
  service1: "DuitNow QR Payment",
179
179
  service2: "SoftPOS Card Payment"
180
+ },
181
+ ntt: {
182
+ name: "NTT Data Digital Payments",
183
+ description: "Enable Card & QR payments for in-store transactions.",
184
+ form: {
185
+ title: "NTT Data Digital Payments Merchant Application Form",
186
+ description: "The Merchant Application Form is for Thailand merchants to apply for NTT payment gateway services. Please complete all required fields and upload the necessary documents to proceed with your application.",
187
+ step: {
188
+ outlet: {
189
+ title: "Outlet Information",
190
+ description: "Enter your outlet details."
191
+ },
192
+ payout: {
193
+ title: "Payout Information",
194
+ description: "Enter your payout details."
195
+ },
196
+ document: {
197
+ title: "Legal Documents",
198
+ description: "Upload your legal documents."
199
+ },
200
+ declaration: {
201
+ title: "Declaration",
202
+ description: "Accept Terms & Conditions."
203
+ }
204
+ },
205
+ field: {
206
+ companyName: {
207
+ label: "Company Name",
208
+ placeholder: "Enter company name"
209
+ },
210
+ outletName: {
211
+ label: "Outlet Name",
212
+ placeholder: "Enter outlet name"
213
+ },
214
+ outletNameEnglish: {
215
+ label: "Outlet Name (English)",
216
+ placeholder: "Enter outlet name in English"
217
+ },
218
+ outletAddress: {
219
+ label: "Outlet Address",
220
+ placeholder: "Enter outlet address"
221
+ },
222
+ outletPostCode: {
223
+ label: "Postal Code",
224
+ placeholder: "Enter postal code"
225
+ },
226
+ outletState: {
227
+ label: "Province",
228
+ placeholder: "Enter province"
229
+ },
230
+ outletCity: {
231
+ label: "District",
232
+ placeholder: "Enter district"
233
+ },
234
+ businessType: {
235
+ label: "Business Type",
236
+ placeholder: "Select business type",
237
+ option: {
238
+ individual: "Individual",
239
+ juristic: "Juristic"
240
+ }
241
+ },
242
+ numberOfDevices: {
243
+ label: "Number of Devices",
244
+ placeholder: "Enter number of devices"
245
+ },
246
+ bankName: {
247
+ label: "Bank",
248
+ placeholder: "Select bank type"
249
+ },
250
+ bankHolderName: {
251
+ label: "Beneficiary Name",
252
+ placeholder: "Enter Beneficiary Name"
253
+ },
254
+ bankAccountNo: {
255
+ label: "Account Number",
256
+ placeholder: "Enter Account Number"
257
+ },
258
+ bankBranch: {
259
+ label: "Bank Branch",
260
+ placeholder: "Enter bank branch"
261
+ },
262
+ bankBranchCode: {
263
+ label: "Bank Branch Code",
264
+ placeholder: "Enter bank branch code"
265
+ },
266
+ picName: {
267
+ label: "PIC Name",
268
+ placeholder: "Enter your name"
269
+ },
270
+ picRole: {
271
+ label: "PIC Role",
272
+ placeholder: "Enter your role"
273
+ },
274
+ picEmail: {
275
+ label: "PIC Email",
276
+ placeholder: "Enter your email address"
277
+ },
278
+ picContact: {
279
+ label: "PIC Contact"
280
+ },
281
+ signature: {
282
+ label: "Signature"
283
+ },
284
+ witnessName: {
285
+ label: "Witness Name",
286
+ placeholder: "Enter witness name"
287
+ },
288
+ witnessRole: {
289
+ label: "Witness Role",
290
+ placeholder: "Enter witness role"
291
+ },
292
+ witnessSignature: {
293
+ label: "Witness Signature"
294
+ }
295
+ },
296
+ document: {
297
+ authorizedPersonID: "Authorized Person ID",
298
+ outletPhoto: "Outlet Photo",
299
+ interiorPhoto: "Interior Photo",
300
+ bankStatement: "Latest Bank Statement",
301
+ companyCertificate: "Company Certificate",
302
+ vatCertificate: "VAT Certificate",
303
+ commercialCertificate: "Commercial Certificate",
304
+ companyStamp: "Company Stamp"
305
+ },
306
+ sample: {
307
+ id: "Sample ID",
308
+ exterior: "Sample Exterior Photo"
309
+ },
310
+ bankOption: {
311
+ bangkokBank: "Bangkok Bank",
312
+ kasikornbank: "Kasikornbank (KBank)",
313
+ krungThaiBank: "Krung Thai Bank (KTB)",
314
+ tmbThanachartBank: "TMBThanachart Bank (TTB)",
315
+ siamCommercialBank: "Siam Commercial Bank (SCB)",
316
+ standardCharteredBank: "Standard Chartered Bank (Thai)",
317
+ cimbThaiBank: "CIMB Thai Bank",
318
+ unitedOverseasBank: "United Overseas Bank (UOB)",
319
+ bankOfAyudhya: "Bank of Ayudhya (Krungsri)",
320
+ governmentSavingsBank: "Government Savings Bank (GSB)",
321
+ hsbcThaiBranch: "HSBC (Thai Branch)",
322
+ governmentHousingBank: "Government Housing Bank (GHB)",
323
+ bankForAgriculture: "Bank for Agriculture (BAAC)",
324
+ mizuhoBank: "Mizuho Bank",
325
+ kiatnakinPhatraBank: "Kiatnakin Phatra Bank",
326
+ icbcThai: "ICBC (Thai)",
327
+ landAndHousesBank: "Land and Houses Bank (LH Bank)",
328
+ bankOfChinaThai: "Bank of China (Thai)"
329
+ },
330
+ terms: {
331
+ title: "NTT Terms & Conditions",
332
+ agree: "I/We have read and agree to the Terms & Conditions"
333
+ },
334
+ validation: {
335
+ companyNameRequired: "Company Name is required",
336
+ outletNameRequired: "Outlet Name is required",
337
+ outletNameEnglishRequired: "Outlet Name (English) is required",
338
+ outletAddressRequired: "Address is required",
339
+ outletPostCodeRequired: "Postal Code is required",
340
+ outletStateRequired: "Province is required",
341
+ outletCityRequired: "District is required",
342
+ businessTypeRequired: "Business Type is required",
343
+ numberOfDevicesRequired: "Number of Devices is required",
344
+ bankNameRequired: "Bank Type is required",
345
+ bankHolderNameRequired: "Beneficiary Name is required",
346
+ bankAccountNoRequired: "Account Number is required",
347
+ bankBranchRequired: "Bank Branch is required",
348
+ bankBranchCodeRequired: "Bank Branch Code is required",
349
+ picNameRequired: "PIC Name is required",
350
+ picRoleRequired: "PIC Role is required",
351
+ picEmailRequired: "PIC Email is required",
352
+ picEmailInvalid: "Please enter a valid PIC Email",
353
+ picContactRequired: "PIC Contact is required",
354
+ witnessNameRequired: "Witness Name is required",
355
+ witnessRoleRequired: "Witness Role is required",
356
+ signatureRequired: "Signature is required",
357
+ witnessSignatureRequired: "Witness Signature is required"
358
+ },
359
+ wht: {
360
+ title: "Download Withholding Tax Form",
361
+ description: "Please mail the completed form to NTT Data Digital Payments physically.",
362
+ download: "Download PDF",
363
+ close: "Close"
364
+ },
365
+ action: {
366
+ next: "Next",
367
+ submit: "Submit"
368
+ },
369
+ toast: {
370
+ selectRestaurant: "Please select a restaurant before proceeding.",
371
+ updateSuccess: "Submission updated successfully.",
372
+ updateFailed: "Failed to update submission."
373
+ }
374
+ }
180
375
  }
181
376
  }
182
377
  }, Jn = {
183
378
  payment: Kn
184
379
  }, Yn = {
380
+ components: {
381
+ select: "เลือกตัวกรอง",
382
+ restaurant: "ร้านอาหาร",
383
+ device: "อุปกรณ์",
384
+ payout_account: "บัญชีรับเงิน"
385
+ },
386
+ routes: {
387
+ onboard_submission: "การเปิดใช้งานระบบชำระเงิน",
388
+ payout_account: "บัญชีรับเงิน",
389
+ transaction: "ธุรกรรม",
390
+ "transaction-new": "ธุรกรรม",
391
+ settlement: "การโอนเงินเข้าบัญชี"
392
+ },
393
+ settlements: {
394
+ title: "การโอนเงินเข้าบัญชี",
395
+ description: "การโอนเงินเข้าบัญชีคือขั้นตอนสรุปผลธุรกรรมทางการเงิน โดยโอนเงินเพื่อให้การชำระเงินเสร็จสมบูรณ์",
396
+ export: "ส่งออก",
397
+ table: {
398
+ id: "รหัสการโอนเงิน",
399
+ bank: "ธนาคาร",
400
+ account: "เลขที่บัญชี",
401
+ created_at: "วันที่สร้าง",
402
+ sales_amount: "ยอดขาย",
403
+ fee: "ค่าธรรมเนียม",
404
+ settlement_amount: "ยอดโอนเงิน"
405
+ },
406
+ dialog: {
407
+ title: "ธุรกรรมการโอนเงินเข้าบัญชี",
408
+ date: "วันที่",
409
+ search: "ค้นหาธุรกรรม ...",
410
+ info: {
411
+ transaction: {
412
+ title: "ข้อมูลธุรกรรม",
413
+ for: "สำหรับ",
414
+ reference: "อ้างอิง",
415
+ count: "จำนวนธุรกรรม"
416
+ },
417
+ bank: {
418
+ title: "ข้อมูลธนาคาร",
419
+ for: "ธนาคาร",
420
+ name: "ชื่อ",
421
+ number: "เลขที่"
422
+ },
423
+ payout: {
424
+ title: "ข้อมูลการรับเงิน",
425
+ amount: "จำนวนเงิน",
426
+ fee: "ค่าธรรมเนียม",
427
+ payout: "ยอดโอน"
428
+ }
429
+ },
430
+ fiuu: {
431
+ id: "รหัสธุรกรรม",
432
+ type: "ประเภท",
433
+ transaction_at: "เวลาธุรกรรม",
434
+ sales_amount: "ยอดขาย",
435
+ fee: "ค่าธรรมเนียม",
436
+ settlement_amount: "ยอดโอนเงิน"
437
+ },
438
+ feedme: {
439
+ id: "รหัสธุรกรรม",
440
+ pay_id: "รหัสการชำระเงิน",
441
+ gateway: "เกตเวย์",
442
+ method: "วิธีการชำระเงิน",
443
+ status: "สถานะ",
444
+ type: "ประเภท",
445
+ payFor: "สำหรับ",
446
+ transaction_at: "เวลาธุรกรรม",
447
+ sales_amount: "ยอดขาย",
448
+ fee: "ค่าธรรมเนียม",
449
+ settlement_amount: "ยอดโอนเงิน"
450
+ }
451
+ }
452
+ },
453
+ transactions: {
454
+ title: "ธุรกรรม",
455
+ description: "ธุรกรรมคือการซื้อหรือชำระเงินผ่านอินเทอร์เน็ตด้วยวิธีอิเล็กทรอนิกส์ เช่น บัตรหรือกระเป๋าเงินดิจิทัล",
456
+ restaurant: "ร้านอาหาร",
457
+ status: "สถานะ",
458
+ search: {
459
+ title: "ค้นหา",
460
+ placeholder: "ค้นหาธุรกรรม ..."
461
+ },
462
+ button: {
463
+ export: "ส่งออก"
464
+ },
465
+ table: {
466
+ id: "รหัสธุรกรรม",
467
+ pay_id: "รหัสการชำระเงิน",
468
+ gateway_id: "รหัสเกตเวย์",
469
+ bill_seq: "ลำดับบิล",
470
+ gateway: "เกตเวย์",
471
+ method: "วิธีการชำระเงิน",
472
+ type: "ประเภท",
473
+ status: "สถานะ",
474
+ source: "แหล่งที่มา",
475
+ restaurant: "ร้านอาหาร",
476
+ transaction_at: "เวลาธุรกรรม",
477
+ sales_amount: "ยอดขาย",
478
+ actions: "การดำเนินการ"
479
+ }
480
+ },
481
+ payout_account: {
482
+ title: "บัญชีรับเงิน",
483
+ description: "บัญชีรับเงินคือบัญชีที่ใช้รับการชำระเงินหรือเงินโอน เช่น รายได้หรือเงินคืน โดยมักเชื่อมโยงกับธนาคาร",
484
+ button: {
485
+ apply: "สมัคร"
486
+ },
487
+ table: {
488
+ type: "ประเภท",
489
+ name: "ชื่อ",
490
+ status: "สถานะ",
491
+ active: "ใช้งานอยู่?",
492
+ bank: "รายละเอียดธนาคาร",
493
+ pic: "ผู้รับผิดชอบ (PIC)"
494
+ },
495
+ dialog: {
496
+ view_title: " ดูบัญชีรับเงิน",
497
+ title: "สมัครบัญชีรับเงิน",
498
+ button: {
499
+ remove: "ลบ",
500
+ submit: "ส่ง"
501
+ },
502
+ fields: {
503
+ type: "ประเภท",
504
+ for: "สำหรับ",
505
+ for_placeholder: "เลือกร้านค้า",
506
+ name: "ชื่อ",
507
+ phone: "เบอร์โทรศัพท์",
508
+ email: "อีเมล",
509
+ bank: "ธนาคาร",
510
+ bank_type: "ประเภท",
511
+ bank_account: "เลขที่บัญชี",
512
+ bank_holder: "ชื่อเจ้าของบัญชี"
513
+ },
514
+ document: {
515
+ ssm: "ใบรับรอง SSM (แบบฟอร์ม D)",
516
+ bank: "รายการเดินบัญชีพร้อมชื่อเจ้าของบัญชี",
517
+ exterior: "รูปภายนอกร้าน"
518
+ },
519
+ section: {
520
+ account: "บัญชี",
521
+ bank: "ข้อมูลธนาคาร",
522
+ pic: "ผู้ประสานงานหลัก",
523
+ document: "เอกสารทางกฎหมาย"
524
+ }
525
+ }
526
+ },
527
+ "onboard-submission": {
528
+ title: "การเปิดใช้งานระบบชำระเงิน",
529
+ description: "ส่งและติดตามเอกสารที่จำเป็นสำหรับการเปิดใช้งานระบบชำระเงิน",
530
+ ready: {
531
+ line1: "บัญชีร้านค้าของคุณเปิดใช้งานเรียบร้อยแล้ว!",
532
+ line2: "หากคุณมีคำถาม กรุณาติดต่อทีมงานของเรา",
533
+ status: "พร้อมใช้งาน"
534
+ },
535
+ approval: {
536
+ line1: "กรุณารอสองสามวันเพื่อดำเนินการ",
537
+ line2: "หากมีปัญหา ทีมงานของเราจะติดต่อคุณ",
538
+ status: "กำลังดำเนินการ"
539
+ },
540
+ review: {
541
+ line1: "กรุณารอสองสามวันเพื่อการตรวจสอบ",
542
+ line2: "หากมีปัญหา ทีมงานของเราจะติดต่อคุณ",
543
+ status: "กำลังตรวจสอบ"
544
+ },
545
+ edit: "แก้ไขคำขอ",
546
+ apply: "สมัคร",
547
+ note: "หมายเหตุการตรวจสอบ",
548
+ softspace: {
549
+ description: "เปิดใช้งาน SoftPOS และการชำระเงินด้วย QR สำหรับธุรกรรมหน้าร้าน",
550
+ service1: "ชำระเงินผ่าน QR DuitNow",
551
+ service2: "ชำระเงินด้วยบัตรผ่าน SoftPOS"
552
+ },
553
+ ntt: {
554
+ name: "เอ็นทีที เดต้า ดิจิทัล เพย์เม้นท์ส",
555
+ description: "เปิดใช้งานการชำระเงินด้วยบัตรและ QR สำหรับธุรกรรมหน้าร้าน",
556
+ form: {
557
+ title: "แบบฟอร์มสมัครใช้บริการ เอ็นทีที เดต้า ดิจิทัล เพย์เม้นท์ส สำหรับร้านค้า",
558
+ description: "แบบฟอร์มนี้สำหรับร้านค้าในประเทศไทยเพื่อสมัครใช้งานบริการเกตเวย์ชำระเงินของ เอ็นทีที เดต้า ดิจิทัล เพย์เม้นท์ส กรุณากรอกข้อมูลที่จำเป็นให้ครบถ้วนและอัปโหลดเอกสารที่กำหนดเพื่อดำเนินการสมัคร",
559
+ step: {
560
+ outlet: {
561
+ title: "ข้อมูลสาขา",
562
+ description: "กรอกรายละเอียดสาขาของคุณ"
563
+ },
564
+ payout: {
565
+ title: "ข้อมูลการรับเงิน",
566
+ description: "กรอกรายละเอียดการรับเงิน"
567
+ },
568
+ document: {
569
+ title: "เอกสารทางกฎหมาย",
570
+ description: "อัปโหลดเอกสารทางกฎหมายของคุณ"
571
+ },
572
+ declaration: {
573
+ title: "คำยืนยัน",
574
+ description: "ยอมรับข้อกำหนดและเงื่อนไข"
575
+ }
576
+ },
577
+ field: {
578
+ companyName: {
579
+ label: "ชื่อบริษัท",
580
+ placeholder: "กรอกชื่อบริษัท"
581
+ },
582
+ outletName: {
583
+ label: "ชื่อสาขา",
584
+ placeholder: "กรอกชื่อสาขา"
585
+ },
586
+ outletNameEnglish: {
587
+ label: "ชื่อสาขา (ภาษาอังกฤษ)",
588
+ placeholder: "กรอกชื่อสาขาภาษาอังกฤษ"
589
+ },
590
+ outletAddress: {
591
+ label: "ที่อยู่สาขา",
592
+ placeholder: "กรอกที่อยู่สาขา"
593
+ },
594
+ outletPostCode: {
595
+ label: "รหัสไปรษณีย์",
596
+ placeholder: "กรอกรหัสไปรษณีย์"
597
+ },
598
+ outletState: {
599
+ label: "จังหวัด",
600
+ placeholder: "กรอกจังหวัด"
601
+ },
602
+ outletCity: {
603
+ label: "เขต/อำเภอ",
604
+ placeholder: "กรอกเขต/อำเภอ"
605
+ },
606
+ businessType: {
607
+ label: "ประเภทธุรกิจ",
608
+ placeholder: "เลือกประเภทธุรกิจ",
609
+ option: {
610
+ individual: "บุคคลธรรมดา",
611
+ juristic: "นิติบุคคล"
612
+ }
613
+ },
614
+ numberOfDevices: {
615
+ label: "จำนวนอุปกรณ์",
616
+ placeholder: "กรอกจำนวนอุปกรณ์"
617
+ },
618
+ bankName: {
619
+ label: "ธนาคาร",
620
+ placeholder: "เลือกประเภทธนาคาร"
621
+ },
622
+ bankHolderName: {
623
+ label: "ชื่อผู้รับเงิน",
624
+ placeholder: "กรอกชื่อผู้รับเงิน"
625
+ },
626
+ bankAccountNo: {
627
+ label: "เลขที่บัญชี",
628
+ placeholder: "กรอกเลขที่บัญชี"
629
+ },
630
+ bankBranch: {
631
+ label: "สาขาธนาคาร",
632
+ placeholder: "กรอกสาขาธนาคาร"
633
+ },
634
+ bankBranchCode: {
635
+ label: "รหัสสาขาธนาคาร",
636
+ placeholder: "กรอกรหัสสาขาธนาคาร"
637
+ },
638
+ picName: {
639
+ label: "ชื่อผู้ประสานงาน",
640
+ placeholder: "กรอกชื่อของคุณ"
641
+ },
642
+ picRole: {
643
+ label: "ตำแหน่งผู้ประสานงาน",
644
+ placeholder: "กรอกตำแหน่งของคุณ"
645
+ },
646
+ picEmail: {
647
+ label: "อีเมลผู้ประสานงาน",
648
+ placeholder: "กรอกอีเมลของคุณ"
649
+ },
650
+ picContact: {
651
+ label: "เบอร์ติดต่อผู้ประสานงาน"
652
+ },
653
+ signature: {
654
+ label: "ลายเซ็น"
655
+ },
656
+ witnessName: {
657
+ label: "ชื่อพยาน",
658
+ placeholder: "กรอกชื่อพยาน"
659
+ },
660
+ witnessRole: {
661
+ label: "ตำแหน่งพยาน",
662
+ placeholder: "กรอกตำแหน่งพยาน"
663
+ },
664
+ witnessSignature: {
665
+ label: "ลายเซ็นพยาน"
666
+ }
667
+ },
668
+ document: {
669
+ authorizedPersonID: "บัตรประชาชนผู้มีอำนาจลงนาม",
670
+ outletPhoto: "รูปหน้าร้าน",
671
+ interiorPhoto: "รูปภายในร้าน",
672
+ bankStatement: "รายการเดินบัญชีย้อนหลังล่าสุด",
673
+ companyCertificate: "หนังสือรับรองบริษัท",
674
+ vatCertificate: "ใบทะเบียนภาษีมูลค่าเพิ่ม (VAT)",
675
+ commercialCertificate: "ทะเบียนพาณิชย์",
676
+ companyStamp: "ตราประทับบริษัท"
677
+ },
678
+ sample: {
679
+ id: "ตัวอย่างบัตรประชาชน",
680
+ exterior: "ตัวอย่างรูปหน้าร้าน"
681
+ },
682
+ bankOption: {
683
+ bangkokBank: "ธนาคารกรุงเทพ",
684
+ kasikornbank: "ธนาคารกสิกรไทย (KBank)",
685
+ krungThaiBank: "ธนาคารกรุงไทย (KTB)",
686
+ tmbThanachartBank: "ธนาคารทีเอ็มบีธนชาต (TTB)",
687
+ siamCommercialBank: "ธนาคารไทยพาณิชย์ (SCB)",
688
+ standardCharteredBank: "ธนาคารสแตนดาร์ดชาร์เตอร์ด",
689
+ cimbThaiBank: "ธนาคารซีไอเอ็มบีไทย",
690
+ unitedOverseasBank: "ธนาคารยูโอบี (UOB)",
691
+ bankOfAyudhya: "ธนาคารกรุงศรีอยุธยา (Krungsri)",
692
+ governmentSavingsBank: "ธนาคารออมสิน (GSB)",
693
+ hsbcThaiBranch: "ธนาคารฮ่องกงและเซี่ยงไฮ้ฯ",
694
+ governmentHousingBank: "ธนาคารอาคารสงเคราะห์ (GHB)",
695
+ bankForAgriculture: "ธนาคารเพื่อการเกษตรและสหกรณ์ฯ (BAAC)",
696
+ mizuhoBank: "ธนาคารมิซูโฮ",
697
+ kiatnakinPhatraBank: "ธนาคารเกียรตินาคินภัทร",
698
+ icbcThai: "ธนาคารไอซีบีซี",
699
+ landAndHousesBank: "ธนาคารแลนด์ แอนด์ เฮ้าส์ (LH Bank)",
700
+ bankOfChinaThai: "ธนาคารแห่งประเทศจีน"
701
+ },
702
+ terms: {
703
+ title: "ข้อกำหนดและเงื่อนไขของ เอ็นทีที เดต้า ดิจิทัล เพย์เม้นท์ส",
704
+ agree: "ข้าพเจ้า/พวกเราขอยืนยันว่าได้อ่านและยอมรับข้อกำหนดและเงื่อนไข"
705
+ },
706
+ validation: {
707
+ companyNameRequired: "กรุณากรอกชื่อบริษัท",
708
+ outletNameRequired: "กรุณากรอกชื่อสาขา",
709
+ outletNameEnglishRequired: "กรุณากรอกชื่อสาขา (ภาษาอังกฤษ)",
710
+ outletAddressRequired: "กรุณากรอกที่อยู่",
711
+ outletPostCodeRequired: "กรุณากรอกรหัสไปรษณีย์",
712
+ outletStateRequired: "กรุณากรอกจังหวัด",
713
+ outletCityRequired: "กรุณากรอกเขต/อำเภอ",
714
+ businessTypeRequired: "กรุณาเลือกประเภทธุรกิจ",
715
+ numberOfDevicesRequired: "กรุณากรอกจำนวนอุปกรณ์",
716
+ bankNameRequired: "กรุณาเลือกธนาคาร",
717
+ bankHolderNameRequired: "กรุณากรอกชื่อผู้รับเงิน",
718
+ bankAccountNoRequired: "กรุณากรอกเลขที่บัญชี",
719
+ bankBranchRequired: "กรุณากรอกสาขาธนาคาร",
720
+ bankBranchCodeRequired: "กรุณากรอกรหัสสาขาธนาคาร",
721
+ picNameRequired: "กรุณากรอกชื่อผู้ประสานงาน",
722
+ picRoleRequired: "กรุณากรอกตำแหน่งผู้ประสานงาน",
723
+ picEmailRequired: "กรุณากรอกอีเมลผู้ประสานงาน",
724
+ picEmailInvalid: "กรุณากรอกอีเมลผู้ประสานงานให้ถูกต้อง",
725
+ picContactRequired: "กรุณากรอกเบอร์ติดต่อผู้ประสานงาน",
726
+ witnessNameRequired: "กรุณากรอกชื่อพยาน",
727
+ witnessRoleRequired: "กรุณากรอกตำแหน่งพยาน",
728
+ signatureRequired: "กรุณาลงลายเซ็น",
729
+ witnessSignatureRequired: "กรุณาลงลายเซ็นพยาน"
730
+ },
731
+ wht: {
732
+ title: "ดาวน์โหลดแบบฟอร์มหักภาษี ณ ที่จ่าย",
733
+ description: "กรุณาจัดส่งแบบฟอร์มที่กรอกครบถ้วนแล้วทางไปรษณีย์ถึง เอ็นทีที เดต้า ดิจิทัล เพย์เม้นท์ส",
734
+ download: "ดาวน์โหลด PDF",
735
+ close: "ปิด"
736
+ },
737
+ action: {
738
+ next: "ถัดไป",
739
+ submit: "ส่ง"
740
+ },
741
+ toast: {
742
+ selectRestaurant: "กรุณาเลือกร้านอาหารก่อนดำเนินการ",
743
+ updateSuccess: "อัปเดตคำขอเรียบร้อยแล้ว",
744
+ updateFailed: "อัปเดตคำขอไม่สำเร็จ"
745
+ }
746
+ }
747
+ }
748
+ }
749
+ }, Xn = {
750
+ payment: Yn
751
+ }, Qn = {
185
752
  components: {
186
753
  select: "选择筛选对象",
187
754
  restaurant: "餐厅",
@@ -354,10 +921,205 @@ const Kn = {
354
921
  description: "启用 SoftPOS 和二维码支付用于店内交易。",
355
922
  service1: "DuitNow扫码支付",
356
923
  service2: "SoftPOS银行卡支付"
924
+ },
925
+ ntt: {
926
+ name: "NTT Data 数字支付",
927
+ description: "启用店内银行卡和二维码支付。",
928
+ form: {
929
+ title: "NTT Data 数字支付商户申请表",
930
+ description: "此申请表适用于泰国商户申请 NTT 支付网关服务。请填写所有必填项并上传所需文件以继续申请。",
931
+ step: {
932
+ outlet: {
933
+ title: "门店信息",
934
+ description: "填写门店详细资料。"
935
+ },
936
+ payout: {
937
+ title: "收款信息",
938
+ description: "填写收款账户资料。"
939
+ },
940
+ document: {
941
+ title: "法律文件",
942
+ description: "上传所需法律文件。"
943
+ },
944
+ declaration: {
945
+ title: "声明",
946
+ description: "同意条款与条件。"
947
+ }
948
+ },
949
+ field: {
950
+ companyName: {
951
+ label: "公司名称",
952
+ placeholder: "请输入公司名称"
953
+ },
954
+ outletName: {
955
+ label: "门店名称",
956
+ placeholder: "请输入门店名称"
957
+ },
958
+ outletNameEnglish: {
959
+ label: "门店名称(英文)",
960
+ placeholder: "请输入英文门店名称"
961
+ },
962
+ outletAddress: {
963
+ label: "门店地址",
964
+ placeholder: "请输入门店地址"
965
+ },
966
+ outletPostCode: {
967
+ label: "邮政编码",
968
+ placeholder: "请输入邮政编码"
969
+ },
970
+ outletState: {
971
+ label: "省份",
972
+ placeholder: "请输入省份"
973
+ },
974
+ outletCity: {
975
+ label: "区县",
976
+ placeholder: "请输入区县"
977
+ },
978
+ businessType: {
979
+ label: "业务类型",
980
+ placeholder: "请选择业务类型",
981
+ option: {
982
+ individual: "个人",
983
+ juristic: "企业"
984
+ }
985
+ },
986
+ numberOfDevices: {
987
+ label: "设备数量",
988
+ placeholder: "请输入设备数量"
989
+ },
990
+ bankName: {
991
+ label: "银行",
992
+ placeholder: "请选择银行类型"
993
+ },
994
+ bankHolderName: {
995
+ label: "收款人姓名",
996
+ placeholder: "请输入收款人姓名"
997
+ },
998
+ bankAccountNo: {
999
+ label: "账号",
1000
+ placeholder: "请输入账号"
1001
+ },
1002
+ bankBranch: {
1003
+ label: "银行分行",
1004
+ placeholder: "请输入银行分行"
1005
+ },
1006
+ bankBranchCode: {
1007
+ label: "分行代码",
1008
+ placeholder: "请输入分行代码"
1009
+ },
1010
+ picName: {
1011
+ label: "负责人姓名",
1012
+ placeholder: "请输入姓名"
1013
+ },
1014
+ picRole: {
1015
+ label: "负责人职位",
1016
+ placeholder: "请输入职位"
1017
+ },
1018
+ picEmail: {
1019
+ label: "负责人邮箱",
1020
+ placeholder: "请输入邮箱地址"
1021
+ },
1022
+ picContact: {
1023
+ label: "负责人联系方式"
1024
+ },
1025
+ signature: {
1026
+ label: "签名"
1027
+ },
1028
+ witnessName: {
1029
+ label: "见证人姓名",
1030
+ placeholder: "请输入见证人姓名"
1031
+ },
1032
+ witnessRole: {
1033
+ label: "见证人职位",
1034
+ placeholder: "请输入见证人职位"
1035
+ },
1036
+ witnessSignature: {
1037
+ label: "见证人签名"
1038
+ }
1039
+ },
1040
+ document: {
1041
+ authorizedPersonID: "授权人身份证",
1042
+ outletPhoto: "门店照片",
1043
+ interiorPhoto: "室内照片",
1044
+ bankStatement: "最新银行对账单",
1045
+ companyCertificate: "公司证书",
1046
+ vatCertificate: "增值税证书",
1047
+ commercialCertificate: "商业登记证",
1048
+ companyStamp: "公司印章"
1049
+ },
1050
+ sample: {
1051
+ id: "示例身份证",
1052
+ exterior: "示例门店外观照片"
1053
+ },
1054
+ bankOption: {
1055
+ bangkokBank: "盘谷银行",
1056
+ kasikornbank: "开泰银行(KBank)",
1057
+ krungThaiBank: "泰京银行(KTB)",
1058
+ tmbThanachartBank: "TMB Thanachart 银行(TTB)",
1059
+ siamCommercialBank: "暹罗商业银行(SCB)",
1060
+ standardCharteredBank: "渣打银行(泰国)",
1061
+ cimbThaiBank: "联昌泰国银行",
1062
+ unitedOverseasBank: "大华银行(UOB)",
1063
+ bankOfAyudhya: "大城银行(Krungsri)",
1064
+ governmentSavingsBank: "政府储蓄银行(GSB)",
1065
+ hsbcThaiBranch: "汇丰银行(泰国分行)",
1066
+ governmentHousingBank: "政府住房银行(GHB)",
1067
+ bankForAgriculture: "农业银行(BAAC)",
1068
+ mizuhoBank: "瑞穗银行",
1069
+ kiatnakinPhatraBank: "Kiatnakin Phatra 银行",
1070
+ icbcThai: "中国工商银行(泰国)",
1071
+ landAndHousesBank: "土地与房屋银行(LH Bank)",
1072
+ bankOfChinaThai: "中国银行(泰国)"
1073
+ },
1074
+ terms: {
1075
+ title: "NTT 条款与条件",
1076
+ agree: "我/我们已阅读并同意条款与条件"
1077
+ },
1078
+ validation: {
1079
+ companyNameRequired: "公司名称为必填项",
1080
+ outletNameRequired: "门店名称为必填项",
1081
+ outletNameEnglishRequired: "门店英文名称为必填项",
1082
+ outletAddressRequired: "地址为必填项",
1083
+ outletPostCodeRequired: "邮政编码为必填项",
1084
+ outletStateRequired: "省份为必填项",
1085
+ outletCityRequired: "区县为必填项",
1086
+ businessTypeRequired: "业务类型为必填项",
1087
+ numberOfDevicesRequired: "设备数量为必填项",
1088
+ bankNameRequired: "银行类型为必填项",
1089
+ bankHolderNameRequired: "收款人姓名为必填项",
1090
+ bankAccountNoRequired: "账号为必填项",
1091
+ bankBranchRequired: "银行分行为必填项",
1092
+ bankBranchCodeRequired: "分行代码为必填项",
1093
+ picNameRequired: "负责人姓名为必填项",
1094
+ picRoleRequired: "负责人职位为必填项",
1095
+ picEmailRequired: "负责人邮箱为必填项",
1096
+ picEmailInvalid: "请输入有效的负责人邮箱",
1097
+ picContactRequired: "负责人联系方式为必填项",
1098
+ witnessNameRequired: "见证人姓名为必填项",
1099
+ witnessRoleRequired: "见证人职位为必填项",
1100
+ signatureRequired: "签名为必填项",
1101
+ witnessSignatureRequired: "见证人签名为必填项"
1102
+ },
1103
+ wht: {
1104
+ title: "下载预提税表格",
1105
+ description: "请将填写完成的表格以纸本邮寄至 NTT Data Digital Payments.",
1106
+ download: "下载 PDF",
1107
+ close: "关闭"
1108
+ },
1109
+ action: {
1110
+ next: "下一步",
1111
+ submit: "提交"
1112
+ },
1113
+ toast: {
1114
+ selectRestaurant: "请先选择一个餐厅后再继续。",
1115
+ updateSuccess: "提交更新成功。",
1116
+ updateFailed: "提交更新失败。"
1117
+ }
1118
+ }
357
1119
  }
358
1120
  }
359
- }, Xn = {
360
- payment: Yn
1121
+ }, Zn = {
1122
+ payment: Qn
361
1123
  }, K = [
362
1124
  {
363
1125
  path: "/admin/restaurants",
@@ -366,7 +1128,7 @@ const Kn = {
366
1128
  sidebarDisplay: "Restaurants",
367
1129
  section: "payment-gateway"
368
1130
  },
369
- component: () => import("./Restaurant-DCycaRR7.js")
1131
+ component: () => import("./Restaurant-DFj4DxUs.js")
370
1132
  },
371
1133
  {
372
1134
  path: "/admin/restaurants/:restaurantId",
@@ -375,7 +1137,7 @@ const Kn = {
375
1137
  meta: {
376
1138
  parent: "mf-payment-admin.restaurant"
377
1139
  },
378
- component: () => import("./RestaurantSetting-D6s1uPMz.js")
1140
+ component: () => import("./RestaurantSetting-DtW3agNP.js")
379
1141
  },
380
1142
  {
381
1143
  path: "/admin/payout-accounts",
@@ -384,7 +1146,7 @@ const Kn = {
384
1146
  sidebarDisplay: "Payout Accounts",
385
1147
  section: "payment-gateway"
386
1148
  },
387
- component: () => import("./PayoutAccount-5spM7Xnv.js")
1149
+ component: () => import("./PayoutAccount-brrcSTyD.js")
388
1150
  },
389
1151
  {
390
1152
  path: "/admin/payout-accounts/:accountId",
@@ -393,7 +1155,7 @@ const Kn = {
393
1155
  meta: {
394
1156
  parent: "mf-payment-admin.payout-account"
395
1157
  },
396
- component: () => import("./PayoutAccountSetting-BSmvV6yF.js")
1158
+ component: () => import("./PayoutAccountSetting-C_sOEhxT.js")
397
1159
  },
398
1160
  {
399
1161
  path: "/admin/onboarding",
@@ -402,7 +1164,7 @@ const Kn = {
402
1164
  sidebarDisplay: "Payment Onboarding",
403
1165
  section: "payment-gateway"
404
1166
  },
405
- component: () => import("./OnboardSubmission-DcFt464S.js")
1167
+ component: () => import("./OnboardSubmission-Dsmx8jL-.js")
406
1168
  },
407
1169
  {
408
1170
  path: "/admin/onboarding/:submissionId",
@@ -411,7 +1173,7 @@ const Kn = {
411
1173
  meta: {
412
1174
  parent: "mf-payment-admin.onboard-submission"
413
1175
  },
414
- component: () => import("./OnboardForm-BsgH4rQ8.js")
1176
+ component: () => import("./OnboardForm-B8UmhlIn.js")
415
1177
  },
416
1178
  {
417
1179
  path: "/admin/terminal/pos",
@@ -420,7 +1182,7 @@ const Kn = {
420
1182
  sidebarDisplay: "POS",
421
1183
  section: "device"
422
1184
  },
423
- component: () => import("./Terminal-DOf20nIw.js"),
1185
+ component: () => import("./Terminal-CVwd5a9c.js"),
424
1186
  props: {
425
1187
  type: "POS"
426
1188
  }
@@ -432,7 +1194,7 @@ const Kn = {
432
1194
  sidebarDisplay: "Kiosks",
433
1195
  section: "device"
434
1196
  },
435
- component: () => import("./Terminal-DOf20nIw.js"),
1197
+ component: () => import("./Terminal-CVwd5a9c.js"),
436
1198
  props: {
437
1199
  type: "KIOSK"
438
1200
  }
@@ -444,7 +1206,7 @@ const Kn = {
444
1206
  sidebarDisplay: "Terminals",
445
1207
  section: "device"
446
1208
  },
447
- component: () => import("./Terminal-DOf20nIw.js"),
1209
+ component: () => import("./Terminal-CVwd5a9c.js"),
448
1210
  props: {
449
1211
  type: "TERMINAL"
450
1212
  }
@@ -456,7 +1218,7 @@ const Kn = {
456
1218
  meta: {
457
1219
  parent: "mf-payment-admin.pos"
458
1220
  },
459
- component: () => import("./TerminalSetting-fwdOkBMF.js")
1221
+ component: () => import("./TerminalSetting-BP3ZVciy.js")
460
1222
  },
461
1223
  {
462
1224
  path: "/admin/terminal/kiosk/:terminalId",
@@ -465,7 +1227,7 @@ const Kn = {
465
1227
  meta: {
466
1228
  parent: "mf-payment-admin.kiosk"
467
1229
  },
468
- component: () => import("./TerminalSetting-fwdOkBMF.js")
1230
+ component: () => import("./TerminalSetting-BP3ZVciy.js")
469
1231
  },
470
1232
  {
471
1233
  path: "/admin/terminal/terminal/:terminalId",
@@ -474,7 +1236,7 @@ const Kn = {
474
1236
  meta: {
475
1237
  parent: "mf-payment-admin.terminal"
476
1238
  },
477
- component: () => import("./TerminalSetting-fwdOkBMF.js")
1239
+ component: () => import("./TerminalSetting-BP3ZVciy.js")
478
1240
  },
479
1241
  {
480
1242
  path: "/admin/transaction",
@@ -482,7 +1244,7 @@ const Kn = {
482
1244
  meta: {
483
1245
  sidebarDisplay: "Transactions"
484
1246
  },
485
- component: () => import("./Transaction-BojSMumb.js")
1247
+ component: () => import("./Transaction-BohAwJv-.js")
486
1248
  },
487
1249
  {
488
1250
  path: "/admin/chargeback",
@@ -490,7 +1252,7 @@ const Kn = {
490
1252
  meta: {
491
1253
  sidebarDisplay: "Chargebacks"
492
1254
  },
493
- component: () => import("./Chargeback-BdT_s3at.js")
1255
+ component: () => import("./Chargeback-XvqkgLyP.js")
494
1256
  },
495
1257
  {
496
1258
  path: "/admin/settlement",
@@ -498,7 +1260,7 @@ const Kn = {
498
1260
  meta: {
499
1261
  sidebarDisplay: "Settlements"
500
1262
  },
501
- component: () => import("./Settlement-DHebMBfs.js")
1263
+ component: () => import("./Settlement-Ba9VT3_G.js")
502
1264
  },
503
1265
  {
504
1266
  path: "/admin/settlement/:settlementId",
@@ -507,7 +1269,7 @@ const Kn = {
507
1269
  meta: {
508
1270
  parent: "mf-payment-admin.settlement"
509
1271
  },
510
- component: () => import("./SettlementTransactions-BB3jFvdP.js")
1272
+ component: () => import("./SettlementTransactions-VXPpphL-.js")
511
1273
  }
512
1274
  ], ue = [
513
1275
  {
@@ -517,7 +1279,7 @@ const Kn = {
517
1279
  {
518
1280
  path: "/payout-account",
519
1281
  name: "mf-payment-payout-account",
520
- component: () => import("./PayoutAccount-D1NqkA8w.js"),
1282
+ component: () => import("./PayoutAccount-CNWRsjWf.js"),
521
1283
  meta: {
522
1284
  sidebarDisplay: "i18n:payment.routes.payout_account"
523
1285
  }
@@ -525,17 +1287,17 @@ const Kn = {
525
1287
  {
526
1288
  path: "/onboard-submission",
527
1289
  name: "mf-payment-onboard-submission",
528
- component: () => import("./OnboardSubmission-DrWzegfK.js"),
1290
+ component: () => import("./OnboardSubmission-BD3dlVhn.js"),
529
1291
  meta: {
530
1292
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
531
- region: { MY: !0 }
1293
+ region: { MY: !0, TH: !0 }
532
1294
  }
533
1295
  },
534
1296
  {
535
1297
  path: "/onboard-submission/:type/:submission?",
536
1298
  name: "mf-payment-onboard-submission-form",
537
1299
  props: !0,
538
- component: () => import("./OnboardForm-BGM0rOan.js"),
1300
+ component: () => import("./OnboardForm-KcIkwfeo.js"),
539
1301
  meta: {
540
1302
  parent: "mf-payment-onboard-submission"
541
1303
  }
@@ -543,7 +1305,7 @@ const Kn = {
543
1305
  {
544
1306
  path: "/transaction-old",
545
1307
  name: "mf-payment-old-transaction",
546
- component: () => import("./TransactionOld-CVid_gM_.js"),
1308
+ component: () => import("./TransactionOld-8HS433e9.js"),
547
1309
  meta: {
548
1310
  sidebarDisplay: "i18n:payment.routes.transaction"
549
1311
  }
@@ -551,7 +1313,7 @@ const Kn = {
551
1313
  {
552
1314
  path: "/transaction",
553
1315
  name: "mf-payment-transaction",
554
- component: () => import("./Transaction-DRc7VdWm.js"),
1316
+ component: () => import("./Transaction-BSqDZOyl.js"),
555
1317
  meta: {
556
1318
  sidebarDisplay: "i18n:payment.routes.transaction-new",
557
1319
  sidebarNew: !0
@@ -560,7 +1322,7 @@ const Kn = {
560
1322
  {
561
1323
  path: "/settlement",
562
1324
  name: "mf-payment-settlement",
563
- component: () => import("./Settlement-DlplAJW2.js"),
1325
+ component: () => import("./Settlement-BfBhdISH.js"),
564
1326
  meta: {
565
1327
  sidebarDisplay: "i18n:payment.routes.settlement"
566
1328
  }
@@ -569,7 +1331,7 @@ const Kn = {
569
1331
  path: "/settlement/:settlementId",
570
1332
  name: "mf-payment-settlement-transaction",
571
1333
  props: !0,
572
- component: () => import("./SettlementTransactions-D1FZ4SvU.js"),
1334
+ component: () => import("./SettlementTransactions-B201cJ6d.js"),
573
1335
  meta: {
574
1336
  parent: "mf-payment-settlement"
575
1337
  }
@@ -577,7 +1339,7 @@ const Kn = {
577
1339
  {
578
1340
  path: "/financing",
579
1341
  name: "mf-payment-financing",
580
- component: Nn,
1342
+ component: Dn,
581
1343
  meta: {
582
1344
  useChildrenRoutes: !0
583
1345
  },
@@ -590,10 +1352,10 @@ const Kn = {
590
1352
  path: `/financing${n.path}`
591
1353
  }))
592
1354
  }
593
- ], Qn = Gn("mf-payment-iframe", () => {
1355
+ ], er = zn("mf-payment-iframe", () => {
594
1356
  const n = {
595
1357
  isIframe: !1
596
- }, e = Nt(() => n);
1358
+ }, e = Dt(() => n);
597
1359
  function t(r) {
598
1360
  n.isIframe = r;
599
1361
  }
@@ -634,7 +1396,7 @@ const Kn = {
634
1396
  * See the License for the specific language governing permissions and
635
1397
  * limitations under the License.
636
1398
  */
637
- const Ft = function(n) {
1399
+ const xt = function(n) {
638
1400
  const e = [];
639
1401
  let t = 0;
640
1402
  for (let r = 0; r < n.length; r++) {
@@ -642,7 +1404,7 @@ const Ft = function(n) {
642
1404
  i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
643
1405
  }
644
1406
  return e;
645
- }, Zn = function(n) {
1407
+ }, tr = function(n) {
646
1408
  const e = [];
647
1409
  let t = 0, r = 0;
648
1410
  for (; t < n.length; ) {
@@ -661,7 +1423,7 @@ const Ft = function(n) {
661
1423
  }
662
1424
  }
663
1425
  return e.join("");
664
- }, Bt = {
1426
+ }, Ft = {
665
1427
  /**
666
1428
  * Maps bytes to characters.
667
1429
  */
@@ -721,8 +1483,8 @@ const Ft = function(n) {
721
1483
  const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
722
1484
  for (let i = 0; i < n.length; i += 3) {
723
1485
  const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0, u = s >> 2, d = (s & 3) << 4 | c >> 4;
724
- let p = (c & 15) << 2 | l >> 6, m = l & 63;
725
- o || (m = 64, a || (p = 64)), r.push(t[u], t[d], t[p], t[m]);
1486
+ let f = (c & 15) << 2 | l >> 6, m = l & 63;
1487
+ o || (m = 64, a || (f = 64)), r.push(t[u], t[d], t[f], t[m]);
726
1488
  }
727
1489
  return r.join("");
728
1490
  },
@@ -735,7 +1497,7 @@ const Ft = function(n) {
735
1497
  * @return The base64 encoded string.
736
1498
  */
737
1499
  encodeString(n, e) {
738
- return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Ft(n), e);
1500
+ return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(xt(n), e);
739
1501
  },
740
1502
  /**
741
1503
  * Base64-decode a string.
@@ -746,7 +1508,7 @@ const Ft = function(n) {
746
1508
  * @return string representing the decoded value.
747
1509
  */
748
1510
  decodeString(n, e) {
749
- return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Zn(this.decodeStringToByteArray(n, e));
1511
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : tr(this.decodeStringToByteArray(n, e));
750
1512
  },
751
1513
  /**
752
1514
  * Base64-decode a string.
@@ -773,13 +1535,13 @@ const Ft = function(n) {
773
1535
  ++i;
774
1536
  const d = i < n.length ? t[n.charAt(i)] : 64;
775
1537
  if (++i, s == null || c == null || l == null || d == null)
776
- throw new er();
777
- const p = s << 2 | c >> 4;
778
- if (r.push(p), l !== 64) {
1538
+ throw new nr();
1539
+ const f = s << 2 | c >> 4;
1540
+ if (r.push(f), l !== 64) {
779
1541
  const m = c << 4 & 240 | l >> 2;
780
1542
  if (r.push(m), d !== 64) {
781
- const F = l << 6 & 192 | d;
782
- r.push(F);
1543
+ const x = l << 6 & 192 | d;
1544
+ r.push(x);
783
1545
  }
784
1546
  }
785
1547
  }
@@ -798,19 +1560,19 @@ const Ft = function(n) {
798
1560
  }
799
1561
  }
800
1562
  };
801
- class er extends Error {
1563
+ class nr extends Error {
802
1564
  constructor() {
803
1565
  super(...arguments), this.name = "DecodeBase64StringError";
804
1566
  }
805
1567
  }
806
- const tr = function(n) {
807
- const e = Ft(n);
808
- return Bt.encodeByteArray(e, !0);
809
- }, $t = function(n) {
810
- return tr(n).replace(/\./g, "");
1568
+ const rr = function(n) {
1569
+ const e = xt(n);
1570
+ return Ft.encodeByteArray(e, !0);
811
1571
  }, Ht = function(n) {
1572
+ return rr(n).replace(/\./g, "");
1573
+ }, qt = function(n) {
812
1574
  try {
813
- return Bt.decodeString(n, !0);
1575
+ return Ft.decodeString(n, !0);
814
1576
  } catch (e) {
815
1577
  console.error("base64Decode failed: ", e);
816
1578
  }
@@ -832,7 +1594,7 @@ const tr = function(n) {
832
1594
  * See the License for the specific language governing permissions and
833
1595
  * limitations under the License.
834
1596
  */
835
- function nr() {
1597
+ function ir() {
836
1598
  if (typeof self < "u")
837
1599
  return self;
838
1600
  if (typeof window < "u")
@@ -857,13 +1619,13 @@ function nr() {
857
1619
  * See the License for the specific language governing permissions and
858
1620
  * limitations under the License.
859
1621
  */
860
- const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
1622
+ const sr = () => ir().__FIREBASE_DEFAULTS__, ar = () => {
861
1623
  if (typeof process > "u" || typeof process.env > "u")
862
1624
  return;
863
1625
  const n = process.env.__FIREBASE_DEFAULTS__;
864
1626
  if (n)
865
1627
  return JSON.parse(n);
866
- }, sr = () => {
1628
+ }, or = () => {
867
1629
  if (typeof document > "u")
868
1630
  return;
869
1631
  let n;
@@ -872,24 +1634,24 @@ const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
872
1634
  } catch {
873
1635
  return;
874
1636
  }
875
- const e = n && Ht(n[1]);
1637
+ const e = n && qt(n[1]);
876
1638
  return e && JSON.parse(e);
877
- }, We = () => {
1639
+ }, je = () => {
878
1640
  try {
879
- return rr() || ir() || sr();
1641
+ return sr() || ar() || or();
880
1642
  } catch (n) {
881
1643
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
882
1644
  return;
883
1645
  }
884
- }, ar = (n) => {
1646
+ }, cr = (n) => {
885
1647
  var e, t;
886
- return (t = (e = We()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
887
- }, Vt = () => {
1648
+ return (t = (e = je()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
1649
+ }, $t = () => {
888
1650
  var n;
889
- return (n = We()) === null || n === void 0 ? void 0 : n.config;
890
- }, jt = (n) => {
1651
+ return (n = je()) === null || n === void 0 ? void 0 : n.config;
1652
+ }, Vt = (n) => {
891
1653
  var e;
892
- return (e = We()) === null || e === void 0 ? void 0 : e[`_${n}`];
1654
+ return (e = je()) === null || e === void 0 ? void 0 : e[`_${n}`];
893
1655
  };
894
1656
  /**
895
1657
  * @license
@@ -907,7 +1669,7 @@ const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
907
1669
  * See the License for the specific language governing permissions and
908
1670
  * limitations under the License.
909
1671
  */
910
- class or {
1672
+ class lr {
911
1673
  constructor() {
912
1674
  this.reject = () => {
913
1675
  }, this.resolve = () => {
@@ -946,33 +1708,33 @@ class or {
946
1708
  function g() {
947
1709
  return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
948
1710
  }
949
- function cr() {
1711
+ function ur() {
950
1712
  return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
951
1713
  // just to deal with this case would probably be a bad idea.
952
1714
  !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g());
953
1715
  }
954
- function lr() {
1716
+ function dr() {
955
1717
  return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
956
1718
  }
957
- function ur() {
1719
+ function hr() {
958
1720
  const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
959
1721
  return typeof n == "object" && n.id !== void 0;
960
1722
  }
961
- function dr() {
1723
+ function pr() {
962
1724
  return typeof navigator == "object" && navigator.product === "ReactNative";
963
1725
  }
964
- function hr() {
1726
+ function fr() {
965
1727
  const n = g();
966
1728
  return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
967
1729
  }
968
- function fr() {
1730
+ function mr() {
969
1731
  try {
970
1732
  return typeof indexedDB == "object";
971
1733
  } catch {
972
1734
  return !1;
973
1735
  }
974
1736
  }
975
- function pr() {
1737
+ function gr() {
976
1738
  return new Promise((n, e) => {
977
1739
  try {
978
1740
  let t = !0;
@@ -1006,10 +1768,10 @@ function pr() {
1006
1768
  * See the License for the specific language governing permissions and
1007
1769
  * limitations under the License.
1008
1770
  */
1009
- const mr = "FirebaseError";
1771
+ const _r = "FirebaseError";
1010
1772
  class L extends Error {
1011
1773
  constructor(e, t, r) {
1012
- super(t), this.code = e, this.customData = r, this.name = mr, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
1774
+ super(t), this.code = e, this.customData = r, this.name = _r, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
1013
1775
  }
1014
1776
  }
1015
1777
  class Z {
@@ -1017,18 +1779,18 @@ class Z {
1017
1779
  this.service = e, this.serviceName = t, this.errors = r;
1018
1780
  }
1019
1781
  create(e, ...t) {
1020
- const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? gr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1782
+ const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? br(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1021
1783
  return new L(i, c, r);
1022
1784
  }
1023
1785
  }
1024
- function gr(n, e) {
1025
- return n.replace(_r, (t, r) => {
1786
+ function br(n, e) {
1787
+ return n.replace(yr, (t, r) => {
1026
1788
  const i = e[r];
1027
1789
  return i != null ? String(i) : `<${r}?>`;
1028
1790
  });
1029
1791
  }
1030
- const _r = /\{\$([^}]+)}/g;
1031
- function yr(n) {
1792
+ const yr = /\{\$([^}]+)}/g;
1793
+ function vr(n) {
1032
1794
  for (const e in n)
1033
1795
  if (Object.prototype.hasOwnProperty.call(n, e))
1034
1796
  return !1;
@@ -1080,11 +1842,11 @@ function ee(n) {
1080
1842
  }) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
1081
1843
  return e.length ? "&" + e.join("&") : "";
1082
1844
  }
1083
- function vr(n, e) {
1084
- const t = new br(n, e);
1845
+ function Ir(n, e) {
1846
+ const t = new wr(n, e);
1085
1847
  return t.subscribe.bind(t);
1086
1848
  }
1087
- class br {
1849
+ class wr {
1088
1850
  /**
1089
1851
  * @param executor Function which can make calls to a single Observer
1090
1852
  * as a proxy.
@@ -1122,7 +1884,7 @@ class br {
1122
1884
  let i;
1123
1885
  if (e === void 0 && t === void 0 && r === void 0)
1124
1886
  throw new Error("Missing Observer.");
1125
- Ir(e, [
1887
+ Tr(e, [
1126
1888
  "next",
1127
1889
  "error",
1128
1890
  "complete"
@@ -1130,7 +1892,7 @@ class br {
1130
1892
  next: e,
1131
1893
  error: t,
1132
1894
  complete: r
1133
- }, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
1895
+ }, i.next === void 0 && (i.next = Se), i.error === void 0 && (i.error = Se), i.complete === void 0 && (i.complete = Se);
1134
1896
  const s = this.unsubscribeOne.bind(this, this.observers.length);
1135
1897
  return this.finalized && this.task.then(() => {
1136
1898
  try {
@@ -1168,7 +1930,7 @@ class br {
1168
1930
  }));
1169
1931
  }
1170
1932
  }
1171
- function Ir(n, e) {
1933
+ function Tr(n, e) {
1172
1934
  if (typeof n != "object" || n === null)
1173
1935
  return !1;
1174
1936
  for (const t of e)
@@ -1176,7 +1938,7 @@ function Ir(n, e) {
1176
1938
  return !0;
1177
1939
  return !1;
1178
1940
  }
1179
- function ke() {
1941
+ function Se() {
1180
1942
  }
1181
1943
  /**
1182
1944
  * @license
@@ -1194,10 +1956,10 @@ function ke() {
1194
1956
  * See the License for the specific language governing permissions and
1195
1957
  * limitations under the License.
1196
1958
  */
1197
- function z(n) {
1959
+ function W(n) {
1198
1960
  return n && n._delegate ? n._delegate : n;
1199
1961
  }
1200
- class W {
1962
+ class j {
1201
1963
  /**
1202
1964
  *
1203
1965
  * @param name The public service name, e.g. app, auth, firestore, database
@@ -1253,7 +2015,7 @@ const M = "[DEFAULT]";
1253
2015
  * See the License for the specific language governing permissions and
1254
2016
  * limitations under the License.
1255
2017
  */
1256
- class wr {
2018
+ class kr {
1257
2019
  constructor(e, t) {
1258
2020
  this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
1259
2021
  }
@@ -1264,7 +2026,7 @@ class wr {
1264
2026
  get(e) {
1265
2027
  const t = this.normalizeInstanceIdentifier(e);
1266
2028
  if (!this.instancesDeferred.has(t)) {
1267
- const r = new or();
2029
+ const r = new lr();
1268
2030
  if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
1269
2031
  try {
1270
2032
  const i = this.getOrInitializeService({
@@ -1304,7 +2066,7 @@ class wr {
1304
2066
  if (this.component)
1305
2067
  throw Error(`Component for ${this.name} has already been provided`);
1306
2068
  if (this.component = e, !!this.shouldAutoInitialize()) {
1307
- if (Tr(e))
2069
+ if (Sr(e))
1308
2070
  try {
1309
2071
  this.getOrInitializeService({ instanceIdentifier: M });
1310
2072
  } catch {
@@ -1410,7 +2172,7 @@ class wr {
1410
2172
  function Er(n) {
1411
2173
  return n === M ? void 0 : n;
1412
2174
  }
1413
- function Tr(n) {
2175
+ function Sr(n) {
1414
2176
  return n.instantiationMode === "EAGER";
1415
2177
  }
1416
2178
  /**
@@ -1429,7 +2191,7 @@ function Tr(n) {
1429
2191
  * See the License for the specific language governing permissions and
1430
2192
  * limitations under the License.
1431
2193
  */
1432
- class Sr {
2194
+ class Rr {
1433
2195
  constructor(e) {
1434
2196
  this.name = e, this.providers = /* @__PURE__ */ new Map();
1435
2197
  }
@@ -1461,7 +2223,7 @@ class Sr {
1461
2223
  getProvider(e) {
1462
2224
  if (this.providers.has(e))
1463
2225
  return this.providers.get(e);
1464
- const t = new wr(e, this);
2226
+ const t = new kr(e, this);
1465
2227
  return this.providers.set(e, t), t;
1466
2228
  }
1467
2229
  getProviders() {
@@ -1484,33 +2246,33 @@ class Sr {
1484
2246
  * See the License for the specific language governing permissions and
1485
2247
  * limitations under the License.
1486
2248
  */
1487
- var f;
2249
+ var p;
1488
2250
  (function(n) {
1489
2251
  n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
1490
- })(f || (f = {}));
1491
- const kr = {
1492
- debug: f.DEBUG,
1493
- verbose: f.VERBOSE,
1494
- info: f.INFO,
1495
- warn: f.WARN,
1496
- error: f.ERROR,
1497
- silent: f.SILENT
1498
- }, Ar = f.INFO, Cr = {
1499
- [f.DEBUG]: "log",
1500
- [f.VERBOSE]: "log",
1501
- [f.INFO]: "info",
1502
- [f.WARN]: "warn",
1503
- [f.ERROR]: "error"
1504
- }, Rr = (n, e, ...t) => {
2252
+ })(p || (p = {}));
2253
+ const Cr = {
2254
+ debug: p.DEBUG,
2255
+ verbose: p.VERBOSE,
2256
+ info: p.INFO,
2257
+ warn: p.WARN,
2258
+ error: p.ERROR,
2259
+ silent: p.SILENT
2260
+ }, Ar = p.INFO, Pr = {
2261
+ [p.DEBUG]: "log",
2262
+ [p.VERBOSE]: "log",
2263
+ [p.INFO]: "info",
2264
+ [p.WARN]: "warn",
2265
+ [p.ERROR]: "error"
2266
+ }, Nr = (n, e, ...t) => {
1505
2267
  if (e < n.logLevel)
1506
2268
  return;
1507
- const r = (/* @__PURE__ */ new Date()).toISOString(), i = Cr[e];
2269
+ const r = (/* @__PURE__ */ new Date()).toISOString(), i = Pr[e];
1508
2270
  if (i)
1509
2271
  console[i](`[${r}] ${n.name}:`, ...t);
1510
2272
  else
1511
2273
  throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
1512
2274
  };
1513
- class Wt {
2275
+ class jt {
1514
2276
  /**
1515
2277
  * Gives you an instance of a Logger to capture messages according to
1516
2278
  * Firebase's logging scheme.
@@ -1518,19 +2280,19 @@ class Wt {
1518
2280
  * @param name The name that the logs will be associated with
1519
2281
  */
1520
2282
  constructor(e) {
1521
- this.name = e, this._logLevel = Ar, this._logHandler = Rr, this._userLogHandler = null;
2283
+ this.name = e, this._logLevel = Ar, this._logHandler = Nr, this._userLogHandler = null;
1522
2284
  }
1523
2285
  get logLevel() {
1524
2286
  return this._logLevel;
1525
2287
  }
1526
2288
  set logLevel(e) {
1527
- if (!(e in f))
2289
+ if (!(e in p))
1528
2290
  throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
1529
2291
  this._logLevel = e;
1530
2292
  }
1531
2293
  // Workaround for setter/getter having to be the same type.
1532
2294
  setLogLevel(e) {
1533
- this._logLevel = typeof e == "string" ? kr[e] : e;
2295
+ this._logLevel = typeof e == "string" ? Cr[e] : e;
1534
2296
  }
1535
2297
  get logHandler() {
1536
2298
  return this._logHandler;
@@ -1550,24 +2312,24 @@ class Wt {
1550
2312
  * The functions below are all based on the `console` interface
1551
2313
  */
1552
2314
  debug(...e) {
1553
- this._userLogHandler && this._userLogHandler(this, f.DEBUG, ...e), this._logHandler(this, f.DEBUG, ...e);
2315
+ this._userLogHandler && this._userLogHandler(this, p.DEBUG, ...e), this._logHandler(this, p.DEBUG, ...e);
1554
2316
  }
1555
2317
  log(...e) {
1556
- this._userLogHandler && this._userLogHandler(this, f.VERBOSE, ...e), this._logHandler(this, f.VERBOSE, ...e);
2318
+ this._userLogHandler && this._userLogHandler(this, p.VERBOSE, ...e), this._logHandler(this, p.VERBOSE, ...e);
1557
2319
  }
1558
2320
  info(...e) {
1559
- this._userLogHandler && this._userLogHandler(this, f.INFO, ...e), this._logHandler(this, f.INFO, ...e);
2321
+ this._userLogHandler && this._userLogHandler(this, p.INFO, ...e), this._logHandler(this, p.INFO, ...e);
1560
2322
  }
1561
2323
  warn(...e) {
1562
- this._userLogHandler && this._userLogHandler(this, f.WARN, ...e), this._logHandler(this, f.WARN, ...e);
2324
+ this._userLogHandler && this._userLogHandler(this, p.WARN, ...e), this._logHandler(this, p.WARN, ...e);
1563
2325
  }
1564
2326
  error(...e) {
1565
- this._userLogHandler && this._userLogHandler(this, f.ERROR, ...e), this._logHandler(this, f.ERROR, ...e);
2327
+ this._userLogHandler && this._userLogHandler(this, p.ERROR, ...e), this._logHandler(this, p.ERROR, ...e);
1566
2328
  }
1567
2329
  }
1568
- const Pr = (n, e) => e.some((t) => n instanceof t);
2330
+ const Or = (n, e) => e.some((t) => n instanceof t);
1569
2331
  let ot, ct;
1570
- function Or() {
2332
+ function Dr() {
1571
2333
  return ot || (ot = [
1572
2334
  IDBDatabase,
1573
2335
  IDBObjectStore,
@@ -1576,31 +2338,31 @@ function Or() {
1576
2338
  IDBTransaction
1577
2339
  ]);
1578
2340
  }
1579
- function Dr() {
2341
+ function Lr() {
1580
2342
  return ct || (ct = [
1581
2343
  IDBCursor.prototype.advance,
1582
2344
  IDBCursor.prototype.continue,
1583
2345
  IDBCursor.prototype.continuePrimaryKey
1584
2346
  ]);
1585
2347
  }
1586
- const zt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
1587
- function Nr(n) {
2348
+ const Wt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
2349
+ function Mr(n) {
1588
2350
  const e = new Promise((t, r) => {
1589
2351
  const i = () => {
1590
2352
  n.removeEventListener("success", s), n.removeEventListener("error", a);
1591
2353
  }, s = () => {
1592
- t(O(n.result)), i();
2354
+ t(N(n.result)), i();
1593
2355
  }, a = () => {
1594
2356
  r(n.error), i();
1595
2357
  };
1596
2358
  n.addEventListener("success", s), n.addEventListener("error", a);
1597
2359
  });
1598
2360
  return e.then((t) => {
1599
- t instanceof IDBCursor && zt.set(t, n);
2361
+ t instanceof IDBCursor && Wt.set(t, n);
1600
2362
  }).catch(() => {
1601
- }), ze.set(e, n), e;
2363
+ }), We.set(e, n), e;
1602
2364
  }
1603
- function Lr(n) {
2365
+ function Br(n) {
1604
2366
  if (Me.has(n))
1605
2367
  return;
1606
2368
  const e = new Promise((t, r) => {
@@ -1615,17 +2377,17 @@ function Lr(n) {
1615
2377
  });
1616
2378
  Me.set(n, e);
1617
2379
  }
1618
- let Ue = {
2380
+ let Be = {
1619
2381
  get(n, e, t) {
1620
2382
  if (n instanceof IDBTransaction) {
1621
2383
  if (e === "done")
1622
2384
  return Me.get(n);
1623
2385
  if (e === "objectStoreNames")
1624
- return n.objectStoreNames || Gt.get(n);
2386
+ return n.objectStoreNames || zt.get(n);
1625
2387
  if (e === "store")
1626
2388
  return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
1627
2389
  }
1628
- return O(n[e]);
2390
+ return N(n[e]);
1629
2391
  },
1630
2392
  set(n, e, t) {
1631
2393
  return n[e] = t, !0;
@@ -1634,35 +2396,35 @@ let Ue = {
1634
2396
  return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
1635
2397
  }
1636
2398
  };
1637
- function Mr(n) {
1638
- Ue = n(Ue);
1639
- }
1640
2399
  function Ur(n) {
2400
+ Be = n(Be);
2401
+ }
2402
+ function xr(n) {
1641
2403
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
1642
2404
  const r = n.call(Ce(this), e, ...t);
1643
- return Gt.set(r, e.sort ? e.sort() : [e]), O(r);
1644
- } : Dr().includes(n) ? function(...e) {
1645
- return n.apply(Ce(this), e), O(zt.get(this));
2405
+ return zt.set(r, e.sort ? e.sort() : [e]), N(r);
2406
+ } : Lr().includes(n) ? function(...e) {
2407
+ return n.apply(Ce(this), e), N(Wt.get(this));
1646
2408
  } : function(...e) {
1647
- return O(n.apply(Ce(this), e));
2409
+ return N(n.apply(Ce(this), e));
1648
2410
  };
1649
2411
  }
1650
- function xr(n) {
1651
- return typeof n == "function" ? Ur(n) : (n instanceof IDBTransaction && Lr(n), Pr(n, Or()) ? new Proxy(n, Ue) : n);
2412
+ function Fr(n) {
2413
+ return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Be) : n);
1652
2414
  }
1653
- function O(n) {
2415
+ function N(n) {
1654
2416
  if (n instanceof IDBRequest)
1655
- return Nr(n);
1656
- if (Ae.has(n))
1657
- return Ae.get(n);
1658
- const e = xr(n);
1659
- return e !== n && (Ae.set(n, e), ze.set(e, n)), e;
1660
- }
1661
- const Ce = (n) => ze.get(n);
1662
- function Fr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1663
- const a = indexedDB.open(n, e), c = O(a);
2417
+ return Mr(n);
2418
+ if (Re.has(n))
2419
+ return Re.get(n);
2420
+ const e = Fr(n);
2421
+ return e !== n && (Re.set(n, e), We.set(e, n)), e;
2422
+ }
2423
+ const Ce = (n) => We.get(n);
2424
+ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
2425
+ const a = indexedDB.open(n, e), c = N(a);
1664
2426
  return r && a.addEventListener("upgradeneeded", (o) => {
1665
- r(O(a.result), o.oldVersion, o.newVersion, O(a.transaction), o);
2427
+ r(N(a.result), o.oldVersion, o.newVersion, N(a.transaction), o);
1666
2428
  }), t && a.addEventListener("blocked", (o) => t(
1667
2429
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
1668
2430
  o.oldVersion,
@@ -1673,16 +2435,16 @@ function Fr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1673
2435
  }).catch(() => {
1674
2436
  }), c;
1675
2437
  }
1676
- const Br = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Re = /* @__PURE__ */ new Map();
2438
+ const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
1677
2439
  function lt(n, e) {
1678
2440
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
1679
2441
  return;
1680
- if (Re.get(e))
1681
- return Re.get(e);
2442
+ if (Ae.get(e))
2443
+ return Ae.get(e);
1682
2444
  const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
1683
2445
  if (
1684
2446
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1685
- !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Br.includes(t))
2447
+ !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || qr.includes(t))
1686
2448
  )
1687
2449
  return;
1688
2450
  const s = async function(a, ...c) {
@@ -1693,9 +2455,9 @@ function lt(n, e) {
1693
2455
  i && o.done
1694
2456
  ]))[0];
1695
2457
  };
1696
- return Re.set(e, s), s;
2458
+ return Ae.set(e, s), s;
1697
2459
  }
1698
- Mr((n) => ({
2460
+ Ur((n) => ({
1699
2461
  ...n,
1700
2462
  get: (e, t, r) => lt(e, t) || n.get(e, t, r),
1701
2463
  has: (e, t) => !!lt(e, t) || n.has(e, t)
@@ -1716,7 +2478,7 @@ Mr((n) => ({
1716
2478
  * See the License for the specific language governing permissions and
1717
2479
  * limitations under the License.
1718
2480
  */
1719
- class Hr {
2481
+ class Vr {
1720
2482
  constructor(e) {
1721
2483
  this.container = e;
1722
2484
  }
@@ -1724,7 +2486,7 @@ class Hr {
1724
2486
  // auth token refresh, and installations will send this string.
1725
2487
  getPlatformInfoString() {
1726
2488
  return this.container.getProviders().map((t) => {
1727
- if (Vr(t)) {
2489
+ if (jr(t)) {
1728
2490
  const r = t.getImmediate();
1729
2491
  return `${r.library}/${r.version}`;
1730
2492
  } else
@@ -1732,11 +2494,11 @@ class Hr {
1732
2494
  }).filter((t) => t).join(" ");
1733
2495
  }
1734
2496
  }
1735
- function Vr(n) {
2497
+ function jr(n) {
1736
2498
  const e = n.getComponent();
1737
2499
  return (e == null ? void 0 : e.type) === "VERSION";
1738
2500
  }
1739
- const xe = "@firebase/app", ut = "0.10.13";
2501
+ const Ue = "@firebase/app", ut = "0.10.13";
1740
2502
  /**
1741
2503
  * @license
1742
2504
  * Copyright 2019 Google LLC
@@ -1753,7 +2515,7 @@ const xe = "@firebase/app", ut = "0.10.13";
1753
2515
  * See the License for the specific language governing permissions and
1754
2516
  * limitations under the License.
1755
2517
  */
1756
- const E = new Wt("@firebase/app"), jr = "@firebase/app-compat", Wr = "@firebase/analytics-compat", zr = "@firebase/analytics", Gr = "@firebase/app-check-compat", qr = "@firebase/app-check", Kr = "@firebase/auth", Jr = "@firebase/auth-compat", Yr = "@firebase/database", Xr = "@firebase/data-connect", Qr = "@firebase/database-compat", Zr = "@firebase/functions", ei = "@firebase/functions-compat", ti = "@firebase/installations", ni = "@firebase/installations-compat", ri = "@firebase/messaging", ii = "@firebase/messaging-compat", si = "@firebase/performance", ai = "@firebase/performance-compat", oi = "@firebase/remote-config", ci = "@firebase/remote-config-compat", li = "@firebase/storage", ui = "@firebase/storage-compat", di = "@firebase/firestore", hi = "@firebase/vertexai-preview", fi = "@firebase/firestore-compat", pi = "firebase", mi = "10.14.1";
2518
+ const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/analytics-compat", Gr = "@firebase/analytics", Kr = "@firebase/app-check-compat", Jr = "@firebase/app-check", Yr = "@firebase/auth", Xr = "@firebase/auth-compat", Qr = "@firebase/database", Zr = "@firebase/data-connect", ei = "@firebase/database-compat", ti = "@firebase/functions", ni = "@firebase/functions-compat", ri = "@firebase/installations", ii = "@firebase/installations-compat", si = "@firebase/messaging", ai = "@firebase/messaging-compat", oi = "@firebase/performance", ci = "@firebase/performance-compat", li = "@firebase/remote-config", ui = "@firebase/remote-config-compat", di = "@firebase/storage", hi = "@firebase/storage-compat", pi = "@firebase/firestore", fi = "@firebase/vertexai-preview", mi = "@firebase/firestore-compat", gi = "firebase", _i = "10.14.1";
1757
2519
  /**
1758
2520
  * @license
1759
2521
  * Copyright 2019 Google LLC
@@ -1770,35 +2532,35 @@ const E = new Wt("@firebase/app"), jr = "@firebase/app-compat", Wr = "@firebase/
1770
2532
  * See the License for the specific language governing permissions and
1771
2533
  * limitations under the License.
1772
2534
  */
1773
- const Fe = "[DEFAULT]", gi = {
1774
- [xe]: "fire-core",
1775
- [jr]: "fire-core-compat",
1776
- [zr]: "fire-analytics",
1777
- [Wr]: "fire-analytics-compat",
1778
- [qr]: "fire-app-check",
1779
- [Gr]: "fire-app-check-compat",
1780
- [Kr]: "fire-auth",
1781
- [Jr]: "fire-auth-compat",
1782
- [Yr]: "fire-rtdb",
1783
- [Xr]: "fire-data-connect",
1784
- [Qr]: "fire-rtdb-compat",
1785
- [Zr]: "fire-fn",
1786
- [ei]: "fire-fn-compat",
1787
- [ti]: "fire-iid",
1788
- [ni]: "fire-iid-compat",
1789
- [ri]: "fire-fcm",
1790
- [ii]: "fire-fcm-compat",
1791
- [si]: "fire-perf",
1792
- [ai]: "fire-perf-compat",
1793
- [oi]: "fire-rc",
1794
- [ci]: "fire-rc-compat",
1795
- [li]: "fire-gcs",
1796
- [ui]: "fire-gcs-compat",
1797
- [di]: "fire-fst",
1798
- [fi]: "fire-fst-compat",
1799
- [hi]: "fire-vertex",
2535
+ const xe = "[DEFAULT]", bi = {
2536
+ [Ue]: "fire-core",
2537
+ [Wr]: "fire-core-compat",
2538
+ [Gr]: "fire-analytics",
2539
+ [zr]: "fire-analytics-compat",
2540
+ [Jr]: "fire-app-check",
2541
+ [Kr]: "fire-app-check-compat",
2542
+ [Yr]: "fire-auth",
2543
+ [Xr]: "fire-auth-compat",
2544
+ [Qr]: "fire-rtdb",
2545
+ [Zr]: "fire-data-connect",
2546
+ [ei]: "fire-rtdb-compat",
2547
+ [ti]: "fire-fn",
2548
+ [ni]: "fire-fn-compat",
2549
+ [ri]: "fire-iid",
2550
+ [ii]: "fire-iid-compat",
2551
+ [si]: "fire-fcm",
2552
+ [ai]: "fire-fcm-compat",
2553
+ [oi]: "fire-perf",
2554
+ [ci]: "fire-perf-compat",
2555
+ [li]: "fire-rc",
2556
+ [ui]: "fire-rc-compat",
2557
+ [di]: "fire-gcs",
2558
+ [hi]: "fire-gcs-compat",
2559
+ [pi]: "fire-fst",
2560
+ [mi]: "fire-fst-compat",
2561
+ [fi]: "fire-vertex",
1800
2562
  "fire-js": "fire-js",
1801
- [pi]: "fire-js-all"
2563
+ [gi]: "fire-js-all"
1802
2564
  };
1803
2565
  /**
1804
2566
  * @license
@@ -1816,30 +2578,30 @@ const Fe = "[DEFAULT]", gi = {
1816
2578
  * See the License for the specific language governing permissions and
1817
2579
  * limitations under the License.
1818
2580
  */
1819
- const he = /* @__PURE__ */ new Map(), _i = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
2581
+ const he = /* @__PURE__ */ new Map(), yi = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
1820
2582
  function dt(n, e) {
1821
2583
  try {
1822
2584
  n.container.addComponent(e);
1823
2585
  } catch (t) {
1824
- E.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
2586
+ T.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
1825
2587
  }
1826
2588
  }
1827
2589
  function Y(n) {
1828
2590
  const e = n.name;
1829
- if (Be.has(e))
1830
- return E.debug(`There were multiple attempts to register component ${e}.`), !1;
1831
- Be.set(e, n);
2591
+ if (Fe.has(e))
2592
+ return T.debug(`There were multiple attempts to register component ${e}.`), !1;
2593
+ Fe.set(e, n);
1832
2594
  for (const t of he.values())
1833
2595
  dt(t, n);
1834
- for (const t of _i.values())
2596
+ for (const t of yi.values())
1835
2597
  dt(t, n);
1836
2598
  return !0;
1837
2599
  }
1838
- function qt(n, e) {
2600
+ function Gt(n, e) {
1839
2601
  const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
1840
2602
  return t && t.triggerHeartbeat(), n.container.getProvider(e);
1841
2603
  }
1842
- function v(n) {
2604
+ function y(n) {
1843
2605
  return n.settings !== void 0;
1844
2606
  }
1845
2607
  /**
@@ -1858,7 +2620,7 @@ function v(n) {
1858
2620
  * See the License for the specific language governing permissions and
1859
2621
  * limitations under the License.
1860
2622
  */
1861
- const yi = {
2623
+ const vi = {
1862
2624
  "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
1863
2625
  "bad-app-name": "Illegal App name: '{$appName}'",
1864
2626
  "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
@@ -1873,7 +2635,7 @@ const yi = {
1873
2635
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
1874
2636
  "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
1875
2637
  "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
1876
- }, D = new Z("app", "Firebase", yi);
2638
+ }, O = new Z("app", "Firebase", vi);
1877
2639
  /**
1878
2640
  * @license
1879
2641
  * Copyright 2019 Google LLC
@@ -1890,9 +2652,9 @@ const yi = {
1890
2652
  * See the License for the specific language governing permissions and
1891
2653
  * limitations under the License.
1892
2654
  */
1893
- class vi {
2655
+ class Ii {
1894
2656
  constructor(e, t, r) {
1895
- this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new W(
2657
+ this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new j(
1896
2658
  "app",
1897
2659
  () => this,
1898
2660
  "PUBLIC"
@@ -1929,7 +2691,7 @@ class vi {
1929
2691
  */
1930
2692
  checkDestroyed() {
1931
2693
  if (this.isDeleted)
1932
- throw D.create("app-deleted", { appName: this._name });
2694
+ throw O.create("app-deleted", { appName: this._name });
1933
2695
  }
1934
2696
  }
1935
2697
  /**
@@ -1948,17 +2710,17 @@ class vi {
1948
2710
  * See the License for the specific language governing permissions and
1949
2711
  * limitations under the License.
1950
2712
  */
1951
- const te = mi;
2713
+ const te = _i;
1952
2714
  function Kt(n, e = {}) {
1953
2715
  let t = n;
1954
2716
  typeof e != "object" && (e = { name: e });
1955
- const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
2717
+ const r = Object.assign({ name: xe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
1956
2718
  if (typeof i != "string" || !i)
1957
- throw D.create("bad-app-name", {
2719
+ throw O.create("bad-app-name", {
1958
2720
  appName: String(i)
1959
2721
  });
1960
- if (t || (t = Vt()), !t)
1961
- throw D.create(
2722
+ if (t || (t = $t()), !t)
2723
+ throw O.create(
1962
2724
  "no-options"
1963
2725
  /* AppError.NO_OPTIONS */
1964
2726
  );
@@ -1966,35 +2728,35 @@ function Kt(n, e = {}) {
1966
2728
  if (s) {
1967
2729
  if (de(t, s.options) && de(r, s.config))
1968
2730
  return s;
1969
- throw D.create("duplicate-app", { appName: i });
2731
+ throw O.create("duplicate-app", { appName: i });
1970
2732
  }
1971
- const a = new Sr(i);
1972
- for (const o of Be.values())
2733
+ const a = new Rr(i);
2734
+ for (const o of Fe.values())
1973
2735
  a.addComponent(o);
1974
- const c = new vi(t, r, a);
2736
+ const c = new Ii(t, r, a);
1975
2737
  return he.set(i, c), c;
1976
2738
  }
1977
- function bi(n = Fe) {
2739
+ function wi(n = xe) {
1978
2740
  const e = he.get(n);
1979
- if (!e && n === Fe && Vt())
2741
+ if (!e && n === xe && $t())
1980
2742
  return Kt();
1981
2743
  if (!e)
1982
- throw D.create("no-app", { appName: n });
2744
+ throw O.create("no-app", { appName: n });
1983
2745
  return e;
1984
2746
  }
1985
- function $(n, e, t) {
2747
+ function H(n, e, t) {
1986
2748
  var r;
1987
- let i = (r = gi[n]) !== null && r !== void 0 ? r : n;
2749
+ let i = (r = bi[n]) !== null && r !== void 0 ? r : n;
1988
2750
  t && (i += `-${t}`);
1989
2751
  const s = i.match(/\s|\//), a = e.match(/\s|\//);
1990
2752
  if (s || a) {
1991
2753
  const c = [
1992
2754
  `Unable to register library "${i}" with version "${e}":`
1993
2755
  ];
1994
- s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), E.warn(c.join(" "));
2756
+ s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), T.warn(c.join(" "));
1995
2757
  return;
1996
2758
  }
1997
- Y(new W(
2759
+ Y(new j(
1998
2760
  `${i}-version`,
1999
2761
  () => ({ library: i, version: e }),
2000
2762
  "VERSION"
@@ -2017,10 +2779,10 @@ function $(n, e, t) {
2017
2779
  * See the License for the specific language governing permissions and
2018
2780
  * limitations under the License.
2019
2781
  */
2020
- const Ii = "firebase-heartbeat-database", wi = 1, X = "firebase-heartbeat-store";
2782
+ const Ti = "firebase-heartbeat-database", ki = 1, X = "firebase-heartbeat-store";
2021
2783
  let Pe = null;
2022
2784
  function Jt() {
2023
- return Pe || (Pe = Fr(Ii, wi, {
2785
+ return Pe || (Pe = Hr(Ti, ki, {
2024
2786
  upgrade: (n, e) => {
2025
2787
  switch (e) {
2026
2788
  case 0:
@@ -2032,7 +2794,7 @@ function Jt() {
2032
2794
  }
2033
2795
  }
2034
2796
  }).catch((n) => {
2035
- throw D.create("idb-open", {
2797
+ throw O.create("idb-open", {
2036
2798
  originalErrorMessage: n.message
2037
2799
  });
2038
2800
  })), Pe;
@@ -2043,12 +2805,12 @@ async function Ei(n) {
2043
2805
  return await t.done, r;
2044
2806
  } catch (e) {
2045
2807
  if (e instanceof L)
2046
- E.warn(e.message);
2808
+ T.warn(e.message);
2047
2809
  else {
2048
- const t = D.create("idb-get", {
2810
+ const t = O.create("idb-get", {
2049
2811
  originalErrorMessage: e == null ? void 0 : e.message
2050
2812
  });
2051
- E.warn(t.message);
2813
+ T.warn(t.message);
2052
2814
  }
2053
2815
  }
2054
2816
  }
@@ -2058,12 +2820,12 @@ async function ht(n, e) {
2058
2820
  await r.objectStore(X).put(e, Yt(n)), await r.done;
2059
2821
  } catch (t) {
2060
2822
  if (t instanceof L)
2061
- E.warn(t.message);
2823
+ T.warn(t.message);
2062
2824
  else {
2063
- const r = D.create("idb-set", {
2825
+ const r = O.create("idb-set", {
2064
2826
  originalErrorMessage: t == null ? void 0 : t.message
2065
2827
  });
2066
- E.warn(r.message);
2828
+ T.warn(r.message);
2067
2829
  }
2068
2830
  }
2069
2831
  }
@@ -2086,12 +2848,12 @@ function Yt(n) {
2086
2848
  * See the License for the specific language governing permissions and
2087
2849
  * limitations under the License.
2088
2850
  */
2089
- const Ti = 1024, Si = 30 * 24 * 60 * 60 * 1e3;
2090
- class ki {
2851
+ const Si = 1024, Ri = 30 * 24 * 60 * 60 * 1e3;
2852
+ class Ci {
2091
2853
  constructor(e) {
2092
2854
  this.container = e, this._heartbeatsCache = null;
2093
2855
  const t = this.container.getProvider("app").getImmediate();
2094
- this._storage = new Ci(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
2856
+ this._storage = new Pi(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
2095
2857
  }
2096
2858
  /**
2097
2859
  * Called to report a heartbeat. The function will generate
@@ -2103,13 +2865,13 @@ class ki {
2103
2865
  async triggerHeartbeat() {
2104
2866
  var e, t;
2105
2867
  try {
2106
- const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
2868
+ const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = pt();
2107
2869
  return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
2108
2870
  const c = new Date(a.date).valueOf();
2109
- return Date.now() - c <= Si;
2871
+ return Date.now() - c <= Ri;
2110
2872
  }), this._storage.overwrite(this._heartbeatsCache));
2111
2873
  } catch (r) {
2112
- E.warn(r);
2874
+ T.warn(r);
2113
2875
  }
2114
2876
  }
2115
2877
  /**
@@ -2124,30 +2886,30 @@ class ki {
2124
2886
  try {
2125
2887
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
2126
2888
  return "";
2127
- const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Ai(this._heartbeatsCache.heartbeats), s = $t(JSON.stringify({ version: 2, heartbeats: r }));
2889
+ const t = pt(), { heartbeatsToSend: r, unsentEntries: i } = Ai(this._heartbeatsCache.heartbeats), s = Ht(JSON.stringify({ version: 2, heartbeats: r }));
2128
2890
  return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
2129
2891
  } catch (t) {
2130
- return E.warn(t), "";
2892
+ return T.warn(t), "";
2131
2893
  }
2132
2894
  }
2133
2895
  }
2134
- function ft() {
2896
+ function pt() {
2135
2897
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
2136
2898
  }
2137
- function Ai(n, e = Ti) {
2899
+ function Ai(n, e = Si) {
2138
2900
  const t = [];
2139
2901
  let r = n.slice();
2140
2902
  for (const i of n) {
2141
2903
  const s = t.find((a) => a.agent === i.agent);
2142
2904
  if (s) {
2143
- if (s.dates.push(i.date), pt(t) > e) {
2905
+ if (s.dates.push(i.date), ft(t) > e) {
2144
2906
  s.dates.pop();
2145
2907
  break;
2146
2908
  }
2147
2909
  } else if (t.push({
2148
2910
  agent: i.agent,
2149
2911
  dates: [i.date]
2150
- }), pt(t) > e) {
2912
+ }), ft(t) > e) {
2151
2913
  t.pop();
2152
2914
  break;
2153
2915
  }
@@ -2158,12 +2920,12 @@ function Ai(n, e = Ti) {
2158
2920
  unsentEntries: r
2159
2921
  };
2160
2922
  }
2161
- class Ci {
2923
+ class Pi {
2162
2924
  constructor(e) {
2163
2925
  this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
2164
2926
  }
2165
2927
  async runIndexedDBEnvironmentCheck() {
2166
- return fr() ? pr().then(() => !0).catch(() => !1) : !1;
2928
+ return mr() ? gr().then(() => !0).catch(() => !1) : !1;
2167
2929
  }
2168
2930
  /**
2169
2931
  * Read all heartbeats.
@@ -2203,8 +2965,8 @@ class Ci {
2203
2965
  return;
2204
2966
  }
2205
2967
  }
2206
- function pt(n) {
2207
- return $t(
2968
+ function ft(n) {
2969
+ return Ht(
2208
2970
  // heartbeatsCache wrapper properties
2209
2971
  JSON.stringify({ version: 2, heartbeats: n })
2210
2972
  ).length;
@@ -2225,21 +2987,21 @@ function pt(n) {
2225
2987
  * See the License for the specific language governing permissions and
2226
2988
  * limitations under the License.
2227
2989
  */
2228
- function Ri(n) {
2229
- Y(new W(
2990
+ function Ni(n) {
2991
+ Y(new j(
2230
2992
  "platform-logger",
2231
- (e) => new Hr(e),
2993
+ (e) => new Vr(e),
2232
2994
  "PRIVATE"
2233
2995
  /* ComponentType.PRIVATE */
2234
- )), Y(new W(
2996
+ )), Y(new j(
2235
2997
  "heartbeat",
2236
- (e) => new ki(e),
2998
+ (e) => new Ci(e),
2237
2999
  "PRIVATE"
2238
3000
  /* ComponentType.PRIVATE */
2239
- )), $(xe, ut, n), $(xe, ut, "esm2017"), $("fire-js", "");
3001
+ )), H(Ue, ut, n), H(Ue, ut, "esm2017"), H("fire-js", "");
2240
3002
  }
2241
- Ri("");
2242
- var Pi = "firebase", Oi = "10.14.1";
3003
+ Ni("");
3004
+ var Oi = "firebase", Di = "10.14.1";
2243
3005
  /**
2244
3006
  * @license
2245
3007
  * Copyright 2020 Google LLC
@@ -2256,7 +3018,7 @@ var Pi = "firebase", Oi = "10.14.1";
2256
3018
  * See the License for the specific language governing permissions and
2257
3019
  * limitations under the License.
2258
3020
  */
2259
- $(Pi, Oi, "app");
3021
+ H(Oi, Di, "app");
2260
3022
  var mt = function() {
2261
3023
  return mt = Object.assign || function(e) {
2262
3024
  for (var t, r = 1, i = arguments.length; r < i; r++) {
@@ -2266,7 +3028,7 @@ var mt = function() {
2266
3028
  return e;
2267
3029
  }, mt.apply(this, arguments);
2268
3030
  };
2269
- function Ge(n, e) {
3031
+ function ze(n, e) {
2270
3032
  var t = {};
2271
3033
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
2272
3034
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2279,7 +3041,7 @@ function Xt() {
2279
3041
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
2280
3042
  };
2281
3043
  }
2282
- const Di = Xt, Qt = new Z("auth", "Firebase", Xt());
3044
+ const Li = Xt, Qt = new Z("auth", "Firebase", Xt());
2283
3045
  /**
2284
3046
  * @license
2285
3047
  * Copyright 2020 Google LLC
@@ -2296,12 +3058,12 @@ const Di = Xt, Qt = new Z("auth", "Firebase", Xt());
2296
3058
  * See the License for the specific language governing permissions and
2297
3059
  * limitations under the License.
2298
3060
  */
2299
- const fe = new Wt("@firebase/auth");
2300
- function Ni(n, ...e) {
2301
- fe.logLevel <= f.WARN && fe.warn(`Auth (${te}): ${n}`, ...e);
3061
+ const pe = new jt("@firebase/auth");
3062
+ function Mi(n, ...e) {
3063
+ pe.logLevel <= p.WARN && pe.warn(`Auth (${te}): ${n}`, ...e);
2302
3064
  }
2303
3065
  function ae(n, ...e) {
2304
- fe.logLevel <= f.ERROR && fe.error(`Auth (${te}): ${n}`, ...e);
3066
+ pe.logLevel <= p.ERROR && pe.error(`Auth (${te}): ${n}`, ...e);
2305
3067
  }
2306
3068
  /**
2307
3069
  * @license
@@ -2319,22 +3081,22 @@ function ae(n, ...e) {
2319
3081
  * See the License for the specific language governing permissions and
2320
3082
  * limitations under the License.
2321
3083
  */
2322
- function T(n, ...e) {
2323
- throw qe(n, ...e);
3084
+ function k(n, ...e) {
3085
+ throw Ge(n, ...e);
2324
3086
  }
2325
3087
  function _(n, ...e) {
2326
- return qe(n, ...e);
3088
+ return Ge(n, ...e);
2327
3089
  }
2328
3090
  function Zt(n, e, t) {
2329
- const r = Object.assign(Object.assign({}, Di()), { [e]: t });
3091
+ const r = Object.assign(Object.assign({}, Li()), { [e]: t });
2330
3092
  return new Z("auth", "Firebase", r).create(e, {
2331
3093
  appName: n.name
2332
3094
  });
2333
3095
  }
2334
- function N(n) {
3096
+ function D(n) {
2335
3097
  return Zt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
2336
3098
  }
2337
- function qe(n, ...e) {
3099
+ function Ge(n, ...e) {
2338
3100
  if (typeof n != "string") {
2339
3101
  const t = e[0], r = [...e.slice(1)];
2340
3102
  return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
@@ -2343,14 +3105,14 @@ function qe(n, ...e) {
2343
3105
  }
2344
3106
  function h(n, e, ...t) {
2345
3107
  if (!n)
2346
- throw qe(e, ...t);
3108
+ throw Ge(e, ...t);
2347
3109
  }
2348
- function b(n) {
3110
+ function v(n) {
2349
3111
  const e = "INTERNAL ASSERTION FAILED: " + n;
2350
3112
  throw ae(e), new Error(e);
2351
3113
  }
2352
- function S(n, e) {
2353
- n || b(e);
3114
+ function E(n, e) {
3115
+ n || v(e);
2354
3116
  }
2355
3117
  /**
2356
3118
  * @license
@@ -2368,11 +3130,11 @@ function S(n, e) {
2368
3130
  * See the License for the specific language governing permissions and
2369
3131
  * limitations under the License.
2370
3132
  */
2371
- function $e() {
3133
+ function He() {
2372
3134
  var n;
2373
3135
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
2374
3136
  }
2375
- function Li() {
3137
+ function Bi() {
2376
3138
  return gt() === "http:" || gt() === "https:";
2377
3139
  }
2378
3140
  function gt() {
@@ -2395,15 +3157,15 @@ function gt() {
2395
3157
  * See the License for the specific language governing permissions and
2396
3158
  * limitations under the License.
2397
3159
  */
2398
- function Mi() {
3160
+ function Ui() {
2399
3161
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
2400
3162
  // This is especially true for Cordova apps which have unreliable
2401
3163
  // navigator.onLine behavior unless cordova-plugin-network-information is
2402
3164
  // installed which overwrites the native navigator.onLine value and
2403
3165
  // defines navigator.connection.
2404
- (Li() || ur() || "connection" in navigator) ? navigator.onLine : !0;
3166
+ (Bi() || hr() || "connection" in navigator) ? navigator.onLine : !0;
2405
3167
  }
2406
- function Ui() {
3168
+ function xi() {
2407
3169
  if (typeof navigator > "u")
2408
3170
  return null;
2409
3171
  const n = navigator;
@@ -2433,10 +3195,10 @@ function Ui() {
2433
3195
  */
2434
3196
  class ne {
2435
3197
  constructor(e, t) {
2436
- this.shortDelay = e, this.longDelay = t, S(t > e, "Short delay should be less than long delay!"), this.isMobile = cr() || dr();
3198
+ this.shortDelay = e, this.longDelay = t, E(t > e, "Short delay should be less than long delay!"), this.isMobile = ur() || pr();
2437
3199
  }
2438
3200
  get() {
2439
- return Mi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
3201
+ return Ui() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
2440
3202
  }
2441
3203
  }
2442
3204
  /**
@@ -2456,7 +3218,7 @@ class ne {
2456
3218
  * limitations under the License.
2457
3219
  */
2458
3220
  function Ke(n, e) {
2459
- S(n.emulator, "Emulator should always be set here");
3221
+ E(n.emulator, "Emulator should always be set here");
2460
3222
  const { url: t } = n.emulator;
2461
3223
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
2462
3224
  }
@@ -2489,7 +3251,7 @@ class en {
2489
3251
  return globalThis.fetch;
2490
3252
  if (typeof fetch < "u")
2491
3253
  return fetch;
2492
- b("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
3254
+ v("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2493
3255
  }
2494
3256
  static headers() {
2495
3257
  if (this.headersImpl)
@@ -2500,7 +3262,7 @@ class en {
2500
3262
  return globalThis.Headers;
2501
3263
  if (typeof Headers < "u")
2502
3264
  return Headers;
2503
- b("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
3265
+ v("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2504
3266
  }
2505
3267
  static response() {
2506
3268
  if (this.responseImpl)
@@ -2511,7 +3273,7 @@ class en {
2511
3273
  return globalThis.Response;
2512
3274
  if (typeof Response < "u")
2513
3275
  return Response;
2514
- b("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
3276
+ v("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2515
3277
  }
2516
3278
  }
2517
3279
  /**
@@ -2530,7 +3292,7 @@ class en {
2530
3292
  * See the License for the specific language governing permissions and
2531
3293
  * limitations under the License.
2532
3294
  */
2533
- const xi = {
3295
+ const Fi = {
2534
3296
  // Custom token errors.
2535
3297
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
2536
3298
  // This can only happen if the SDK sends a bad request.
@@ -2621,11 +3383,11 @@ const xi = {
2621
3383
  * See the License for the specific language governing permissions and
2622
3384
  * limitations under the License.
2623
3385
  */
2624
- const Fi = new ne(3e4, 6e4);
2625
- function ye(n, e) {
3386
+ const Hi = new ne(3e4, 6e4);
3387
+ function be(n, e) {
2626
3388
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
2627
3389
  }
2628
- async function G(n, e, t, r, i = {}) {
3390
+ async function z(n, e, t, r, i = {}) {
2629
3391
  return tn(n, i, async () => {
2630
3392
  let s = {}, a = {};
2631
3393
  r && (e === "GET" ? a = r : s = {
@@ -2643,14 +3405,14 @@ async function G(n, e, t, r, i = {}) {
2643
3405
  method: e,
2644
3406
  headers: o
2645
3407
  }, s);
2646
- return lr() || (l.referrerPolicy = "no-referrer"), en.fetch()(rn(n, n.config.apiHost, t, c), l);
3408
+ return dr() || (l.referrerPolicy = "no-referrer"), en.fetch()(rn(n, n.config.apiHost, t, c), l);
2647
3409
  });
2648
3410
  }
2649
3411
  async function tn(n, e, t) {
2650
3412
  n._canInitEmulator = !1;
2651
- const r = Object.assign(Object.assign({}, xi), e);
3413
+ const r = Object.assign(Object.assign({}, Fi), e);
2652
3414
  try {
2653
- const i = new Bi(n), s = await Promise.race([
3415
+ const i = new qi(n), s = await Promise.race([
2654
3416
  t(),
2655
3417
  i.promise
2656
3418
  ]);
@@ -2671,17 +3433,17 @@ async function tn(n, e, t) {
2671
3433
  const u = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
2672
3434
  if (l)
2673
3435
  throw Zt(n, u, l);
2674
- T(n, u);
3436
+ k(n, u);
2675
3437
  }
2676
3438
  } catch (i) {
2677
3439
  if (i instanceof L)
2678
3440
  throw i;
2679
- T(n, "network-request-failed", { message: String(i) });
3441
+ k(n, "network-request-failed", { message: String(i) });
2680
3442
  }
2681
3443
  }
2682
3444
  async function nn(n, e, t, r, i = {}) {
2683
- const s = await G(n, e, t, r, i);
2684
- return "mfaPendingCredential" in s && T(n, "multi-factor-auth-required", {
3445
+ const s = await z(n, e, t, r, i);
3446
+ return "mfaPendingCredential" in s && k(n, "multi-factor-auth-required", {
2685
3447
  _serverResponse: s
2686
3448
  }), s;
2687
3449
  }
@@ -2689,14 +3451,14 @@ function rn(n, e, t, r) {
2689
3451
  const i = `${e}${t}?${r}`;
2690
3452
  return n.config.emulator ? Ke(n.config, i) : `${n.config.apiScheme}://${i}`;
2691
3453
  }
2692
- class Bi {
3454
+ class qi {
2693
3455
  constructor(e) {
2694
3456
  this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
2695
3457
  this.timer = setTimeout(() => r(_(
2696
3458
  this.auth,
2697
3459
  "network-request-failed"
2698
3460
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
2699
- )), Fi.get());
3461
+ )), Hi.get());
2700
3462
  });
2701
3463
  }
2702
3464
  clearNetworkTimeout() {
@@ -2728,10 +3490,10 @@ function se(n, e, t) {
2728
3490
  * limitations under the License.
2729
3491
  */
2730
3492
  async function $i(n, e) {
2731
- return G(n, "POST", "/v1/accounts:delete", e);
3493
+ return z(n, "POST", "/v1/accounts:delete", e);
2732
3494
  }
2733
3495
  async function sn(n, e) {
2734
- return G(n, "POST", "/v1/accounts:lookup", e);
3496
+ return z(n, "POST", "/v1/accounts:lookup", e);
2735
3497
  }
2736
3498
  /**
2737
3499
  * @license
@@ -2758,8 +3520,8 @@ function J(n) {
2758
3520
  } catch {
2759
3521
  }
2760
3522
  }
2761
- async function Hi(n, e = !1) {
2762
- const t = z(n), r = await t.getIdToken(e), i = Je(r);
3523
+ async function Vi(n, e = !1) {
3524
+ const t = W(n), r = await t.getIdToken(e), i = Je(r);
2763
3525
  h(
2764
3526
  i && i.exp && i.auth_time && i.iat,
2765
3527
  t.auth,
@@ -2770,14 +3532,14 @@ async function Hi(n, e = !1) {
2770
3532
  return {
2771
3533
  claims: i,
2772
3534
  token: r,
2773
- authTime: J(Oe(i.auth_time)),
2774
- issuedAtTime: J(Oe(i.iat)),
2775
- expirationTime: J(Oe(i.exp)),
3535
+ authTime: J(Ne(i.auth_time)),
3536
+ issuedAtTime: J(Ne(i.iat)),
3537
+ expirationTime: J(Ne(i.exp)),
2776
3538
  signInProvider: a || null,
2777
3539
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2778
3540
  };
2779
3541
  }
2780
- function Oe(n) {
3542
+ function Ne(n) {
2781
3543
  return Number(n) * 1e3;
2782
3544
  }
2783
3545
  function Je(n) {
@@ -2785,7 +3547,7 @@ function Je(n) {
2785
3547
  if (e === void 0 || t === void 0 || r === void 0)
2786
3548
  return ae("JWT malformed, contained fewer than 3 sections"), null;
2787
3549
  try {
2788
- const i = Ht(t);
3550
+ const i = qt(t);
2789
3551
  return i ? JSON.parse(i) : (ae("Failed to decode base64 JWT payload"), null);
2790
3552
  } catch (i) {
2791
3553
  return ae("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
@@ -2829,10 +3591,10 @@ async function Q(n, e, t = !1) {
2829
3591
  try {
2830
3592
  return await e;
2831
3593
  } catch (r) {
2832
- throw r instanceof L && Vi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
3594
+ throw r instanceof L && ji(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2833
3595
  }
2834
3596
  }
2835
- function Vi({ code: n }) {
3597
+ function ji({ code: n }) {
2836
3598
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
2837
3599
  }
2838
3600
  /**
@@ -2851,7 +3613,7 @@ function Vi({ code: n }) {
2851
3613
  * See the License for the specific language governing permissions and
2852
3614
  * limitations under the License.
2853
3615
  */
2854
- class ji {
3616
+ class Wi {
2855
3617
  constructor(e) {
2856
3618
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
2857
3619
  }
@@ -2913,7 +3675,7 @@ class ji {
2913
3675
  * See the License for the specific language governing permissions and
2914
3676
  * limitations under the License.
2915
3677
  */
2916
- class He {
3678
+ class qe {
2917
3679
  constructor(e, t) {
2918
3680
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
2919
3681
  }
@@ -2946,7 +3708,7 @@ class He {
2946
3708
  * See the License for the specific language governing permissions and
2947
3709
  * limitations under the License.
2948
3710
  */
2949
- async function pe(n) {
3711
+ async function fe(n) {
2950
3712
  var e;
2951
3713
  const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
2952
3714
  h(
@@ -2957,7 +3719,7 @@ async function pe(n) {
2957
3719
  );
2958
3720
  const s = i.users[0];
2959
3721
  n._notifyReloadListener(s);
2960
- const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? an(s.providerUserInfo) : [], c = zi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, d = {
3722
+ const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? an(s.providerUserInfo) : [], c = Gi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, d = {
2961
3723
  uid: s.localId,
2962
3724
  displayName: s.displayName || null,
2963
3725
  photoURL: s.photoUrl || null,
@@ -2966,21 +3728,21 @@ async function pe(n) {
2966
3728
  phoneNumber: s.phoneNumber || null,
2967
3729
  tenantId: s.tenantId || null,
2968
3730
  providerData: c,
2969
- metadata: new He(s.createdAt, s.lastLoginAt),
3731
+ metadata: new qe(s.createdAt, s.lastLoginAt),
2970
3732
  isAnonymous: u
2971
3733
  };
2972
3734
  Object.assign(n, d);
2973
3735
  }
2974
- async function Wi(n) {
2975
- const e = z(n);
2976
- await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
3736
+ async function zi(n) {
3737
+ const e = W(n);
3738
+ await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
2977
3739
  }
2978
- function zi(n, e) {
3740
+ function Gi(n, e) {
2979
3741
  return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
2980
3742
  }
2981
3743
  function an(n) {
2982
3744
  return n.map((e) => {
2983
- var { providerId: t } = e, r = Ge(e, ["providerId"]);
3745
+ var { providerId: t } = e, r = ze(e, ["providerId"]);
2984
3746
  return {
2985
3747
  providerId: t,
2986
3748
  uid: r.rawId || "",
@@ -3007,7 +3769,7 @@ function an(n) {
3007
3769
  * See the License for the specific language governing permissions and
3008
3770
  * limitations under the License.
3009
3771
  */
3010
- async function Gi(n, e) {
3772
+ async function Ki(n, e) {
3011
3773
  const t = await tn(n, {}, async () => {
3012
3774
  const r = ee({
3013
3775
  grant_type: "refresh_token",
@@ -3028,8 +3790,8 @@ async function Gi(n, e) {
3028
3790
  refreshToken: t.refresh_token
3029
3791
  };
3030
3792
  }
3031
- async function qi(n, e) {
3032
- return G(n, "POST", "/v2/accounts:revokeToken", ye(n, e));
3793
+ async function Ji(n, e) {
3794
+ return z(n, "POST", "/v2/accounts:revokeToken", be(n, e));
3033
3795
  }
3034
3796
  /**
3035
3797
  * @license
@@ -3047,7 +3809,7 @@ async function qi(n, e) {
3047
3809
  * See the License for the specific language governing permissions and
3048
3810
  * limitations under the License.
3049
3811
  */
3050
- class H {
3812
+ class q {
3051
3813
  constructor() {
3052
3814
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
3053
3815
  }
@@ -3092,14 +3854,14 @@ class H {
3092
3854
  this.refreshToken = null;
3093
3855
  }
3094
3856
  async refresh(e, t) {
3095
- const { accessToken: r, refreshToken: i, expiresIn: s } = await Gi(e, t);
3857
+ const { accessToken: r, refreshToken: i, expiresIn: s } = await Ki(e, t);
3096
3858
  this.updateTokensAndExpiration(r, i, Number(s));
3097
3859
  }
3098
3860
  updateTokensAndExpiration(e, t, r) {
3099
3861
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
3100
3862
  }
3101
3863
  static fromJSON(e, t) {
3102
- const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new H();
3864
+ const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new q();
3103
3865
  return r && (h(typeof r == "string", "internal-error", {
3104
3866
  appName: e
3105
3867
  }), a.refreshToken = r), i && (h(typeof i == "string", "internal-error", {
@@ -3119,10 +3881,10 @@ class H {
3119
3881
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
3120
3882
  }
3121
3883
  _clone() {
3122
- return Object.assign(new H(), this.toJSON());
3884
+ return Object.assign(new q(), this.toJSON());
3123
3885
  }
3124
3886
  _performRefresh() {
3125
- return b("not implemented");
3887
+ return v("not implemented");
3126
3888
  }
3127
3889
  }
3128
3890
  /**
@@ -3141,13 +3903,13 @@ class H {
3141
3903
  * See the License for the specific language governing permissions and
3142
3904
  * limitations under the License.
3143
3905
  */
3144
- function k(n, e) {
3906
+ function S(n, e) {
3145
3907
  h(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
3146
3908
  }
3147
3909
  class I {
3148
3910
  constructor(e) {
3149
- var { uid: t, auth: r, stsTokenManager: i } = e, s = Ge(e, ["uid", "auth", "stsTokenManager"]);
3150
- this.providerId = "firebase", this.proactiveRefresh = new ji(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new He(s.createdAt || void 0, s.lastLoginAt || void 0);
3911
+ var { uid: t, auth: r, stsTokenManager: i } = e, s = ze(e, ["uid", "auth", "stsTokenManager"]);
3912
+ this.providerId = "firebase", this.proactiveRefresh = new Wi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new qe(s.createdAt || void 0, s.lastLoginAt || void 0);
3151
3913
  }
3152
3914
  async getIdToken(e) {
3153
3915
  const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
@@ -3159,10 +3921,10 @@ class I {
3159
3921
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
3160
3922
  }
3161
3923
  getIdTokenResult(e) {
3162
- return Hi(this, e);
3924
+ return Vi(this, e);
3163
3925
  }
3164
3926
  reload() {
3165
- return Wi(this);
3927
+ return zi(this);
3166
3928
  }
3167
3929
  _assign(e) {
3168
3930
  this !== e && (h(
@@ -3195,11 +3957,11 @@ class I {
3195
3957
  }
3196
3958
  async _updateTokensIfNecessary(e, t = !1) {
3197
3959
  let r = !1;
3198
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
3960
+ e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
3199
3961
  }
3200
3962
  async delete() {
3201
- if (v(this.auth.app))
3202
- return Promise.reject(N(this.auth));
3963
+ if (y(this.auth.app))
3964
+ return Promise.reject(D(this.auth));
3203
3965
  const e = await this.getIdToken();
3204
3966
  return await Q(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
3205
3967
  }
@@ -3229,20 +3991,20 @@ class I {
3229
3991
  }
3230
3992
  static _fromJSON(e, t) {
3231
3993
  var r, i, s, a, c, o, l, u;
3232
- const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Ee, emailVerified: rt, isAnonymous: it, providerData: Te, stsTokenManager: st } = t;
3994
+ const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Te, emailVerified: rt, isAnonymous: it, providerData: ke, stsTokenManager: st } = t;
3233
3995
  h(
3234
- Ee && st,
3996
+ Te && st,
3235
3997
  e,
3236
3998
  "internal-error"
3237
3999
  /* AuthErrorCode.INTERNAL_ERROR */
3238
4000
  );
3239
- const On = H.fromJSON(this.name, st);
4001
+ const Nn = q.fromJSON(this.name, st);
3240
4002
  h(
3241
- typeof Ee == "string",
4003
+ typeof Te == "string",
3242
4004
  e,
3243
4005
  "internal-error"
3244
4006
  /* AuthErrorCode.INTERNAL_ERROR */
3245
- ), k(d, e.name), k(p, e.name), h(
4007
+ ), S(d, e.name), S(f, e.name), h(
3246
4008
  typeof rt == "boolean",
3247
4009
  e,
3248
4010
  "internal-error"
@@ -3252,22 +4014,22 @@ class I {
3252
4014
  e,
3253
4015
  "internal-error"
3254
4016
  /* AuthErrorCode.INTERNAL_ERROR */
3255
- ), k(m, e.name), k(F, e.name), k(et, e.name), k(we, e.name), k(tt, e.name), k(nt, e.name);
3256
- const Se = new I({
3257
- uid: Ee,
4017
+ ), S(m, e.name), S(x, e.name), S(et, e.name), S(we, e.name), S(tt, e.name), S(nt, e.name);
4018
+ const Ee = new I({
4019
+ uid: Te,
3258
4020
  auth: e,
3259
- email: p,
4021
+ email: f,
3260
4022
  emailVerified: rt,
3261
4023
  displayName: d,
3262
4024
  isAnonymous: it,
3263
- photoURL: F,
4025
+ photoURL: x,
3264
4026
  phoneNumber: m,
3265
4027
  tenantId: et,
3266
- stsTokenManager: On,
4028
+ stsTokenManager: Nn,
3267
4029
  createdAt: tt,
3268
4030
  lastLoginAt: nt
3269
4031
  });
3270
- return Te && Array.isArray(Te) && (Se.providerData = Te.map((Dn) => Object.assign({}, Dn))), we && (Se._redirectEventId = we), Se;
4032
+ return ke && Array.isArray(ke) && (Ee.providerData = ke.map((On) => Object.assign({}, On))), we && (Ee._redirectEventId = we), Ee;
3271
4033
  }
3272
4034
  /**
3273
4035
  * Initialize a User from an idToken server response
@@ -3275,7 +4037,7 @@ class I {
3275
4037
  * @param idTokenResponse
3276
4038
  */
3277
4039
  static async _fromIdTokenResponse(e, t, r = !1) {
3278
- const i = new H();
4040
+ const i = new q();
3279
4041
  i.updateFromServerResponse(t);
3280
4042
  const s = new I({
3281
4043
  uid: t.localId,
@@ -3283,7 +4045,7 @@ class I {
3283
4045
  stsTokenManager: i,
3284
4046
  isAnonymous: r
3285
4047
  });
3286
- return await pe(s), s;
4048
+ return await fe(s), s;
3287
4049
  }
3288
4050
  /**
3289
4051
  * Initialize a User from an idToken server response
@@ -3297,7 +4059,7 @@ class I {
3297
4059
  "internal-error"
3298
4060
  /* AuthErrorCode.INTERNAL_ERROR */
3299
4061
  );
3300
- const s = i.providerUserInfo !== void 0 ? an(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
4062
+ const s = i.providerUserInfo !== void 0 ? an(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new q();
3301
4063
  c.updateFromIdToken(r);
3302
4064
  const o = new I({
3303
4065
  uid: i.localId,
@@ -3313,7 +4075,7 @@ class I {
3313
4075
  phoneNumber: i.phoneNumber || null,
3314
4076
  tenantId: i.tenantId || null,
3315
4077
  providerData: s,
3316
- metadata: new He(i.createdAt, i.lastLoginAt),
4078
+ metadata: new qe(i.createdAt, i.lastLoginAt),
3317
4079
  isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
3318
4080
  };
3319
4081
  return Object.assign(o, l), o;
@@ -3335,11 +4097,11 @@ class I {
3335
4097
  * See the License for the specific language governing permissions and
3336
4098
  * limitations under the License.
3337
4099
  */
3338
- const yt = /* @__PURE__ */ new Map();
4100
+ const bt = /* @__PURE__ */ new Map();
3339
4101
  function w(n) {
3340
- S(n instanceof Function, "Expected a class definition");
3341
- let e = yt.get(n);
3342
- return e ? (S(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), yt.set(n, e), e);
4102
+ E(n instanceof Function, "Expected a class definition");
4103
+ let e = bt.get(n);
4104
+ return e ? (E(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
3343
4105
  }
3344
4106
  /**
3345
4107
  * @license
@@ -3380,7 +4142,7 @@ class on {
3380
4142
  }
3381
4143
  }
3382
4144
  on.type = "NONE";
3383
- const vt = on;
4145
+ const yt = on;
3384
4146
  /**
3385
4147
  * @license
3386
4148
  * Copyright 2019 Google LLC
@@ -3400,7 +4162,7 @@ const vt = on;
3400
4162
  function oe(n, e, t) {
3401
4163
  return `firebase:${n}:${e}:${t}`;
3402
4164
  }
3403
- class V {
4165
+ class $ {
3404
4166
  constructor(e, t, r) {
3405
4167
  this.persistence = e, this.auth = t, this.userKey = r;
3406
4168
  const { config: i, name: s } = this.auth;
@@ -3431,12 +4193,12 @@ class V {
3431
4193
  }
3432
4194
  static async create(e, t, r = "authUser") {
3433
4195
  if (!t.length)
3434
- return new V(w(vt), e, r);
4196
+ return new $(w(yt), e, r);
3435
4197
  const i = (await Promise.all(t.map(async (l) => {
3436
4198
  if (await l._isAvailable())
3437
4199
  return l;
3438
4200
  }))).filter((l) => l);
3439
- let s = i[0] || w(vt);
4201
+ let s = i[0] || w(yt);
3440
4202
  const a = oe(r, e.config.apiKey, e.name);
3441
4203
  let c = null;
3442
4204
  for (const l of t)
@@ -3450,13 +4212,13 @@ class V {
3450
4212
  } catch {
3451
4213
  }
3452
4214
  const o = i.filter((l) => l._shouldAllowMigration);
3453
- return !s._shouldAllowMigration || !o.length ? new V(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
4215
+ return !s._shouldAllowMigration || !o.length ? new $(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
3454
4216
  if (l !== s)
3455
4217
  try {
3456
4218
  await l._remove(a);
3457
4219
  } catch {
3458
4220
  }
3459
- })), new V(s, e, r));
4221
+ })), new $(s, e, r));
3460
4222
  }
3461
4223
  }
3462
4224
  /**
@@ -3475,7 +4237,7 @@ class V {
3475
4237
  * See the License for the specific language governing permissions and
3476
4238
  * limitations under the License.
3477
4239
  */
3478
- function bt(n) {
4240
+ function vt(n) {
3479
4241
  const e = n.toLowerCase();
3480
4242
  if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
3481
4243
  return "Opera";
@@ -3489,9 +4251,9 @@ function bt(n) {
3489
4251
  return "Firefox";
3490
4252
  if (e.includes("silk/"))
3491
4253
  return "Silk";
3492
- if (fn(e))
3493
- return "Blackberry";
3494
4254
  if (pn(e))
4255
+ return "Blackberry";
4256
+ if (fn(e))
3495
4257
  return "Webos";
3496
4258
  if (ln(e))
3497
4259
  return "Safari";
@@ -3522,24 +4284,24 @@ function dn(n = g()) {
3522
4284
  function hn(n = g()) {
3523
4285
  return /android/i.test(n);
3524
4286
  }
3525
- function fn(n = g()) {
4287
+ function pn(n = g()) {
3526
4288
  return /blackberry/i.test(n);
3527
4289
  }
3528
- function pn(n = g()) {
4290
+ function fn(n = g()) {
3529
4291
  return /webos/i.test(n);
3530
4292
  }
3531
4293
  function Ye(n = g()) {
3532
4294
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
3533
4295
  }
3534
- function Ki(n = g()) {
4296
+ function Yi(n = g()) {
3535
4297
  var e;
3536
4298
  return Ye(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
3537
4299
  }
3538
- function Ji() {
3539
- return hr() && document.documentMode === 10;
4300
+ function Xi() {
4301
+ return fr() && document.documentMode === 10;
3540
4302
  }
3541
4303
  function mn(n = g()) {
3542
- return Ye(n) || hn(n) || pn(n) || fn(n) || /windows phone/i.test(n) || dn(n);
4304
+ return Ye(n) || hn(n) || fn(n) || pn(n) || /windows phone/i.test(n) || dn(n);
3543
4305
  }
3544
4306
  /**
3545
4307
  * @license
@@ -3561,10 +4323,10 @@ function gn(n, e = []) {
3561
4323
  let t;
3562
4324
  switch (n) {
3563
4325
  case "Browser":
3564
- t = bt(g());
4326
+ t = vt(g());
3565
4327
  break;
3566
4328
  case "Worker":
3567
- t = `${bt(g())}-${n}`;
4329
+ t = `${vt(g())}-${n}`;
3568
4330
  break;
3569
4331
  default:
3570
4332
  t = n;
@@ -3588,7 +4350,7 @@ function gn(n, e = []) {
3588
4350
  * See the License for the specific language governing permissions and
3589
4351
  * limitations under the License.
3590
4352
  */
3591
- class Yi {
4353
+ class Qi {
3592
4354
  constructor(e) {
3593
4355
  this.auth = e, this.queue = [];
3594
4356
  }
@@ -3643,8 +4405,8 @@ class Yi {
3643
4405
  * See the License for the specific language governing permissions and
3644
4406
  * limitations under the License.
3645
4407
  */
3646
- async function Xi(n, e = {}) {
3647
- return G(n, "GET", "/v2/passwordPolicy", ye(n, e));
4408
+ async function Zi(n, e = {}) {
4409
+ return z(n, "GET", "/v2/passwordPolicy", be(n, e));
3648
4410
  }
3649
4411
  /**
3650
4412
  * @license
@@ -3662,12 +4424,12 @@ async function Xi(n, e = {}) {
3662
4424
  * See the License for the specific language governing permissions and
3663
4425
  * limitations under the License.
3664
4426
  */
3665
- const Qi = 6;
3666
- class Zi {
4427
+ const es = 6;
4428
+ class ts {
3667
4429
  constructor(e) {
3668
4430
  var t, r, i, s;
3669
4431
  const a = e.customStrengthOptions;
3670
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : Qi, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
4432
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : es, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
3671
4433
  }
3672
4434
  validatePassword(e) {
3673
4435
  var t, r, i, s, a, c;
@@ -3750,14 +4512,14 @@ class Zi {
3750
4512
  * See the License for the specific language governing permissions and
3751
4513
  * limitations under the License.
3752
4514
  */
3753
- class es {
4515
+ class ns {
3754
4516
  constructor(e, t, r, i) {
3755
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new It(this), this.idTokenSubscription = new It(this), this.beforeStateQueue = new Yi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Qt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
4517
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new It(this), this.idTokenSubscription = new It(this), this.beforeStateQueue = new Qi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Qt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3756
4518
  }
3757
4519
  _initializeWithPersistence(e, t) {
3758
4520
  return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
3759
4521
  var r, i;
3760
- if (!this._deleted && (this.persistenceManager = await V.create(this, e), !this._deleted)) {
4522
+ if (!this._deleted && (this.persistenceManager = await $.create(this, e), !this._deleted)) {
3761
4523
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
3762
4524
  try {
3763
4525
  await this._popupRedirectResolver._initialize(this);
@@ -3796,7 +4558,7 @@ class es {
3796
4558
  }
3797
4559
  async initializeCurrentUser(e) {
3798
4560
  var t;
3799
- if (v(this.app)) {
4561
+ if (y(this.app)) {
3800
4562
  const a = this.app.settings.authIdToken;
3801
4563
  return a ? new Promise((c) => {
3802
4564
  setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
@@ -3838,7 +4600,7 @@ class es {
3838
4600
  }
3839
4601
  async reloadAndSetCurrentUserOrClear(e) {
3840
4602
  try {
3841
- await pe(e);
4603
+ await fe(e);
3842
4604
  } catch (t) {
3843
4605
  if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
3844
4606
  return this.directlySetCurrentUser(null);
@@ -3846,15 +4608,15 @@ class es {
3846
4608
  return this.directlySetCurrentUser(e);
3847
4609
  }
3848
4610
  useDeviceLanguage() {
3849
- this.languageCode = Ui();
4611
+ this.languageCode = xi();
3850
4612
  }
3851
4613
  async _delete() {
3852
4614
  this._deleted = !0;
3853
4615
  }
3854
4616
  async updateCurrentUser(e) {
3855
- if (v(this.app))
3856
- return Promise.reject(N(this));
3857
- const t = e ? z(e) : null;
4617
+ if (y(this.app))
4618
+ return Promise.reject(D(this));
4619
+ const t = e ? W(e) : null;
3858
4620
  return t && h(
3859
4621
  t.auth.config.apiKey === this.config.apiKey,
3860
4622
  this,
@@ -3874,14 +4636,14 @@ class es {
3874
4636
  });
3875
4637
  }
3876
4638
  async signOut() {
3877
- return v(this.app) ? Promise.reject(N(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
4639
+ return y(this.app) ? Promise.reject(D(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
3878
4640
  null,
3879
4641
  /* skipBeforeStateCallbacks */
3880
4642
  !0
3881
4643
  ));
3882
4644
  }
3883
4645
  setPersistence(e) {
3884
- return v(this.app) ? Promise.reject(N(this)) : this.queue(async () => {
4646
+ return y(this.app) ? Promise.reject(D(this)) : this.queue(async () => {
3885
4647
  await this.assertedPersistence.setPersistence(w(e));
3886
4648
  });
3887
4649
  }
@@ -3897,7 +4659,7 @@ class es {
3897
4659
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3898
4660
  }
3899
4661
  async _updatePasswordPolicy() {
3900
- const e = await Xi(this), t = new Zi(e);
4662
+ const e = await Zi(this), t = new ts(e);
3901
4663
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3902
4664
  }
3903
4665
  _getPersistence() {
@@ -3937,7 +4699,7 @@ class es {
3937
4699
  token: e,
3938
4700
  idToken: t
3939
4701
  };
3940
- this.tenantId != null && (r.tenantId = this.tenantId), await qi(this, r);
4702
+ this.tenantId != null && (r.tenantId = this.tenantId), await Ji(this, r);
3941
4703
  }
3942
4704
  }
3943
4705
  toJSON() {
@@ -3961,7 +4723,7 @@ class es {
3961
4723
  this,
3962
4724
  "argument-error"
3963
4725
  /* AuthErrorCode.ARGUMENT_ERROR */
3964
- ), this.redirectPersistenceManager = await V.create(
4726
+ ), this.redirectPersistenceManager = await $.create(
3965
4727
  this,
3966
4728
  [w(t._redirectPersistence)],
3967
4729
  "redirectUser"
@@ -4080,15 +4842,15 @@ class es {
4080
4842
  async _getAppCheckToken() {
4081
4843
  var e;
4082
4844
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
4083
- return t != null && t.error && Ni(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
4845
+ return t != null && t.error && Mi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
4084
4846
  }
4085
4847
  }
4086
- function ve(n) {
4087
- return z(n);
4848
+ function ye(n) {
4849
+ return W(n);
4088
4850
  }
4089
4851
  class It {
4090
4852
  constructor(e) {
4091
- this.auth = e, this.observer = null, this.addObserver = vr((t) => this.observer = t);
4853
+ this.auth = e, this.observer = null, this.addObserver = Ir((t) => this.observer = t);
4092
4854
  }
4093
4855
  get next() {
4094
4856
  return h(
@@ -4123,16 +4885,16 @@ let Xe = {
4123
4885
  recaptchaEnterpriseScript: "",
4124
4886
  gapiScript: ""
4125
4887
  };
4126
- function ts(n) {
4888
+ function rs(n) {
4127
4889
  Xe = n;
4128
4890
  }
4129
- function ns(n) {
4891
+ function is(n) {
4130
4892
  return Xe.loadJS(n);
4131
4893
  }
4132
- function rs() {
4894
+ function ss() {
4133
4895
  return Xe.gapiScript;
4134
4896
  }
4135
- function is(n) {
4897
+ function as(n) {
4136
4898
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
4137
4899
  }
4138
4900
  /**
@@ -4151,13 +4913,13 @@ function is(n) {
4151
4913
  * See the License for the specific language governing permissions and
4152
4914
  * limitations under the License.
4153
4915
  */
4154
- function ss(n, e) {
4155
- const t = qt(n, "auth");
4916
+ function os(n, e) {
4917
+ const t = Gt(n, "auth");
4156
4918
  if (t.isInitialized()) {
4157
4919
  const i = t.getImmediate(), s = t.getOptions();
4158
4920
  if (de(s, e ?? {}))
4159
4921
  return i;
4160
- T(
4922
+ k(
4161
4923
  i,
4162
4924
  "already-initialized"
4163
4925
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -4165,12 +4927,12 @@ function ss(n, e) {
4165
4927
  }
4166
4928
  return t.initialize({ options: e });
4167
4929
  }
4168
- function as(n, e) {
4930
+ function cs(n, e) {
4169
4931
  const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(w);
4170
4932
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
4171
4933
  }
4172
- function os(n, e, t) {
4173
- const r = ve(n);
4934
+ function ls(n, e, t) {
4935
+ const r = ye(n);
4174
4936
  h(
4175
4937
  r._canInitEmulator,
4176
4938
  r,
@@ -4182,19 +4944,19 @@ function os(n, e, t) {
4182
4944
  "invalid-emulator-scheme"
4183
4945
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
4184
4946
  );
4185
- const i = !1, s = _n(e), { host: a, port: c } = cs(e), o = c === null ? "" : `:${c}`;
4947
+ const i = !1, s = _n(e), { host: a, port: c } = us(e), o = c === null ? "" : `:${c}`;
4186
4948
  r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
4187
4949
  host: a,
4188
4950
  port: c,
4189
4951
  protocol: s.replace(":", ""),
4190
4952
  options: Object.freeze({ disableWarnings: i })
4191
- }), ls();
4953
+ }), ds();
4192
4954
  }
4193
4955
  function _n(n) {
4194
4956
  const e = n.indexOf(":");
4195
4957
  return e < 0 ? "" : n.substr(0, e + 1);
4196
4958
  }
4197
- function cs(n) {
4959
+ function us(n) {
4198
4960
  const e = _n(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
4199
4961
  if (!t)
4200
4962
  return { host: "", port: null };
@@ -4213,7 +4975,7 @@ function wt(n) {
4213
4975
  const e = Number(n);
4214
4976
  return isNaN(e) ? null : e;
4215
4977
  }
4216
- function ls() {
4978
+ function ds() {
4217
4979
  function n() {
4218
4980
  const e = document.createElement("p"), t = e.style;
4219
4981
  e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
@@ -4236,7 +4998,7 @@ function ls() {
4236
4998
  * See the License for the specific language governing permissions and
4237
4999
  * limitations under the License.
4238
5000
  */
4239
- class yn {
5001
+ class bn {
4240
5002
  /** @internal */
4241
5003
  constructor(e, t) {
4242
5004
  this.providerId = e, this.signInMethod = t;
@@ -4247,19 +5009,19 @@ class yn {
4247
5009
  * @returns a JSON-serializable representation of this object.
4248
5010
  */
4249
5011
  toJSON() {
4250
- return b("not implemented");
5012
+ return v("not implemented");
4251
5013
  }
4252
5014
  /** @internal */
4253
5015
  _getIdTokenResponse(e) {
4254
- return b("not implemented");
5016
+ return v("not implemented");
4255
5017
  }
4256
5018
  /** @internal */
4257
5019
  _linkToIdToken(e, t) {
4258
- return b("not implemented");
5020
+ return v("not implemented");
4259
5021
  }
4260
5022
  /** @internal */
4261
5023
  _getReauthenticationResolver(e) {
4262
- return b("not implemented");
5024
+ return v("not implemented");
4263
5025
  }
4264
5026
  }
4265
5027
  /**
@@ -4278,8 +5040,8 @@ class yn {
4278
5040
  * See the License for the specific language governing permissions and
4279
5041
  * limitations under the License.
4280
5042
  */
4281
- async function j(n, e) {
4282
- return nn(n, "POST", "/v1/accounts:signInWithIdp", ye(n, e));
5043
+ async function V(n, e) {
5044
+ return nn(n, "POST", "/v1/accounts:signInWithIdp", be(n, e));
4283
5045
  }
4284
5046
  /**
4285
5047
  * @license
@@ -4297,15 +5059,15 @@ async function j(n, e) {
4297
5059
  * See the License for the specific language governing permissions and
4298
5060
  * limitations under the License.
4299
5061
  */
4300
- const us = "http://localhost";
4301
- class U extends yn {
5062
+ const hs = "http://localhost";
5063
+ class B extends bn {
4302
5064
  constructor() {
4303
5065
  super(...arguments), this.pendingToken = null;
4304
5066
  }
4305
5067
  /** @internal */
4306
5068
  static _fromParams(e) {
4307
- const t = new U(e.providerId, e.signInMethod);
4308
- return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : T(
5069
+ const t = new B(e.providerId, e.signInMethod);
5070
+ return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : k(
4309
5071
  "argument-error"
4310
5072
  /* AuthErrorCode.ARGUMENT_ERROR */
4311
5073
  ), t;
@@ -4332,30 +5094,30 @@ class U extends yn {
4332
5094
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
4333
5095
  */
4334
5096
  static fromJSON(e) {
4335
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ge(t, ["providerId", "signInMethod"]);
5097
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = ze(t, ["providerId", "signInMethod"]);
4336
5098
  if (!r || !i)
4337
5099
  return null;
4338
- const a = new U(r, i);
5100
+ const a = new B(r, i);
4339
5101
  return a.idToken = s.idToken || void 0, a.accessToken = s.accessToken || void 0, a.secret = s.secret, a.nonce = s.nonce, a.pendingToken = s.pendingToken || null, a;
4340
5102
  }
4341
5103
  /** @internal */
4342
5104
  _getIdTokenResponse(e) {
4343
5105
  const t = this.buildRequest();
4344
- return j(e, t);
5106
+ return V(e, t);
4345
5107
  }
4346
5108
  /** @internal */
4347
5109
  _linkToIdToken(e, t) {
4348
5110
  const r = this.buildRequest();
4349
- return r.idToken = t, j(e, r);
5111
+ return r.idToken = t, V(e, r);
4350
5112
  }
4351
5113
  /** @internal */
4352
5114
  _getReauthenticationResolver(e) {
4353
5115
  const t = this.buildRequest();
4354
- return t.autoCreate = !1, j(e, t);
5116
+ return t.autoCreate = !1, V(e, t);
4355
5117
  }
4356
5118
  buildRequest() {
4357
5119
  const e = {
4358
- requestUri: us,
5120
+ requestUri: hs,
4359
5121
  returnSecureToken: !0
4360
5122
  };
4361
5123
  if (this.pendingToken)
@@ -4383,7 +5145,7 @@ class U extends yn {
4383
5145
  * See the License for the specific language governing permissions and
4384
5146
  * limitations under the License.
4385
5147
  */
4386
- class vn {
5148
+ class yn {
4387
5149
  /**
4388
5150
  * Constructor for generic OAuth providers.
4389
5151
  *
@@ -4436,7 +5198,7 @@ class vn {
4436
5198
  * See the License for the specific language governing permissions and
4437
5199
  * limitations under the License.
4438
5200
  */
4439
- class re extends vn {
5201
+ class re extends yn {
4440
5202
  constructor() {
4441
5203
  super(...arguments), this.scopes = [];
4442
5204
  }
@@ -4471,7 +5233,7 @@ class re extends vn {
4471
5233
  * See the License for the specific language governing permissions and
4472
5234
  * limitations under the License.
4473
5235
  */
4474
- class A extends re {
5236
+ class R extends re {
4475
5237
  constructor() {
4476
5238
  super(
4477
5239
  "facebook.com"
@@ -4491,9 +5253,9 @@ class A extends re {
4491
5253
  * @param accessToken - Facebook access token.
4492
5254
  */
4493
5255
  static credential(e) {
4494
- return U._fromParams({
4495
- providerId: A.PROVIDER_ID,
4496
- signInMethod: A.FACEBOOK_SIGN_IN_METHOD,
5256
+ return B._fromParams({
5257
+ providerId: R.PROVIDER_ID,
5258
+ signInMethod: R.FACEBOOK_SIGN_IN_METHOD,
4497
5259
  accessToken: e
4498
5260
  });
4499
5261
  }
@@ -4503,7 +5265,7 @@ class A extends re {
4503
5265
  * @param userCredential - The user credential.
4504
5266
  */
4505
5267
  static credentialFromResult(e) {
4506
- return A.credentialFromTaggedObject(e);
5268
+ return R.credentialFromTaggedObject(e);
4507
5269
  }
4508
5270
  /**
4509
5271
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4512,20 +5274,20 @@ class A extends re {
4512
5274
  * @param userCredential - The user credential.
4513
5275
  */
4514
5276
  static credentialFromError(e) {
4515
- return A.credentialFromTaggedObject(e.customData || {});
5277
+ return R.credentialFromTaggedObject(e.customData || {});
4516
5278
  }
4517
5279
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4518
5280
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4519
5281
  return null;
4520
5282
  try {
4521
- return A.credential(e.oauthAccessToken);
5283
+ return R.credential(e.oauthAccessToken);
4522
5284
  } catch {
4523
5285
  return null;
4524
5286
  }
4525
5287
  }
4526
5288
  }
4527
- A.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4528
- A.PROVIDER_ID = "facebook.com";
5289
+ R.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
5290
+ R.PROVIDER_ID = "facebook.com";
4529
5291
  /**
4530
5292
  * @license
4531
5293
  * Copyright 2020 Google LLC
@@ -4563,7 +5325,7 @@ class C extends re {
4563
5325
  * @param accessToken - Google access token.
4564
5326
  */
4565
5327
  static credential(e, t) {
4566
- return U._fromParams({
5328
+ return B._fromParams({
4567
5329
  providerId: C.PROVIDER_ID,
4568
5330
  signInMethod: C.GOOGLE_SIGN_IN_METHOD,
4569
5331
  idToken: e,
@@ -4618,7 +5380,7 @@ C.PROVIDER_ID = "google.com";
4618
5380
  * See the License for the specific language governing permissions and
4619
5381
  * limitations under the License.
4620
5382
  */
4621
- class R extends re {
5383
+ class A extends re {
4622
5384
  constructor() {
4623
5385
  super(
4624
5386
  "github.com"
@@ -4631,9 +5393,9 @@ class R extends re {
4631
5393
  * @param accessToken - GitHub access token.
4632
5394
  */
4633
5395
  static credential(e) {
4634
- return U._fromParams({
4635
- providerId: R.PROVIDER_ID,
4636
- signInMethod: R.GITHUB_SIGN_IN_METHOD,
5396
+ return B._fromParams({
5397
+ providerId: A.PROVIDER_ID,
5398
+ signInMethod: A.GITHUB_SIGN_IN_METHOD,
4637
5399
  accessToken: e
4638
5400
  });
4639
5401
  }
@@ -4643,7 +5405,7 @@ class R extends re {
4643
5405
  * @param userCredential - The user credential.
4644
5406
  */
4645
5407
  static credentialFromResult(e) {
4646
- return R.credentialFromTaggedObject(e);
5408
+ return A.credentialFromTaggedObject(e);
4647
5409
  }
4648
5410
  /**
4649
5411
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4652,20 +5414,20 @@ class R extends re {
4652
5414
  * @param userCredential - The user credential.
4653
5415
  */
4654
5416
  static credentialFromError(e) {
4655
- return R.credentialFromTaggedObject(e.customData || {});
5417
+ return A.credentialFromTaggedObject(e.customData || {});
4656
5418
  }
4657
5419
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4658
5420
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4659
5421
  return null;
4660
5422
  try {
4661
- return R.credential(e.oauthAccessToken);
5423
+ return A.credential(e.oauthAccessToken);
4662
5424
  } catch {
4663
5425
  return null;
4664
5426
  }
4665
5427
  }
4666
5428
  }
4667
- R.GITHUB_SIGN_IN_METHOD = "github.com";
4668
- R.PROVIDER_ID = "github.com";
5429
+ A.GITHUB_SIGN_IN_METHOD = "github.com";
5430
+ A.PROVIDER_ID = "github.com";
4669
5431
  /**
4670
5432
  * @license
4671
5433
  * Copyright 2020 Google LLC
@@ -4696,7 +5458,7 @@ class P extends re {
4696
5458
  * @param secret - Twitter secret.
4697
5459
  */
4698
5460
  static credential(e, t) {
4699
- return U._fromParams({
5461
+ return B._fromParams({
4700
5462
  providerId: P.PROVIDER_ID,
4701
5463
  signInMethod: P.TWITTER_SIGN_IN_METHOD,
4702
5464
  oauthToken: e,
@@ -4751,13 +5513,13 @@ P.PROVIDER_ID = "twitter.com";
4751
5513
  * See the License for the specific language governing permissions and
4752
5514
  * limitations under the License.
4753
5515
  */
4754
- class x {
5516
+ class U {
4755
5517
  constructor(e) {
4756
5518
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
4757
5519
  }
4758
5520
  static async _fromIdTokenResponse(e, t, r, i = !1) {
4759
- const s = await I._fromIdTokenResponse(e, r, i), a = Et(r);
4760
- return new x({
5521
+ const s = await I._fromIdTokenResponse(e, r, i), a = Tt(r);
5522
+ return new U({
4761
5523
  user: s,
4762
5524
  providerId: a,
4763
5525
  _tokenResponse: r,
@@ -4770,8 +5532,8 @@ class x {
4770
5532
  /* reload */
4771
5533
  !0
4772
5534
  );
4773
- const i = Et(r);
4774
- return new x({
5535
+ const i = Tt(r);
5536
+ return new U({
4775
5537
  user: e,
4776
5538
  providerId: i,
4777
5539
  _tokenResponse: r,
@@ -4779,7 +5541,7 @@ class x {
4779
5541
  });
4780
5542
  }
4781
5543
  }
4782
- function Et(n) {
5544
+ function Tt(n) {
4783
5545
  return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
4784
5546
  }
4785
5547
  /**
@@ -4812,14 +5574,14 @@ class me extends L {
4812
5574
  return new me(e, t, r, i);
4813
5575
  }
4814
5576
  }
4815
- function bn(n, e, t, r) {
5577
+ function vn(n, e, t, r) {
4816
5578
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
4817
5579
  throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
4818
5580
  });
4819
5581
  }
4820
- async function ds(n, e, t = !1) {
5582
+ async function ps(n, e, t = !1) {
4821
5583
  const r = await Q(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
4822
- return x._forOperation(n, "link", r);
5584
+ return U._forOperation(n, "link", r);
4823
5585
  }
4824
5586
  /**
4825
5587
  * @license
@@ -4837,13 +5599,13 @@ async function ds(n, e, t = !1) {
4837
5599
  * See the License for the specific language governing permissions and
4838
5600
  * limitations under the License.
4839
5601
  */
4840
- async function hs(n, e, t = !1) {
5602
+ async function fs(n, e, t = !1) {
4841
5603
  const { auth: r } = n;
4842
- if (v(r.app))
4843
- return Promise.reject(N(r));
5604
+ if (y(r.app))
5605
+ return Promise.reject(D(r));
4844
5606
  const i = "reauthenticate";
4845
5607
  try {
4846
- const s = await Q(n, bn(r, i, e, n), t);
5608
+ const s = await Q(n, vn(r, i, e, n), t);
4847
5609
  h(
4848
5610
  s.idToken,
4849
5611
  r,
@@ -4863,9 +5625,9 @@ async function hs(n, e, t = !1) {
4863
5625
  r,
4864
5626
  "user-mismatch"
4865
5627
  /* AuthErrorCode.USER_MISMATCH */
4866
- ), x._forOperation(n, i, s);
5628
+ ), U._forOperation(n, i, s);
4867
5629
  } catch (s) {
4868
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && T(
5630
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && k(
4869
5631
  r,
4870
5632
  "user-mismatch"
4871
5633
  /* AuthErrorCode.USER_MISMATCH */
@@ -4888,10 +5650,10 @@ async function hs(n, e, t = !1) {
4888
5650
  * See the License for the specific language governing permissions and
4889
5651
  * limitations under the License.
4890
5652
  */
4891
- async function fs(n, e, t = !1) {
4892
- if (v(n.app))
4893
- return Promise.reject(N(n));
4894
- const r = "signIn", i = await bn(n, r, e), s = await x._fromIdTokenResponse(n, r, i);
5653
+ async function ms(n, e, t = !1) {
5654
+ if (y(n.app))
5655
+ return Promise.reject(D(n));
5656
+ const r = "signIn", i = await vn(n, r, e), s = await U._fromIdTokenResponse(n, r, i);
4895
5657
  return t || await n._updateCurrentUser(s.user), s;
4896
5658
  }
4897
5659
  /**
@@ -4910,8 +5672,8 @@ async function fs(n, e, t = !1) {
4910
5672
  * See the License for the specific language governing permissions and
4911
5673
  * limitations under the License.
4912
5674
  */
4913
- async function ps(n, e) {
4914
- return nn(n, "POST", "/v1/accounts:signInWithCustomToken", ye(n, e));
5675
+ async function gs(n, e) {
5676
+ return nn(n, "POST", "/v1/accounts:signInWithCustomToken", be(n, e));
4915
5677
  }
4916
5678
  /**
4917
5679
  * @license
@@ -4929,20 +5691,20 @@ async function ps(n, e) {
4929
5691
  * See the License for the specific language governing permissions and
4930
5692
  * limitations under the License.
4931
5693
  */
4932
- async function ms(n, e) {
4933
- if (v(n.app))
4934
- return Promise.reject(N(n));
4935
- const t = ve(n), r = await ps(t, {
5694
+ async function _s(n, e) {
5695
+ if (y(n.app))
5696
+ return Promise.reject(D(n));
5697
+ const t = ye(n), r = await gs(t, {
4936
5698
  token: e,
4937
5699
  returnSecureToken: !0
4938
- }), i = await x._fromIdTokenResponse(t, "signIn", r);
5700
+ }), i = await U._fromIdTokenResponse(t, "signIn", r);
4939
5701
  return await t._updateCurrentUser(i.user), i;
4940
5702
  }
4941
- function gs(n, e, t, r) {
4942
- return z(n).onIdTokenChanged(e, t, r);
5703
+ function bs(n, e, t, r) {
5704
+ return W(n).onIdTokenChanged(e, t, r);
4943
5705
  }
4944
- function _s(n, e, t) {
4945
- return z(n).beforeAuthStateChanged(e, t);
5706
+ function ys(n, e, t) {
5707
+ return W(n).beforeAuthStateChanged(e, t);
4946
5708
  }
4947
5709
  const ge = "__sak";
4948
5710
  /**
@@ -5002,7 +5764,7 @@ class In {
5002
5764
  * See the License for the specific language governing permissions and
5003
5765
  * limitations under the License.
5004
5766
  */
5005
- const ys = 1e3, vs = 10;
5767
+ const vs = 1e3, Is = 10;
5006
5768
  class wn extends In {
5007
5769
  constructor() {
5008
5770
  super(
@@ -5030,7 +5792,7 @@ class wn extends In {
5030
5792
  const a = this.storage.getItem(r);
5031
5793
  !t && this.localCache[r] === a || this.notifyListeners(r, a);
5032
5794
  }, s = this.storage.getItem(r);
5033
- Ji() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, vs) : i();
5795
+ Xi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, Is) : i();
5034
5796
  }
5035
5797
  notifyListeners(e, t) {
5036
5798
  this.localCache[e] = t;
@@ -5052,7 +5814,7 @@ class wn extends In {
5052
5814
  !0
5053
5815
  );
5054
5816
  });
5055
- }, ys);
5817
+ }, vs);
5056
5818
  }
5057
5819
  stopPolling() {
5058
5820
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -5082,7 +5844,7 @@ class wn extends In {
5082
5844
  }
5083
5845
  }
5084
5846
  wn.type = "LOCAL";
5085
- const bs = wn;
5847
+ const ws = wn;
5086
5848
  /**
5087
5849
  * @license
5088
5850
  * Copyright 2020 Google LLC
@@ -5099,7 +5861,7 @@ const bs = wn;
5099
5861
  * See the License for the specific language governing permissions and
5100
5862
  * limitations under the License.
5101
5863
  */
5102
- class En extends In {
5864
+ class Tn extends In {
5103
5865
  constructor() {
5104
5866
  super(
5105
5867
  () => window.sessionStorage,
@@ -5112,8 +5874,8 @@ class En extends In {
5112
5874
  _removeListener(e, t) {
5113
5875
  }
5114
5876
  }
5115
- En.type = "SESSION";
5116
- const Tn = En;
5877
+ Tn.type = "SESSION";
5878
+ const kn = Tn;
5117
5879
  /**
5118
5880
  * @license
5119
5881
  * Copyright 2019 Google LLC
@@ -5130,7 +5892,7 @@ const Tn = En;
5130
5892
  * See the License for the specific language governing permissions and
5131
5893
  * limitations under the License.
5132
5894
  */
5133
- function Is(n) {
5895
+ function Ts(n) {
5134
5896
  return Promise.all(n.map(async (e) => {
5135
5897
  try {
5136
5898
  return {
@@ -5161,7 +5923,7 @@ function Is(n) {
5161
5923
  * See the License for the specific language governing permissions and
5162
5924
  * limitations under the License.
5163
5925
  */
5164
- class be {
5926
+ class ve {
5165
5927
  constructor(e) {
5166
5928
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
5167
5929
  }
@@ -5175,7 +5937,7 @@ class be {
5175
5937
  const t = this.receivers.find((i) => i.isListeningto(e));
5176
5938
  if (t)
5177
5939
  return t;
5178
- const r = new be(e);
5940
+ const r = new ve(e);
5179
5941
  return this.receivers.push(r), r;
5180
5942
  }
5181
5943
  isListeningto(e) {
@@ -5200,7 +5962,7 @@ class be {
5200
5962
  eventId: r,
5201
5963
  eventType: i
5202
5964
  });
5203
- const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await Is(c);
5965
+ const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await Ts(c);
5204
5966
  t.ports[0].postMessage({
5205
5967
  status: "done",
5206
5968
  eventId: r,
@@ -5229,7 +5991,7 @@ class be {
5229
5991
  this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
5230
5992
  }
5231
5993
  }
5232
- be.receivers = [];
5994
+ ve.receivers = [];
5233
5995
  /**
5234
5996
  * @license
5235
5997
  * Copyright 2020 Google LLC
@@ -5268,7 +6030,7 @@ function Qe(n = "", e = 10) {
5268
6030
  * See the License for the specific language governing permissions and
5269
6031
  * limitations under the License.
5270
6032
  */
5271
- class ws {
6033
+ class ks {
5272
6034
  constructor(e) {
5273
6035
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
5274
6036
  }
@@ -5313,9 +6075,9 @@ class ws {
5313
6075
  a = {
5314
6076
  messageChannel: i,
5315
6077
  onMessage(d) {
5316
- const p = d;
5317
- if (p.data.eventId === l)
5318
- switch (p.data.status) {
6078
+ const f = d;
6079
+ if (f.data.eventId === l)
6080
+ switch (f.data.status) {
5319
6081
  case "ack":
5320
6082
  clearTimeout(u), s = setTimeout(
5321
6083
  () => {
@@ -5329,7 +6091,7 @@ class ws {
5329
6091
  );
5330
6092
  break;
5331
6093
  case "done":
5332
- clearTimeout(s), c(p.data.response);
6094
+ clearTimeout(s), c(f.data.response);
5333
6095
  break;
5334
6096
  default:
5335
6097
  clearTimeout(u), clearTimeout(s), o(new Error(
@@ -5365,11 +6127,11 @@ class ws {
5365
6127
  * See the License for the specific language governing permissions and
5366
6128
  * limitations under the License.
5367
6129
  */
5368
- function y() {
6130
+ function b() {
5369
6131
  return window;
5370
6132
  }
5371
6133
  function Es(n) {
5372
- y().location.href = n;
6134
+ b().location.href = n;
5373
6135
  }
5374
6136
  /**
5375
6137
  * @license
@@ -5387,10 +6149,10 @@ function Es(n) {
5387
6149
  * See the License for the specific language governing permissions and
5388
6150
  * limitations under the License.
5389
6151
  */
5390
- function Sn() {
5391
- return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
6152
+ function En() {
6153
+ return typeof b().WorkerGlobalScope < "u" && typeof b().importScripts == "function";
5392
6154
  }
5393
- async function Ts() {
6155
+ async function Ss() {
5394
6156
  if (!(navigator != null && navigator.serviceWorker))
5395
6157
  return null;
5396
6158
  try {
@@ -5399,12 +6161,12 @@ async function Ts() {
5399
6161
  return null;
5400
6162
  }
5401
6163
  }
5402
- function Ss() {
6164
+ function Rs() {
5403
6165
  var n;
5404
6166
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
5405
6167
  }
5406
- function ks() {
5407
- return Sn() ? self : null;
6168
+ function Cs() {
6169
+ return En() ? self : null;
5408
6170
  }
5409
6171
  /**
5410
6172
  * @license
@@ -5422,7 +6184,7 @@ function ks() {
5422
6184
  * See the License for the specific language governing permissions and
5423
6185
  * limitations under the License.
5424
6186
  */
5425
- const kn = "firebaseLocalStorageDb", As = 1, _e = "firebaseLocalStorage", An = "fbase_key";
6187
+ const Sn = "firebaseLocalStorageDb", As = 1, _e = "firebaseLocalStorage", Rn = "fbase_key";
5426
6188
  class ie {
5427
6189
  constructor(e) {
5428
6190
  this.request = e;
@@ -5440,44 +6202,44 @@ class ie {
5440
6202
  function Ie(n, e) {
5441
6203
  return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
5442
6204
  }
5443
- function Cs() {
5444
- const n = indexedDB.deleteDatabase(kn);
6205
+ function Ps() {
6206
+ const n = indexedDB.deleteDatabase(Sn);
5445
6207
  return new ie(n).toPromise();
5446
6208
  }
5447
- function Ve() {
5448
- const n = indexedDB.open(kn, As);
6209
+ function $e() {
6210
+ const n = indexedDB.open(Sn, As);
5449
6211
  return new Promise((e, t) => {
5450
6212
  n.addEventListener("error", () => {
5451
6213
  t(n.error);
5452
6214
  }), n.addEventListener("upgradeneeded", () => {
5453
6215
  const r = n.result;
5454
6216
  try {
5455
- r.createObjectStore(_e, { keyPath: An });
6217
+ r.createObjectStore(_e, { keyPath: Rn });
5456
6218
  } catch (i) {
5457
6219
  t(i);
5458
6220
  }
5459
6221
  }), n.addEventListener("success", async () => {
5460
6222
  const r = n.result;
5461
- r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Cs(), e(await Ve()));
6223
+ r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Ps(), e(await $e()));
5462
6224
  });
5463
6225
  });
5464
6226
  }
5465
- async function Tt(n, e, t) {
6227
+ async function kt(n, e, t) {
5466
6228
  const r = Ie(n, !0).put({
5467
- [An]: e,
6229
+ [Rn]: e,
5468
6230
  value: t
5469
6231
  });
5470
6232
  return new ie(r).toPromise();
5471
6233
  }
5472
- async function Rs(n, e) {
6234
+ async function Ns(n, e) {
5473
6235
  const t = Ie(n, !1).get(e), r = await new ie(t).toPromise();
5474
6236
  return r === void 0 ? null : r.value;
5475
6237
  }
5476
- function St(n, e) {
6238
+ function Et(n, e) {
5477
6239
  const t = Ie(n, !0).delete(e);
5478
6240
  return new ie(t).toPromise();
5479
6241
  }
5480
- const Ps = 800, Os = 3;
6242
+ const Os = 800, Ds = 3;
5481
6243
  class Cn {
5482
6244
  constructor() {
5483
6245
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
@@ -5485,7 +6247,7 @@ class Cn {
5485
6247
  });
5486
6248
  }
5487
6249
  async _openDb() {
5488
- return this.db ? this.db : (this.db = await Ve(), this.db);
6250
+ return this.db ? this.db : (this.db = await $e(), this.db);
5489
6251
  }
5490
6252
  async _withRetries(e) {
5491
6253
  let t = 0;
@@ -5494,7 +6256,7 @@ class Cn {
5494
6256
  const r = await this._openDb();
5495
6257
  return await e(r);
5496
6258
  } catch (r) {
5497
- if (t++ > Os)
6259
+ if (t++ > Ds)
5498
6260
  throw r;
5499
6261
  this.db && (this.db.close(), this.db = void 0);
5500
6262
  }
@@ -5504,13 +6266,13 @@ class Cn {
5504
6266
  * postMessage interface to send these events to the worker ourselves.
5505
6267
  */
5506
6268
  async initializeServiceWorkerMessaging() {
5507
- return Sn() ? this.initializeReceiver() : this.initializeSender();
6269
+ return En() ? this.initializeReceiver() : this.initializeSender();
5508
6270
  }
5509
6271
  /**
5510
6272
  * As the worker we should listen to events from the main window.
5511
6273
  */
5512
6274
  async initializeReceiver() {
5513
- this.receiver = be._getInstance(ks()), this.receiver._subscribe("keyChanged", async (e, t) => ({
6275
+ this.receiver = ve._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
5514
6276
  keyProcessed: (await this._poll()).includes(t.key)
5515
6277
  })), this.receiver._subscribe("ping", async (e, t) => [
5516
6278
  "keyChanged"
@@ -5526,9 +6288,9 @@ class Cn {
5526
6288
  */
5527
6289
  async initializeSender() {
5528
6290
  var e, t;
5529
- if (this.activeServiceWorker = await Ts(), !this.activeServiceWorker)
6291
+ if (this.activeServiceWorker = await Ss(), !this.activeServiceWorker)
5530
6292
  return;
5531
- this.sender = new ws(this.activeServiceWorker);
6293
+ this.sender = new ks(this.activeServiceWorker);
5532
6294
  const r = await this.sender._send(
5533
6295
  "ping",
5534
6296
  {},
@@ -5550,7 +6312,7 @@ class Cn {
5550
6312
  * @param key - Storage key which changed.
5551
6313
  */
5552
6314
  async notifyServiceWorker(e) {
5553
- if (!(!this.sender || !this.activeServiceWorker || Ss() !== this.activeServiceWorker))
6315
+ if (!(!this.sender || !this.activeServiceWorker || Rs() !== this.activeServiceWorker))
5554
6316
  try {
5555
6317
  await this.sender._send(
5556
6318
  "keyChanged",
@@ -5566,8 +6328,8 @@ class Cn {
5566
6328
  try {
5567
6329
  if (!indexedDB)
5568
6330
  return !1;
5569
- const e = await Ve();
5570
- return await Tt(e, ge, "1"), await St(e, ge), !0;
6331
+ const e = await $e();
6332
+ return await kt(e, ge, "1"), await Et(e, ge), !0;
5571
6333
  } catch {
5572
6334
  }
5573
6335
  return !1;
@@ -5581,14 +6343,14 @@ class Cn {
5581
6343
  }
5582
6344
  }
5583
6345
  async _set(e, t) {
5584
- return this._withPendingWrite(async () => (await this._withRetries((r) => Tt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
6346
+ return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
5585
6347
  }
5586
6348
  async _get(e) {
5587
- const t = await this._withRetries((r) => Rs(r, e));
6349
+ const t = await this._withRetries((r) => Ns(r, e));
5588
6350
  return this.localCache[e] = t, t;
5589
6351
  }
5590
6352
  async _remove(e) {
5591
- return this._withPendingWrite(async () => (await this._withRetries((t) => St(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
6353
+ return this._withPendingWrite(async () => (await this._withRetries((t) => Et(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
5592
6354
  }
5593
6355
  async _poll() {
5594
6356
  const e = await this._withRetries((i) => {
@@ -5615,7 +6377,7 @@ class Cn {
5615
6377
  i(t);
5616
6378
  }
5617
6379
  startPolling() {
5618
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ps);
6380
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Os);
5619
6381
  }
5620
6382
  stopPolling() {
5621
6383
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -5628,7 +6390,7 @@ class Cn {
5628
6390
  }
5629
6391
  }
5630
6392
  Cn.type = "LOCAL";
5631
- const Ds = Cn;
6393
+ const Ls = Cn;
5632
6394
  new ne(3e4, 6e4);
5633
6395
  /**
5634
6396
  * @license
@@ -5646,7 +6408,7 @@ new ne(3e4, 6e4);
5646
6408
  * See the License for the specific language governing permissions and
5647
6409
  * limitations under the License.
5648
6410
  */
5649
- function Ns(n, e) {
6411
+ function Ms(n, e) {
5650
6412
  return e ? w(e) : (h(
5651
6413
  n._popupRedirectResolver,
5652
6414
  n,
@@ -5670,7 +6432,7 @@ function Ns(n, e) {
5670
6432
  * See the License for the specific language governing permissions and
5671
6433
  * limitations under the License.
5672
6434
  */
5673
- class Ze extends yn {
6435
+ class Ze extends bn {
5674
6436
  constructor(e) {
5675
6437
  super(
5676
6438
  "custom",
@@ -5679,13 +6441,13 @@ class Ze extends yn {
5679
6441
  ), this.params = e;
5680
6442
  }
5681
6443
  _getIdTokenResponse(e) {
5682
- return j(e, this._buildIdpRequest());
6444
+ return V(e, this._buildIdpRequest());
5683
6445
  }
5684
6446
  _linkToIdToken(e, t) {
5685
- return j(e, this._buildIdpRequest(t));
6447
+ return V(e, this._buildIdpRequest(t));
5686
6448
  }
5687
6449
  _getReauthenticationResolver(e) {
5688
- return j(e, this._buildIdpRequest());
6450
+ return V(e, this._buildIdpRequest());
5689
6451
  }
5690
6452
  _buildIdpRequest(e) {
5691
6453
  const t = {
@@ -5700,26 +6462,26 @@ class Ze extends yn {
5700
6462
  return e && (t.idToken = e), t;
5701
6463
  }
5702
6464
  }
5703
- function Ls(n) {
5704
- return fs(n.auth, new Ze(n), n.bypassAuthState);
6465
+ function Bs(n) {
6466
+ return ms(n.auth, new Ze(n), n.bypassAuthState);
5705
6467
  }
5706
- function Ms(n) {
6468
+ function Us(n) {
5707
6469
  const { auth: e, user: t } = n;
5708
6470
  return h(
5709
6471
  t,
5710
6472
  e,
5711
6473
  "internal-error"
5712
6474
  /* AuthErrorCode.INTERNAL_ERROR */
5713
- ), hs(t, new Ze(n), n.bypassAuthState);
6475
+ ), fs(t, new Ze(n), n.bypassAuthState);
5714
6476
  }
5715
- async function Us(n) {
6477
+ async function xs(n) {
5716
6478
  const { auth: e, user: t } = n;
5717
6479
  return h(
5718
6480
  t,
5719
6481
  e,
5720
6482
  "internal-error"
5721
6483
  /* AuthErrorCode.INTERNAL_ERROR */
5722
- ), ds(t, new Ze(n), n.bypassAuthState);
6484
+ ), ps(t, new Ze(n), n.bypassAuthState);
5723
6485
  }
5724
6486
  /**
5725
6487
  * @license
@@ -5737,7 +6499,7 @@ async function Us(n) {
5737
6499
  * See the License for the specific language governing permissions and
5738
6500
  * limitations under the License.
5739
6501
  */
5740
- class Rn {
6502
+ class An {
5741
6503
  constructor(e, t, r, i, s = !1) {
5742
6504
  this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
5743
6505
  }
@@ -5779,15 +6541,15 @@ class Rn {
5779
6541
  switch (e) {
5780
6542
  case "signInViaPopup":
5781
6543
  case "signInViaRedirect":
5782
- return Ls;
6544
+ return Bs;
5783
6545
  case "linkViaPopup":
5784
6546
  case "linkViaRedirect":
5785
- return Us;
6547
+ return xs;
5786
6548
  case "reauthViaPopup":
5787
6549
  case "reauthViaRedirect":
5788
- return Ms;
6550
+ return Us;
5789
6551
  default:
5790
- T(
6552
+ k(
5791
6553
  this.auth,
5792
6554
  "internal-error"
5793
6555
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -5795,10 +6557,10 @@ class Rn {
5795
6557
  }
5796
6558
  }
5797
6559
  resolve(e) {
5798
- S(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
6560
+ E(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
5799
6561
  }
5800
6562
  reject(e) {
5801
- S(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
6563
+ E(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
5802
6564
  }
5803
6565
  unregisterAndCleanUp() {
5804
6566
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -5820,10 +6582,10 @@ class Rn {
5820
6582
  * See the License for the specific language governing permissions and
5821
6583
  * limitations under the License.
5822
6584
  */
5823
- const xs = new ne(2e3, 1e4);
5824
- class B extends Rn {
6585
+ const Fs = new ne(2e3, 1e4);
6586
+ class F extends An {
5825
6587
  constructor(e, t, r, i, s) {
5826
- super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, B.currentPopupAction && B.currentPopupAction.cancel(), B.currentPopupAction = this;
6588
+ super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, F.currentPopupAction && F.currentPopupAction.cancel(), F.currentPopupAction = this;
5827
6589
  }
5828
6590
  async executeNotNull() {
5829
6591
  const e = await this.execute();
@@ -5835,7 +6597,7 @@ class B extends Rn {
5835
6597
  ), e;
5836
6598
  }
5837
6599
  async onExecution() {
5838
- S(this.filter.length === 1, "Popup operations only handle one event");
6600
+ E(this.filter.length === 1, "Popup operations only handle one event");
5839
6601
  const e = Qe();
5840
6602
  this.authWindow = await this.resolver._openPopup(
5841
6603
  this.auth,
@@ -5865,7 +6627,7 @@ class B extends Rn {
5865
6627
  ));
5866
6628
  }
5867
6629
  cleanUp() {
5868
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, B.currentPopupAction = null;
6630
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, F.currentPopupAction = null;
5869
6631
  }
5870
6632
  pollUserCancellation() {
5871
6633
  const e = () => {
@@ -5884,12 +6646,12 @@ class B extends Rn {
5884
6646
  );
5885
6647
  return;
5886
6648
  }
5887
- this.pollId = window.setTimeout(e, xs.get());
6649
+ this.pollId = window.setTimeout(e, Fs.get());
5888
6650
  };
5889
6651
  e();
5890
6652
  }
5891
6653
  }
5892
- B.currentPopupAction = null;
6654
+ F.currentPopupAction = null;
5893
6655
  /**
5894
6656
  * @license
5895
6657
  * Copyright 2020 Google LLC
@@ -5906,8 +6668,8 @@ B.currentPopupAction = null;
5906
6668
  * See the License for the specific language governing permissions and
5907
6669
  * limitations under the License.
5908
6670
  */
5909
- const Fs = "pendingRedirect", ce = /* @__PURE__ */ new Map();
5910
- class Bs extends Rn {
6671
+ const Hs = "pendingRedirect", ce = /* @__PURE__ */ new Map();
6672
+ class qs extends An {
5911
6673
  constructor(e, t, r = !1) {
5912
6674
  super(e, [
5913
6675
  "signInViaRedirect",
@@ -5954,25 +6716,25 @@ class Bs extends Rn {
5954
6716
  }
5955
6717
  }
5956
6718
  async function $s(n, e) {
5957
- const t = js(e), r = Vs(n);
6719
+ const t = Ws(e), r = js(n);
5958
6720
  if (!await r._isAvailable())
5959
6721
  return !1;
5960
6722
  const i = await r._get(t) === "true";
5961
6723
  return await r._remove(t), i;
5962
6724
  }
5963
- function Hs(n, e) {
6725
+ function Vs(n, e) {
5964
6726
  ce.set(n._key(), e);
5965
6727
  }
5966
- function Vs(n) {
6728
+ function js(n) {
5967
6729
  return w(n._redirectPersistence);
5968
6730
  }
5969
- function js(n) {
5970
- return oe(Fs, n.config.apiKey, n.name);
6731
+ function Ws(n) {
6732
+ return oe(Hs, n.config.apiKey, n.name);
5971
6733
  }
5972
- async function Ws(n, e, t = !1) {
5973
- if (v(n.app))
5974
- return Promise.reject(N(n));
5975
- const r = ve(n), i = Ns(r, e), a = await new Bs(r, i, t).execute();
6734
+ async function zs(n, e, t = !1) {
6735
+ if (y(n.app))
6736
+ return Promise.reject(D(n));
6737
+ const r = ye(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
5976
6738
  return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
5977
6739
  }
5978
6740
  /**
@@ -5991,8 +6753,8 @@ async function Ws(n, e, t = !1) {
5991
6753
  * See the License for the specific language governing permissions and
5992
6754
  * limitations under the License.
5993
6755
  */
5994
- const zs = 10 * 60 * 1e3;
5995
- class Gs {
6756
+ const Gs = 10 * 60 * 1e3;
6757
+ class Ks {
5996
6758
  constructor(e) {
5997
6759
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
5998
6760
  }
@@ -6008,7 +6770,7 @@ class Gs {
6008
6770
  let t = !1;
6009
6771
  return this.consumers.forEach((r) => {
6010
6772
  this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
6011
- }), this.hasHandledPotentialRedirect || !qs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
6773
+ }), this.hasHandledPotentialRedirect || !Js(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
6012
6774
  }
6013
6775
  sendToConsumer(e, t) {
6014
6776
  var r;
@@ -6023,19 +6785,19 @@ class Gs {
6023
6785
  return t.filter.includes(e.type) && r;
6024
6786
  }
6025
6787
  hasEventBeenHandled(e) {
6026
- return Date.now() - this.lastProcessedEventTime >= zs && this.cachedEventUids.clear(), this.cachedEventUids.has(kt(e));
6788
+ return Date.now() - this.lastProcessedEventTime >= Gs && this.cachedEventUids.clear(), this.cachedEventUids.has(St(e));
6027
6789
  }
6028
6790
  saveEventToCache(e) {
6029
- this.cachedEventUids.add(kt(e)), this.lastProcessedEventTime = Date.now();
6791
+ this.cachedEventUids.add(St(e)), this.lastProcessedEventTime = Date.now();
6030
6792
  }
6031
6793
  }
6032
- function kt(n) {
6794
+ function St(n) {
6033
6795
  return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
6034
6796
  }
6035
6797
  function Pn({ type: n, error: e }) {
6036
6798
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
6037
6799
  }
6038
- function qs(n) {
6800
+ function Js(n) {
6039
6801
  switch (n.type) {
6040
6802
  case "signInViaRedirect":
6041
6803
  case "linkViaRedirect":
@@ -6063,8 +6825,8 @@ function qs(n) {
6063
6825
  * See the License for the specific language governing permissions and
6064
6826
  * limitations under the License.
6065
6827
  */
6066
- async function Ks(n, e = {}) {
6067
- return G(n, "GET", "/v1/projects", e);
6828
+ async function Ys(n, e = {}) {
6829
+ return z(n, "GET", "/v1/projects", e);
6068
6830
  }
6069
6831
  /**
6070
6832
  * @license
@@ -6082,32 +6844,32 @@ async function Ks(n, e = {}) {
6082
6844
  * See the License for the specific language governing permissions and
6083
6845
  * limitations under the License.
6084
6846
  */
6085
- const Js = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ys = /^https?/;
6086
- async function Xs(n) {
6847
+ const Xs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Qs = /^https?/;
6848
+ async function Zs(n) {
6087
6849
  if (n.config.emulator)
6088
6850
  return;
6089
- const { authorizedDomains: e } = await Ks(n);
6851
+ const { authorizedDomains: e } = await Ys(n);
6090
6852
  for (const t of e)
6091
6853
  try {
6092
- if (Qs(t))
6854
+ if (ea(t))
6093
6855
  return;
6094
6856
  } catch {
6095
6857
  }
6096
- T(
6858
+ k(
6097
6859
  n,
6098
6860
  "unauthorized-domain"
6099
6861
  /* AuthErrorCode.INVALID_ORIGIN */
6100
6862
  );
6101
6863
  }
6102
- function Qs(n) {
6103
- const e = $e(), { protocol: t, hostname: r } = new URL(e);
6864
+ function ea(n) {
6865
+ const e = He(), { protocol: t, hostname: r } = new URL(e);
6104
6866
  if (n.startsWith("chrome-extension://")) {
6105
6867
  const a = new URL(n);
6106
6868
  return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
6107
6869
  }
6108
- if (!Ys.test(t))
6870
+ if (!Qs.test(t))
6109
6871
  return !1;
6110
- if (Js.test(n))
6872
+ if (Xs.test(n))
6111
6873
  return r === n;
6112
6874
  const i = n.replace(/\./g, "\\.");
6113
6875
  return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
@@ -6128,9 +6890,9 @@ function Qs(n) {
6128
6890
  * See the License for the specific language governing permissions and
6129
6891
  * limitations under the License.
6130
6892
  */
6131
- const Zs = new ne(3e4, 6e4);
6132
- function At() {
6133
- const n = y().___jsl;
6893
+ const ta = new ne(3e4, 6e4);
6894
+ function Rt() {
6895
+ const n = b().___jsl;
6134
6896
  if (n != null && n.H) {
6135
6897
  for (const e of Object.keys(n.H))
6136
6898
  if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
@@ -6138,45 +6900,45 @@ function At() {
6138
6900
  n.CP[t] = null;
6139
6901
  }
6140
6902
  }
6141
- function ea(n) {
6903
+ function na(n) {
6142
6904
  return new Promise((e, t) => {
6143
6905
  var r, i, s;
6144
6906
  function a() {
6145
- At(), gapi.load("gapi.iframes", {
6907
+ Rt(), gapi.load("gapi.iframes", {
6146
6908
  callback: () => {
6147
6909
  e(gapi.iframes.getContext());
6148
6910
  },
6149
6911
  ontimeout: () => {
6150
- At(), t(_(
6912
+ Rt(), t(_(
6151
6913
  n,
6152
6914
  "network-request-failed"
6153
6915
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6154
6916
  ));
6155
6917
  },
6156
- timeout: Zs.get()
6918
+ timeout: ta.get()
6157
6919
  });
6158
6920
  }
6159
- if (!((i = (r = y().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
6921
+ if (!((i = (r = b().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
6160
6922
  e(gapi.iframes.getContext());
6161
- else if (!((s = y().gapi) === null || s === void 0) && s.load)
6923
+ else if (!((s = b().gapi) === null || s === void 0) && s.load)
6162
6924
  a();
6163
6925
  else {
6164
- const c = is("iframefcb");
6165
- return y()[c] = () => {
6926
+ const c = as("iframefcb");
6927
+ return b()[c] = () => {
6166
6928
  gapi.load ? a() : t(_(
6167
6929
  n,
6168
6930
  "network-request-failed"
6169
6931
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6170
6932
  ));
6171
- }, ns(`${rs()}?onload=${c}`).catch((o) => t(o));
6933
+ }, is(`${ss()}?onload=${c}`).catch((o) => t(o));
6172
6934
  }
6173
6935
  }).catch((e) => {
6174
6936
  throw le = null, e;
6175
6937
  });
6176
6938
  }
6177
6939
  let le = null;
6178
- function ta(n) {
6179
- return le = le || ea(n), le;
6940
+ function ra(n) {
6941
+ return le = le || na(n), le;
6180
6942
  }
6181
6943
  /**
6182
6944
  * @license
@@ -6194,7 +6956,7 @@ function ta(n) {
6194
6956
  * See the License for the specific language governing permissions and
6195
6957
  * limitations under the License.
6196
6958
  */
6197
- const na = new ne(5e3, 15e3), ra = "__/auth/iframe", ia = "emulator/auth/iframe", sa = {
6959
+ const ia = new ne(5e3, 15e3), sa = "__/auth/iframe", aa = "emulator/auth/iframe", oa = {
6198
6960
  style: {
6199
6961
  position: "absolute",
6200
6962
  top: "-100px",
@@ -6203,13 +6965,13 @@ const na = new ne(5e3, 15e3), ra = "__/auth/iframe", ia = "emulator/auth/iframe"
6203
6965
  },
6204
6966
  "aria-hidden": "true",
6205
6967
  tabindex: "-1"
6206
- }, aa = /* @__PURE__ */ new Map([
6968
+ }, ca = /* @__PURE__ */ new Map([
6207
6969
  ["identitytoolkit.googleapis.com", "p"],
6208
6970
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
6209
6971
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
6210
6972
  // test
6211
6973
  ]);
6212
- function oa(n) {
6974
+ function la(n) {
6213
6975
  const e = n.config;
6214
6976
  h(
6215
6977
  e.authDomain,
@@ -6217,17 +6979,17 @@ function oa(n) {
6217
6979
  "auth-domain-config-required"
6218
6980
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
6219
6981
  );
6220
- const t = e.emulator ? Ke(e, ia) : `https://${n.config.authDomain}/${ra}`, r = {
6982
+ const t = e.emulator ? Ke(e, aa) : `https://${n.config.authDomain}/${sa}`, r = {
6221
6983
  apiKey: e.apiKey,
6222
6984
  appName: n.name,
6223
6985
  v: te
6224
- }, i = aa.get(n.config.apiHost);
6986
+ }, i = ca.get(n.config.apiHost);
6225
6987
  i && (r.eid = i);
6226
6988
  const s = n._getFrameworks();
6227
6989
  return s.length && (r.fw = s.join(",")), `${t}?${ee(r).slice(1)}`;
6228
6990
  }
6229
- async function ca(n) {
6230
- const e = await ta(n), t = y().gapi;
6991
+ async function ua(n) {
6992
+ const e = await ra(n), t = b().gapi;
6231
6993
  return h(
6232
6994
  t,
6233
6995
  n,
@@ -6235,9 +6997,9 @@ async function ca(n) {
6235
6997
  /* AuthErrorCode.INTERNAL_ERROR */
6236
6998
  ), e.open({
6237
6999
  where: document.body,
6238
- url: oa(n),
7000
+ url: la(n),
6239
7001
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
6240
- attributes: sa,
7002
+ attributes: oa,
6241
7003
  dontclear: !0
6242
7004
  }, (r) => new Promise(async (i, s) => {
6243
7005
  await r.restyle({
@@ -6248,11 +7010,11 @@ async function ca(n) {
6248
7010
  n,
6249
7011
  "network-request-failed"
6250
7012
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6251
- ), c = y().setTimeout(() => {
7013
+ ), c = b().setTimeout(() => {
6252
7014
  s(a);
6253
- }, na.get());
7015
+ }, ia.get());
6254
7016
  function o() {
6255
- y().clearTimeout(c), i(r);
7017
+ b().clearTimeout(c), i(r);
6256
7018
  }
6257
7019
  r.ping(o).then(o, () => {
6258
7020
  s(a);
@@ -6275,12 +7037,12 @@ async function ca(n) {
6275
7037
  * See the License for the specific language governing permissions and
6276
7038
  * limitations under the License.
6277
7039
  */
6278
- const la = {
7040
+ const da = {
6279
7041
  location: "yes",
6280
7042
  resizable: "yes",
6281
7043
  statusbar: "yes",
6282
7044
  toolbar: "no"
6283
- }, ua = 500, da = 600, ha = "_blank", fa = "http://localhost";
7045
+ }, ha = 500, pa = 600, fa = "_blank", ma = "http://localhost";
6284
7046
  class Ct {
6285
7047
  constructor(e) {
6286
7048
  this.window = e, this.associatedEvent = null;
@@ -6293,19 +7055,19 @@ class Ct {
6293
7055
  }
6294
7056
  }
6295
7057
  }
6296
- function pa(n, e, t, r = ua, i = da) {
7058
+ function ga(n, e, t, r = ha, i = pa) {
6297
7059
  const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
6298
7060
  let c = "";
6299
- const o = Object.assign(Object.assign({}, la), {
7061
+ const o = Object.assign(Object.assign({}, da), {
6300
7062
  width: r.toString(),
6301
7063
  height: i.toString(),
6302
7064
  top: s,
6303
7065
  left: a
6304
7066
  }), l = g().toLowerCase();
6305
- t && (c = un(l) ? ha : t), cn(l) && (e = e || fa, o.scrollbars = "yes");
6306
- const u = Object.entries(o).reduce((p, [m, F]) => `${p}${m}=${F},`, "");
6307
- if (Ki(l) && c !== "_self")
6308
- return ma(e || "", c), new Ct(null);
7067
+ t && (c = un(l) ? fa : t), cn(l) && (e = e || ma, o.scrollbars = "yes");
7068
+ const u = Object.entries(o).reduce((f, [m, x]) => `${f}${m}=${x},`, "");
7069
+ if (Yi(l) && c !== "_self")
7070
+ return _a(e || "", c), new Ct(null);
6309
7071
  const d = window.open(e || "", c, u);
6310
7072
  h(
6311
7073
  d,
@@ -6319,7 +7081,7 @@ function pa(n, e, t, r = ua, i = da) {
6319
7081
  }
6320
7082
  return new Ct(d);
6321
7083
  }
6322
- function ma(n, e) {
7084
+ function _a(n, e) {
6323
7085
  const t = document.createElement("a");
6324
7086
  t.href = n, t.target = e;
6325
7087
  const r = document.createEvent("MouseEvent");
@@ -6341,8 +7103,8 @@ function ma(n, e) {
6341
7103
  * See the License for the specific language governing permissions and
6342
7104
  * limitations under the License.
6343
7105
  */
6344
- const ga = "__/auth/handler", _a = "emulator/auth/handler", ya = encodeURIComponent("fac");
6345
- async function Rt(n, e, t, r, i, s) {
7106
+ const ba = "__/auth/handler", ya = "emulator/auth/handler", va = encodeURIComponent("fac");
7107
+ async function At(n, e, t, r, i, s) {
6346
7108
  h(
6347
7109
  n.config.authDomain,
6348
7110
  n,
@@ -6362,8 +7124,8 @@ async function Rt(n, e, t, r, i, s) {
6362
7124
  v: te,
6363
7125
  eventId: i
6364
7126
  };
6365
- if (e instanceof vn) {
6366
- e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", yr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
7127
+ if (e instanceof yn) {
7128
+ e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", vr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
6367
7129
  for (const [u, d] of Object.entries({}))
6368
7130
  a[u] = d;
6369
7131
  }
@@ -6375,11 +7137,11 @@ async function Rt(n, e, t, r, i, s) {
6375
7137
  const c = a;
6376
7138
  for (const u of Object.keys(c))
6377
7139
  c[u] === void 0 && delete c[u];
6378
- const o = await n._getAppCheckToken(), l = o ? `#${ya}=${encodeURIComponent(o)}` : "";
6379
- return `${va(n)}?${ee(c).slice(1)}${l}`;
7140
+ const o = await n._getAppCheckToken(), l = o ? `#${va}=${encodeURIComponent(o)}` : "";
7141
+ return `${Ia(n)}?${ee(c).slice(1)}${l}`;
6380
7142
  }
6381
- function va({ config: n }) {
6382
- return n.emulator ? Ke(n, _a) : `https://${n.authDomain}/${ga}`;
7143
+ function Ia({ config: n }) {
7144
+ return n.emulator ? Ke(n, ya) : `https://${n.authDomain}/${ba}`;
6383
7145
  }
6384
7146
  /**
6385
7147
  * @license
@@ -6397,22 +7159,22 @@ function va({ config: n }) {
6397
7159
  * See the License for the specific language governing permissions and
6398
7160
  * limitations under the License.
6399
7161
  */
6400
- const De = "webStorageSupport";
6401
- class ba {
7162
+ const Oe = "webStorageSupport";
7163
+ class wa {
6402
7164
  constructor() {
6403
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Tn, this._completeRedirectFn = Ws, this._overrideRedirectResult = Hs;
7165
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = zs, this._overrideRedirectResult = Vs;
6404
7166
  }
6405
7167
  // Wrapping in async even though we don't await anywhere in order
6406
7168
  // to make sure errors are raised as promise rejections
6407
7169
  async _openPopup(e, t, r, i) {
6408
7170
  var s;
6409
- S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
6410
- const a = await Rt(e, t, r, $e(), i);
6411
- return pa(e, a, Qe());
7171
+ E((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
7172
+ const a = await At(e, t, r, He(), i);
7173
+ return ga(e, a, Qe());
6412
7174
  }
6413
7175
  async _openRedirect(e, t, r, i) {
6414
7176
  await this._originValidation(e);
6415
- const s = await Rt(e, t, r, $e(), i);
7177
+ const s = await At(e, t, r, He(), i);
6416
7178
  return Es(s), new Promise(() => {
6417
7179
  });
6418
7180
  }
@@ -6420,7 +7182,7 @@ class ba {
6420
7182
  const t = e._key();
6421
7183
  if (this.eventManagers[t]) {
6422
7184
  const { manager: i, promise: s } = this.eventManagers[t];
6423
- return i ? Promise.resolve(i) : (S(s, "If manager is not set, promise should be"), s);
7185
+ return i ? Promise.resolve(i) : (E(s, "If manager is not set, promise should be"), s);
6424
7186
  }
6425
7187
  const r = this.initAndGetManager(e);
6426
7188
  return this.eventManagers[t] = { promise: r }, r.catch(() => {
@@ -6428,7 +7190,7 @@ class ba {
6428
7190
  }), r;
6429
7191
  }
6430
7192
  async initAndGetManager(e) {
6431
- const t = await ca(e), r = new Gs(e);
7193
+ const t = await ua(e), r = new Ks(e);
6432
7194
  return t.register("authEvent", (i) => (h(
6433
7195
  i == null ? void 0 : i.authEvent,
6434
7196
  e,
@@ -6440,10 +7202,10 @@ class ba {
6440
7202
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
6441
7203
  }
6442
7204
  _isIframeWebStorageSupported(e, t) {
6443
- this.iframes[e._key()].send(De, { type: De }, (i) => {
7205
+ this.iframes[e._key()].send(Oe, { type: Oe }, (i) => {
6444
7206
  var s;
6445
- const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
6446
- a !== void 0 && t(!!a), T(
7207
+ const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Oe];
7208
+ a !== void 0 && t(!!a), k(
6447
7209
  e,
6448
7210
  "internal-error"
6449
7211
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -6452,14 +7214,14 @@ class ba {
6452
7214
  }
6453
7215
  _originValidation(e) {
6454
7216
  const t = e._key();
6455
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Xs(e)), this.originValidationPromises[t];
7217
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Zs(e)), this.originValidationPromises[t];
6456
7218
  }
6457
7219
  get _shouldInitProactively() {
6458
7220
  return mn() || ln() || Ye();
6459
7221
  }
6460
7222
  }
6461
- const Ia = ba;
6462
- var Pt = "@firebase/auth", Ot = "1.7.9";
7223
+ const Ta = wa;
7224
+ var Pt = "@firebase/auth", Nt = "1.7.9";
6463
7225
  /**
6464
7226
  * @license
6465
7227
  * Copyright 2020 Google LLC
@@ -6476,7 +7238,7 @@ var Pt = "@firebase/auth", Ot = "1.7.9";
6476
7238
  * See the License for the specific language governing permissions and
6477
7239
  * limitations under the License.
6478
7240
  */
6479
- class wa {
7241
+ class ka {
6480
7242
  constructor(e) {
6481
7243
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
6482
7244
  }
@@ -6543,8 +7305,8 @@ function Ea(n) {
6543
7305
  return;
6544
7306
  }
6545
7307
  }
6546
- function Ta(n) {
6547
- Y(new W(
7308
+ function Sa(n) {
7309
+ Y(new j(
6548
7310
  "auth",
6549
7311
  (e, { options: t }) => {
6550
7312
  const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
@@ -6557,8 +7319,8 @@ function Ta(n) {
6557
7319
  tokenApiHost: "securetoken.googleapis.com",
6558
7320
  apiScheme: "https",
6559
7321
  sdkClientVersion: gn(n)
6560
- }, l = new es(r, i, s, o);
6561
- return as(l, t), l;
7322
+ }, l = new ns(r, i, s, o);
7323
+ return cs(l, t), l;
6562
7324
  },
6563
7325
  "PUBLIC"
6564
7326
  /* ComponentType.PUBLIC */
@@ -6570,21 +7332,21 @@ function Ta(n) {
6570
7332
  "auth-internal"
6571
7333
  /* _ComponentName.AUTH_INTERNAL */
6572
7334
  ).initialize();
6573
- })), Y(new W(
7335
+ })), Y(new j(
6574
7336
  "auth-internal",
6575
7337
  (e) => {
6576
- const t = ve(e.getProvider(
7338
+ const t = ye(e.getProvider(
6577
7339
  "auth"
6578
7340
  /* _ComponentName.AUTH */
6579
7341
  ).getImmediate());
6580
- return ((r) => new wa(r))(t);
7342
+ return ((r) => new ka(r))(t);
6581
7343
  },
6582
7344
  "PRIVATE"
6583
7345
  /* ComponentType.PRIVATE */
6584
7346
  ).setInstantiationMode(
6585
7347
  "EXPLICIT"
6586
7348
  /* InstantiationMode.EXPLICIT */
6587
- )), $(Pt, Ot, Ea(n)), $(Pt, Ot, "esm2017");
7349
+ )), H(Pt, Nt, Ea(n)), H(Pt, Nt, "esm2017");
6588
7350
  }
6589
7351
  /**
6590
7352
  * @license
@@ -6602,47 +7364,47 @@ function Ta(n) {
6602
7364
  * See the License for the specific language governing permissions and
6603
7365
  * limitations under the License.
6604
7366
  */
6605
- const Sa = 5 * 60, ka = jt("authIdTokenMaxAge") || Sa;
6606
- let Dt = null;
7367
+ const Ra = 5 * 60, Ca = Vt("authIdTokenMaxAge") || Ra;
7368
+ let Ot = null;
6607
7369
  const Aa = (n) => async (e) => {
6608
7370
  const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
6609
- if (r && r > ka)
7371
+ if (r && r > Ca)
6610
7372
  return;
6611
7373
  const i = t == null ? void 0 : t.token;
6612
- Dt !== i && (Dt = i, await fetch(n, {
7374
+ Ot !== i && (Ot = i, await fetch(n, {
6613
7375
  method: i ? "POST" : "DELETE",
6614
7376
  headers: i ? {
6615
7377
  Authorization: `Bearer ${i}`
6616
7378
  } : {}
6617
7379
  }));
6618
7380
  };
6619
- function Ca(n = bi()) {
6620
- const e = qt(n, "auth");
7381
+ function Pa(n = wi()) {
7382
+ const e = Gt(n, "auth");
6621
7383
  if (e.isInitialized())
6622
7384
  return e.getImmediate();
6623
- const t = ss(n, {
6624
- popupRedirectResolver: Ia,
7385
+ const t = os(n, {
7386
+ popupRedirectResolver: Ta,
6625
7387
  persistence: [
6626
- Ds,
6627
- bs,
6628
- Tn
7388
+ Ls,
7389
+ ws,
7390
+ kn
6629
7391
  ]
6630
- }), r = jt("authTokenSyncURL");
7392
+ }), r = Vt("authTokenSyncURL");
6631
7393
  if (r && typeof isSecureContext == "boolean" && isSecureContext) {
6632
7394
  const s = new URL(r, location.origin);
6633
7395
  if (location.origin === s.origin) {
6634
7396
  const a = Aa(s.toString());
6635
- _s(t, a, () => a(t.currentUser)), gs(t, (c) => a(c));
7397
+ ys(t, a, () => a(t.currentUser)), bs(t, (c) => a(c));
6636
7398
  }
6637
7399
  }
6638
- const i = ar("auth");
6639
- return i && os(t, `http://${i}`), t;
7400
+ const i = cr("auth");
7401
+ return i && ls(t, `http://${i}`), t;
6640
7402
  }
6641
- function Ra() {
7403
+ function Na() {
6642
7404
  var n, e;
6643
7405
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
6644
7406
  }
6645
- ts({
7407
+ rs({
6646
7408
  loadJS(n) {
6647
7409
  return new Promise((e, t) => {
6648
7410
  const r = document.createElement("script");
@@ -6652,19 +7414,19 @@ ts({
6652
7414
  /* AuthErrorCode.INTERNAL_ERROR */
6653
7415
  );
6654
7416
  s.customData = i, t(s);
6655
- }, r.type = "text/javascript", r.charset = "UTF-8", Ra().appendChild(r);
7417
+ }, r.type = "text/javascript", r.charset = "UTF-8", Na().appendChild(r);
6656
7418
  });
6657
7419
  },
6658
7420
  gapiScript: "https://apis.google.com/js/api.js",
6659
7421
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
6660
7422
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
6661
7423
  });
6662
- Ta(
7424
+ Sa(
6663
7425
  "Browser"
6664
7426
  /* ClientPlatform.BROWSER */
6665
7427
  );
6666
- const Pa = Un({
6667
- history: xn(),
7428
+ const Oa = Bn({
7429
+ history: Un(),
6668
7430
  routes: [
6669
7431
  ...ue,
6670
7432
  ...K,
@@ -6675,55 +7437,55 @@ const Pa = Un({
6675
7437
  }
6676
7438
  ]
6677
7439
  });
6678
- let Ne, Le;
6679
- Pa.beforeEach(async (n) => {
7440
+ let De, Le;
7441
+ Oa.beforeEach(async (n) => {
6680
7442
  const {
6681
7443
  sessionUser: e,
6682
7444
  currentRestaurant: t,
6683
7445
  currentBusiness: r,
6684
7446
  readRestaurants: i,
6685
7447
  changeRestaurant: s
6686
- } = je();
7448
+ } = Ve();
6687
7449
  if (n.name && n.name.startsWith("mf-payment-admin")) {
6688
7450
  if (!e.value) {
6689
- Ne || (Ne = new Promise((c) => {
6690
- const o = q(e, (l) => {
7451
+ De || (De = new Promise((c) => {
7452
+ const o = G(e, (l) => {
6691
7453
  var u, d;
6692
7454
  l && (o(), c(
6693
7455
  (((u = e.value) == null ? void 0 : u.role.isStaff) || ((d = e.value) == null ? void 0 : d.role.isAdmin)) ?? !1
6694
7456
  ));
6695
7457
  });
6696
7458
  }));
6697
- const a = await Ne;
7459
+ const a = await De;
6698
7460
  return a || { name: "mf-payment-forbidden" };
6699
7461
  }
6700
7462
  return !0;
6701
7463
  }
6702
7464
  return !r.value || !t.value ? (Le || (Le = Promise.all([
6703
7465
  new Promise(async (a) => {
6704
- const c = q(r, (o) => {
7466
+ const c = G(r, (o) => {
6705
7467
  o && (c(), a(!0));
6706
7468
  });
6707
7469
  }),
6708
7470
  new Promise(async (a) => {
6709
- const c = q(t, (l) => {
7471
+ const c = G(t, (l) => {
6710
7472
  l && (c(), a(!0));
6711
7473
  }), o = await i();
6712
7474
  await s(o == null ? void 0 : o.at(0));
6713
7475
  })
6714
7476
  ]).then((a) => !0)), Le) : !0;
6715
7477
  });
6716
- const Oa = /* @__PURE__ */ Lt({
7478
+ const Da = /* @__PURE__ */ Lt({
6717
7479
  __name: "AppSidebar",
6718
7480
  setup(n) {
6719
- const e = je(), t = Fn(), { t: r } = zn(), i = $n(t.currentRoute.value.name);
6720
- q(t.currentRoute, () => {
7481
+ const e = Ve(), t = xn(), { t: r } = Wn(), i = Hn(t.currentRoute.value.name);
7482
+ G(t.currentRoute, () => {
6721
7483
  let l = t.currentRoute.value.name;
6722
7484
  t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
6723
7485
  });
6724
7486
  const s = ue.map((l) => {
6725
- var p, m;
6726
- if (!((p = l.meta) != null && p.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
7487
+ var f, m;
7488
+ if (!((f = l.meta) != null && f.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
6727
7489
  return;
6728
7490
  const u = l.meta.sidebarDisplay, d = {
6729
7491
  label: u.startsWith("i18n:") ? r(u.replaceAll("i18n:", "")) : u,
@@ -6733,12 +7495,12 @@ const Oa = /* @__PURE__ */ Lt({
6733
7495
  return t.push({ name: l.name });
6734
7496
  }
6735
7497
  };
6736
- return l.meta.sidebarNew && (d.badge = () => Hn(qn.FmPill, { label: "New" })), d;
7498
+ return l.meta.sidebarNew && (d.badge = () => qn(Gn.FmPill, { label: "New" })), d;
6737
7499
  }).filter((l) => !!l);
6738
7500
  function a(l, u) {
6739
7501
  return l.map((d) => {
6740
- var p, m;
6741
- return (p = d.meta) != null && p.useChildrenRoutes ? a(d.children || [], u) : (m = d.meta) != null && m.sidebarDisplay ? d.meta.section !== u ? [] : [
7502
+ var f, m;
7503
+ return (f = d.meta) != null && f.useChildrenRoutes ? a(d.children || [], u) : (m = d.meta) != null && m.sidebarDisplay ? d.meta.section !== u ? [] : [
6742
7504
  {
6743
7505
  label: d.meta.sidebarDisplay.startsWith("i18n:") ? r(d.meta.sidebarDisplay.replaceAll("i18n:", "")) : d.meta.sidebarDisplay,
6744
7506
  value: d.name,
@@ -6761,7 +7523,7 @@ const Oa = /* @__PURE__ */ Lt({
6761
7523
  return t.push({ name: l.name });
6762
7524
  }
6763
7525
  };
6764
- }).filter((l) => !!l), o = Nt(() => {
7526
+ }).filter((l) => !!l), o = Dt(() => {
6765
7527
  var u, d;
6766
7528
  const l = [...s];
6767
7529
  return l.push({
@@ -6804,39 +7566,42 @@ const Oa = /* @__PURE__ */ Lt({
6804
7566
  });
6805
7567
  return (l, u) => {
6806
7568
  const d = Mt("FmCollapsibleTabs");
6807
- return Ut(), xt(d, {
7569
+ return Bt(), Ut(d, {
6808
7570
  modelValue: i.value,
6809
- "onUpdate:modelValue": u[0] || (u[0] = (p) => i.value = p),
7571
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => i.value = f),
6810
7572
  items: o.value,
6811
7573
  class: "py-16 px-8 w-[240px]"
6812
7574
  }, null, 8, ["modelValue", "items"]);
6813
7575
  };
6814
7576
  }
6815
7577
  });
6816
- var Da = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
6817
- const Ba = /* @__PURE__ */ Lt({
7578
+ var La = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
7579
+ const qa = /* @__PURE__ */ Lt({
6818
7580
  __name: "App",
6819
7581
  setup(n) {
6820
- const { state: e } = Qn(), t = je(), r = Bn(), i = Kt(Da.firebase);
7582
+ const { state: e } = er(), t = Ve(), r = Fn(), i = Kt(La.firebase);
6821
7583
  async function s() {
6822
7584
  const a = t.sessionUser.value;
6823
7585
  if (!a || !a.token) return;
6824
- const c = await a.getCustomToken(), o = Ca(i);
6825
- await ms(o, c);
7586
+ const c = await a.getCustomToken(), o = Pa(i);
7587
+ await _s(o, c);
6826
7588
  }
6827
- return s(), q(t.sessionUser, s), Vn(() => {
7589
+ return s(), G(t.sessionUser, s), $n(() => {
6828
7590
  e.isIframe && parent.postMessage({ event: "ready" }, "*");
6829
- }), jn(() => {
6830
- t.registerSidebarComponent(Oa);
7591
+ }), Vn(() => {
7592
+ t.registerSidebarComponent(Da);
6831
7593
  }), (a, c) => {
6832
7594
  const o = Mt("RouterView");
6833
- return Ut(), xt(o, {
6834
- key: Wn(r).path
7595
+ return Bt(), Ut(o, {
7596
+ key: jn(r).path
6835
7597
  });
6836
7598
  };
6837
7599
  }
6838
7600
  }), $a = () => {
6839
- const n = [{ "en-US": Jn, "zh-CN": Xn }, Mn], e = new Set(
7601
+ const n = [
7602
+ { "en-US": Jn, "th-TH": Xn, "zh-CN": Zn },
7603
+ Mn
7604
+ ], e = new Set(
6840
7605
  n.flatMap((t) => Object.keys(t))
6841
7606
  );
6842
7607
  return Array.from(e).reduce(
@@ -6849,10 +7614,10 @@ const Ba = /* @__PURE__ */ Lt({
6849
7614
  },
6850
7615
  {}
6851
7616
  );
6852
- }, Ha = [...K, ...ue];
7617
+ }, Va = [...K, ...ue];
6853
7618
  export {
6854
7619
  mt as _,
6855
- Ba as a,
7620
+ qa as a,
6856
7621
  $a as i,
6857
- Ha as r
7622
+ Va as r
6858
7623
  };