@feedmepos/mf-brand-app-builder 0.5.22-dev.1 → 0.5.24-dev.0

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 (100) hide show
  1. package/dist/{App-D5eO5srB.js → App-CoIlf_Tr.js} +5 -5
  2. package/dist/{AssetsSettings-D_E8q7eK.js → AssetsSettings-DhprCc4v.js} +6 -6
  3. package/dist/{BaDivider-DWZv3fqi.js → BaDivider-Cp9gfB4r.js} +2 -2
  4. package/dist/{BrandkitView-BlJhBYi6.js → BrandkitView-BHBErfbu.js} +3382 -2867
  5. package/dist/{BuilderView-Dfl1VhES.js → BuilderView-DY_Clqms.js} +427 -444
  6. package/dist/{ButtonGroup-D_HkX122.js → ButtonGroup-2ilMTPHH.js} +2 -2
  7. package/dist/{CircularProgress-h90pbjU3.js → CircularProgress-DdblYCtV.js} +4 -4
  8. package/dist/ColorPicker-RKWzhLBO.js +543 -0
  9. package/dist/{ColorPicker-I6CkNIxt.js → ColorPicker-dVFIiu94.js} +14 -14
  10. package/dist/{Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js → Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js} +2 -2
  11. package/dist/{ImageUpload-FyvXrDKK.js → ImageUpload-B8OINKSx.js} +9 -9
  12. package/dist/{LinkButton-C9OU3Rcs.js → LinkButton-De-YNclu.js} +4 -4
  13. package/dist/{ListRepeater-BnVoFhhm.js → ListRepeater-rkz-trRq.js} +2 -2
  14. package/dist/{ManagementSettings-CtvF5d9C.js → ManagementSettings-Cz4HkNm1.js} +4 -4
  15. package/dist/ProjectView-ByxaVBFb.js +428 -0
  16. package/dist/{Select-BRYuMWoQ.js → Select-DQx6OfZx.js} +9 -9
  17. package/dist/{SettingsView-DHA7hXUx.js → SettingsView-uft0uKio.js} +2 -2
  18. package/dist/{StepperField-BeeZ_sl9.js → StepperField-nyaUK9ht.js} +2 -2
  19. package/dist/{Switch-8mmNQUDo.js → Switch-uc_zN-mb.js} +2 -2
  20. package/dist/{TextAlign-BOC8ekaH.js → TextAlign-BSp1Xi7F.js} +2 -2
  21. package/dist/{TextDecorators-BJC4umDR.js → TextDecorators-1C54q7us.js} +4 -4
  22. package/dist/{TextField-BiVH5rLX.js → TextField-DfBJB6vQ.js} +2 -2
  23. package/dist/{TextStyleList-CuPE80Py.js → TextStyleList-Bef3irUx.js} +3 -3
  24. package/dist/{app-CJ2VgCHp.js → app-pY4HD-TA.js} +6693 -3895
  25. package/dist/app.js +1 -1
  26. package/dist/brand-core/src/brandkit.d.ts +5 -0
  27. package/dist/brand-core/src/entity.d.ts +32 -15
  28. package/dist/client/components/src/components/BranchList.vue.d.ts +1 -1
  29. package/dist/client/components/src/components/ButtonList.vue.d.ts +1 -1
  30. package/dist/client/components/src/components/CountrySwitcher.vue.d.ts +1 -1
  31. package/dist/client/components/src/components/Homepage.vue.d.ts +3 -3
  32. package/dist/client/components/src/components/ImageCarousel.vue.d.ts +1 -1
  33. package/dist/client/components/src/components/ImageDisplay.vue.d.ts +1 -1
  34. package/dist/client/components/src/components/Member/TransactionList.vue.d.ts +1 -1
  35. package/dist/client/components/src/components/MemberCard.vue.d.ts +1 -1
  36. package/dist/client/components/src/components/NavigationBar.vue.d.ts +4 -4
  37. package/dist/client/components/src/components/OrderHistoryCard.vue.d.ts +4 -3
  38. package/dist/client/components/src/components/OrderMethod.vue.d.ts +1 -1
  39. package/dist/client/components/src/components/TextDisplay.vue.d.ts +1 -1
  40. package/dist/client/components/src/components/atoms/Button.vue.d.ts +4 -4
  41. package/dist/client/components/src/components/atoms/CircularProgress.vue.d.ts +2 -2
  42. package/dist/client/components/src/components/atoms/Container.vue.d.ts +3 -3
  43. package/dist/client/components/src/components/atoms/Divider.vue.d.ts +1 -1
  44. package/dist/client/components/src/components/atoms/Icon.vue.d.ts +1 -1
  45. package/dist/client/components/src/components/atoms/LinkSlot.vue.d.ts +4 -4
  46. package/dist/client/components/src/views/OrderDetails.vue.d.ts +1 -1
  47. package/dist/client/components/src/views/_Credit.vue.d.ts +1 -1
  48. package/dist/client/components/src/views/_MemberProfile.vue.d.ts +4 -4
  49. package/dist/client/components/src/views/_Point.vue.d.ts +1 -1
  50. package/dist/client/components/src/views/_Referral.vue.d.ts +4 -4
  51. package/dist/client/components/src/views/_ReferralTutorial.vue.d.ts +4 -4
  52. package/dist/client/merchant/src/api/business/index.d.ts +41 -1
  53. package/dist/client/merchant/src/app.d.ts +2794 -0
  54. package/dist/client/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
  55. package/dist/client/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
  56. package/dist/client/merchant/src/components/brandkit/ColorOverrideDialog.vue.d.ts +26 -0
  57. package/dist/client/merchant/src/components/brandkit/ColorSelection.vue.d.ts +1 -1
  58. package/dist/client/merchant/src/components/editor/Editor.vue.d.ts +1 -1
  59. package/dist/client/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
  60. package/dist/client/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +1 -1
  61. package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
  62. package/dist/client/merchant/src/components/inputs/ColorPicker.vue.d.ts +1 -1
  63. package/dist/client/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
  64. package/dist/client/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
  65. package/dist/client/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
  66. package/dist/client/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
  67. package/dist/client/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
  68. package/dist/client/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +3 -3
  69. package/dist/client/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +3 -3
  70. package/dist/client/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +3 -3
  71. package/dist/client/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
  72. package/dist/client/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +1 -1
  73. package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +3 -3
  74. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +1 -1
  75. package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +1 -1
  76. package/dist/client/merchant/src/components/order-template/TemplateVersionHistory.vue.d.ts +18 -0
  77. package/dist/client/merchant/src/components/settings/AssetsSettings.vue.d.ts +1 -1
  78. package/dist/client/merchant/src/components/settings/ManagementSettings.vue.d.ts +1 -1
  79. package/dist/client/merchant/src/components/template/TemplatePreview.vue.d.ts +1 -1
  80. package/dist/client/merchant/src/stores/business/index.d.ts +469 -1
  81. package/dist/client/merchant/src/views/BrandkitView.vue.d.ts +1 -1
  82. package/dist/client/merchant/src/views/BuilderView.vue.d.ts +1 -1
  83. package/dist/client/merchant/src/views/ProjectView.vue.d.ts +1 -1
  84. package/dist/client/merchant/src/views/SettingsView.vue.d.ts +1 -1
  85. package/dist/dayjs.min-DnbY0e60.js +282 -0
  86. package/dist/{image-BtHlnsmY.js → image-D_Djf1PS.js} +1 -1
  87. package/dist/{index-ChMgx2Hq.js → index-Bk6TOZrx.js} +2 -2
  88. package/dist/{index-5BRydZO9.js → index-C1rSMuKA.js} +1 -1
  89. package/dist/index-C4vwWvn_.js +112 -0
  90. package/dist/index-D0LOMBBD.js +1822 -0
  91. package/dist/{main-8cObQmGm.js → main-CKhW2ogv.js} +3536 -3547
  92. package/dist/package.json +5 -4
  93. package/dist/style.css +1 -1
  94. package/dist/{v4-ANoOI1Qw.js → v4-CKwdnpQf.js} +8 -8
  95. package/dist/{vue-sonner-PX6Req0V.js → vue-sonner-CBFYmm8_.js} +129 -125
  96. package/package.json +5 -4
  97. package/dist/ColorPicker-CHzKbuCD.js +0 -543
  98. package/dist/ProjectView-Bq0vBJ3V.js +0 -705
  99. package/dist/index-BEAkOquM.js +0 -90
  100. package/dist/index-BXwbQwb-.js +0 -1736
@@ -1,1736 +0,0 @@
1
- import { useCoreStore as Ce } from "@feedmepos/mf-common";
2
- function Ue(e, t) {
3
- return function() {
4
- return e.apply(t, arguments);
5
- };
6
- }
7
- var he = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_2e5a4fcd-27d6-4712-8c21-0d95439d4a40", npm_package_devDependencies__types_node: "^20.12.5", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_config_user_agent: "pnpm/9.5.0 npm/? node/v20.13.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_2e5a4fcd-27d6-4712-8c21-0d95439d4a40", PIPX_HOME: "/opt/pipx", npm_package_dependencies_vue3_colorpicker: "^2.3.0", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_package_devDependencies_tsc_alias: "^1.8.10", npm_package_devDependencies_vite: "^5.2.11", npm_node_execpath: "/opt/hostedtoolcache/node/20.13.1/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", NODE_OPTIONS: "--max-old-space-size=8192", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --build --force", npm_package_dependencies__feedmepos_mf_common: "^1.26.3", npm_package_dependencies_opentype_js: "^1.3.4", npm_package_devDependencies_npm_run_all2: "^6.1.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "1740", npm_package_dependencies__feedmepos_ui_library: "1.5.5", npm_package_dependencies_dayjs: "^1.11.13", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_vue_accessible_color_picker: "^5.2.0", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_dependencies_i18next: "^25.1.1", npm_package_devDependencies_tailwindcss: "^3.4.3", npm_package_devDependencies_typescript: "~5.4.0", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_vue_tsc: "^2.0.11", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250831.1.0", npm_package_scripts_dev: "vite --mode dev", npm_package_devDependencies_prettier: "^3.2.5", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "vite --mode prod", npm_package_dependencies__feedmepos_brand_core: "0.0.2-beta.2", npm_package_devDependencies__vue_tsconfig: "^0.5.1", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.0.25", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13314", GITHUB_WORKFLOW: "[DEV/BETA] Publish Brand App Builder to NPM", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.6/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^9.0.8", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "17429699415", npm_package_scripts_deploy_npm_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks --access public .", npm_package_dependencies_vue_sonner: "^1.1.4", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a795242ee2ff823260307fd928ecf7cbf3e3c9c4", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_scripts_deploy_npm_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks --access public .", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/brand-app/.github/workflows/brand-app-npm-dev.yml@refs/heads/dev/ba-portal", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.13.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_4a039908-05c9-4c41-b31e-c3209ce29bdb", INVOCATION_ID: "5e0af3b445de40aab1debf8e5ae7a8bd", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.13.1/x64/bin/node", npm_package_name: "@feedmepos/mf-brand-app-builder", npm_package_dependencies__formkit_vue: "^1.6.7", npm_package_devDependencies__types_qrcode: "^1.5.5", GITHUB_ACTION: "__run_6", GITHUB_RUN_NUMBER: "117", GITHUB_TRIGGERING_ACTOR: "mmjang", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^13.0.0", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000015202", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev/ba-portal", GITHUB_REPOSITORY: "feedmepos/brand-app", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && pnpm tsc-resolve", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false && pnpm tsc-resolve", npm_lifecycle_script: "vite build --mode fmmf:dev", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_devDependencies__vue_eslint_config_prettier: "^9.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "810874788", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/bin/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.5.22-dev.1", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_devDependencies__rushstack_eslint_patch: "^1.8.0", npm_lifecycle_event: "build:mf:dev", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^9.0.1", npm_package_dependencies_vue_i18n: "^11.1.3", GITHUB_WORKSPACE: "/home/runner/work/brand-app/brand-app", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "a795242ee2ff823260307fd928ecf7cbf3e3c9c4", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_scripts_tsc_resolve: "tsc-alias --project tsconfig.app.json --outDir dist", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/dev/ba-portal", GITHUB_ACTOR: "mmjang", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__formkit_core: "^1.6.7", npm_package_dependencies_monaco_editor: "^0.52.2", npm_package_dependencies_qrcode: "^1.5.4", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_2e5a4fcd-27d6-4712-8c21-0d95439d4a40", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/brand-app/brand-app/client/merchant", GITHUB_ACTOR_ID: "5045203", RUNNER_WORKSPACE: "/home/runner/work/brand-app", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.5.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_2e5a4fcd-27d6-4712-8c21-0d95439d4a40", npm_package_exports___types: "./dist/merchant/src/app.d.ts", npm_package_dependencies__monaco_editor_loader: "^1.5.0", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/brand-app/brand-app/client/merchant", npm_package_devDependencies_eslint_plugin_vue: "^9.23.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", npm_package_devDependencies__types_opentype_js: "^1.3.8", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_2e5a4fcd-27d6-4712-8c21-0d95439d4a40", INIT_CWD: "/home/runner/work/brand-app/brand-app/client/merchant", NODE_ENV: "production", VITE_MF_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", VITE_IMAGE_URL: "https://image.feedmedev.cc", VITE_PWA_ICON_SERVICE: "https://pwa-icon-service.feedmeapidev.com", VITE_USER_URL: "https://{slug}.feedmedev.vip", VITE_MEMBER_URL: "https://{slug}.member.feedmedev.cc", VITE_BACKEND_URL: "https://api.feedmedev.vip", VITE_COUNTRY_CONFIG_URL: "https://country-config-dev.feedmeapi.com", LAUNCH_EDITOR: "code" } };
8
- const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, X = /* @__PURE__ */ ((e) => (t) => {
9
- const r = nt.call(t);
10
- return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
11
- })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => X(t) === e), $ = (e) => (t) => typeof t === e, { isArray: x } = Array, F = $("undefined");
12
- function rt(e) {
13
- return e !== null && !F(e) && e.constructor !== null && !F(e.constructor) && S(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14
- }
15
- const Pe = N("ArrayBuffer");
16
- function st(e) {
17
- let t;
18
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
19
- }
20
- const ot = $("string"), S = $("function"), Be = $("number"), Y = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, q = (e) => {
21
- if (X(e) !== "object")
22
- return !1;
23
- const t = le(e);
24
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
25
- }, at = N("Date"), ct = N("File"), ut = N("Blob"), pt = N("FileList"), lt = (e) => Y(e) && S(e.pipe), dt = (e) => {
26
- let t;
27
- return e && (typeof FormData == "function" && e instanceof FormData || S(e.append) && ((t = X(e)) === "formdata" || // detect form-data instance
28
- t === "object" && S(e.toString) && e.toString() === "[object FormData]"));
29
- }, ft = N("URLSearchParams"), [mt, _t, ht, Et] = ["ReadableStream", "Request", "Response", "Headers"].map(N), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
30
- function j(e, t, { allOwnKeys: r = !1 } = {}) {
31
- if (e === null || typeof e > "u")
32
- return;
33
- let n, s;
34
- if (typeof e != "object" && (e = [e]), x(e))
35
- for (n = 0, s = e.length; n < s; n++)
36
- t.call(null, e[n], n, e);
37
- else {
38
- const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
39
- let c;
40
- for (n = 0; n < i; n++)
41
- c = o[n], t.call(null, e[c], c, e);
42
- }
43
- }
44
- function xe(e, t) {
45
- t = t.toLowerCase();
46
- const r = Object.keys(e);
47
- let n = r.length, s;
48
- for (; n-- > 0; )
49
- if (s = r[n], t === s.toLowerCase())
50
- return s;
51
- return null;
52
- }
53
- const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Le = (e) => !F(e) && e !== U;
54
- function oe() {
55
- const { caseless: e } = Le(this) && this || {}, t = {}, r = (n, s) => {
56
- const o = e && xe(t, s) || s;
57
- q(t[o]) && q(n) ? t[o] = oe(t[o], n) : q(n) ? t[o] = oe({}, n) : x(n) ? t[o] = n.slice() : t[o] = n;
58
- };
59
- for (let n = 0, s = arguments.length; n < s; n++)
60
- arguments[n] && j(arguments[n], r);
61
- return t;
62
- }
63
- const Rt = (e, t, r, { allOwnKeys: n } = {}) => (j(t, (s, o) => {
64
- r && S(s) ? e[o] = Ue(s, r) : e[o] = s;
65
- }, { allOwnKeys: n }), e), gt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yt = (e, t, r, n) => {
66
- e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
67
- value: t.prototype
68
- }), r && Object.assign(e.prototype, r);
69
- }, Tt = (e, t, r, n) => {
70
- let s, o, i;
71
- const c = {};
72
- if (t = t || {}, e == null) return t;
73
- do {
74
- for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
75
- i = s[o], (!n || n(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
76
- e = r !== !1 && le(e);
77
- } while (e && (!r || r(e, t)) && e !== Object.prototype);
78
- return t;
79
- }, Ot = (e, t, r) => {
80
- e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
81
- const n = e.indexOf(t, r);
82
- return n !== -1 && n === r;
83
- }, wt = (e) => {
84
- if (!e) return null;
85
- if (x(e)) return e;
86
- let t = e.length;
87
- if (!Be(t)) return null;
88
- const r = new Array(t);
89
- for (; t-- > 0; )
90
- r[t] = e[t];
91
- return r;
92
- }, At = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && le(Uint8Array)), St = (e, t) => {
93
- const n = (e && e[Symbol.iterator]).call(e);
94
- let s;
95
- for (; (s = n.next()) && !s.done; ) {
96
- const o = s.value;
97
- t.call(e, o[0], o[1]);
98
- }
99
- }, Nt = (e, t) => {
100
- let r;
101
- const n = [];
102
- for (; (r = e.exec(t)) !== null; )
103
- n.push(r);
104
- return n;
105
- }, kt = N("HTMLFormElement"), It = (e) => e.toLowerCase().replace(
106
- /[-_\s]([a-z\d])(\w*)/g,
107
- function(r, n, s) {
108
- return n.toUpperCase() + s;
109
- }
110
- ), Ee = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Dt = N("RegExp"), ve = (e, t) => {
111
- const r = Object.getOwnPropertyDescriptors(e), n = {};
112
- j(r, (s, o) => {
113
- let i;
114
- (i = t(s, o, e)) !== !1 && (n[o] = i || s);
115
- }), Object.defineProperties(e, n);
116
- }, Ct = (e) => {
117
- ve(e, (t, r) => {
118
- if (S(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
119
- return !1;
120
- const n = e[r];
121
- if (S(n)) {
122
- if (t.enumerable = !1, "writable" in t) {
123
- t.writable = !1;
124
- return;
125
- }
126
- t.set || (t.set = () => {
127
- throw Error("Can not rewrite read-only method '" + r + "'");
128
- });
129
- }
130
- });
131
- }, Ut = (e, t) => {
132
- const r = {}, n = (s) => {
133
- s.forEach((o) => {
134
- r[o] = !0;
135
- });
136
- };
137
- return x(e) ? n(e) : n(String(e).split(t)), r;
138
- }, Pt = () => {
139
- }, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, te = "abcdefghijklmnopqrstuvwxyz", be = "0123456789", He = {
140
- DIGIT: be,
141
- ALPHA: te,
142
- ALPHA_DIGIT: te + te.toUpperCase() + be
143
- }, xt = (e = 16, t = He.ALPHA_DIGIT) => {
144
- let r = "";
145
- const { length: n } = t;
146
- for (; e--; )
147
- r += t[Math.random() * n | 0];
148
- return r;
149
- };
150
- function Lt(e) {
151
- return !!(e && S(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
152
- }
153
- const vt = (e) => {
154
- const t = new Array(10), r = (n, s) => {
155
- if (Y(n)) {
156
- if (t.indexOf(n) >= 0)
157
- return;
158
- if (!("toJSON" in n)) {
159
- t[s] = n;
160
- const o = x(n) ? [] : {};
161
- return j(n, (i, c) => {
162
- const l = r(i, s + 1);
163
- !F(l) && (o[c] = l);
164
- }), t[s] = void 0, o;
165
- }
166
- }
167
- return n;
168
- };
169
- return r(e, 0);
170
- }, Ht = N("AsyncFunction"), Ft = (e) => e && (Y(e) || S(e)) && S(e.then) && S(e.catch), Fe = ((e, t) => e ? setImmediate : t ? ((r, n) => (U.addEventListener("message", ({ source: s, data: o }) => {
171
- s === U && o === r && n.length && n.shift()();
172
- }, !1), (s) => {
173
- n.push(s), U.postMessage(r, "*");
174
- }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
175
- typeof setImmediate == "function",
176
- S(U.postMessage)
177
- ), jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof he < "u" && he.nextTick || Fe, a = {
178
- isArray: x,
179
- isArrayBuffer: Pe,
180
- isBuffer: rt,
181
- isFormData: dt,
182
- isArrayBufferView: st,
183
- isString: ot,
184
- isNumber: Be,
185
- isBoolean: it,
186
- isObject: Y,
187
- isPlainObject: q,
188
- isReadableStream: mt,
189
- isRequest: _t,
190
- isResponse: ht,
191
- isHeaders: Et,
192
- isUndefined: F,
193
- isDate: at,
194
- isFile: ct,
195
- isBlob: ut,
196
- isRegExp: Dt,
197
- isFunction: S,
198
- isStream: lt,
199
- isURLSearchParams: ft,
200
- isTypedArray: At,
201
- isFileList: pt,
202
- forEach: j,
203
- merge: oe,
204
- extend: Rt,
205
- trim: bt,
206
- stripBOM: gt,
207
- inherits: yt,
208
- toFlatObject: Tt,
209
- kindOf: X,
210
- kindOfTest: N,
211
- endsWith: Ot,
212
- toArray: wt,
213
- forEachEntry: St,
214
- matchAll: Nt,
215
- isHTMLForm: kt,
216
- hasOwnProperty: Ee,
217
- hasOwnProp: Ee,
218
- // an alias to avoid ESLint no-prototype-builtins detection
219
- reduceDescriptors: ve,
220
- freezeMethods: Ct,
221
- toObjectSet: Ut,
222
- toCamelCase: It,
223
- noop: Pt,
224
- toFiniteNumber: Bt,
225
- findKey: xe,
226
- global: U,
227
- isContextDefined: Le,
228
- ALPHABET: He,
229
- generateString: xt,
230
- isSpecCompliantForm: Lt,
231
- toJSONObject: vt,
232
- isAsyncFn: Ht,
233
- isThenable: Ft,
234
- setImmediate: Fe,
235
- asap: jt
236
- };
237
- function _(e, t, r, n, s) {
238
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
239
- }
240
- a.inherits(_, Error, {
241
- toJSON: function() {
242
- return {
243
- // Standard
244
- message: this.message,
245
- name: this.name,
246
- // Microsoft
247
- description: this.description,
248
- number: this.number,
249
- // Mozilla
250
- fileName: this.fileName,
251
- lineNumber: this.lineNumber,
252
- columnNumber: this.columnNumber,
253
- stack: this.stack,
254
- // Axios
255
- config: a.toJSONObject(this.config),
256
- code: this.code,
257
- status: this.status
258
- };
259
- }
260
- });
261
- const je = _.prototype, Me = {};
262
- [
263
- "ERR_BAD_OPTION_VALUE",
264
- "ERR_BAD_OPTION",
265
- "ECONNABORTED",
266
- "ETIMEDOUT",
267
- "ERR_NETWORK",
268
- "ERR_FR_TOO_MANY_REDIRECTS",
269
- "ERR_DEPRECATED",
270
- "ERR_BAD_RESPONSE",
271
- "ERR_BAD_REQUEST",
272
- "ERR_CANCELED",
273
- "ERR_NOT_SUPPORT",
274
- "ERR_INVALID_URL"
275
- // eslint-disable-next-line func-names
276
- ].forEach((e) => {
277
- Me[e] = { value: e };
278
- });
279
- Object.defineProperties(_, Me);
280
- Object.defineProperty(je, "isAxiosError", { value: !0 });
281
- _.from = (e, t, r, n, s, o) => {
282
- const i = Object.create(je);
283
- return a.toFlatObject(e, i, function(l) {
284
- return l !== Error.prototype;
285
- }, (c) => c !== "isAxiosError"), _.call(i, e.message, t, r, n, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
286
- };
287
- const Mt = null;
288
- function ie(e) {
289
- return a.isPlainObject(e) || a.isArray(e);
290
- }
291
- function Ge(e) {
292
- return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
293
- }
294
- function Re(e, t, r) {
295
- return e ? e.concat(t).map(function(s, o) {
296
- return s = Ge(s), !r && o ? "[" + s + "]" : s;
297
- }).join(r ? "." : "") : t;
298
- }
299
- function Gt(e) {
300
- return a.isArray(e) && !e.some(ie);
301
- }
302
- const qt = a.toFlatObject(a, {}, null, function(t) {
303
- return /^is[A-Z]/.test(t);
304
- });
305
- function Z(e, t, r) {
306
- if (!a.isObject(e))
307
- throw new TypeError("target must be an object");
308
- t = t || new FormData(), r = a.toFlatObject(r, {
309
- metaTokens: !0,
310
- dots: !1,
311
- indexes: !1
312
- }, !1, function(h, m) {
313
- return !a.isUndefined(m[h]);
314
- });
315
- const n = r.metaTokens, s = r.visitor || p, o = r.dots, i = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
316
- if (!a.isFunction(s))
317
- throw new TypeError("visitor must be a function");
318
- function u(f) {
319
- if (f === null) return "";
320
- if (a.isDate(f))
321
- return f.toISOString();
322
- if (!l && a.isBlob(f))
323
- throw new _("Blob is not supported. Use a Buffer instead.");
324
- return a.isArrayBuffer(f) || a.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
325
- }
326
- function p(f, h, m) {
327
- let b = f;
328
- if (f && !m && typeof f == "object") {
329
- if (a.endsWith(h, "{}"))
330
- h = n ? h : h.slice(0, -2), f = JSON.stringify(f);
331
- else if (a.isArray(f) && Gt(f) || (a.isFileList(f) || a.endsWith(h, "[]")) && (b = a.toArray(f)))
332
- return h = Ge(h), b.forEach(function(T, I) {
333
- !(a.isUndefined(T) || T === null) && t.append(
334
- // eslint-disable-next-line no-nested-ternary
335
- i === !0 ? Re([h], I, o) : i === null ? h : h + "[]",
336
- u(T)
337
- );
338
- }), !1;
339
- }
340
- return ie(f) ? !0 : (t.append(Re(m, h, o), u(f)), !1);
341
- }
342
- const d = [], E = Object.assign(qt, {
343
- defaultVisitor: p,
344
- convertValue: u,
345
- isVisitable: ie
346
- });
347
- function g(f, h) {
348
- if (!a.isUndefined(f)) {
349
- if (d.indexOf(f) !== -1)
350
- throw Error("Circular reference detected in " + h.join("."));
351
- d.push(f), a.forEach(f, function(b, y) {
352
- (!(a.isUndefined(b) || b === null) && s.call(
353
- t,
354
- b,
355
- a.isString(y) ? y.trim() : y,
356
- h,
357
- E
358
- )) === !0 && g(b, h ? h.concat(y) : [y]);
359
- }), d.pop();
360
- }
361
- }
362
- if (!a.isObject(e))
363
- throw new TypeError("data must be an object");
364
- return g(e), t;
365
- }
366
- function ge(e) {
367
- const t = {
368
- "!": "%21",
369
- "'": "%27",
370
- "(": "%28",
371
- ")": "%29",
372
- "~": "%7E",
373
- "%20": "+",
374
- "%00": "\0"
375
- };
376
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
377
- return t[n];
378
- });
379
- }
380
- function de(e, t) {
381
- this._pairs = [], e && Z(e, this, t);
382
- }
383
- const qe = de.prototype;
384
- qe.append = function(t, r) {
385
- this._pairs.push([t, r]);
386
- };
387
- qe.toString = function(t) {
388
- const r = t ? function(n) {
389
- return t.call(this, n, ge);
390
- } : ge;
391
- return this._pairs.map(function(s) {
392
- return r(s[0]) + "=" + r(s[1]);
393
- }, "").join("&");
394
- };
395
- function Vt(e) {
396
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
397
- }
398
- function Ve(e, t, r) {
399
- if (!t)
400
- return e;
401
- const n = r && r.encode || Vt;
402
- a.isFunction(r) && (r = {
403
- serialize: r
404
- });
405
- const s = r && r.serialize;
406
- let o;
407
- if (s ? o = s(t, r) : o = a.isURLSearchParams(t) ? t.toString() : new de(t, r).toString(n), o) {
408
- const i = e.indexOf("#");
409
- i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
410
- }
411
- return e;
412
- }
413
- class ye {
414
- constructor() {
415
- this.handlers = [];
416
- }
417
- /**
418
- * Add a new interceptor to the stack
419
- *
420
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
421
- * @param {Function} rejected The function to handle `reject` for a `Promise`
422
- *
423
- * @return {Number} An ID used to remove interceptor later
424
- */
425
- use(t, r, n) {
426
- return this.handlers.push({
427
- fulfilled: t,
428
- rejected: r,
429
- synchronous: n ? n.synchronous : !1,
430
- runWhen: n ? n.runWhen : null
431
- }), this.handlers.length - 1;
432
- }
433
- /**
434
- * Remove an interceptor from the stack
435
- *
436
- * @param {Number} id The ID that was returned by `use`
437
- *
438
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
439
- */
440
- eject(t) {
441
- this.handlers[t] && (this.handlers[t] = null);
442
- }
443
- /**
444
- * Clear all interceptors from the stack
445
- *
446
- * @returns {void}
447
- */
448
- clear() {
449
- this.handlers && (this.handlers = []);
450
- }
451
- /**
452
- * Iterate over all the registered interceptors
453
- *
454
- * This method is particularly useful for skipping over any
455
- * interceptors that may have become `null` calling `eject`.
456
- *
457
- * @param {Function} fn The function to call for each interceptor
458
- *
459
- * @returns {void}
460
- */
461
- forEach(t) {
462
- a.forEach(this.handlers, function(n) {
463
- n !== null && t(n);
464
- });
465
- }
466
- }
467
- const We = {
468
- silentJSONParsing: !0,
469
- forcedJSONParsing: !0,
470
- clarifyTimeoutError: !1
471
- }, Wt = typeof URLSearchParams < "u" ? URLSearchParams : de, Kt = typeof FormData < "u" ? FormData : null, zt = typeof Blob < "u" ? Blob : null, Jt = {
472
- isBrowser: !0,
473
- classes: {
474
- URLSearchParams: Wt,
475
- FormData: Kt,
476
- Blob: zt
477
- },
478
- protocols: ["http", "https", "file", "blob", "url", "data"]
479
- }, fe = typeof window < "u" && typeof document < "u", ae = typeof navigator == "object" && navigator || void 0, Xt = fe && (!ae || ["ReactNative", "NativeScript", "NS"].indexOf(ae.product) < 0), $t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
480
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Yt = fe && window.location.href || "http://localhost", Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
481
- __proto__: null,
482
- hasBrowserEnv: fe,
483
- hasStandardBrowserEnv: Xt,
484
- hasStandardBrowserWebWorkerEnv: $t,
485
- navigator: ae,
486
- origin: Yt
487
- }, Symbol.toStringTag, { value: "Module" })), O = {
488
- ...Zt,
489
- ...Jt
490
- };
491
- function Qt(e, t) {
492
- return Z(e, new O.classes.URLSearchParams(), Object.assign({
493
- visitor: function(r, n, s, o) {
494
- return O.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
495
- }
496
- }, t));
497
- }
498
- function en(e) {
499
- return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
500
- }
501
- function tn(e) {
502
- const t = {}, r = Object.keys(e);
503
- let n;
504
- const s = r.length;
505
- let o;
506
- for (n = 0; n < s; n++)
507
- o = r[n], t[o] = e[o];
508
- return t;
509
- }
510
- function Ke(e) {
511
- function t(r, n, s, o) {
512
- let i = r[o++];
513
- if (i === "__proto__") return !0;
514
- const c = Number.isFinite(+i), l = o >= r.length;
515
- return i = !i && a.isArray(s) ? s.length : i, l ? (a.hasOwnProp(s, i) ? s[i] = [s[i], n] : s[i] = n, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(r, n, s[i], o) && a.isArray(s[i]) && (s[i] = tn(s[i])), !c);
516
- }
517
- if (a.isFormData(e) && a.isFunction(e.entries)) {
518
- const r = {};
519
- return a.forEachEntry(e, (n, s) => {
520
- t(en(n), s, r, 0);
521
- }), r;
522
- }
523
- return null;
524
- }
525
- function nn(e, t, r) {
526
- if (a.isString(e))
527
- try {
528
- return (t || JSON.parse)(e), a.trim(e);
529
- } catch (n) {
530
- if (n.name !== "SyntaxError")
531
- throw n;
532
- }
533
- return (0, JSON.stringify)(e);
534
- }
535
- const M = {
536
- transitional: We,
537
- adapter: ["xhr", "http", "fetch"],
538
- transformRequest: [function(t, r) {
539
- const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = a.isObject(t);
540
- if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
541
- return s ? JSON.stringify(Ke(t)) : t;
542
- if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
543
- return t;
544
- if (a.isArrayBufferView(t))
545
- return t.buffer;
546
- if (a.isURLSearchParams(t))
547
- return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
548
- let c;
549
- if (o) {
550
- if (n.indexOf("application/x-www-form-urlencoded") > -1)
551
- return Qt(t, this.formSerializer).toString();
552
- if ((c = a.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
553
- const l = this.env && this.env.FormData;
554
- return Z(
555
- c ? { "files[]": t } : t,
556
- l && new l(),
557
- this.formSerializer
558
- );
559
- }
560
- }
561
- return o || s ? (r.setContentType("application/json", !1), nn(t)) : t;
562
- }],
563
- transformResponse: [function(t) {
564
- const r = this.transitional || M.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
565
- if (a.isResponse(t) || a.isReadableStream(t))
566
- return t;
567
- if (t && a.isString(t) && (n && !this.responseType || s)) {
568
- const i = !(r && r.silentJSONParsing) && s;
569
- try {
570
- return JSON.parse(t);
571
- } catch (c) {
572
- if (i)
573
- throw c.name === "SyntaxError" ? _.from(c, _.ERR_BAD_RESPONSE, this, null, this.response) : c;
574
- }
575
- }
576
- return t;
577
- }],
578
- /**
579
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
580
- * timeout is not created.
581
- */
582
- timeout: 0,
583
- xsrfCookieName: "XSRF-TOKEN",
584
- xsrfHeaderName: "X-XSRF-TOKEN",
585
- maxContentLength: -1,
586
- maxBodyLength: -1,
587
- env: {
588
- FormData: O.classes.FormData,
589
- Blob: O.classes.Blob
590
- },
591
- validateStatus: function(t) {
592
- return t >= 200 && t < 300;
593
- },
594
- headers: {
595
- common: {
596
- Accept: "application/json, text/plain, */*",
597
- "Content-Type": void 0
598
- }
599
- }
600
- };
601
- a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
602
- M.headers[e] = {};
603
- });
604
- const rn = a.toObjectSet([
605
- "age",
606
- "authorization",
607
- "content-length",
608
- "content-type",
609
- "etag",
610
- "expires",
611
- "from",
612
- "host",
613
- "if-modified-since",
614
- "if-unmodified-since",
615
- "last-modified",
616
- "location",
617
- "max-forwards",
618
- "proxy-authorization",
619
- "referer",
620
- "retry-after",
621
- "user-agent"
622
- ]), sn = (e) => {
623
- const t = {};
624
- let r, n, s;
625
- return e && e.split(`
626
- `).forEach(function(i) {
627
- s = i.indexOf(":"), r = i.substring(0, s).trim().toLowerCase(), n = i.substring(s + 1).trim(), !(!r || t[r] && rn[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
628
- }), t;
629
- }, Te = Symbol("internals");
630
- function v(e) {
631
- return e && String(e).trim().toLowerCase();
632
- }
633
- function V(e) {
634
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
635
- }
636
- function on(e) {
637
- const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
638
- let n;
639
- for (; n = r.exec(e); )
640
- t[n[1]] = n[2];
641
- return t;
642
- }
643
- const an = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
644
- function ne(e, t, r, n, s) {
645
- if (a.isFunction(n))
646
- return n.call(this, t, r);
647
- if (s && (t = r), !!a.isString(t)) {
648
- if (a.isString(n))
649
- return t.indexOf(n) !== -1;
650
- if (a.isRegExp(n))
651
- return n.test(t);
652
- }
653
- }
654
- function cn(e) {
655
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
656
- }
657
- function un(e, t) {
658
- const r = a.toCamelCase(" " + t);
659
- ["get", "set", "has"].forEach((n) => {
660
- Object.defineProperty(e, n + r, {
661
- value: function(s, o, i) {
662
- return this[n].call(this, t, s, o, i);
663
- },
664
- configurable: !0
665
- });
666
- });
667
- }
668
- class A {
669
- constructor(t) {
670
- t && this.set(t);
671
- }
672
- set(t, r, n) {
673
- const s = this;
674
- function o(c, l, u) {
675
- const p = v(l);
676
- if (!p)
677
- throw new Error("header name must be a non-empty string");
678
- const d = a.findKey(s, p);
679
- (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || l] = V(c));
680
- }
681
- const i = (c, l) => a.forEach(c, (u, p) => o(u, p, l));
682
- if (a.isPlainObject(t) || t instanceof this.constructor)
683
- i(t, r);
684
- else if (a.isString(t) && (t = t.trim()) && !an(t))
685
- i(sn(t), r);
686
- else if (a.isHeaders(t))
687
- for (const [c, l] of t.entries())
688
- o(l, c, n);
689
- else
690
- t != null && o(r, t, n);
691
- return this;
692
- }
693
- get(t, r) {
694
- if (t = v(t), t) {
695
- const n = a.findKey(this, t);
696
- if (n) {
697
- const s = this[n];
698
- if (!r)
699
- return s;
700
- if (r === !0)
701
- return on(s);
702
- if (a.isFunction(r))
703
- return r.call(this, s, n);
704
- if (a.isRegExp(r))
705
- return r.exec(s);
706
- throw new TypeError("parser must be boolean|regexp|function");
707
- }
708
- }
709
- }
710
- has(t, r) {
711
- if (t = v(t), t) {
712
- const n = a.findKey(this, t);
713
- return !!(n && this[n] !== void 0 && (!r || ne(this, this[n], n, r)));
714
- }
715
- return !1;
716
- }
717
- delete(t, r) {
718
- const n = this;
719
- let s = !1;
720
- function o(i) {
721
- if (i = v(i), i) {
722
- const c = a.findKey(n, i);
723
- c && (!r || ne(n, n[c], c, r)) && (delete n[c], s = !0);
724
- }
725
- }
726
- return a.isArray(t) ? t.forEach(o) : o(t), s;
727
- }
728
- clear(t) {
729
- const r = Object.keys(this);
730
- let n = r.length, s = !1;
731
- for (; n--; ) {
732
- const o = r[n];
733
- (!t || ne(this, this[o], o, t, !0)) && (delete this[o], s = !0);
734
- }
735
- return s;
736
- }
737
- normalize(t) {
738
- const r = this, n = {};
739
- return a.forEach(this, (s, o) => {
740
- const i = a.findKey(n, o);
741
- if (i) {
742
- r[i] = V(s), delete r[o];
743
- return;
744
- }
745
- const c = t ? cn(o) : String(o).trim();
746
- c !== o && delete r[o], r[c] = V(s), n[c] = !0;
747
- }), this;
748
- }
749
- concat(...t) {
750
- return this.constructor.concat(this, ...t);
751
- }
752
- toJSON(t) {
753
- const r = /* @__PURE__ */ Object.create(null);
754
- return a.forEach(this, (n, s) => {
755
- n != null && n !== !1 && (r[s] = t && a.isArray(n) ? n.join(", ") : n);
756
- }), r;
757
- }
758
- [Symbol.iterator]() {
759
- return Object.entries(this.toJSON())[Symbol.iterator]();
760
- }
761
- toString() {
762
- return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
763
- `);
764
- }
765
- get [Symbol.toStringTag]() {
766
- return "AxiosHeaders";
767
- }
768
- static from(t) {
769
- return t instanceof this ? t : new this(t);
770
- }
771
- static concat(t, ...r) {
772
- const n = new this(t);
773
- return r.forEach((s) => n.set(s)), n;
774
- }
775
- static accessor(t) {
776
- const n = (this[Te] = this[Te] = {
777
- accessors: {}
778
- }).accessors, s = this.prototype;
779
- function o(i) {
780
- const c = v(i);
781
- n[c] || (un(s, i), n[c] = !0);
782
- }
783
- return a.isArray(t) ? t.forEach(o) : o(t), this;
784
- }
785
- }
786
- A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
787
- a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
788
- let r = t[0].toUpperCase() + t.slice(1);
789
- return {
790
- get: () => e,
791
- set(n) {
792
- this[r] = n;
793
- }
794
- };
795
- });
796
- a.freezeMethods(A);
797
- function re(e, t) {
798
- const r = this || M, n = t || r, s = A.from(n.headers);
799
- let o = n.data;
800
- return a.forEach(e, function(c) {
801
- o = c.call(r, o, s.normalize(), t ? t.status : void 0);
802
- }), s.normalize(), o;
803
- }
804
- function ze(e) {
805
- return !!(e && e.__CANCEL__);
806
- }
807
- function L(e, t, r) {
808
- _.call(this, e ?? "canceled", _.ERR_CANCELED, t, r), this.name = "CanceledError";
809
- }
810
- a.inherits(L, _, {
811
- __CANCEL__: !0
812
- });
813
- function Je(e, t, r) {
814
- const n = r.config.validateStatus;
815
- !r.status || !n || n(r.status) ? e(r) : t(new _(
816
- "Request failed with status code " + r.status,
817
- [_.ERR_BAD_REQUEST, _.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
818
- r.config,
819
- r.request,
820
- r
821
- ));
822
- }
823
- function pn(e) {
824
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
825
- return t && t[1] || "";
826
- }
827
- function ln(e, t) {
828
- e = e || 10;
829
- const r = new Array(e), n = new Array(e);
830
- let s = 0, o = 0, i;
831
- return t = t !== void 0 ? t : 1e3, function(l) {
832
- const u = Date.now(), p = n[o];
833
- i || (i = u), r[s] = l, n[s] = u;
834
- let d = o, E = 0;
835
- for (; d !== s; )
836
- E += r[d++], d = d % e;
837
- if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
838
- return;
839
- const g = p && u - p;
840
- return g ? Math.round(E * 1e3 / g) : void 0;
841
- };
842
- }
843
- function dn(e, t) {
844
- let r = 0, n = 1e3 / t, s, o;
845
- const i = (u, p = Date.now()) => {
846
- r = p, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
847
- };
848
- return [(...u) => {
849
- const p = Date.now(), d = p - r;
850
- d >= n ? i(u, p) : (s = u, o || (o = setTimeout(() => {
851
- o = null, i(s);
852
- }, n - d)));
853
- }, () => s && i(s)];
854
- }
855
- const z = (e, t, r = 3) => {
856
- let n = 0;
857
- const s = ln(50, 250);
858
- return dn((o) => {
859
- const i = o.loaded, c = o.lengthComputable ? o.total : void 0, l = i - n, u = s(l), p = i <= c;
860
- n = i;
861
- const d = {
862
- loaded: i,
863
- total: c,
864
- progress: c ? i / c : void 0,
865
- bytes: l,
866
- rate: u || void 0,
867
- estimated: u && c && p ? (c - i) / u : void 0,
868
- event: o,
869
- lengthComputable: c != null,
870
- [t ? "download" : "upload"]: !0
871
- };
872
- e(d);
873
- }, r);
874
- }, Oe = (e, t) => {
875
- const r = e != null;
876
- return [(n) => t[0]({
877
- lengthComputable: r,
878
- total: e,
879
- loaded: n
880
- }), t[1]];
881
- }, we = (e) => (...t) => a.asap(() => e(...t)), fn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, O.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
882
- new URL(O.origin),
883
- O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
884
- ) : () => !0, mn = O.hasStandardBrowserEnv ? (
885
- // Standard browser envs support document.cookie
886
- {
887
- write(e, t, r, n, s, o) {
888
- const i = [e + "=" + encodeURIComponent(t)];
889
- a.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), a.isString(n) && i.push("path=" + n), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
890
- },
891
- read(e) {
892
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
893
- return t ? decodeURIComponent(t[3]) : null;
894
- },
895
- remove(e) {
896
- this.write(e, "", Date.now() - 864e5);
897
- }
898
- }
899
- ) : (
900
- // Non-standard browser env (web workers, react-native) lack needed support.
901
- {
902
- write() {
903
- },
904
- read() {
905
- return null;
906
- },
907
- remove() {
908
- }
909
- }
910
- );
911
- function _n(e) {
912
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
913
- }
914
- function hn(e, t) {
915
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
916
- }
917
- function Xe(e, t) {
918
- return e && !_n(t) ? hn(e, t) : t;
919
- }
920
- const Ae = (e) => e instanceof A ? { ...e } : e;
921
- function B(e, t) {
922
- t = t || {};
923
- const r = {};
924
- function n(u, p, d, E) {
925
- return a.isPlainObject(u) && a.isPlainObject(p) ? a.merge.call({ caseless: E }, u, p) : a.isPlainObject(p) ? a.merge({}, p) : a.isArray(p) ? p.slice() : p;
926
- }
927
- function s(u, p, d, E) {
928
- if (a.isUndefined(p)) {
929
- if (!a.isUndefined(u))
930
- return n(void 0, u, d, E);
931
- } else return n(u, p, d, E);
932
- }
933
- function o(u, p) {
934
- if (!a.isUndefined(p))
935
- return n(void 0, p);
936
- }
937
- function i(u, p) {
938
- if (a.isUndefined(p)) {
939
- if (!a.isUndefined(u))
940
- return n(void 0, u);
941
- } else return n(void 0, p);
942
- }
943
- function c(u, p, d) {
944
- if (d in t)
945
- return n(u, p);
946
- if (d in e)
947
- return n(void 0, u);
948
- }
949
- const l = {
950
- url: o,
951
- method: o,
952
- data: o,
953
- baseURL: i,
954
- transformRequest: i,
955
- transformResponse: i,
956
- paramsSerializer: i,
957
- timeout: i,
958
- timeoutMessage: i,
959
- withCredentials: i,
960
- withXSRFToken: i,
961
- adapter: i,
962
- responseType: i,
963
- xsrfCookieName: i,
964
- xsrfHeaderName: i,
965
- onUploadProgress: i,
966
- onDownloadProgress: i,
967
- decompress: i,
968
- maxContentLength: i,
969
- maxBodyLength: i,
970
- beforeRedirect: i,
971
- transport: i,
972
- httpAgent: i,
973
- httpsAgent: i,
974
- cancelToken: i,
975
- socketPath: i,
976
- responseEncoding: i,
977
- validateStatus: c,
978
- headers: (u, p, d) => s(Ae(u), Ae(p), d, !0)
979
- };
980
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(p) {
981
- const d = l[p] || s, E = d(e[p], t[p], p);
982
- a.isUndefined(E) && d !== c || (r[p] = E);
983
- }), r;
984
- }
985
- const $e = (e) => {
986
- const t = B({}, e);
987
- let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
988
- t.headers = i = A.from(i), t.url = Ve(Xe(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
989
- "Authorization",
990
- "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
991
- );
992
- let l;
993
- if (a.isFormData(r)) {
994
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
995
- i.setContentType(void 0);
996
- else if ((l = i.getContentType()) !== !1) {
997
- const [u, ...p] = l ? l.split(";").map((d) => d.trim()).filter(Boolean) : [];
998
- i.setContentType([u || "multipart/form-data", ...p].join("; "));
999
- }
1000
- }
1001
- if (O.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(t)), n || n !== !1 && fn(t.url))) {
1002
- const u = s && o && mn.read(o);
1003
- u && i.set(s, u);
1004
- }
1005
- return t;
1006
- }, En = typeof XMLHttpRequest < "u", bn = En && function(e) {
1007
- return new Promise(function(r, n) {
1008
- const s = $e(e);
1009
- let o = s.data;
1010
- const i = A.from(s.headers).normalize();
1011
- let { responseType: c, onUploadProgress: l, onDownloadProgress: u } = s, p, d, E, g, f;
1012
- function h() {
1013
- g && g(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(p), s.signal && s.signal.removeEventListener("abort", p);
1014
- }
1015
- let m = new XMLHttpRequest();
1016
- m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
1017
- function b() {
1018
- if (!m)
1019
- return;
1020
- const T = A.from(
1021
- "getAllResponseHeaders" in m && m.getAllResponseHeaders()
1022
- ), w = {
1023
- data: !c || c === "text" || c === "json" ? m.responseText : m.response,
1024
- status: m.status,
1025
- statusText: m.statusText,
1026
- headers: T,
1027
- config: e,
1028
- request: m
1029
- };
1030
- Je(function(C) {
1031
- r(C), h();
1032
- }, function(C) {
1033
- n(C), h();
1034
- }, w), m = null;
1035
- }
1036
- "onloadend" in m ? m.onloadend = b : m.onreadystatechange = function() {
1037
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(b);
1038
- }, m.onabort = function() {
1039
- m && (n(new _("Request aborted", _.ECONNABORTED, e, m)), m = null);
1040
- }, m.onerror = function() {
1041
- n(new _("Network Error", _.ERR_NETWORK, e, m)), m = null;
1042
- }, m.ontimeout = function() {
1043
- let I = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1044
- const w = s.transitional || We;
1045
- s.timeoutErrorMessage && (I = s.timeoutErrorMessage), n(new _(
1046
- I,
1047
- w.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
1048
- e,
1049
- m
1050
- )), m = null;
1051
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(I, w) {
1052
- m.setRequestHeader(w, I);
1053
- }), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), u && ([E, f] = z(u, !0), m.addEventListener("progress", E)), l && m.upload && ([d, g] = z(l), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (p = (T) => {
1054
- m && (n(!T || T.type ? new L(null, e, m) : T), m.abort(), m = null);
1055
- }, s.cancelToken && s.cancelToken.subscribe(p), s.signal && (s.signal.aborted ? p() : s.signal.addEventListener("abort", p)));
1056
- const y = pn(s.url);
1057
- if (y && O.protocols.indexOf(y) === -1) {
1058
- n(new _("Unsupported protocol " + y + ":", _.ERR_BAD_REQUEST, e));
1059
- return;
1060
- }
1061
- m.send(o || null);
1062
- });
1063
- }, Rn = (e, t) => {
1064
- const { length: r } = e = e ? e.filter(Boolean) : [];
1065
- if (t || r) {
1066
- let n = new AbortController(), s;
1067
- const o = function(u) {
1068
- if (!s) {
1069
- s = !0, c();
1070
- const p = u instanceof Error ? u : this.reason;
1071
- n.abort(p instanceof _ ? p : new L(p instanceof Error ? p.message : p));
1072
- }
1073
- };
1074
- let i = t && setTimeout(() => {
1075
- i = null, o(new _(`timeout ${t} of ms exceeded`, _.ETIMEDOUT));
1076
- }, t);
1077
- const c = () => {
1078
- e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1079
- u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1080
- }), e = null);
1081
- };
1082
- e.forEach((u) => u.addEventListener("abort", o));
1083
- const { signal: l } = n;
1084
- return l.unsubscribe = () => a.asap(c), l;
1085
- }
1086
- }, gn = function* (e, t) {
1087
- let r = e.byteLength;
1088
- if (r < t) {
1089
- yield e;
1090
- return;
1091
- }
1092
- let n = 0, s;
1093
- for (; n < r; )
1094
- s = n + t, yield e.slice(n, s), n = s;
1095
- }, yn = async function* (e, t) {
1096
- for await (const r of Tn(e))
1097
- yield* gn(r, t);
1098
- }, Tn = async function* (e) {
1099
- if (e[Symbol.asyncIterator]) {
1100
- yield* e;
1101
- return;
1102
- }
1103
- const t = e.getReader();
1104
- try {
1105
- for (; ; ) {
1106
- const { done: r, value: n } = await t.read();
1107
- if (r)
1108
- break;
1109
- yield n;
1110
- }
1111
- } finally {
1112
- await t.cancel();
1113
- }
1114
- }, Se = (e, t, r, n) => {
1115
- const s = yn(e, t);
1116
- let o = 0, i, c = (l) => {
1117
- i || (i = !0, n && n(l));
1118
- };
1119
- return new ReadableStream({
1120
- async pull(l) {
1121
- try {
1122
- const { done: u, value: p } = await s.next();
1123
- if (u) {
1124
- c(), l.close();
1125
- return;
1126
- }
1127
- let d = p.byteLength;
1128
- if (r) {
1129
- let E = o += d;
1130
- r(E);
1131
- }
1132
- l.enqueue(new Uint8Array(p));
1133
- } catch (u) {
1134
- throw c(u), u;
1135
- }
1136
- },
1137
- cancel(l) {
1138
- return c(l), s.return();
1139
- }
1140
- }, {
1141
- highWaterMark: 2
1142
- });
1143
- }, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ye = Q && typeof ReadableStream == "function", On = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ze = (e, ...t) => {
1144
- try {
1145
- return !!e(...t);
1146
- } catch {
1147
- return !1;
1148
- }
1149
- }, wn = Ye && Ze(() => {
1150
- let e = !1;
1151
- const t = new Request(O.origin, {
1152
- body: new ReadableStream(),
1153
- method: "POST",
1154
- get duplex() {
1155
- return e = !0, "half";
1156
- }
1157
- }).headers.has("Content-Type");
1158
- return e && !t;
1159
- }), Ne = 64 * 1024, ce = Ye && Ze(() => a.isReadableStream(new Response("").body)), J = {
1160
- stream: ce && ((e) => e.body)
1161
- };
1162
- Q && ((e) => {
1163
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1164
- !J[t] && (J[t] = a.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
1165
- throw new _(`Response type '${t}' is not supported`, _.ERR_NOT_SUPPORT, n);
1166
- });
1167
- });
1168
- })(new Response());
1169
- const An = async (e) => {
1170
- if (e == null)
1171
- return 0;
1172
- if (a.isBlob(e))
1173
- return e.size;
1174
- if (a.isSpecCompliantForm(e))
1175
- return (await new Request(O.origin, {
1176
- method: "POST",
1177
- body: e
1178
- }).arrayBuffer()).byteLength;
1179
- if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1180
- return e.byteLength;
1181
- if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1182
- return (await On(e)).byteLength;
1183
- }, Sn = async (e, t) => {
1184
- const r = a.toFiniteNumber(e.getContentLength());
1185
- return r ?? An(t);
1186
- }, Nn = Q && (async (e) => {
1187
- let {
1188
- url: t,
1189
- method: r,
1190
- data: n,
1191
- signal: s,
1192
- cancelToken: o,
1193
- timeout: i,
1194
- onDownloadProgress: c,
1195
- onUploadProgress: l,
1196
- responseType: u,
1197
- headers: p,
1198
- withCredentials: d = "same-origin",
1199
- fetchOptions: E
1200
- } = $e(e);
1201
- u = u ? (u + "").toLowerCase() : "text";
1202
- let g = Rn([s, o && o.toAbortSignal()], i), f;
1203
- const h = g && g.unsubscribe && (() => {
1204
- g.unsubscribe();
1205
- });
1206
- let m;
1207
- try {
1208
- if (l && wn && r !== "get" && r !== "head" && (m = await Sn(p, n)) !== 0) {
1209
- let w = new Request(t, {
1210
- method: "POST",
1211
- body: n,
1212
- duplex: "half"
1213
- }), D;
1214
- if (a.isFormData(n) && (D = w.headers.get("content-type")) && p.setContentType(D), w.body) {
1215
- const [C, G] = Oe(
1216
- m,
1217
- z(we(l))
1218
- );
1219
- n = Se(w.body, Ne, C, G);
1220
- }
1221
- }
1222
- a.isString(d) || (d = d ? "include" : "omit");
1223
- const b = "credentials" in Request.prototype;
1224
- f = new Request(t, {
1225
- ...E,
1226
- signal: g,
1227
- method: r.toUpperCase(),
1228
- headers: p.normalize().toJSON(),
1229
- body: n,
1230
- duplex: "half",
1231
- credentials: b ? d : void 0
1232
- });
1233
- let y = await fetch(f);
1234
- const T = ce && (u === "stream" || u === "response");
1235
- if (ce && (c || T && h)) {
1236
- const w = {};
1237
- ["status", "statusText", "headers"].forEach((_e) => {
1238
- w[_e] = y[_e];
1239
- });
1240
- const D = a.toFiniteNumber(y.headers.get("content-length")), [C, G] = c && Oe(
1241
- D,
1242
- z(we(c), !0)
1243
- ) || [];
1244
- y = new Response(
1245
- Se(y.body, Ne, C, () => {
1246
- G && G(), h && h();
1247
- }),
1248
- w
1249
- );
1250
- }
1251
- u = u || "text";
1252
- let I = await J[a.findKey(J, u) || "text"](y, e);
1253
- return !T && h && h(), await new Promise((w, D) => {
1254
- Je(w, D, {
1255
- data: I,
1256
- headers: A.from(y.headers),
1257
- status: y.status,
1258
- statusText: y.statusText,
1259
- config: e,
1260
- request: f
1261
- });
1262
- });
1263
- } catch (b) {
1264
- throw h && h(), b && b.name === "TypeError" && /fetch/i.test(b.message) ? Object.assign(
1265
- new _("Network Error", _.ERR_NETWORK, e, f),
1266
- {
1267
- cause: b.cause || b
1268
- }
1269
- ) : _.from(b, b && b.code, e, f);
1270
- }
1271
- }), ue = {
1272
- http: Mt,
1273
- xhr: bn,
1274
- fetch: Nn
1275
- };
1276
- a.forEach(ue, (e, t) => {
1277
- if (e) {
1278
- try {
1279
- Object.defineProperty(e, "name", { value: t });
1280
- } catch {
1281
- }
1282
- Object.defineProperty(e, "adapterName", { value: t });
1283
- }
1284
- });
1285
- const ke = (e) => `- ${e}`, kn = (e) => a.isFunction(e) || e === null || e === !1, Qe = {
1286
- getAdapter: (e) => {
1287
- e = a.isArray(e) ? e : [e];
1288
- const { length: t } = e;
1289
- let r, n;
1290
- const s = {};
1291
- for (let o = 0; o < t; o++) {
1292
- r = e[o];
1293
- let i;
1294
- if (n = r, !kn(r) && (n = ue[(i = String(r)).toLowerCase()], n === void 0))
1295
- throw new _(`Unknown adapter '${i}'`);
1296
- if (n)
1297
- break;
1298
- s[i || "#" + o] = n;
1299
- }
1300
- if (!n) {
1301
- const o = Object.entries(s).map(
1302
- ([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1303
- );
1304
- let i = t ? o.length > 1 ? `since :
1305
- ` + o.map(ke).join(`
1306
- `) : " " + ke(o[0]) : "as no adapter specified";
1307
- throw new _(
1308
- "There is no suitable adapter to dispatch the request " + i,
1309
- "ERR_NOT_SUPPORT"
1310
- );
1311
- }
1312
- return n;
1313
- },
1314
- adapters: ue
1315
- };
1316
- function se(e) {
1317
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1318
- throw new L(null, e);
1319
- }
1320
- function Ie(e) {
1321
- return se(e), e.headers = A.from(e.headers), e.data = re.call(
1322
- e,
1323
- e.transformRequest
1324
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qe.getAdapter(e.adapter || M.adapter)(e).then(function(n) {
1325
- return se(e), n.data = re.call(
1326
- e,
1327
- e.transformResponse,
1328
- n
1329
- ), n.headers = A.from(n.headers), n;
1330
- }, function(n) {
1331
- return ze(n) || (se(e), n && n.response && (n.response.data = re.call(
1332
- e,
1333
- e.transformResponse,
1334
- n.response
1335
- ), n.response.headers = A.from(n.response.headers))), Promise.reject(n);
1336
- });
1337
- }
1338
- const et = "1.7.8", ee = {};
1339
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1340
- ee[e] = function(n) {
1341
- return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1342
- };
1343
- });
1344
- const De = {};
1345
- ee.transitional = function(t, r, n) {
1346
- function s(o, i) {
1347
- return "[Axios v" + et + "] Transitional option '" + o + "'" + i + (n ? ". " + n : "");
1348
- }
1349
- return (o, i, c) => {
1350
- if (t === !1)
1351
- throw new _(
1352
- s(i, " has been removed" + (r ? " in " + r : "")),
1353
- _.ERR_DEPRECATED
1354
- );
1355
- return r && !De[i] && (De[i] = !0, console.warn(
1356
- s(
1357
- i,
1358
- " has been deprecated since v" + r + " and will be removed in the near future"
1359
- )
1360
- )), t ? t(o, i, c) : !0;
1361
- };
1362
- };
1363
- ee.spelling = function(t) {
1364
- return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
1365
- };
1366
- function In(e, t, r) {
1367
- if (typeof e != "object")
1368
- throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
1369
- const n = Object.keys(e);
1370
- let s = n.length;
1371
- for (; s-- > 0; ) {
1372
- const o = n[s], i = t[o];
1373
- if (i) {
1374
- const c = e[o], l = c === void 0 || i(c, o, e);
1375
- if (l !== !0)
1376
- throw new _("option " + o + " must be " + l, _.ERR_BAD_OPTION_VALUE);
1377
- continue;
1378
- }
1379
- if (r !== !0)
1380
- throw new _("Unknown option " + o, _.ERR_BAD_OPTION);
1381
- }
1382
- }
1383
- const W = {
1384
- assertOptions: In,
1385
- validators: ee
1386
- }, k = W.validators;
1387
- class P {
1388
- constructor(t) {
1389
- this.defaults = t, this.interceptors = {
1390
- request: new ye(),
1391
- response: new ye()
1392
- };
1393
- }
1394
- /**
1395
- * Dispatch a request
1396
- *
1397
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1398
- * @param {?Object} config
1399
- *
1400
- * @returns {Promise} The Promise to be fulfilled
1401
- */
1402
- async request(t, r) {
1403
- try {
1404
- return await this._request(t, r);
1405
- } catch (n) {
1406
- if (n instanceof Error) {
1407
- let s = {};
1408
- Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1409
- const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1410
- try {
1411
- n.stack ? o && !String(n.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (n.stack += `
1412
- ` + o) : n.stack = o;
1413
- } catch {
1414
- }
1415
- }
1416
- throw n;
1417
- }
1418
- }
1419
- _request(t, r) {
1420
- typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = B(this.defaults, r);
1421
- const { transitional: n, paramsSerializer: s, headers: o } = r;
1422
- n !== void 0 && W.assertOptions(n, {
1423
- silentJSONParsing: k.transitional(k.boolean),
1424
- forcedJSONParsing: k.transitional(k.boolean),
1425
- clarifyTimeoutError: k.transitional(k.boolean)
1426
- }, !1), s != null && (a.isFunction(s) ? r.paramsSerializer = {
1427
- serialize: s
1428
- } : W.assertOptions(s, {
1429
- encode: k.function,
1430
- serialize: k.function
1431
- }, !0)), W.assertOptions(r, {
1432
- baseUrl: k.spelling("baseURL"),
1433
- withXsrfToken: k.spelling("withXSRFToken")
1434
- }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1435
- let i = o && a.merge(
1436
- o.common,
1437
- o[r.method]
1438
- );
1439
- o && a.forEach(
1440
- ["delete", "get", "head", "post", "put", "patch", "common"],
1441
- (f) => {
1442
- delete o[f];
1443
- }
1444
- ), r.headers = A.concat(i, o);
1445
- const c = [];
1446
- let l = !0;
1447
- this.interceptors.request.forEach(function(h) {
1448
- typeof h.runWhen == "function" && h.runWhen(r) === !1 || (l = l && h.synchronous, c.unshift(h.fulfilled, h.rejected));
1449
- });
1450
- const u = [];
1451
- this.interceptors.response.forEach(function(h) {
1452
- u.push(h.fulfilled, h.rejected);
1453
- });
1454
- let p, d = 0, E;
1455
- if (!l) {
1456
- const f = [Ie.bind(this), void 0];
1457
- for (f.unshift.apply(f, c), f.push.apply(f, u), E = f.length, p = Promise.resolve(r); d < E; )
1458
- p = p.then(f[d++], f[d++]);
1459
- return p;
1460
- }
1461
- E = c.length;
1462
- let g = r;
1463
- for (d = 0; d < E; ) {
1464
- const f = c[d++], h = c[d++];
1465
- try {
1466
- g = f(g);
1467
- } catch (m) {
1468
- h.call(this, m);
1469
- break;
1470
- }
1471
- }
1472
- try {
1473
- p = Ie.call(this, g);
1474
- } catch (f) {
1475
- return Promise.reject(f);
1476
- }
1477
- for (d = 0, E = u.length; d < E; )
1478
- p = p.then(u[d++], u[d++]);
1479
- return p;
1480
- }
1481
- getUri(t) {
1482
- t = B(this.defaults, t);
1483
- const r = Xe(t.baseURL, t.url);
1484
- return Ve(r, t.params, t.paramsSerializer);
1485
- }
1486
- }
1487
- a.forEach(["delete", "get", "head", "options"], function(t) {
1488
- P.prototype[t] = function(r, n) {
1489
- return this.request(B(n || {}, {
1490
- method: t,
1491
- url: r,
1492
- data: (n || {}).data
1493
- }));
1494
- };
1495
- });
1496
- a.forEach(["post", "put", "patch"], function(t) {
1497
- function r(n) {
1498
- return function(o, i, c) {
1499
- return this.request(B(c || {}, {
1500
- method: t,
1501
- headers: n ? {
1502
- "Content-Type": "multipart/form-data"
1503
- } : {},
1504
- url: o,
1505
- data: i
1506
- }));
1507
- };
1508
- }
1509
- P.prototype[t] = r(), P.prototype[t + "Form"] = r(!0);
1510
- });
1511
- class me {
1512
- constructor(t) {
1513
- if (typeof t != "function")
1514
- throw new TypeError("executor must be a function.");
1515
- let r;
1516
- this.promise = new Promise(function(o) {
1517
- r = o;
1518
- });
1519
- const n = this;
1520
- this.promise.then((s) => {
1521
- if (!n._listeners) return;
1522
- let o = n._listeners.length;
1523
- for (; o-- > 0; )
1524
- n._listeners[o](s);
1525
- n._listeners = null;
1526
- }), this.promise.then = (s) => {
1527
- let o;
1528
- const i = new Promise((c) => {
1529
- n.subscribe(c), o = c;
1530
- }).then(s);
1531
- return i.cancel = function() {
1532
- n.unsubscribe(o);
1533
- }, i;
1534
- }, t(function(o, i, c) {
1535
- n.reason || (n.reason = new L(o, i, c), r(n.reason));
1536
- });
1537
- }
1538
- /**
1539
- * Throws a `CanceledError` if cancellation has been requested.
1540
- */
1541
- throwIfRequested() {
1542
- if (this.reason)
1543
- throw this.reason;
1544
- }
1545
- /**
1546
- * Subscribe to the cancel signal
1547
- */
1548
- subscribe(t) {
1549
- if (this.reason) {
1550
- t(this.reason);
1551
- return;
1552
- }
1553
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
1554
- }
1555
- /**
1556
- * Unsubscribe from the cancel signal
1557
- */
1558
- unsubscribe(t) {
1559
- if (!this._listeners)
1560
- return;
1561
- const r = this._listeners.indexOf(t);
1562
- r !== -1 && this._listeners.splice(r, 1);
1563
- }
1564
- toAbortSignal() {
1565
- const t = new AbortController(), r = (n) => {
1566
- t.abort(n);
1567
- };
1568
- return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
1569
- }
1570
- /**
1571
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1572
- * cancels the `CancelToken`.
1573
- */
1574
- static source() {
1575
- let t;
1576
- return {
1577
- token: new me(function(s) {
1578
- t = s;
1579
- }),
1580
- cancel: t
1581
- };
1582
- }
1583
- }
1584
- function Dn(e) {
1585
- return function(r) {
1586
- return e.apply(null, r);
1587
- };
1588
- }
1589
- function Cn(e) {
1590
- return a.isObject(e) && e.isAxiosError === !0;
1591
- }
1592
- const pe = {
1593
- Continue: 100,
1594
- SwitchingProtocols: 101,
1595
- Processing: 102,
1596
- EarlyHints: 103,
1597
- Ok: 200,
1598
- Created: 201,
1599
- Accepted: 202,
1600
- NonAuthoritativeInformation: 203,
1601
- NoContent: 204,
1602
- ResetContent: 205,
1603
- PartialContent: 206,
1604
- MultiStatus: 207,
1605
- AlreadyReported: 208,
1606
- ImUsed: 226,
1607
- MultipleChoices: 300,
1608
- MovedPermanently: 301,
1609
- Found: 302,
1610
- SeeOther: 303,
1611
- NotModified: 304,
1612
- UseProxy: 305,
1613
- Unused: 306,
1614
- TemporaryRedirect: 307,
1615
- PermanentRedirect: 308,
1616
- BadRequest: 400,
1617
- Unauthorized: 401,
1618
- PaymentRequired: 402,
1619
- Forbidden: 403,
1620
- NotFound: 404,
1621
- MethodNotAllowed: 405,
1622
- NotAcceptable: 406,
1623
- ProxyAuthenticationRequired: 407,
1624
- RequestTimeout: 408,
1625
- Conflict: 409,
1626
- Gone: 410,
1627
- LengthRequired: 411,
1628
- PreconditionFailed: 412,
1629
- PayloadTooLarge: 413,
1630
- UriTooLong: 414,
1631
- UnsupportedMediaType: 415,
1632
- RangeNotSatisfiable: 416,
1633
- ExpectationFailed: 417,
1634
- ImATeapot: 418,
1635
- MisdirectedRequest: 421,
1636
- UnprocessableEntity: 422,
1637
- Locked: 423,
1638
- FailedDependency: 424,
1639
- TooEarly: 425,
1640
- UpgradeRequired: 426,
1641
- PreconditionRequired: 428,
1642
- TooManyRequests: 429,
1643
- RequestHeaderFieldsTooLarge: 431,
1644
- UnavailableForLegalReasons: 451,
1645
- InternalServerError: 500,
1646
- NotImplemented: 501,
1647
- BadGateway: 502,
1648
- ServiceUnavailable: 503,
1649
- GatewayTimeout: 504,
1650
- HttpVersionNotSupported: 505,
1651
- VariantAlsoNegotiates: 506,
1652
- InsufficientStorage: 507,
1653
- LoopDetected: 508,
1654
- NotExtended: 510,
1655
- NetworkAuthenticationRequired: 511
1656
- };
1657
- Object.entries(pe).forEach(([e, t]) => {
1658
- pe[t] = e;
1659
- });
1660
- function tt(e) {
1661
- const t = new P(e), r = Ue(P.prototype.request, t);
1662
- return a.extend(r, P.prototype, t, { allOwnKeys: !0 }), a.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
1663
- return tt(B(e, s));
1664
- }, r;
1665
- }
1666
- const R = tt(M);
1667
- R.Axios = P;
1668
- R.CanceledError = L;
1669
- R.CancelToken = me;
1670
- R.isCancel = ze;
1671
- R.VERSION = et;
1672
- R.toFormData = Z;
1673
- R.AxiosError = _;
1674
- R.Cancel = R.CanceledError;
1675
- R.all = function(t) {
1676
- return Promise.all(t);
1677
- };
1678
- R.spread = Dn;
1679
- R.isAxiosError = Cn;
1680
- R.mergeConfig = B;
1681
- R.AxiosHeaders = A;
1682
- R.formToJSON = (e) => Ke(a.isHTMLForm(e) ? new FormData(e) : e);
1683
- R.getAdapter = Qe.getAdapter;
1684
- R.HttpStatusCode = pe;
1685
- R.default = R;
1686
- let K = {
1687
- PORTAL_V2_BACKEND: "",
1688
- LICENSE_BACKEND: "",
1689
- PWA_ICON_SERVICE_BACKEND: ""
1690
- };
1691
- async function Bn() {
1692
- const e = Ce().currentCountry.value, { data: t } = await R.get(
1693
- "https://country-config-dev.feedmeapi.com",
1694
- {
1695
- params: { country: e ?? "MY" }
1696
- }
1697
- );
1698
- console.log("Using country config:", t), K.PORTAL_V2_BACKEND = t.env.PORTAL_V2_BACKEND, K.LICENSE_BACKEND = t.env.LICENSE_BACKEND, K.PWA_ICON_SERVICE_BACKEND = t.env.PWA_ICON_SERVICE_BACKEND;
1699
- }
1700
- function H(e) {
1701
- const t = R.create({
1702
- baseURL: e
1703
- });
1704
- return t.interceptors.request.use(
1705
- (r) => {
1706
- var s;
1707
- const { sessionUser: n } = Ce();
1708
- return (s = n.value) != null && s.token && (r.headers.Authorization = `Bearer ${n.value.token}`), r;
1709
- },
1710
- (r) => Promise.reject(r)
1711
- ), t;
1712
- }
1713
- class Un {
1714
- async Get(t, r, n) {
1715
- return await H(t).get(r, n);
1716
- }
1717
- async Post(t, r, n) {
1718
- return await H(t).post(r, n == null ? void 0 : n.data, n);
1719
- }
1720
- async Put(t, r, n) {
1721
- return await H(t).put(r, n == null ? void 0 : n.data, n);
1722
- }
1723
- async Delete(t, r, n) {
1724
- return await H(t).delete(r, n);
1725
- }
1726
- async Head(t, r, n) {
1727
- return await H(t).head(r, n);
1728
- }
1729
- }
1730
- const xn = () => K, Ln = new Un();
1731
- export {
1732
- Ln as H,
1733
- R as a,
1734
- xn as b,
1735
- Bn as g
1736
- };