function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
// 埋点维护地址: https://log.alipay.com/index_v4.htm/home/common?spma=a3753&tabKey=log

export var ELEMENT_SPM_MAP = {
  sdk_event_mount_element: 'a3753.b101271.c388193.d513193',
  sdk_element_create: 'a3753.b101271.c386688',
  sdk_element_mount_fail: 'a3753.b101271.c386691',
  sdk_element_mount_start: 'a3753.b101271.c386690',
  multiple_instance_error: 'a3753.b101271.c403950',
  auto_apple_pay_start: 'a3753.b107385.c398110',
  auto_apple_pay_failed: 'a3753.b107385.c398111',
  auto_apple_pay_success: 'a3753.b107385.c398112',
  sdk_element_handleHeartBeat: 'a3753.b101271.c388217.d624449',
  sdk_element_handleInterAction: 'a3753.b101271.c388217.d630402',
  sdk_element_callback_error: 'a3753.b101271.c388217.d630403',
  sdk_element_missKeyData: 'a3753.b101271.c388217.d630404',
  // 后续移除SPM，SDK埋点没有享受到SPM收益
  sdk_event_mount: 'a3753.b101271.c388217.d640404',
  sdk_event_mount_end: 'a3753.b101271.c388217.d640405',
  sdk_event_submitPay: 'a3753.b101271.c388193.d512422',
  sdk_event_payment_end: 'a3753.b101271.c388217.d640409',
  sdk_event_validateFields: 'a3753.b101271.c388217.d640406',
  sdk_event_validateFields_end: 'a3753.b101271.c388217.d640407',
  sdk_event_apiOnDestroy: 'a3753.b101271.c388193.d512442',
  sdk_event_apiOnDestroy_end: 'a3753.b101271.c388217.d640408'
};
export var SPM_MAP = _objectSpread({
  sdk_error_runtime_error: 'a3753.b101271.c388188.d512342',
  sdk_event_sdkQuery_failed: 'a3753.b101271.c388188.d512343',
  container_error_error_insert_js: 'a3753.b101271.c388188.d512344',
  event_important_error: 'a3753.b101271.c388188.d512345',
  sdk_error_parameter: 'a3753.b101271.c388188.d512346',
  sdk_event_submitPay_failed: 'a3753.b101271.c388188.d512347',
  sdk_event_destroyComponent: 'a3753.b101271.c388189.d512349',
  container_error_page_load_failed: 'a3753.b101271.c388189.d512350',
  sdk_event_eventCallback: 'a3753.b101271.c388189.d512353',
  iap_net_error: 'a3753.b101271.c388189.d512352',
  sdk_event_event_callback: 'a3753.b101271.c388189.d512353',
  sdk_event_renderComponent: 'a3753.b101271.c388189.d512354',
  sdk_event_call_url_success: 'a3753.b101271.c388189.d512355',
  sdk_event_web_app_timeout: 'a3753.b101271.c388189.d512356',
  container_error_jsapi_call: 'a3753.b101271.c388189.d512357',
  sdk_event_appUpgradeInfo: 'a3753.b101271.c388189.d512358',
  sdk_event_webAppOnLaunch: 'a3753.b101271.c388189.d512359',
  sdk_event_createComponent: 'a3753.b101271.c388189.d512360',
  container_error_insert_js: 'a3753.b101271.c388189.d512361',
  container_error_error_jsapi_call: 'a3753.b101271.c388189.d512362',
  sdk_error_receive_message_from_web: 'a3753.b101271.c388189.d512363',
  sdk_error_securitySdkGetCodeFailed: 'a3753.b101271.c388189.d512369',
  sdk_error_securitySdkGetTokenFailed: 'a3753.b101271.c388189.d513035',
  sdk_error_securitySdkInitFailed: 'a3753.b101271.c388193.d513045',
  sdk_error_caught_exception_in_callback: 'a3753.b101271.c388189.d513207',
  sdk_error_call_url_failed: 'a3753.b101271.c388189.d513050',
  sdk_event_webAppTimeout: 'a3753.b101271.c388189.d512356',
  sdk_error_getGaidFailed: 'a3753.b101271.c388193.d513038',
  sdk_error_securitySdkInitTokenFailed: 'a3753.b101271.c388193.d513044',
  container_error_error_invalid_param: 'a3753.b101271.c388193.d513220',
  container_error_error_set_ua_failed: 'a3753.b101271.c388193.d513221',
  sdk_event_onAddressResult: 'a3753.b101271.c388193.d513194',
  sdk_event_onAbnormalEventName: 'a3753.b101271.c388193.d513345',
  event_important_log: 'a3753.b101271.c388193.d512370',
  sdk_event_sdkQueryEnd: 'a3753.b101271.c388193.d512371',
  container_event_manifest_load_start: 'a3753.b101271.c388193.d512372',
  sdk_event_api_preheat: 'a3753.b101271.c388193.d512373',
  container_event_manifest_load_complete: 'a3753.b101271.c388193.d512374',
  sdk_event_apiSubmit: 'a3753.b101271.c388193.d512375',
  sdk_event_securitySdkGetCodeSuccess: 'a3753.b101271.c388193.d512376',
  sdk_event_securitySdkInitSuccess: 'a3753.b101271.c388193.d512377',
  container_event_start_load: 'a3753.b101271.c388193.d512378',
  sdk_event_getRemoteConfigStart: 'a3753.b101271.c388193.d512379',
  container_event_webViewOnPageFinished: 'a3753.b101271.c388193.d512419',
  container_event_page_load_success: 'a3753.b101271.c388193.d512420',
  sdk_event_pre_init: 'a3753.b101271.c388193.d512421',
  sdk_event_submitPay: 'a3753.b101271.c388193.d512422',
  sdk_event_submitPayEnd: 'a3753.b101271.c388193.d512423',
  container_stop_event_loop: 'a3753.b101271.c388193.d512424',
  iap_net_start: 'a3753.b101271.c388193.d512425',
  sdk_event_securitySdkPreInitSuccess: 'a3753.b101271.c388193.d512426',
  sdk_event_securitySdkPreInit: 'a3753.b101271.c388193.d512427',
  sdk_event_important_event: 'a3753.b101271.c388193.d512428',
  sdk_event_accelerateInfo: 'a3753.b101271.c388193.d512429',
  container_event_manifest_res_complete: 'a3753.b101271.c388193.d512430',
  container_event_manifest_res_start: 'a3753.b101271.c388193.d512431',
  sdk_event_dismissWindowCloseCancel: 'a3753.b101271.c388193.d512432',
  sdk_event_jsBridgeCall_httpRequestStart: 'a3753.b101271.c388193.d512433',
  sdk_event_getGaidSuccess: 'a3753.b101271.c388193.d512434',
  sdk_event_securitySdkInit: 'a3753.b101271.c388193.d512435',
  sdk_event_getRemoteLanguageResult: 'a3753.b101271.c388193.d513176',
  sdk_event_getRemoteLanguageStart: 'a3753.b101271.c388193.d513175',
  sdk_event_handleSDKPaymentResult: 'a3753.b101271.c388193.d512436',
  sdk_event_handleSDKPaymentFail: 'a3753.b101271.c388193.d513172',
  sdk_event_sdkQuery: 'a3753.b101271.c388193.d512437',
  sdk_event_handleSDKPaymentStart: 'a3753.b101271.c388193.d512438',
  sdk_event_securitySdkGetTokenSuccess: 'a3753.b101271.c388193.d512439',
  sdk_event_api_onDestroy: 'a3753.b101271.c388193.d512440',
  container_load_failed: 'a3753.b101271.c388193.d512441',
  sdk_event_kycAppPreLoadStart: 'a3753.b101271.c388193.d513154',
  sdk_event_apiOnDestroy: 'a3753.b101271.c388193.d512442',
  sdk_event_getRemoteConfigResult: 'a3753.b101271.c388193.d512443',
  iap_net_result: 'a3753.b101271.c388193.d512444',
  sdk_event_popupWindowCloseButtonClick: 'a3753.b101271.c388193.d512445',
  container_error_resourceLoadFailed: 'a3753.b101271.c388193.d512446',
  container_event_startPreRenderUrl: 'a3753.b101271.c388193.d512447',
  sdk_event_webAppPreLoadStart: 'a3753.b101271.c388193.d512448',
  sdk_event_importantEvent: 'a3753.b101271.c388193.d512449',
  container_error_registerJSAPIPlugin: 'a3753.b101271.c388193.d512531',
  sdk_event_afterEventCallback: 'a3753.b101271.c388217.d513210',
  sdk_event_createPayment: 'a3753.b101271.c388217.d513074',
  sdk_event_sendMessageToWeb: 'a3753.b101271.c388217.d512452',
  sdk_error_appHeartBeatTimeout: 'a3753.b101271.c388217.d512453',
  container_event_jSEngineEvaluateJavascript: 'a3753.b101271.c388217.d512454',
  container_event_jSEngineLoadJavascript: 'a3753.b101271.c388217.d512455',
  sdk_event_receive_message_from_web: 'a3753.b101271.c388217.d512456',
  sdk_event_receiveMessageFromWeb: 'a3753.b101271.c388217.d512457',
  sdk_event_monitorFlushReport: 'a3753.b101271.c388217.d512458',
  container_event_page_pv: 'a3753.b101271.c388217.d512459',
  container_event_override_url_loading: 'a3753.b101271.c388217.d513223',
  sdk_event_dismissWindowCloseConfirm: 'a3753.b101271.c388217.d512460',
  container_load_success: 'a3753.b101271.c388217.d512461',
  container_event_page_start: 'a3753.b101271.c388217.d512462',
  sdk_event_webAppStartLoad: 'a3753.b101271.c388217.d512463',
  container_event_startPreLoadUrl: 'a3753.b101271.c388217.d512464',
  container_event_jsSEngineStart: 'a3753.b101271.c388217.d512465',
  container_event_jSEngineDestroy: 'a3753.b101271.c388193.d512546',
  sdk_event_send_message_to_web: 'a3753.b101271.c388217.d512466',
  container_event_importantEvent: 'a3753.b101271.c388217.d512467',
  sdk_event_monitorCrashTrackInit: 'a3753.b101271.c388217.d512468',
  container_event_stop_event_loop: 'a3753.b101271.c388217.d512469',
  sdk_event_requestAccelerateInfo: 'a3753.b101271.c388217.d513147',
  native_rpc_performance: 'a3753.b101271.c388217.d513218',
  container_event_jSEngineEvaluateJavascriptCallback: 'a3753.b101271.c388217.d512585',
  container_event_jSEngineRegisterJsapi: 'a3753.b101271.c388217.d512586',
  jSEngineEvaluateJavascriptConvertError: 'a3753.b101271.c388217.d512592',
  sdk_event_security_unneeded_scenarios: 'a3753.b101271.c388217.d512595',
  container_event_launch: 'a3753.b101271.c388217.d513256',
  event_jsapi_call_start: 'a3753.b101271.c388217.d514734',
  event_jsapi_call_end: 'a3753.b101271.c388217.d514735',
  sdk_event_call_url_start: 'a3753.b101271.c388189.d515011',
  sdk_event_onAbnormalKeys: 'a3753.b101271.c388193.d513391',
  sdk_event_espBeforePay: 'a3753.b101271.c388193.d514078',
  sdk_event_busPublishMessage: 'a3753.b101271.c388217.d515030',
  sdk_event_busIsSubscribe: 'a3753.b101271.c388217.d515031',
  sdk_event_busSubscribe: 'a3753.b101271.c388217.d515032',
  NEW_AMSSDK_BY_MECHANT: 'a3753.b101271.c388193.d512449',
  sdk_event_busClear: 'a3753.b101271.c388193.d518374',
  sdk_event_busAddInterceptor: 'a3753.b101271.c388193.d518374',
  sdk_error_securitySdkInitTimeout: 'a3753.b101271.c388193.d513045',
  sdk_error_busPublishNoResult: 'a3753.b101271.c388193.d518374',
  sdk_event_busPublishCallback: 'a3753.b101271.c388193.d518374',
  sdk_error_busPublishError: 'a3753.b101271.c388189.d518375',
  sdk_error_busPublishUnsubscribeError: 'a3753.b101271.c388189.d518375',
  sdk_event_busUnsubscribe: 'a3753.b101271.c388193.d518374',
  onBusPublishException: 'a3753.b101271.c388189.d518375',
  sdk_event_apiGetValue: 'a3753.b101271.c388193.d512449',
  load_channel_sdk_start: 'a3753.b101271.c388193.d512449',
  preload_match: 'a3753.b101271.c388193.d512449',
  preload_no_match: 'a3753.b101271.c388188.d512345',
  canMakePayments_error: 'a3753.b101271.c388188.d512345',
  performance_optimization_clearPreloadIframe: 'a3753.b101271.c388193.d512449',
  performance_optimization_clearPreloadIframe_timeout: 'a3753.b101271.c388188.d512345',
  sdk_event_call_url_failed: 'a3753.b101271.c388189.d513050',
  sdk_event_applePaymentResult: 'a3753.b101271.c388193.d518376',
  submitPayStatus: 'a3753.b101271.c388193.d518376',
  sdk_event_appleAvailable: 'a3753.b101271.c388193.d518376',
  sdk_event_appleCreateComponent: 'a3753.b101271.c388193.d518376',
  sdk_event_appleShowPaymentSheet: 'a3753.b101271.c388193.d518376',
  sdk_event_appleSubmitToken: 'a3753.b101271.c388193.d518376',
  sdk_event_appleDestroyComponent: 'a3753.b101271.c388193.d518376',
  paypal_payment_failed: 'a3753.b101271.c388189.d518378',
  paypal_payment_approved: 'a3753.b101271.c388193.d518383',
  paypal_payment_cancelled: 'a3753.b101271.c388193.d518383',
  sdk_event_clean_component: 'a3753.b101271.c388193.d518383',
  load_item_sdk_start: 'a3753.b101271.c388193.d512449',
  load_item_sdk_end: 'a3753.b101271.c388193.d512449',
  performance_optimization_get_previousChannel_error: 'a3753.b101271.c388188.d512345',
  performance_optimization_channelType_error: 'a3753.b101271.c388188.d512345',
  sdk_error_before_submit: 'a3753.b101271.c388188.d512345',
  sessionDataNull: 'a3753.b101271.c388189.d518377',
  'appple runtime excepiton': 'a3753.b101271.c388189.d518377',
  sdk_error_created_app_process_failed: 'a3753.b101271.c388188.d512345',
  sdk_error_web_app_timeout: 'a3753.b101271.c388188.d512345',
  performance_optimization_preload: 'a3753.b101271.c388193.d512449',
  performance_optimization_preload_path_error: 'a3753.b101271.c388188.d512345',
  sdk_error_created_app_failed: 'a3753.b101271.c388188.d512345',
  sdk_error_create_pop_up: 'a3753.b101271.c388188.d512345',
  button_render_failed: 'a3753.b101271.c388189.d518378',
  paypal_payment_loadSDK_failed: 'a3753.b101271.c388189.d518378',
  load_item_sdk_error: 'a3753.b101271.c388188.d512345',
  load_item_sdk_timeout: 'a3753.b101271.c388188.d512345',
  MerchantValidationError: 'a3753.b101271.c388189.d518377',
  PaymentAuthorizedError: 'a3753.b101271.c388189.d518377',
  'ApplePaySession is only support in Safari': 'a3753.b101271.c388189.d518377',
  'Abnormal params paymentSessionFactor': 'a3753.b101271.c388189.d518377',
  'Abnormal params recurringInfo': 'a3753.b101271.c388189.d518377',
  'Payment processing but user dismissed the sheet': 'a3753.b101271.c388189.d518377',
  'User dismissed the sheet': 'a3753.b101271.c388189.d518377'
}, ELEMENT_SPM_MAP);