hiepdh-playable-toolkit 1.0.0 → 2.0.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 (42) hide show
  1. package/3x/build-inline.js +85 -0
  2. package/3x/build-templates/web-mobile/index.ejs +47 -0
  3. package/3x/extensions/super-html/README-CN.md +16 -0
  4. package/3x/extensions/super-html/dist/2x/main.js +64 -0
  5. package/3x/extensions/super-html/dist/2x/panel/index.js +66 -0
  6. package/3x/extensions/super-html/dist/3x/builder.js +8 -0
  7. package/3x/extensions/super-html/dist/3x/hooks.js +24 -0
  8. package/3x/extensions/super-html/dist/3x/main.js +27 -0
  9. package/3x/extensions/super-html/dist/3x/panel/index.js +63 -0
  10. package/3x/extensions/super-html/dist/core/build.js +58 -0
  11. package/3x/extensions/super-html/dist/core/common/cache.js +124 -0
  12. package/3x/extensions/super-html/dist/core/common/log.js +46 -0
  13. package/3x/extensions/super-html/dist/core/common/utils.js +107 -0
  14. package/3x/extensions/super-html/dist/core/config.js +71 -0
  15. package/3x/extensions/super-html/dist/core/task.js +356 -0
  16. package/3x/extensions/super-html/dist/custom_script/23x/custom-23x.js +290 -0
  17. package/3x/extensions/super-html/dist/custom_script/23x/index-23x.js +86 -0
  18. package/3x/extensions/super-html/dist/custom_script/24x/custom-24x.js +298 -0
  19. package/3x/extensions/super-html/dist/custom_script/24x/index-24x.js +87 -0
  20. package/3x/extensions/super-html/dist/custom_script/34x/custom-34x.js +244 -0
  21. package/3x/extensions/super-html/dist/custom_script/34x/index-34x.js +59 -0
  22. package/3x/extensions/super-html/dist/custom_script/javascript-obfuscator.js +9719 -0
  23. package/3x/extensions/super-html/dist/custom_script/pako.js +1462 -0
  24. package/3x/extensions/super-html/dist/test/_test.js +27 -0
  25. package/3x/extensions/super-html/i18n/en.js +5 -0
  26. package/3x/extensions/super-html/i18n/zh.js +5 -0
  27. package/3x/extensions/super-html/package-lock.json +744 -0
  28. package/3x/extensions/super-html/package.json +59 -0
  29. package/3x/extensions/super-html/static/index.html +44 -0
  30. package/3x/extensions/super-html/tsconfig.json +14 -0
  31. package/3x/plugins/exitapi.js +7 -0
  32. package/3x/plugins/facebook_api.js +31 -0
  33. package/3x/plugins/fixmraid.js +17 -0
  34. package/3x/plugins/ironsource_api.js +58 -0
  35. package/3x/plugins/mindworkapi.js +6 -0
  36. package/3x/plugins/playable-sdk.js +5 -0
  37. package/README.md +3 -3
  38. package/ironSource_api.js +86 -0
  39. package/package.json +13 -13
  40. package/setup.js +79 -50
  41. /package/{injectCustomScript.js → 3x/injectCustomScript.js} +0 -0
  42. /package/{patch-template-unityReject.js → 3x/patch-template-unityReject.js} +0 -0
@@ -0,0 +1,5 @@
1
+ !function(e){function t(t){for(var n,o,a=t[0],i=t[1],c=0,s=[];c<a.length;c++)o=a[c],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);s.length;)s.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=a);var i,c=document.createElement("script");c.charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.src=function(e){return o.p+""+e+".playable-sdk.js"}(e);var u=new Error;i=function(t){c.onerror=c.onload=null,clearTimeout(s);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",u.name="ChunkLoadError",u.type=o,u.request=a,n[1](u)}r[e]=void 0}};var s=setTimeout((function(){i({type:"timeout",target:c})}),12e4);c.onerror=c.onload=i,document.head.appendChild(c)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=window.playableJsonp=window.playableJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var u=i;o(o.s=223)}([function(e,t,n){"use strict";n.d(t,"g",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return m}));var r,o,a,i;n(11),n(46),n(24),n(213),n(15),n(76),n(106),n(17),n(40),n(35),n(12),n(31),n(36),n(30),n(4),n(214),n(68),n(215),n(55),n(43),n(150),n(18);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t,n){if("string"!=typeof e)return"数据类型不合法";var r=new RegExp("^".concat(t,"(\\d+)$")),o=e.match(r);if(!o)return"æ ¼å¼ä¸åˆæ³•";var a=parseInt(o[1]);return!n||a>=n[0]&&a<=n[1]?void 0:"数字范围不合法"};function s(e){return function(t){if(!t)return"事件参数不能为空";if("[object Object]"!==Object.prototype.toString.call(t))return"事件参数数据类型不合法";var n=[];return e.forEach((function(e){var r=u(t[e],e);r&&n.push("".concat(e).concat(r))})),n.join("; ")}}var l,d,f,p,v=s(["area"]),b=s(["section"]);!function(e){e.playableSdkPageStart="playableSdkPageStart",e.playablePageError="playablePageError",e.pageview="pageview",e.ensurePageview="ensurePageview",e.webviewShow="webviewShow",e.loadingPlayableStart="loadingPlayableStart",e.loadedPlayable="loadedPlayable",e.firstscreenLoadingFinish="firstscreenLoadingFinish",e.firstTouchPlayable="firstTouchPlayable",e.hideRewardGuide="hideRewardGuide",e.clickDownloadButton="clickDownloadButton",e.monitorAutoClick="monitorAutoClick",e.playableShow="playableShow",e.playableRenderLag="playableRenderLag",e.playableRenderFreeze="playableRenderFreeze",e.sdkAverageFPS="sdkAverageFPS",e.sdkLoadMainScene="sdkLoadMainScene",e.sdkInitDownloadButton="sdkInitDownloadButton",e.sdkViewableChange="sdkViewableChange",e.sdkBackgroundDuration="sdkBackgroundDuration",e.sdkResourceError="sdkResourceError",e.sdkLeavePlayable="sdkLeavePlayable",e.sdkOpenAppStore="sdkOpenAppStore",e.sdkDownloadAppAd="sdkDownloadAppAd",e.sdkUserClick="sdkUserClick",e.sdkTouchError="sdkTouchError",e.startPlayPlayableInUser="startPlayPlayableInUser",e.finishPlayPlayableInUser="finishPlayPlayableInUser",e.loadMainSceneInUser="loadMainSceneInUser",e.sdkClickConvertArea="sdkClickConvertArea",e.sdkInitPlayableGuide="sdkInitPlayableGuide",e.sdkBeforeShowCache="sdkBeforeShowCache",e.sdkLoadingOpenAppStore="sdkLoadingOpenAppStore",e.sdkLoadingInit="sdkLoadingInit",e.sdkDisclaimerError="sdkDisclaimerError",e.sdkClickCloseButton="sdkClickCloseButton",e.sdkCloseButtonShow="sdkCloseButtonShow",e.sdkCompilanceShow="sdkCompilanceShow",e.sdkCallJsb="sdkCallJsb",e.sdkGyroDuration="sdkGyroDuration",e.playableLoadingDuration="playableLoadingDuration",e.exitDomAppendError="exitDomAppendError",e.playableStyleSource="playableStyleSource",e.sdkDownloadBar="sdkDownloadBar",e.gotPlayableDownloadBarStyle="gotPlayableDownloadBarStyle",e.callSdkFn="callSdkFn"}(l||(l={})),function(e){e.startPlayPlayable="startPlayPlayable",e.finishPlayPlayable="finishPlayPlayable",e.playableEnd="playableEnd",e.loadMainSceneError="loadMainSceneError",e.clickDownloadBar="clickDownloadBar",e.clickResurrection="clickResurrection",e.clickContent="clickContent",e.clickFinishDownloadBar="clickFinishDownloadBar",e.clickFinishContent="clickFinishContent",e.clickArea="clickArea",e.enterSection="enterSection",e.loadMainScene="loadMainScene",e.lostResource="lostResource",e.cloudGameCloseButtonInit="cloudGameCloseButtonInit",e.cloudGameClickCloseButton="cloudGameClickCloseButton",e.cloudGameSDKplayableShow="cloudGameSDKplayableShow",e.playableVideoLoadStart="playableVideoLoadStart",e.playableVideoLoadSuccuss="playableVideoLoadSuccuss",e.playableVideoLoadFailed="playableVideoLoadFailed",e.videoContinuePlay="videoContinuePlay"}(d||(d={})),function(e){e.videoCanNotPlay="videoCanNotPlay",e.videoBufferedAll="videoBufferedAll",e.videoCanPlayThrough="videoCanPlayThrough",e.closeMisoperation="closeMisoperation",e.clickLoadingDownloadBar="clickLoadingDownloadBar",e.autoPlayVideo="autoPlayVideo",e.greyRealse="greyRealse",e.greyRealseError="greyRealseError",e.noJsbPermission="noJsbPermission",e.jssdkCookie="jssdkCookie"}(f||(f={})),function(e){e.plbMakerShowLoading="plbMakerShowLoading",e.plbMakerHideLoading="plbMakerHideLoading",e.plbMakerRenderStart="plbMakerRenderStart",e.plbMakerReadyToPlay="plbMakerReadyToPlay",e.plbMakerVideoStart="plbMakerVideoStart",e.plbMakerAutoPlaySuccess="plbMakerAutoPlaySuccess",e.plbMakerAutoPlayFailed="plbMakerAutoPlayFailed",e.plbMakerUserInteract="plbMakerUserInteract",e.plbMakerShowEndCard="plbMakerShowEndCard",e.plbMakerOpenAppStore="plbMakerOpenAppStore"}(p||(p={}));var h=(c(r={},l.playablePageError,{name:"playable_page_error"}),c(r,l.playableSdkPageStart,{name:"playable_sdk_page_start"}),c(r,l.pageview,{name:"sdk_pageview",label:"pl_js_sdk_pageview"}),c(r,l.ensurePageview,{name:"sdk_ensure_pageview",label:"pl_js_sdk_ensure_pageview"}),c(r,l.webviewShow,{name:"sdk_webview_show",label:"pl_js_sdk_webview_show"}),c(r,l.loadingPlayableStart,{name:"sdk_loading_playable_start",label:"pl_js_sdk_loading_playable_start"}),c(r,l.loadedPlayable,{name:"sdk_loaded_playable",label:"pl_js_sdk_loaded_playable"}),c(r,l.firstscreenLoadingFinish,{name:"sdk_firstscreen_loading_finish",label:"pl_js_sdk_firstscreen_loading_finish"}),c(r,l.firstTouchPlayable,{name:"sdk_start_play_playable",label:"pl_js_sdk_start_play_playable"}),c(r,l.hideRewardGuide,{name:"sdk_start_playable_interaction_notification",label:"pl_js_sdk_start_playable_interaction_notification"}),c(r,l.clickDownloadButton,{name:"sdk_click_playable_download_button",label:"pl_js_sdk_click_playable_download_button"}),c(r,l.monitorAutoClick,{name:"sdk_monitor_auto_click",label:"pl_js_sdk_monitor_auto_click"}),c(r,l.playableShow,{name:"sdk_playable_show",label:"pl_js_sdk_playable_show"}),c(r,l.playableRenderLag,{name:"sdk_playable_render_lag",label:"pl_js_sdk_playable_render_lag"}),c(r,l.playableRenderFreeze,{name:"sdk_playable_render_freeze",label:"pl_js_sdk_playable_render_freeze"}),c(r,l.sdkAverageFPS,{name:"sdk_average_fps"}),c(r,l.sdkLoadMainScene,{name:"sdk_playable_load_main_scene",label:"pl_js_sdk_playable_load_main_scene"}),c(r,l.sdkInitDownloadButton,{name:"sdk_init_download_button",label:"pl_js_sdk_init_download_button"}),c(r,l.sdkViewableChange,{name:"sdk_viewable_change",label:"pl_js_sdk_viewable_change"}),c(r,l.sdkBackgroundDuration,{name:"sdk_background_duration",label:"pl_js_sdk_background_duration"}),c(r,l.sdkResourceError,{name:"sdk_resource_error",label:"pl_js_sdk_resource_error"}),c(r,l.sdkLeavePlayable,{name:"sdk_leave_playable",label:"pl_js_sdk_leave_playable"}),c(r,l.sdkOpenAppStore,{name:"sdk_open_app_store",label:"pl_js_sdk_open_app_store"}),c(r,l.sdkDownloadAppAd,{name:"sdk_download_app_ad",label:"pl_js_sdk_download_app_ad"}),c(r,l.sdkUserClick,{name:"sdk_user_click",label:"pl_js_sdk_user_click"}),c(r,l.sdkTouchError,{name:"sdk_touch_error",label:"pl_js_sdk_touch_error"}),c(r,l.loadMainSceneInUser,{name:"sdk_load_main_scene_in_user",label:"pl_js_sdk_load_main_scene_in_user"}),c(r,l.startPlayPlayableInUser,{name:"sdk_start_play_playable_in_user",label:"pl_js_sdk_start_play_playable_in_user"}),c(r,l.finishPlayPlayableInUser,{name:"sdk_finish_play_playable_in_user",label:"pl_js_sdk_finish_play_playable_in_user"}),c(r,l.sdkClickConvertArea,{name:"sdk_click_convert_area",label:"pl_js_sdk_click_convert_area"}),c(r,l.sdkInitPlayableGuide,{name:"sdk_init_playable_guide",label:"pl_js_sdk_init_playable_guide"}),c(r,l.sdkBeforeShowCache,{name:"sdk_before_show_cache",label:"pl_js_sdk_before_show_cache"}),c(r,l.sdkLoadingOpenAppStore,{name:"sdk_loading_open_app_store",label:"pl_js_sdk_loading_open_app_store"}),c(r,l.sdkLoadingInit,{name:"sdk_loading_init",label:"pl_js_sdk_loading_init"}),c(r,l.sdkDisclaimerError,{name:"sdk_disclaimer_error",label:"pl_js_sdk_disclaimer_error"}),c(r,l.sdkClickCloseButton,{name:"sdk_click_close_button",label:"pl_js_sdk_click_close_button"}),c(r,l.sdkCloseButtonShow,{name:"sdk_close_button_show",label:"pl_js_sdk_close_button_show"}),c(r,l.sdkCompilanceShow,{name:"sdk_compilance_show",label:"pl_js_sdk_compilance_show"}),c(r,l.sdkCallJsb,{name:"sdk_call_jsb",label:"pl_js_sdk_call_jsb"}),c(r,l.sdkGyroDuration,{name:"sdk_gyro_duration",label:"pl_js_sdk_gyro_duration"}),c(r,l.playableLoadingDuration,{name:"playable_loading_duration"}),c(r,l.exitDomAppendError,{name:"sdk_exit_dom_append_error",label:"pl_js_sdk_exit_dom_append_error"}),c(r,l.sdkDownloadBar,{name:"sdk_download_bar"}),c(r,l.gotPlayableDownloadBarStyle,{name:"got_playable_download_bar_style"}),c(r,l.playableStyleSource,{name:"sdk_playable_style_source",label:"pl_js_sdk_playable_style_source"}),c(r,l.callSdkFn,{name:"call_sdk_fn"}),r),g=(c(o={},d.startPlayPlayable,{name:"custom_start_play_playable",label:"pl_js_custom_start_play_playable"}),c(o,d.finishPlayPlayable,{name:"custom_finish_play_playable",label:"pl_js_custom_finish_play_playable"}),c(o,d.playableEnd,{name:"custom_playable_end",label:"pl_js_custom_playable_end"}),c(o,d.loadMainSceneError,{name:"custom_load_main_scene_error",label:"pl_js_custom_load_main_scene_error"}),c(o,d.clickDownloadBar,{name:"custom_click_download_bar",validator:v,label:"pl_js_custom_click_download_bar"}),c(o,d.clickResurrection,{name:"custom_click_resurrection",validator:v,label:"pl_jpl_js_custom_click_resurrections_"}),c(o,d.clickContent,{name:"custom_click_content",validator:v,label:"pl_js_custom_click_content"}),c(o,d.clickFinishDownloadBar,{name:"custom_click_finish_download_bar",validator:v,label:"pl_js_custom_click_finish_download_bar"}),c(o,d.clickFinishContent,{name:"custom_click_finish_content",validator:v,label:"pl_js_custom_click_finish_content"}),c(o,d.clickArea,{name:"custom_click_area",validator:v,label:"pl_js_custom_click_area"}),c(o,d.enterSection,{name:"custom_enter_section",validator:b,label:"pl_js_custom_enter_section"}),c(o,d.loadMainScene,{name:"custom_load_main_scene",label:"pl_js_custom_load_main_scene"}),c(o,d.lostResource,{name:"custom_lost_resource",label:"pl_js_custom_lost_resource"}),c(o,d.cloudGameCloseButtonInit,{name:"custom_cloud_game_close_button_init",label:"pl_js_custom_cloud_game_close_button_init"}),c(o,d.cloudGameClickCloseButton,{name:"custom_cloud_game_click_close_button",label:"pl_js_custom_cloud_game_click_close_button"}),c(o,d.cloudGameSDKplayableShow,{name:"custom_cloud_game_sdk_playable_show",label:"pl_js_custom_cloud_game_sdk_playable_show"}),c(o,d.playableVideoLoadStart,{name:"playable_video_load_start"}),c(o,d.playableVideoLoadSuccuss,{name:"playable_video_load_succuss"}),c(o,d.playableVideoLoadFailed,{name:"playable_video_load_failed"}),c(o,d.videoContinuePlay,{name:"video_continue_play"}),o),y=(c(a={},f.videoCanNotPlay,{name:"private_video_can_not_play"}),c(a,f.videoBufferedAll,{name:"private_video_buffered_all"}),c(a,f.videoCanPlayThrough,{name:"private_video_can_play_through"}),c(a,f.closeMisoperation,{name:"private_close_misoperation"}),c(a,f.clickLoadingDownloadBar,{name:"private_click_loading_download_bar"}),c(a,f.autoPlayVideo,{name:"private_auto_play_video"}),c(a,f.greyRealse,{name:"grey_release"}),c(a,f.greyRealseError,{name:"grey_release_error"}),c(a,f.noJsbPermission,{name:"no_jsb_permission"}),c(a,f.jssdkCookie,{name:"private_jssdk_id_new_cookie"}),a),m=(c(i={},p.plbMakerShowLoading,{name:"plb_maker_show_loading"}),c(i,p.plbMakerHideLoading,{name:"plb_maker_hide_loading"}),c(i,p.plbMakerRenderStart,{name:"plb_maker_render_start"}),c(i,p.plbMakerReadyToPlay,{name:"plb_maker_ready_to_play"}),c(i,p.plbMakerVideoStart,{name:"plb_maker_video_start"}),c(i,p.plbMakerAutoPlaySuccess,{name:"plb_maker_auto_play_success"}),c(i,p.plbMakerAutoPlayFailed,{name:"plb_maker_auto_play_failed"}),c(i,p.plbMakerUserInteract,{name:"plb_maker_user_interact"}),c(i,p.plbMakerShowEndCard,{name:"plb_maker_show_end_card"}),c(i,p.plbMakerOpenAppStore,{name:"plb_maker_open_app_store"}),i)},function(e,t,n){"use strict";var r=n(41),o=n(13),a=(n(71),n(58)),i=(n(77),n(17),n(63),n(4),n(68),n(43),n(178),n(25));function c(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===t)return t;if("number"==typeof t)n=e(t);else if(t.endsWith("px"))n=e(Number(t.slice(0,-2)));else try{var o=parseInt(t);o.toString()===t&&(n=e(o))}catch(e){}return void 0===n?t:r?"".concat(n,"px"):n}}var u=c((function(e){return e/375*Object(i.a)().shortLength}));function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u(e,t)}c((function(e){return e/375*Object(i.a)().longLength}));c((function(e){return e/375*Object(i.a)().width}));c((function(e){return e/375*Object(i.a)().height}));n(57);var l=n(16);function d(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children.length;if(0===n||n>1)throw new Error("MUST HAVE ROOT ELEMENT");return t.children[0]}n(6);function f(e){try{var t=e();return t instanceof Promise?t.catch((function(e){console.error(e)})):t}catch(e){return void console.error(e)}}function p(){return function(){}}function v(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){clearTimeout(t),t=window.setTimeout((function(){e()}),n)}}n.d(t,"a",(function(){return r.b})),n.d(t,"u",(function(){return r.g})),n.d(t,"d",(function(){return r.c})),n.d(t,"w",(function(){return r.i})),n.d(t,"g",(function(){return r.d})),n.d(t,"s",(function(){return r.f})),n.d(t,"l",(function(){return r.e})),n.d(t,"h",(function(){return o.b})),n.d(t,"j",(function(){return o.c})),n.d(t,"p",(function(){return a.c})),n.d(t,"r",(function(){return a.d})),n.d(t,"n",(function(){return a.b})),n.d(t,"x",(function(){return s})),n.d(t,"m",(function(){return i.b})),n.d(t,"t",(function(){return i.e})),n.d(t,"q",(function(){return i.d})),n.d(t,"k",(function(){return i.a})),n.d(t,"o",(function(){return l.e})),n.d(t,"f",(function(){return l.b})),n.d(t,"i",(function(){return l.c})),n.d(t,"c",(function(){return d})),n.d(t,"v",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return v}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));n(183),n(15),n(23),n(63),n(12),n(4),n(6),n(26),n(18),n(27),n(7);var r,o=n(48),a=n(5),i=n(65),c=n(13),u=n(103);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.enable=0]="enable",e[e.removed=1]="removed"}(r||(r={}));var f=new(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"_muted",!0),d(this,"_changedMuted",!1),d(this,"_viewable",!1),d(this,"_changedViewable",!1),d(this,"_events",{viewableChange:[],mutedChange:[]}),d(this,"_showBarTime",5e3),d(this,"_barTransColorTime",2e3),d(this,"hasPlayablwShown",!1),d(this,"_interactionMethod",0),Object(o.b)("visibilityChange",(function(e){t.addEventListener("viewableChange",e)})),Object(o.b)("muteChange",(function(e){t.addEventListener("mutedChange",e)})),this._interactionMethod=Number(Object(c.b)("interaction_method"))||-1,this.initStates().catch((function(e){return console.error(e)}))}return l(e,[{key:"interactionMethod",get:function(){return this._interactionMethod}},{key:"muted",get:function(){return this._muted}},{key:"viewable",get:function(){return this._viewable}},{key:"showBarTime",get:function(){return this._showBarTime}},{key:"barTransColorTime",get:function(){return this._barTransColorTime}}]),l(e,[{key:"initStates",value:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([this.initViewable(),this.initMuted()]));case 1:case"end":return e.stop()}}),null,this)}},{key:"initViewable",value:function(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(Object(u.b)());case 2:if(void 0===(e=t.sent)&&(e=!document.hidden),e===this._viewable||!this._changedViewable){t.next=8;break}return this._changedViewable=!1,this.initViewable(),t.abrupt("return");case 8:a.c.emit({viewable:e}),this.setViewable(e,!0);case 10:case"end":return t.stop()}}),null,this)}},{key:"initMuted",value:function(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(Object(u.a)());case 2:if(void 0===(e=t.sent)&&(e=document.hidden),e===this._muted||!this._changedMuted){t.next=8;break}return this._changedMuted=!1,this.initMuted(),t.abrupt("return");case 8:this.setMuted(e,!0);case 9:case"end":return t.stop()}}),null,this)}},{key:"setMuted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._changedMuted=!0,this._muted!==e&&(this._muted=e,this._events.mutedChange.forEach((function(n){if(n.state===r.enable)try{n.callback({muted:e,isInit:t})}catch(e){console.error("error in mutedChange callback",e)}})))}},{key:"setViewable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._changedViewable=!0,!this.hasPlayablwShown&&e&&(Object(i.c)(),this.hasPlayablwShown=!0,a.e.emit()),this._viewable!==e&&(this._viewable=e,this._events.viewableChange.forEach((function(n){if(n.state===r.enable)try{n.callback({viewable:e,isInit:t})}catch(e){console.error("error in viewableChange callback",e)}})))}},{key:"addEventListener",value:function(e,t){this._events[e].push({callback:t,state:r.enable})}},{key:"removeEventListener",value:function(e,t){var n=this._events[e].findIndex((function(e){return e.callback===t}));n>-1&&(this._events[e][n].state=r.removed)}}]),e}());window._currentStates=f},function(e,t,n){"use strict";n(54),n(40);var r=n(0),o=n(16),a=n(72),i=n(49),c=n(5),u=n(73),s=n(57),l=n(85),d=(n(11),n(24),n(15),n(17),n(35),n(12),n(31),n(36),n(30),n(18),n(61));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=[];function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(function(e){if(l.a.playableShow)return!1;return[r.b.clickDownloadBar,r.b.clickResurrection,r.b.clickContent,r.b.clickFinishDownloadBar,r.b.clickFinishContent,r.b.clickArea,r.b.enterSection].indexOf(e)>-1}(e)){v.push({eventName:e,eventParams:t,displayMessage:n,timestamp:Date.now()});var a=Object(o.d)(r.a,e)||Object(o.d)(r.d,e)||Object(o.d)(r.f,e)||Object(o.d)(r.c,e);a&&Object(d.a)(r.g.sdkBeforeShowCache,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{original_event:a.name}),n)}else Object(d.a)(e,t,n)}c.f.on((function(e){if(e.name===r.g.playableShow)for(var t;(t=v.shift())&&t;)Object(d.a)(t.eventName,t.eventParams,t.displayMessage,t.timestamp)}));var h=n(56);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};setTimeout((function(){e.hasOwnProperty("current_section")||(e.current_section=i.a),h.b&&Object(h.c)(i.a),Object(d.a)(r.b.finishPlayPlayable,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(n,!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}),a.a+100)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=Object(o.d)(r.a,e)||Object(o.d)(r.d,e)||Object(o.d)(r.f,e)||Object(o.d)(r.c,e);void 0!==d&&(0===d.name.indexOf("custom")&&c.e.emit(),Object(l.b)(e),function(e,t){(function(e){return w.indexOf(e)>-1})(e)&&!t.hasOwnProperty("pos")&&(t.pos=function(){try{var e=window.innerWidth,t=window.innerHeight,n=u.a.start,r=u.a.end;return{start:{x:Object(s.a)(n.x,2),y:Object(s.a)(n.y,2),nx:Object(s.a)(n.x/e,4),ny:Object(s.a)(n.y/t,4)},end:{x:Object(s.a)(r.x,2),y:Object(s.a)(r.y,2),nx:Object(s.a)(r.x/e,4),ny:Object(s.a)(r.y/t,4)},viewport:{w:e,h:t}}}catch(e){return void console.error("Error in assembleTrackPos: ".concat(e.stack||e.error||e))}}())}(e,t),"enterSection"!==e&&"clickArea"!==e&&t.hasOwnProperty("manual")&&delete t.manual,!function(e){return"clickArea"===e}(e)?!function(e){return"finishPlayPlayable"===e}(e)?d?("Object"!==Object(o.c)(t)&&console.error("eventParams 必须是 Object"),function(e,t){"enterSection"===e&&Object(i.b)(t.section||"undefined");t.hasOwnProperty("current_section")||(t.current_section=i.a);t.hasOwnProperty("sdk_playable_show")||(t.sdk_playable_show=l.a.playableShow);(function(e){return["clickDownloadBar","clickResurrection","clickContent","clickFinishDownloadBar","clickFinishContent"].indexOf(e)>-1})(e)&&!0!==t.no_click_area&&Object(a.b)(t,!1)}(e,t),b(e,t,n)):console.error('internalSendEvent 事件名称 "'.concat(e,'" 不存在')):m(t):Object(a.b)(t,!0))}n.d(t,"a",(function(){return _}));var w=[r.g.startPlayPlayableInUser,r.g.hideRewardGuide,r.g.clickDownloadButton,r.g.sdkOpenAppStore,r.g.sdkUserClick,r.g.sdkTouchError,r.g.firstTouchPlayable,r.g.sdkClickConvertArea,r.b.startPlayPlayable,r.b.clickDownloadBar,r.b.clickResurrection,r.b.clickContent,r.b.clickFinishDownloadBar,r.b.clickFinishContent,r.b.clickArea,r.e.closeMisoperation,r.e.clickLoadingDownloadBar]},function(e,t,n){var r=n(47),o=n(197),a=Object.prototype;o!==a.toString&&r(a,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";n(11),n(33),n(34),n(24),n(23),n(12),n(4),n(6),n(26),n(27);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"listeners",[]),o(this,"emit",(function(e){var n=t.listeners.length>0,r=!0,o=!1,a=void 0;try{for(var i,c=t.listeners[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){i.value.callback(e)}}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return t.listeners=t.listeners.filter((function(e){return!e.once})),n}))}var t,n,a;return t=e,(n=[{key:"on",value:function(e){this.listeners.push({once:!1,callback:e})}},{key:"once",value:function(e){var t=this;if(!e){var n=new Promise((function(e){t.once(e)}));return this.listeners[this.listeners.length-1].promise=n,n}this.listeners.push({once:!0,callback:e})}},{key:"off",value:function(e){var t=this.listeners.length;return this.listeners=this.listeners.filter((function(t){return e!==t.callback&&(!t.promise||e!==t.promise)})),this.listeners.length!==t}},{key:"offAll",value:function(){var e=this.listeners.length;return this.listeners.length=0,e}}])&&r(t.prototype,n),a&&r(t,a),e}();n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d}));var i=new a,c=new a,u=new a,s=new a,l=new a,d=new a},function(e,t,n){"use strict";var r,o,a,i,c=n(10),u=n(88),s=n(19),l=n(81),d=n(198),f=n(47),p=n(165),v=n(78),b=n(95),h=n(138),g=n(37),y=n(96),m=n(139),_=n(62),w=n(140),O=n(141),j=n(169),k=n(170).set,x=n(199),S=n(200),E=n(201),P=n(173),M=n(202),A=n(80),T=n(87),L=n(22),I=n(142),D=L("species"),N="Promise",R=A.get,C=A.set,B=A.getterFor(N),F=d,V=s.TypeError,U=s.document,z=s.process,J=v("inspectSource"),G=l("fetch"),H=P.f,W=H,Q="process"==_(z),Y=!!(U&&U.createEvent&&s.dispatchEvent),q=T(N,(function(){var e=J(F)!==String(F);if(66===I)return!0;if(!e&&!Q&&"function"!=typeof PromiseRejectionEvent)return!0;if(u&&!F.prototype.finally)return!0;if(I>=51&&/native code/.test(F))return!1;var t=F.resolve(1),n=function(e){e((function(){}),(function(){}))};return(t.constructor={})[D]=n,!(t.then((function(){}))instanceof n)})),X=q||!O((function(e){F.all(e).catch((function(){}))})),K=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;x((function(){for(var o=t.value,a=1==t.state,i=0;r.length>i;){var c,u,s,l=r[i++],d=a?l.ok:l.fail,f=l.resolve,p=l.reject,v=l.domain;try{d?(a||(2===t.rejection&&ne(e,t),t.rejection=1),!0===d?c=o:(v&&v.enter(),c=d(o),v&&(v.exit(),s=!0)),c===l.promise?p(V("Promise-chain cycle")):(u=K(c))?u.call(c,f,p):f(c)):p(o)}catch(e){v&&!s&&v.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},$=function(e,t,n){var r,o;Y?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},(o=s["on"+e])?o(r):"unhandledrejection"===e&&E("Unhandled promise rejection",n)},ee=function(e,t){k.call(s,(function(){var n,r=t.value;if(te(t)&&(n=M((function(){Q?z.emit("unhandledRejection",r,e):$("unhandledrejection",e,r)})),t.rejection=Q||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){k.call(s,(function(){Q?z.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Z(e,t,!0))},ae=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw V("Promise can't be resolved itself");var o=K(n);o?x((function(){var r={done:!1};try{o.call(n,re(ae,e,r,t),re(oe,e,r,t))}catch(n){oe(e,r,n,t)}})):(t.value=n,t.state=1,Z(e,t,!1))}catch(n){oe(e,{done:!1},n,t)}}};q&&(F=function(e){m(this,F,N),y(e),r.call(this);var t=R(this);try{e(re(ae,this,t),re(oe,this,t))}catch(e){oe(this,t,e)}},(r=function(e){C(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(F.prototype,{then:function(e,t){var n=B(this),r=H(j(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Q?z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Z(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=R(e);this.promise=e,this.resolve=re(ae,e,t),this.reject=re(oe,e,t)},P.f=H=function(e){return e===F||e===a?new o(e):W(e)},u||"function"!=typeof d||(i=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return S(F,G.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:q},{Promise:F}),b(F,N,!1,!0),h(N),a=l(N),c({target:N,stat:!0,forced:q},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),c({target:N,stat:!0,forced:u||q},{resolve:function(e){return S(u&&this===a?F:this,e)}}),c({target:N,stat:!0,forced:X},{all:function(e){var t=this,n=H(t),r=n.resolve,o=n.reject,a=M((function(){var n=y(t.resolve),a=[],i=0,c=1;w(e,(function(e){var u=i++,s=!1;a.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,a[u]=e,--c||r(a))}),o)})),--c||r(a)}));return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=H(t),r=n.reject,o=M((function(){var o=y(t.resolve);w(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r=l;return function(o,a){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw a;return M()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=k(i,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=s(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,i),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",d="suspendedYield",f="executing",p="completed",v={};function b(){}function h(){}function g(){}var y={};y[a]=function(){return this};var m=Object.getPrototypeOf,_=m&&m(m(P([])));_&&_!==n&&r.call(_,a)&&(y=_);var w=g.prototype=b.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function j(e){var t;this._invoke=function(n,o){function a(){return new Promise((function(t,a){!function t(n,o,a,i){var c=s(e[n],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,a,i)}),(function(e){t("throw",e,a,i)})):Promise.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return t("throw",e,a,i)}))}i(c.arg)}(n,o,t,a)}))}return t=t?t.then(a,a):a()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:M}}function M(){return{value:t,done:!0}}return h.prototype=w.constructor=g,g.constructor=h,g[c]=h.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},O(j.prototype),j.prototype[i]=function(){return this},e.AsyncIterator=j,e.async=function(t,n,r,o){var a=new j(u(t,n,r,o));return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(w),w[c]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r,o,a,i,c,u,s,l,d,f,p,v;n.d(t,"a",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"i",(function(){return i})),n.d(t,"k",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"l",(function(){return v})),function(e){e[e.banner=1]="banner",e[e.interstitial=2]="interstitial",e[e.splash=3]="splash",e[e.cachedSplash=4]="cachedSplash",e[e.feed=5]="feed",e[e.patch=6]="patch",e[e.reward=7]="reward",e[e.fullScreen=8]="fullScreen",e[e.draw=9]="draw"}(r||(r={})),function(e){e[e.floatDefault=0]="floatDefault",e[e.floatOne=1]="floatOne",e[e.floatTwo=2]="floatTwo",e[e.floatThree=3]="floatThree",e[e.floatFour=4]="floatFour",e[e.floatFive=5]="floatFive",e[e.floatSix=6]="floatSix",e[e.floatSeven=7]="floatSeven",e[e.floatEight=8]="floatEight"}(o||(o={})),function(e){e.default="default",e.desc="desc",e.star="star",e.floatOne="floatOne",e.floatTwo="floatTwo",e.floatThree="floatThree",e.floatFour="floatFour",e.floatFive="floatFive",e.floatSix="floatSix",e.floatSeven="floatSeven",e.floatEight="floatEight"}(a||(a={})),function(e){e[e.twoRows=1]="twoRows",e[e.threeRows=2]="threeRows"}(i||(i={})),function(e){e[e.onlyDownloadBtn=0]="onlyDownloadBtn",e[e.allArea=1]="allArea"}(c||(c={})),function(e){e[e.icon=0]="icon",e[e.iconText=1]="iconText"}(u||(u={})),function(e){e.icon="icon",e.iconText="iconText"}(s||(s={})),function(e){e[e.dark=0]="dark",e[e.white=1]="white",e[e.gradient=2]="gradient"}(l||(l={})),function(e){e.dark="dark",e.white="white",e.gradient="gradient"}(d||(d={})),function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(f||(f={})),function(e){e[e.left=1]="left",e[e.right=2]="right"}(p||(p={})),function(e){e[e.portrait=0]="portrait",e[e.landscape=1]="landscape"}(v||(v={}))},function(e,t,n){"use strict";n(11),n(33),n(34),n(23),n(17),n(63),n(4),n(6),n(43),n(26),n(27),n(7);var r=n(5),o=n(28),a=n(13),i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function c(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}
2
+ /*!
3
+ * @bridge/base v1.0.0-alpha.13
4
+ * (c) 2020
5
+ */var u;!function(e){e[e.Failure=0]="Failure",e[e.Success=1]="Success",e[e.Unauthorized=-1]="Unauthorized",e[e.NotExist=-2]="NotExist"}(u||(u={}));var s="__JSBridgeIframe__",l="__JSBridgeIframe_SetResult__",d=1023,f="1.0.0-alpha.13",p="nativeapp://",v="dispatch_message/",b="private/setresult/SCENE_FETCHQUEUE",h=function(){function e(e){this.version=e.version||f,this.nativeMethodInvoker=e.nativeMethodInvoker,this.nativeEventListener=e.nativeEventListener,this.scheme=e.scheme||p,this.dispatchMessagePath=e.dispatchMessagePath||v,this.setResultPath=e.setResultPath||b,this.dispatchMessageIFrameId=e.dispatchMessageIFrameId||s,this.setResultIFrameId=e.setResultIFrameId||l,this.listenNativeEvent=!0===e.listenNativeEvent,this.callbackId=d,this.callbackMap={},this.eventMap={},this.javascriptMessageQueue=[],"undefined"!=typeof window&&this.tryCreateIFrames()}return e.prototype.call=function(e,t,n,r){void 0===r&&(r=this.version);var o,a=this.version;if(e&&"string"==typeof e){"object"!=typeof t&&(t={}),"string"==typeof r?a=r||this.version:"object"==typeof r&&(o=r.namespace,a=r.sdkVersion||this.version);var i={func:e,params:t,JSSDK:a,__msg_type:"call",namespace:o};if("function"==typeof n){var c=this.registerCallback(n);i.__callback_id=c}window.parent!==window&&(i.__iframe_url=window.location.href),this.sendMessageToNative(i)}},e.prototype.on=function(e,t,n){if(void 0===n&&(n=!1),e&&"string"==typeof e&&"function"==typeof t){var r=this.registerCallback(t);return this.eventMap[e]=this.eventMap[e]||{},this.eventMap[e][r]={once:n},this.listenNativeEvent&&(this.nativeEventListener?this.nativeEventListener(e):this.call("addEventListener",{name:e},null,{sdkVersion:1})),r}},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.off=function(e,t){if(!e||"string"!=typeof e)return!0;var n=this.eventMap[e];return!n||"object"!=typeof n||!n.hasOwnProperty(t)||(this.deregisterCallback(t),delete n[t],!0)},e.prototype.trigger=function(e,t){return this.handleMessageFromNative({__msg_type:"event",__params:t,__event_id:e})},e.prototype.handleMessageFromNative=function(e){var t=this,n=e.__params,r=String(e.__callback_id),o=String(e.__event_id||""),a=e.__msg_type;this.callbackMap[r]?a="callback":this.eventMap[r]&&(a="event",o=o||r);var i={__err_code:"cb404"};switch(a){case"callback":var c=this.callbackMap[r];"function"==typeof c&&(i=c(n)),this.deregisterCallback(r);break;case"event":var u=this.eventMap[o];u&&"object"==typeof u&&Object.keys(u).forEach((function(e){var r=t.callbackMap[e],o=u[e];"function"==typeof r&&(i=r(n)),o&&o.once&&(t.deregisterCallback(e),delete u[e])}))}return i},e.prototype.fetchJavaScriptMessageQueue=function(){var e=JSON.stringify(this.javascriptMessageQueue),t=btoa(unescape(encodeURIComponent(e)));return this.setResultIFrame&&this.javascriptMessageQueue.length>0&&(this.setResultIFrame.src=""+this.scheme+this.setResultPath+"&"+t),this.javascriptMessageQueue.splice(0,this.javascriptMessageQueue.length),e},e.prototype.sendMessageToNative=function(e){if(e.JSSDK&&this.nativeMethodInvoker){var t=this.nativeMethodInvoker(e);if(t){var n=JSON.parse(t);this.handleMessageFromNative(n)}}else{if(this.javascriptMessageQueue.push(e),!this.dispatchMessageIFrame)return void this.tryCreateIFrames();this.dispatchMessageIFrame.src=""+this.scheme+this.dispatchMessagePath}},e.prototype.registerCallback=function(e){var t=String(this.callbackId++);return this.callbackMap[t]=e,t},e.prototype.deregisterCallback=function(e){delete this.callbackMap[e]},e.prototype.tryCreateIFrames=function(){this.dispatchMessageIFrame=this.createIFrame(this.dispatchMessageIFrameId),this.setResultIFrame=this.createIFrame(this.setResultIFrameId)},e.prototype.createIFrame=function(e){var t=document.getElementById(e);return t&&"IFRAME"===t.tagName||((t=document.createElement("iframe")).style.display="none",t.id=e,document.documentElement.appendChild(t)),t},e}(),g="1.0.0-alpha.26",y="undefined"!=typeof window?window.navigator.userAgent:"",m=(!!y.match(/(newsarticle|videoarticle|lv|faceu|ulike|beauty_me_|faceu-os|ulike-os|beauty_me_oversea_|retouch)\/([\d.]+)/i)||/super|automobile/gi.test(y))&&!/webcast/gi.test(y),_=!!y.match(/(faceu)\/([\d.]+)/i)||/gsdk/gi.test(y),w=!!y.match(/ttad\/0/i),O=/super/gi.test(y),j="undefined"!=typeof window?window:{},k="undefined"!=typeof window?window:{};function x(){var e;if(m)return k.JSBridge&&k.JSBridge.on?e=k.JSBridge.on:k.JS2NativeBridge&&k.JS2NativeBridge.on?e=function(e){var t={JSSDK:g,__msg_type:"event",__callback_id:e,func:e};k.JS2NativeBridge.on(e,JSON.stringify(t))}:k.webkit&&k.webkit.messageHandlers&&k.webkit.messageHandlers.onMethodParams?e=function(e){var t={JSSDK:g,__msg_type:"event",__callback_id:e,func:e};k.webkit.messageHandlers.onMethodParams.postMessage(t)}:k.onMethodParams&&(e=function(e){var t={JSSDK:g,__msg_type:"event",__callback_id:e,func:e};return k.onMethodParams(e,t)}),e}var S=function(e){function t(){var t=e.call(this,{version:g,scheme:"bytedance://",listenNativeEvent:!0,dispatchMessageIFrameId:"__JSBridgeIframe_1.0__",setResultIFrameId:"__JSBridgeIframe_SetResult_1.0__",nativeEventListener:x()})||this;return t.publicApi={call:t.call.bind(t),on:t.on.bind(t),once:t.once.bind(t),off:t.off.bind(t),trigger:t.trigger.bind(t),_fetchQueue:t.fetchJavaScriptMessageQueue.bind(t),_handleMessageFromToutiao:t.handleMessageFromNative.bind(t)},t}return c(t,e),t.prototype.exposePublicApiToGlobal=function(){j.ToutiaoJSBridge=Object.assign(j.ToutiaoJSBridge||{},this.publicApi)},t}(h),E=new(function(e){function t(t){var n,r=e.call(this,{version:g,nativeMethodInvoker:(k.JS2NativeBridge&&k.JS2NativeBridge._invokeMethod?n=function(e){return k.JS2NativeBridge._invokeMethod(JSON.stringify(e))}:k.ToutiaoJSBridge&&k.ToutiaoJSBridge.invokeMethod?n=function(e){return k.ToutiaoJSBridge.invokeMethod(JSON.stringify(e))}:k.JS2NativeBridge&&k.JS2NativeBridge.call?n=function(e){return k.JS2NativeBridge.call(e.func,JSON.stringify(e))}:k.webkit&&k.webkit.messageHandlers&&k.webkit.messageHandlers.callMethodParams?n=function(e){k.webkit.messageHandlers.callMethodParams.postMessage(e)}:k.callMethodParams&&(n=function(e){return k.callMethodParams(e.func,e)}),n),nativeEventListener:x(),scheme:O?"bytedance://":m?"nativeapp://":k.JSBridge&&k.JSBridge._invokeMethod?"nativeapp://":"bytedance://",listenNativeEvent:m})||this;return r.toutiaoLegacyJSB=t,r.publicApi={call:r.call.bind(r),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),trigger:r.trigger.bind(r),_fetchQueue:r.fetchJavaScriptMessageQueue.bind(r),_handleMessageFromApp:r.handleMessageFromNative.bind(r),_handleMessageFromToutiao:r.handleMessageFromNative.bind(r)},r}return c(t,e),t.prototype.call=function(t,n,r,o){void 0===o&&(o=g),this.isLegacyCall(t)?this.toutiaoLegacyJSB.call(t,n,r,o):e.prototype.call.call(this,t,n,r,o)},t.prototype.on=function(t,n,r){return void 0===r&&(r=!1),this.isLegacyCall(t)?this.toutiaoLegacyJSB.on(t,n,r):e.prototype.on.call(this,t,n,r)},t.prototype.once=function(t,n){return this.isLegacyCall(t)?this.toutiaoLegacyJSB.once(t,n):e.prototype.once.call(this,t,n)},t.prototype.off=function(t,n){return this.isLegacyCall(t)?this.toutiaoLegacyJSB.off(t,n):e.prototype.off.call(this,t,n)},t.prototype.trigger=function(t,n){return this.isLegacyCall(t)?this.toutiaoLegacyJSB.trigger(t,n):e.prototype.trigger.call(this,t,n)},t.prototype.exposePublicApiToGlobal=function(){j.JSBridge=Object.assign(j.JSBridge||{},this.publicApi),j.Native2JSBridge=Object.assign(j.Native2JSBridge||{},this.publicApi),O?j.ToutiaoJSBridge=Object.assign(j.ToutiaoJSBridge||{},this.publicApi):(m||w)&&this.toutiaoLegacyJSB?this.toutiaoLegacyJSB.exposePublicApiToGlobal():j.ToutiaoJSBridge=Object.assign(j.ToutiaoJSBridge||{},this.publicApi),Object.defineProperties(j,{JSBridge:{writable:!1},Native2JSBridge:{writable:!1},ToutiaoJSBridge:{writable:!1}}),Object.freeze(j.JSBridge),Object.freeze(j.Native2JSBridge),Object.freeze(j.ToutiaoJSBridge)},t.prototype.isLegacyCall=function(e){return!(!e||"string"!=typeof e||!this.toutiaoLegacyJSB)&&(!!w||!_&&!O&&(m&&e.indexOf(".")<0))},t}(h))(new S);try{E.exposePublicApiToGlobal()}catch(e){console.warn(e.message)}var P,M=E.publicApi;function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}P=window.JSBridge||M,n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return I}));var T={},L=function e(t,n,i){var c,u,s,l=arguments;return regeneratorRuntime.async((function(d){for(;;)switch(d.prev=d.next){case 0:if(c=l.length>3&&void 0!==l[3]?l[3]:3e3,!(Number(Object(a.b)("use_iframe_event"))>0&&Object(o.b)())){d.next=4;break}return o.a.sendMessageToParent(t,n),d.abrupt("return");case 4:if(!i){d.next=7;break}if(!T.hasOwnProperty(t)){d.next=7;break}return d.abrupt("return",T[t]);case 7:return s=new Promise((function(e){P.call(t,n,(function(o){"string"==typeof o&&(o=JSON.parse(o));try{"object"===A(o)&&o.hasOwnProperty("code")&&-1===o.code&&r.d.emit({name:t,params:n})}catch(e){console.error("Error in judging jsb permission",e)}e(o)}))})),d.next=10,regeneratorRuntime.awrap(Promise.race([s,new Promise((function(e){setTimeout((function(){return e(void 0)}),c)}))]));case 10:return!(u=d.sent)||"[Object object]"===Object.prototype.toString.call(u)&&u.hasOwnProperty("code")&&-1===u.code||(T[t]=u),u&&e.afterHooks&&e.afterHooks(t,u),d.abrupt("return",u);case 14:case"end":return d.stop()}}))};L.init=function(e){return L.afterHooks=e.afterHooks,L};var I=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=P.on(e,t,n);return function(){P.off(e,r)}}},function(e,t,n){var r=n(19),o=n(66).f,a=n(52),i=n(47),c=n(129),u=n(163),s=n(87);e.exports=function(e,t){var n,l,d,f,p,v=e.target,b=e.global,h=e.stat;if(n=b?r:h?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in t){if(f=t[l],d=e.noTargetGet?(p=o(n,l))&&p.value:n[l],!s(b?l:v+(h?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),i(n,l,f,e)}}},function(e,t,n){"use strict";var r=n(10),o=n(19),a=n(81),i=n(88),c=n(32),u=n(162),s=n(21),l=n(44),d=n(111),f=n(37),p=n(38),v=n(50),b=n(53),h=n(89),g=n(79),y=n(91),m=n(92),_=n(94),w=n(204),O=n(137),j=n(66),k=n(39),x=n(110),S=n(52),E=n(47),P=n(78),M=n(108),A=n(90),T=n(109),L=n(22),I=n(174),D=n(175),N=n(95),R=n(80),C=n(67).forEach,B=M("hidden"),F=L("toPrimitive"),V=R.set,U=R.getterFor("Symbol"),z=Object.prototype,J=o.Symbol,G=a("JSON","stringify"),H=j.f,W=k.f,Q=w.f,Y=x.f,q=P("symbols"),X=P("op-symbols"),K=P("string-to-symbol-registry"),Z=P("symbol-to-string-registry"),$=P("wks"),ee=o.QObject,te=!ee||!ee.prototype||!ee.prototype.findChild,ne=c&&s((function(){return 7!=y(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=H(z,t);r&&delete z[t],W(e,t,n),r&&e!==z&&W(z,t,r)}:W,re=function(e,t){var n=q[e]=y(J.prototype);return V(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},oe=u&&"symbol"==typeof J.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof J},ae=function(e,t,n){e===z&&ae(X,t,n),p(e);var r=h(t,!0);return p(n),l(q,r)?(n.enumerable?(l(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:g(0,!1)})):(l(e,B)||W(e,B,g(1,{})),e[B][r]=!0),ne(e,r,n)):W(e,r,n)},ie=function(e,t){p(e);var n=b(t),r=m(n).concat(le(n));return C(r,(function(t){c&&!ce.call(n,t)||ae(e,t,n[t])})),e},ce=function(e){var t=h(e,!0),n=Y.call(this,t);return!(this===z&&l(q,t)&&!l(X,t))&&(!(n||!l(this,t)||!l(q,t)||l(this,B)&&this[B][t])||n)},ue=function(e,t){var n=b(e),r=h(t,!0);if(n!==z||!l(q,r)||l(X,r)){var o=H(n,r);return!o||!l(q,r)||l(n,B)&&n[B][r]||(o.enumerable=!0),o}},se=function(e){var t=Q(b(e)),n=[];return C(t,(function(e){l(q,e)||l(A,e)||n.push(e)})),n},le=function(e){var t=e===z,n=Q(t?X:b(e)),r=[];return C(n,(function(e){!l(q,e)||t&&!l(z,e)||r.push(q[e])})),r};(u||(E((J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=T(e),n=function(e){this===z&&n.call(X,e),l(this,B)&&l(this[B],t)&&(this[B][t]=!1),ne(this,t,g(1,e))};return c&&te&&ne(z,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return U(this).tag})),x.f=ce,k.f=ae,j.f=ue,_.f=w.f=se,O.f=le,c&&(W(J.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),i||E(z,"propertyIsEnumerable",ce,{unsafe:!0})),I.f=function(e){return re(L(e),e)}),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:J}),C(m($),(function(e){D(e)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(l(K,t))return K[t];var n=J(t);return K[t]=n,Z[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(l(Z,e))return Z[e]},useSetter:function(){te=!0},useSimple:function(){te=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?y(e):ie(y(e),t)},defineProperty:ae,defineProperties:ie,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:se,getOwnPropertySymbols:le}),r({target:"Object",stat:!0,forced:s((function(){O.f(1)}))},{getOwnPropertySymbols:function(e){return O.f(v(e))}}),G)&&r({target:"JSON",stat:!0,forced:!u||s((function(){var e=J();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],a=1;arguments.length>a;)o.push(arguments[a++]);if(r=t,(f(t)||void 0!==e)&&!oe(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),o[1]=t,G.apply(null,o)}});J.prototype[F]||S(J.prototype,F,J.prototype.valueOf),N(J,"Symbol"),A[B]=!0},function(e,t,n){var r=n(10),o=n(32);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(39).f})},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s}));n(55),n(150),n(117),n(114);var r,o,a,i=n(25),c=function(e){if(!r){var t=window.location.search.substring(1).split("&");r={};for(var n=0;n<t.length;n++){var o=t[n].split("=");r[o[0]]=o[1]}}return r[e]},u=function(){if(!o){var e,t=c("toutiao_card_params");if(t)o=JSON.parse(window.decodeURIComponent(t)),Object(i.e)()&&(null===(e=o)||void 0===e?void 0:e.download_url)&&!o.app_id&&(o.app_id=function(e){var t=e.match(/\/(id)?(\d+)/);if(!t)return;return t[2]}(o.download_url));else o=void 0}return o},s=function(){if(!a){var e=c("enterprise_tab_extra");a=e?JSON.parse(window.decodeURIComponent(e)):void 0}return a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u}));var r,o,a;n(12);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.BROWSER=0]="BROWSER",e[e.ENDCARD_CONTROL_EVENT=1]="ENDCARD_CONTROL_EVENT",e[e.VIEWABLE_MUTE=2]="VIEWABLE_MUTE"}(o||(o={})),function(e){e[e.VIEWABLE=0]="VIEWABLE",e[e.MUTED=1]="MUTED"}(a||(a={}));var c=(i(r={},a.VIEWABLE,o.BROWSER),i(r,a.MUTED,o.BROWSER),r);function u(e,t){return c[e]<=t&&(c[e]=t,!0)}},function(e,t,n){"use strict";var r=n(10),o=n(182);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return s}));n(11),n(33),n(34),n(23),n(77),n(17),n(30),n(4),n(55),n(43),n(26),n(114),n(27);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(e){return JSON.parse(JSON.stringify(e))};function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e,t){if(a(e,t))return e[t]}function c(e){return Object.keys(e)}function u(e){return Object.prototype.toString.call(e).slice(8,-1)}function s(e){try{return"string"==typeof e?JSON.parse(e):"object"===r(e)?e:void 0}catch(e){console.error("Error in parseToObject",e)}}},function(e,t,n){var r=n(47),o=Date.prototype,a=o.toString,i=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var e=i.call(this);return e==e?a.call(this):"Invalid Date"}))},function(e,t,n){var r=n(19),o=n(180),a=n(182),i=n(52);for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==a)try{i(s,"forEach",a)}catch(e){s.forEach=a}}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(193))},function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));n(54),n(55),n(117),/[\?&]is_test_tool=1/.test(location.search);var r=/[\?&]is_playable_test_page=1/.test(location.search),o=/[\?&]is_audit_test_page=1/.test(location.search),a=!1,i=location.search.indexOf("is_dynamic_iframe=1")>-1,c=(location.search.indexOf("snapshot_detect=1"),location.search.indexOf("snapshot_section=1"),location.search.indexOf("hidden_event_console=1")>-1),u=[],s="/playable/"},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(19),o=n(78),a=n(109),i=n(162),c=r.Symbol,u=o("wks");e.exports=function(e){return u[e]||(u[e]=i&&c[e]||(i?c:a)("Symbol."+e))}},function(e,t,n){"use strict";var r=n(53),o=n(105),a=n(97),i=n(80),c=n(144),u=i.set,s=i.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r=n(10),o=n(67).filter;r({target:"Array",proto:!0,forced:!n(99)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return c}));n(55),n(150);var r=function(){return!!navigator.userAgent.match(/(Android)\s+([\d.]+)/)},o=function(){return/iPhone|iPad|iPod|iOS/i.test(navigator.userAgent)};function a(){return/Android|iPhone|iPad|iPod|iOS|webOS|BlackBerry/i.test(navigator.userAgent)}function i(){var e=c();return e.width<e.height}function c(){var e=window.innerWidth||screen.availWidth||screen.width,t=window.innerHeight||screen.availHeight||screen.height;return{width:e,height:t,shortLength:Math.min(e,t),longLength:Math.max(e,t)}}},function(e,t,n){"use strict";var r=n(179).charAt,o=n(80),a=n(144),i=o.set,c=o.getterFor("String Iterator");a(String,"String",(function(e){i(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(19),o=n(180),a=n(23),i=n(52),c=n(22),u=c("iterator"),s=c("toStringTag"),l=a.values;for(var d in o){var f=r[d],p=f&&f.prototype;if(p){if(p[u]!==l)try{i(p,u,l)}catch(e){p[u]=l}if(p[s]||i(p,s,d),o[d])for(var v in a)if(p[v]!==a[v])try{i(p,v,a[v])}catch(e){p[v]=a[v]}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));n(23),n(82),n(12),n(4),n(26),n(27);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return window.self!==window.top||null!==window.frameElement}var i=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"isIframe",void 0),o(this,"listeners",void 0),o(this,"isListenerInitialized",void 0),e.instance||(this.isIframe=a(),this.listeners=new Map,this.isListenerInitialized=!1,this.isIframe&&this.initMessageListener(),e.instance=this),e.instance}var t,n,i;return t=e,(n=[{key:"initMessageListener",value:function(){var e=this;this.isListenerInitialized||(window.addEventListener("message",(function(t){var n,r=t.data;if(r&&r.eventName&&(null===(n=e.listeners)||void 0===n?void 0:n.has(r.eventName))){var o,a=null===(o=e.listeners)||void 0===o?void 0:o.get(r.eventName);"function"==typeof a&&a(r.params,t)}})),this.isListenerInitialized=!0)}},{key:"onMessage",value:function(e,t){var n;this.isIframe&&(null===(n=this.listeners)||void 0===n||n.set(e,t))}},{key:"sendMessageToParent",value:function(e,t){this.isIframe&&window.parent.postMessage({eventName:e,params:t},"*")}}])&&r(t.prototype,n),i&&r(t,i),e}();o(i,"instance",void 0);var c=new i;t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(4),n(6),n(7);var r=n(9),o=n(58),a=function(){var e,t,n,a,i,c,u,s,l,d,f,p;return regeneratorRuntime.async((function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,regeneratorRuntime.awrap(Object(r.a)("adInfo",{},!0));case 2:if(e=v.sent){v.next=5;break}return v.abrupt("return",e);case 5:if(t=e.cid,n=e.req_id,a=e.convert_id,i=e.ad_id,c=e.log_extra,u=e.skan_parameters,s=e.track_url_list,l=e.compliance_data,void 0===t&&e.data&&(t=e.data.cid,n=e.data.req_id,a=e.data.convert_id,i=e.data.ad_id,c=e.data.log_extra,u=e.data.skan_parameters,s=e.track_url_list,l=e.compliance_data),"string"==typeof c)try{d=JSON.parse(c||"{}"),n=n||d.req_id,a=a||d.convert_id,i=i||d.ad_id}catch(e){console.error("parse log_extra error: ".concat(c))}return f=void 0,Object(o.d)()&&((null==e?void 0:e.land_page_data)?f=e.land_page_data:(null==e?void 0:null===(p=e.data)||void 0===p?void 0:p.land_page_data)&&(f=e.data.land_page_data)),v.abrupt("return",{category:"app_union",is_ad_event:"1",cid:t,req_id:n,convert_id:a,ad_id:i,log_extra:c,land_page_data:f,skan_parameters:u,track_url_list:s,compliance_data:l});case 11:case"end":return v.stop()}}))}},function(e,t,n){var r=n(10),o=n(50),a=n(92);r({target:"Object",stat:!0,forced:n(21)((function(){a(1)}))},{keys:function(e){return a(o(e))}})},function(e,t,n){var r=n(10),o=n(21),a=n(53),i=n(66).f,c=n(32),u=o((function(){i(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},function(e,t,n){var r=n(21);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(10),o=n(32),a=n(19),i=n(44),c=n(37),u=n(39).f,s=n(163),l=a.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new l(e):void 0===e?l():l(e);return""===e&&(d[t]=!0),t};s(f,l);var p=f.prototype=l.prototype;p.constructor=f;var v=p.toString,b="Symbol(test)"==String(l("test")),h=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=v.call(e);if(i(d,e))return"";var n=b?t.slice(7,-1):t.replace(h,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(e,t,n){n(175)("iterator")},function(e,t,n){var r=n(10),o=n(32);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(157)})},function(e,t,n){var r=n(10),o=n(32),a=n(164),i=n(53),c=n(66),u=n(100);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),o=c.f,s=a(r),l={},d=0;s.length>d;)void 0!==(n=o(r,t=s[d++]))&&u(l,t,n);return l}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(37);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(32),o=n(155),a=n(38),i=n(89),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(a(e),t=i(t,!0),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(32),o=n(39).f,a=Function.prototype,i=a.toString,c=/^\s*function ([^ (]*)/;!r||"name"in a||o(a,"name",{configurable:!0,get:function(){try{return i.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";n(4),n(6),n(7);var r=n(9),o=n(25),a=n(121),i=n(29),c=n(13),u=n(83),s=n(119),l=function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(r.a)("sendReward",{},!1));case 1:case"end":return e.stop()}}))},d=n(120),f=n(103);function p(){var e,t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Object(o.b)()){n.next=9;break}return n.t0=r.a,n.next=4,regeneratorRuntime.awrap(Object(a.a)());case 4:n.t1=n.sent,n.t2={data:n.t1},(0,n.t0)("subscribe_app_ad",n.t2,!1),n.next=21;break;case 9:if(void 0!==(e=Object(c.c)())){n.next=12;break}return n.abrupt("return");case 12:if(e.app_id){n.next=14;break}return n.abrupt("return");case 14:return n.next=16,regeneratorRuntime.awrap(Object(i.a)());case 16:if(t=n.sent){n.next=20;break}return console.error("Do not get adInfo"),n.abrupt("return");case 20:Object(r.a)("preload_app_ad",{app_id:e.app_id,ad_id:t.ad_id||t.cid,log_extra:t.log_extra,web_url:location.href,download_scene:void 0,compliance_data:t.compliance_data},!1);case 21:case"end":return n.stop()}}))}n.d(t,"b",(function(){return r.a})),n.d(t,"g",(function(){return r.b})),n.d(t,"c",(function(){return u.a})),n.d(t,"i",(function(){return s.a})),n.d(t,"a",(function(){return l})),n.d(t,"h",(function(){return d.b})),n.d(t,"d",(function(){return d.a})),n.d(t,"f",(function(){return f.b})),n.d(t,"e",(function(){return f.a})),"loading"!==document.readyState?p():document.addEventListener("DOMContentLoaded",p)},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"a",(function(){return d}));var r="playable_send_replay",o="playable_click_area",a="playable_style",i="getData",c="getCurrentCountdownStatus",u="popupShow",s="popupDidDismiss",l="popupDidShow",d="changeCountdownStatus"},function(e,t,n){"use strict";var r=n(47),o=n(38),a=n(21),i=n(145),c=RegExp.prototype,u=c.toString,s=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l="toString"!=u.name;(s||l)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?i.call(e):n)}),{unsafe:!0})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(86),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(10),o=n(21),a=n(111),i=n(37),c=n(50),u=n(45),s=n(100),l=n(143),d=n(99),f=n(22),p=n(142),v=f("isConcatSpreadable"),b=p>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),h=d("concat"),g=function(e){if(!i(e))return!1;var t=e[v];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!b||!h},{concat:function(e){var t,n,r,o,a,i=c(this),d=l(i,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(a=-1===t?i:arguments[t],g(a)){if(f+(o=u(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,f++)n in a&&s(d,f,a[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(d,f++,a)}return d.length=f,d}})},function(e,t,n){var r=n(19),o=n(78),a=n(52),i=n(44),c=n(129),u=n(156),s=n(80),l=s.get,d=s.enforce,f=String(u).split("toString");o("inspectSource",(function(e){return u.call(e)})),(e.exports=function(e,t,n,o){var u=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||a(n,"name",t),d(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!l&&e[t]&&(s=!0):delete e[t],s?e[t]=n:a(e,t,n)):s?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||u.call(this)}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return f}));n(46),n(24),n(183),n(15),n(54),n(106),n(18);var r,o=n(20),a=n(60),i=n(59);!function(e){e[e.enable=0]="enable",e[e.removed=1]="removed"}(r||(r={}));var c=[],u={},s={},l=function(e,t,n){if(c.indexOf(e)>-1)throw new Error("Has Registered ".concat(e," Event"));if(c.push(e),n){var o=n.beforeAdd,a=n.afterRemove;s[e]={beforeAdd:o,afterRemove:a}}t((function(t){u.hasOwnProperty(e)&&u[e].forEach((function(e){e.state===r.enable&&e.callback(t)}))}))},d=function(e,t){var n;if(-1!==c.indexOf(e)){if(u.hasOwnProperty(e)||(u[e]=[]),!(u[e].filter((function(e){return e.callback===t})).length>0)){if(o.f&&"visibilityChange"===e){var l={type:a.a.VISIBILITY_CHANGE};Object(i.a)(l)}var d=null===(n=s[e])||void 0===n?void 0:n.beforeAdd;d&&d(),u[e].push({callback:t,state:r.enable})}}else console.error("Wrong name of Events: ".concat(e,", available events: ").concat(c.join(",")))},f=function(e,t){var n;if(-1!==c.indexOf(e)){if(u.hasOwnProperty(e)){var o=!1,a=u[e].findIndex((function(e){return e.callback===t}));a>-1&&(u[e][a].state=r.removed,o=!0);var i=null===(n=s[e])||void 0===n?void 0:n.afterRemove;i&&o&&i()}}else console.error("Wrong name of Events: ".concat(e,", available events: ").concat(c.join(",")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var r=n(56),o=void 0,a=void 0,i="start";function c(e){a?(i=a,a=e,o&&clearTimeout(o)):a=e,o=setTimeout((function(){r.b&&Object(r.c)(e),i=e,a=void 0}),200)}},function(e,t,n){var r=n(51);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(32),o=n(39),a=n(79);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(93),o=n(51);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(10),o=n(133).indexOf,a=n(101),i=[].indexOf,c=!!i&&1/[1].indexOf(1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:c||u},{indexOf:function(e){return c?i.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(10),o=n(113);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r="",o=!1;function a(e){if(e)return r=e,void(o=!1);o=!0}},function(e,t,n){"use strict";function r(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l}));n(54),n(4),n(6),n(7);var r,o=n(83),a=n(13),i=n(20);function c(){var e=location.hostname;return/^[\d\.:]+$/.test(e)||"localhost"===e}function u(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r){t.next=2;break}return t.abrupt("return",r);case 2:if(!("1"===Object(a.b)("is_landing_page"))){t.next=6;break}return r=!1,t.abrupt("return",r);case 6:if(!i.d){t.next=9;break}return r=!1,t.abrupt("return",r);case 9:if(!/open_news(\s|\/|_)(\S)/i.test(navigator.userAgent)){t.next=12;break}return r=!0,t.abrupt("return",r);case 12:return t.next=14,regeneratorRuntime.awrap(Object(o.a)(1e3));case 14:return e=t.sent,r=!(!e||"open_news"!==e.appName),t.abrupt("return",r);case 17:case"end":return t.stop()}}))}function s(){return/trill(\s|\/|_)(\S)/i.test(navigator.userAgent)||navigator.userAgent.indexOf("musical_ly")>-1}function l(){return location.hostname.indexOf("ibytedtos.com")>-1||location.hostname.indexOf("i18n-pglstatp.com")>-1||location.hostname.indexOf("tiktokpangle-cdn-us.com")>-1||location.hostname.indexOf("tiktokpangle-cdn-eu.com")>-1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){parent&&parent!==window?(parent.postMessage&&parent.postMessage(e,"*"),console.debug("msg: ",e)):console.debug("you are not in iframe")}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.ACTIVE_TOUCH_ERROR="activeTouchError",e.OPEN_APP_STORE="openAppStore",e.CUSTOM_EVENT="customEvent",e.IS_VIEWABLE="isViewable",e.VISIBILITY_CHANGE="visibilityChangeEventListener"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(17),n(40);var r=n(71),o=n(0),a=n(16),i=n(5),c=n(20),u=n(60),s=n(59);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now());i.f.emit({name:e,params:t});var l=Object(a.d)(o.a,e)||Object(a.d)(o.d,e)||Object(a.d)(o.f,e)||Object(a.d)(o.c,e);if(void 0!==l){if(Object(r.a)(l.name,t,n),c.f){var d={type:u.a.CUSTOM_EVENT,eventName:e,eventParams:t};Object(s.a)(d)}if(l.validator){var f=l.validator(t);f&&(console.group("playable sdk error"),console.error("sendEvent 事件参数参数不合法:".concat(f)),console.groupEnd())}}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(32),o=n(19),a=n(87),i=n(47),c=n(44),u=n(62),s=n(131),l=n(89),d=n(21),f=n(91),p=n(94).f,v=n(66).f,b=n(39).f,h=n(135).trim,g=o.Number,y=g.prototype,m="Number"==u(f(y)),_=function(e){var t,n,r,o,a,i,c,u,s=l(e,!1);if("string"==typeof s&&s.length>2)if(43===(t=(s=h(s)).charCodeAt(0))||45===t){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(i=(a=s.slice(2)).length,c=0;c<i;c++)if((u=a.charCodeAt(c))<48||u>o)return NaN;return parseInt(a,r)}return+s};if(a("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var w,O=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof O&&(m?d((function(){y.valueOf.call(n)})):"Number"!=u(n))?s(new g(_(t)),n,O):_(t)},j=r?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;j.length>k;k++)c(g,w=j[k])&&!c(O,w)&&b(O,w,v(g,w));O.prototype=y,y.constructor=O,i(o,"Number",O)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));n(11),n(33),n(34),n(76),n(23),n(102),n(4),n(107),n(26),n(27);var r,o=n(73);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){for(var t=o.a.start.target,n=function(){var n,r=null!==(n=t.getAttribute("class"))&&void 0!==n?n:"";if(e.some((function(e){return r.includes(e)})))return{v:!0};t=t.parentElement};null!==t&&t!==document.body;){var r=n();if("object"===a(r))return r.v}return!1}!function(e){e.exemptedFromConvert="exempted-from-convert",e.exemptedFromPlay="exempted-from-play"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l}));n(17);var r=0,o=0,a=0,i=0,c=0;function u(){o+=1,a=i,i=Date.now(),c=i-a}function s(){r=Date.now()}function l(){return Date.now()-r}},function(e,t,n){var r=n(32),o=n(110),a=n(79),i=n(53),c=n(89),u=n(44),s=n(155),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=i(e),t=c(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return a(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(98),o=n(93),a=n(50),i=n(45),c=n(143),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,l=4==e,d=6==e,f=5==e||d;return function(p,v,b,h){for(var g,y,m=a(p),_=o(m),w=r(v,b,3),O=i(_.length),j=0,k=h||c,x=t?k(p,O):n?k(p,0):void 0;O>j;j++)if((f||j in _)&&(y=w(g=_[j],j,m),e))if(t)x[j]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return j;case 2:u.call(x,g)}else if(l)return!1;return d?-1:s||l?l:x}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,n){var r=n(10),o=n(211);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));n(11),n(33),n(34),n(46),n(24),n(15),n(75),n(23),n(184),n(17),n(35),n(12),n(31),n(36),n(30),n(4),n(43),n(26),n(18),n(27);var r=n(41),o=n(49),a=n(84);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=[],d=function(){var e;(e=console).debug.apply(e,arguments)},f=!1,p={};function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();if(t.current_section||(t.current_section=o.a),!f)return l.push([e,t,n]),void d("fakeTea is not ready, cached ".concat(e,":"),t);h(e,t,n)}var b=["times","duration","current_section","section","section_remark","section_sequence","lost_resource_url","is_load_main_sence","is_playable_show","area","area_remark","convert_area","sdk_playable_show","sdk_playable_load_main_scene","sdk_start_play_playable","custom_load_main_scene","custom_start_play_playable","custom_finish_play_playable","is_prerender","detail_place","anchor_id","room_id","sensor_duration"];function h(e,t,n){var o,a={},i=null===(o=performance)||void 0===o?void 0:o.memory;i&&(a.used_memory=i.usedJSHeapSize,a.memory_limit=i.jsHeapSizeLimit);var c=u({},p,{},a,{},t),s=b.reduce((function(e,t){return c.hasOwnProperty(t)&&(e["playable_".concat(t)]=c[t]),e}),{});s.playable_event=e,s.playable_timestamp=n,s.playable_url=p.path,s.playable_scenes_type=p.playable_scenes_type,Object(r.i)("playable_track",u({},s,{event:e,timestamp:n,params:c})),d("fakeTea send track event ".concat(e,"(").concat(n,"):"),t)}v.init=function(e){var t=e.app_id,n=e.channel,r=e.log,o=e.path,a=e.request_url;p.app_id=t,p.channel=n,p.path=o,p.request_url=a,r||(d=function(){})},v.config=function(e){p=u({},p,{},e.evtParams),d("fakeTea updated config:",e.evtParams)},v.start=function(){f=!0,d("fakeTea is started"),l.forEach((function(e){h.apply(void 0,i(e))})),l=[],d("fakeTea cleared cache queue")},Object(a.a)(Date.now()),v("predefine_pageview",{innerWidth:window.innerWidth,innerHeight:window.innerHeight,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight,availWidth:screen.availWidth,availHeight:screen.availHeight,screenWidth:screen.width,screenHeight:screen.height}),t.a=v},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s}));n(76);var r=n(1),o=[],a=window.clearTimeout,i=window.clearInterval,c=function(){var e,t=(e=window).setInterval.apply(e,arguments);return o.push(t),t},u=function(){var e,t=(e=window).setTimeout.apply(e,arguments);o.push(t)},s=function(e){o.includes(e)&&i(e)};Object(r.v)((function(){window.clearTimeout=function(e){o.includes(e)||a(e)},window.clearInterval=function(e){o.includes(e)||i(e)}}))},function(e,t,n){"use strict";n(17),n(11),n(33),n(34),n(46),n(24),n(15),n(23),n(35),n(12),n(31),n(36),n(30),n(4),n(6),n(43),n(26),n(18),n(27),n(7);var r=n(69),o=n(29),a=n(83),i=n(123);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var d=function(){return{path:window.location.origin+window.location.pathname,request_url:window.location.href}},f=function(){var e,t,n,r,c,u,s,d,f,p,v,b,h;return regeneratorRuntime.async((function(g){for(;;)switch(g.prev=g.next){case 0:return e=Object(o.a)(),t=Object(a.a)(),n=Object(i.a)(),g.next=5,regeneratorRuntime.awrap(Promise.all([e,t,n]));case 5:if(r=g.sent,c=l(r,3),u=c[0],s=c[1],d=c[2],u&&s){g.next=12;break}return g.abrupt("return",void 0);case 12:return f=u.cid,p=u.req_id,v=u.convert_id,b=u.ad_id,h=s.netType,g.abrupt("return",{cid:f,request_id:p,link_id:"".concat(p,"-").concat(Date.now()),convert_id:v,ad_id:b,net_type:h,is_prerender:d});case 15:case"end":return g.stop()}}))};var p,v,b,h,g=n(58);Object(g.a)()?p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();console.debug("sendToTea(".concat(n,") >"),e,t)}:(regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return r.a.init(u({app_id:1834,channel:"cn",log:!0},d())),v=!1,b=setTimeout((function(){r.a.config({evtParams:{onlyBaseParams:!0}}),r.a.start(),v=!0}),3e3),e.next=5,regeneratorRuntime.awrap(f());case 5:if(h=e.sent,!v&&void 0!==h){e.next=8;break}return e.abrupt("return");case 8:r.a.config({evtParams:h}),r.a.start(),v=!0,clearTimeout(b);case 12:case"end":return e.stop()}})),p=r.a);t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return h}));n(11),n(24),n(15),n(151),n(35),n(12),n(31),n(36),n(30),n(18);var r,o=n(61),a=n(49),i=n(0),c=n(1),u=n(42);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.no=0]="no",e[e.yes=1]="yes"}(r||(r={}));var f=200,p=!1,v=[];function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.hasOwnProperty("current_section")||(e.current_section=a.a),p)p=!1,Object(o.a)(i.b.clickArea,l({},e,{convert_area:r.yes}),t),Object(c.a)(u.d,{playable_current_section:e.section,playable_click_area:e.area,playable_click_postion:JSON.stringify(e.pos||"")},!1);else{var n=setTimeout((function(){Object(o.a)(i.b.clickArea,l({},e,{convert_area:r.no}),t),v.splice(0,1),Object(c.a)(u.d,{playable_current_section:e.section,playable_click_area:e.area,playable_click_postion:JSON.stringify(e.pos||"")},!1)}),f);v.push({timerId:n,eventParams:e,displayMessage:t})}}function h(){if(0===v.length)p=!0,setTimeout((function(){p=!1}),f);else{var e=v.splice(0,1)[0];e&&(clearTimeout(e.timerId),Object(o.a)(i.b.clickArea,l({},e.eventParams,{convert_area:r.yes}),e.displayMessage))}}},function(e,t,n){"use strict";var r,o=n(25);!function(e){e[e.pointer=0]="pointer",e[e.mouse=1]="mouse",e[e.touch=2]="touch"}(r||(r={}));var a=r.pointer;function i(e){var t=0,n=0;try{var r,o=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop;if(e instanceof TouchEvent)r=e.changedTouches[0];else r=e;t=r.pageX||r.clientX+o,n=r.pageY||r.clientY+a}catch(e){console.error("Error in getPosition: ".concat(e.stack||e.message||e))}return{x:t,y:n,target:e.target}}var c=n(5);n.d(t,"a",(function(){return b}));var u,s,l,d,f,p,v,b={start:{x:0,y:0,target:null},end:{x:0,y:0,target:null}},h=function(e,t){!0,"touchstart"===e?(b.start.x=t.x,b.start.y=t.y,b.start.target=t.target,b.end.x=0,b.end.y=0):"touchend"===e&&(b.end.x=t.x,b.end.y=t.y,b.end.target=t.target),c.b.emit({type:e})};u=document.documentElement,s=function(e){h("touchstart",e)},l=!0,d=function(){u.removeEventListener("mousedown",f,l)},f=function(e){if(a>r.mouse)d();else{a=r.mouse;var t=i(e);s(t)}},p=function(){u.removeEventListener("pointerdown",v,l)},v=function(e){if(a>r.pointer)p();else{var t=i(e);s(t)}},u.addEventListener("touchstart",(function(e){a=r.touch;var t=i(e);s(t)}),l),u.addEventListener("mousedown",f,l),Object(o.c)()||u.addEventListener("pointerdown",v,l),function(e,t,n){var o,a=!1;function c(e){void 0!==o&&e<o||(o=e,a=!0,window.addEventListener("mousemove",f,n),window.addEventListener("mouseup",p,n),window.addEventListener("touchmove",l,n),window.addEventListener("touchend",d,n),window.addEventListener("pointermove",v,n),window.addEventListener("pointerup",b,n))}function u(e){if(a){var n=i(e);t(n)}}function s(){a=!1,o=void 0,window.removeEventListener("mousemove",f,n),window.removeEventListener("mouseup",p,n),window.removeEventListener("touchmove",l,n),window.removeEventListener("touchend",d,n),window.removeEventListener("pointermove",v,n),window.removeEventListener("pointerup",b,n)}function l(e){u(e)}function d(){s()}function f(e){u(e)}function p(){s()}function v(e){u(e)}function b(){s()}e.addEventListener("touchstart",(function(){c(r.touch)}),n),e.addEventListener("mousedown",(function(){c(r.mouse)}),n),e.addEventListener("pointerdown",(function(){c(r.pointer)}),n)}(document.documentElement,(function(e){h("pressmove",e)}),!0),function(e,t,n){var c=function(e){a=r.touch;var n=i(e);t(n)},u=function(){e.removeEventListener("mouseup",s,n)},s=function(e){if(a>r.mouse)u();else{a=r.mouse;var n=i(e);t(n)}};e.addEventListener("touchend",c,n),e.addEventListener("touchcancel",c,n),e.addEventListener("mouseup",s,n),Object(o.c)()||e.addEventListener("pointerup",(function(o){if(a>r.pointer)e.removeEventListener("pointerup",s,n);else{var c=i(o);t(c)}}),n)}(document.documentElement,(function(e){h("touchend",e)}),!0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r;n(4),n(6),n(216),n(217),n(7);function o(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:e.trim().toLowerCase().startsWith("javascript:")||(location.href=e);case 1:case"end":return t.stop()}}))}!function(e){e[e.global=1]="global",e[e.mute=2]="mute",e[e.exit=3]="exit"}(r||(r={}))},function(e,t,n){var r=n(10),o=n(205);r({target:"Array",stat:!0,forced:!n(141)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(10),o=n(133).includes,a=n(105);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){"use strict";var r=n(10),o=n(37),a=n(111),i=n(128),c=n(45),u=n(53),s=n(100),l=n(99),d=n(22)("species"),f=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!l("slice")},{slice:function(e,t){var n,r,l,v=u(this),b=c(v.length),h=i(e,b),g=i(void 0===t?b:t,b);if(a(v)&&("function"!=typeof(n=v.constructor)||n!==Array&&!a(n.prototype)?o(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(v,h,g);for(r=new(void 0===n?Array:n)(p(g-h,0)),l=0;h<g;h++,l++)h in v&&s(r,l,v[h]);return r.length=l,r}})},function(e,t,n){var r=n(88),o=n(194);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.4.1",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,o,a,i=n(195),c=n(19),u=n(37),s=n(52),l=n(44),d=n(108),f=n(90),p=c.WeakMap;if(i){var v=new p,b=v.get,h=v.has,g=v.set;r=function(e,t){return g.call(v,e,t),t},o=function(e){return b.call(v,e)||{}},a=function(e){return h.call(v,e)}}else{var y=d("state");f[y]=!0,r=function(e,t){return s(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},a=function(e){return l(e,y)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(160),o=n(19),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){"use strict";var r=n(207),o=n(209);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o,!0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(4),n(6),n(7);var r=n(9),o=function(){var e,t,n=arguments;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:3e3,o.next=3,regeneratorRuntime.awrap(Object(r.a)("appInfo",{},!0,e));case 3:if(void 0!==(t=o.sent)){o.next=6;break}return o.abrupt("return",void 0);case 6:if(!t.hasOwnProperty("data")){o.next=10;break}return o.abrupt("return",t.data);case 10:return o.abrupt("return",t);case 11:case"end":return o.stop()}}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=0,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(t||0===r)&&(r=e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}));n(12);var r,o=n(16),a=n(0);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=(i(r={},a.g.sdkLoadMainScene,0),i(r,a.g.playableShow,0),i(r,a.g.firstTouchPlayable,0),i(r,a.b.loadMainScene,0),i(r,a.b.startPlayPlayable,0),i(r,a.b.finishPlayPlayable,0),r),u=c;function s(e){Object(o.e)(c,e)&&(c[e]=1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(21),o=/#|\.prototype\./,a=function(e,t){var n=c[i(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",s=a.POLYFILL="P";e.exports=a},function(e,t){e.exports=!1},function(e,t,n){var r=n(37);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var r=n(38),o=n(157),a=n(134),i=n(90),c=n(159),u=n(130),s=n(108)("IE_PROTO"),l=function(){},d=function(){var e,t=u("iframe"),n=a.length;for(t.style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),d=e.F;n--;)delete d.prototype[a[n]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[s]=e):n=d(),void 0===t?n:o(n,t)},i[s]=!0},function(e,t,n){var r=n(158),o=n(134);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(21),o=n(62),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(158),o=n(134).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(39).f,o=n(44),a=n(22)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports={}},function(e,t,n){var r=n(96);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(21),o=n(22),a=n(142),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(89),o=n(39),a=n(79);e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t){var n=[][e];return!n||!r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(10),o=n(67).some;r({target:"Array",proto:!0,forced:n(101)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));n(4),n(6),n(7);var r=n(9),o=n(14);function a(){var e,t,n,a,i;return regeneratorRuntime.async((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,regeneratorRuntime.awrap(Object(r.a)("isViewable",{},!1,500));case 2:if(a=c.sent,void 0!==(i=null!==(e=null==a?void 0:a.viewStatus)&&void 0!==e?e:null===(t=a)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.viewStatus)){c.next=6;break}return c.abrupt("return",void 0);case 6:return Object(o.c)(o.b.VIEWABLE,o.a.VIEWABLE_MUTE),c.abrupt("return",!0===i||1===i);case 8:case"end":return c.stop()}}))}function i(){var e,t,n,a,i;return regeneratorRuntime.async((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,regeneratorRuntime.awrap(Object(r.a)("getVolume",{},!1,500));case 2:if(void 0!==(a=c.sent)){c.next=5;break}return c.abrupt("return",void 0);case 5:if(void 0!==(i=null!==(e=null==a?void 0:a.endcard_mute)&&void 0!==e?e:null===(t=a)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.endcard_mute)){c.next=8;break}return c.abrupt("return",void 0);case 8:return Object(o.c)(o.b.MUTED,o.a.VIEWABLE_MUTE),c.abrupt("return",!0===i||1===i);case 10:case"end":return c.stop()}}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));n(12);var r,o=n(1),a=n(8);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return void 0!==Object(o.h)("orientation")?"portrait"===Object(o.h)("orientation"):Object(o.q)()}!function(e){e.zero="zero",e.ninety="ninety",e.twoSeventy="twoSeventy"}(r||(r={}));var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"_html",void 0),c(this,"_dom",void 0)}var t,n,s;return t=e,(n=[{key:"getRotateAngle",value:function(e){switch(e.materialDirection){case a.l.portrait:return u()?r.zero:r.twoSeventy;case a.l.landscape:return u()?r.ninety:r.zero;default:return r.zero}}},{key:"html",get:function(){return this._html},set:function(e){this._html=e,this._dom=Object(o.c)(this.html)}},{key:"dom",get:function(){return this._dom}}])&&i(t.prototype,n),s&&i(t,s),e}()},function(e,t,n){var r=n(22),o=n(91),a=n(52),i=r("unscopables"),c=Array.prototype;null==c[i]&&a(c,i,o(null)),e.exports=function(e){c[i][e]=!0}},function(e,t,n){"use strict";var r=n(10),o=n(93),a=n(53),i=n(101),c=[].join,u=o!=Object,s=i("join",",");r({target:"Array",proto:!0,forced:u||s},{join:function(e){return c.call(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(10),o=n(146),a=n(51);r({target:"String",proto:!0,forced:!n(148)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(78),o=n(109),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(62);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(44),o=n(50),a=n(108),i=n(177),c=a("IE_PROTO"),u=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){"use strict";var r,o,a=n(145),i=RegExp.prototype.exec,c=String.prototype.replace,u=i,s=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(s||l)&&(u=function(e){var t,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",a.call(u))),s&&(t=u.lastIndex),r=i.call(u,e),s&&r&&(u.lastIndex=u.global?r.index+r[0].length:t),l&&r&&r.length>1&&c.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=u},function(e,t,n){"use strict";var r=n(115),o=n(147),a=n(38),i=n(51),c=n(169),u=n(149),s=n(45),l=n(116),d=n(113),f=n(21),p=[].push,v=Math.min,b=!f((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(i(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,a);for(var c,u,s,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,b=new RegExp(e.source,f+"g");(c=d.call(b,r))&&!((u=b.lastIndex)>v&&(l.push(r.slice(v,c.index)),c.length>1&&c.index<r.length&&p.apply(l,c.slice(1)),s=c[0].length,v=u,l.length>=a));)b.lastIndex===c.index&&b.lastIndex++;return v===r.length?!s&&b.test("")||l.push(""):l.push(r.slice(v)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=i(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var d=a(e),f=String(this),p=c(d,RegExp),h=d.unicode,g=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(b?"y":"g"),y=new p(b?d:"^(?:"+d.source+")",g),m=void 0===o?4294967295:o>>>0;if(0===m)return[];if(0===f.length)return null===l(y,f)?[f]:[];for(var _=0,w=0,O=[];w<f.length;){y.lastIndex=b?w:0;var j,k=l(y,b?f:f.slice(w));if(null===k||(j=v(s(y.lastIndex+(b?0:w)),f.length))===_)w=u(f,w,h);else{if(O.push(f.slice(_,w)),O.length===m)return O;for(var x=1;x<=k.length-1;x++)if(O.push(k[x]),O.length===m)return O;w=_=j}}return O.push(f.slice(_)),O}]}),!b)},function(e,t,n){"use strict";var r=n(52),o=n(47),a=n(21),i=n(22),c=n(113),u=i("species"),s=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var f=i(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),v=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!p||!v||"replace"===e&&!s||"split"===e&&!l){var b=/./[f],h=n(f,""[e],(function(e,t,n,r,o){return t.exec===c?p&&!o?{done:!0,value:b.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),g=h[0],y=h[1];o(String.prototype,e,g),o(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),d&&r(RegExp.prototype[f],"sham",!0)}}},function(e,t,n){var r=n(62),o=n(113);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";var r=n(115),o=n(38),a=n(51),i=n(210),c=n(116);r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),u=String(this),s=a.lastIndex;i(s,0)||(a.lastIndex=0);var l=c(a,u);return i(a.lastIndex,s)||(a.lastIndex=s),null===l?-1:l.index}]}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n(15),n(54),n(191),n(63),n(68),n(55),n(152),n(114),n(18);var r=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function o(e){var t,n,r=e.replace(/^v/,"").replace(/\+.*$/,""),o=(n="-",-1===(t=r).indexOf(n)?t.length:t.indexOf(n)),a=r.substring(0,o).split(".");return a.push(r.substring(o+1)),a}function a(e){return isNaN(Number(e))?e:Number(e)}function i(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!r.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function c(e,t){[e,t].forEach(i);for(var n=o(e),r=o(t),c=0;c<Math.max(n.length-1,r.length-1);c++){var u=parseInt(n[c]||"0",10),s=parseInt(r[c]||"0",10);if(u>s)return 1;if(s>u)return-1}var l=n[n.length-1],d=r[r.length-1];if(l&&d)for(var f=l.split(".").map(a),p=d.split(".").map(a),v=0;v<Math.max(f.length,p.length);v++){if(void 0===f[v]||"string"==typeof p[v]&&"number"==typeof f[v])return-1;if(void 0===p[v]||"string"==typeof f[v]&&"number"==typeof p[v])return 1;if(f[v]>p[v])return 1;if(p[v]>f[v])return-1}else if(l||d)return l?-1:1;return 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));n(11),n(33),n(34),n(46),n(24),n(15),n(76),n(23),n(17),n(63),n(35),n(12),n(31),n(36),n(30),n(4),n(6),n(43),n(107),n(26),n(18),n(27),n(7);var r=n(16),o=n(29),a=n(20),i=n(9),c=n(13),u=n(28),s=n(58),l=n(122);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var b=document.createElement("iframe"),h=function(e,t,n){var r,o="";n&&Object.keys(n).forEach((function(e){var t=n[e];o="extra"===e&&"object"===v(t)?"&extra=".concat(encodeURIComponent(JSON.stringify(t))):"&".concat(e,"=").concat(encodeURIComponent(t))}));var c,u,s,l,d="bytedance://".concat("log_event","?category=").concat("app_union","&tag=").concat(e,"&label=").concat(t).concat(o);(null==n?void 0:null===(r=n.extra)||void 0===r?void 0:r.value)&&(d+="&value=".concat(n.extra.value)),a.d?Object(i.a)("dynamicTrack",{trackData:d},!1):"function"==typeof(l=console.log)&&l.toString().includes("[native code]")?console.log(d):(b&&b.parentNode&&b.contentWindow?(null===(s=b.contentWindow.console)||void 0===s?void 0:s.log)||console.log:(b||(b=document.createElement("iframe")),b.parentNode||(b.style.display="none",document.body.append(b)),(null===(c=b.contentWindow)||void 0===c?void 0:null===(u=c.console)||void 0===u?void 0:u.log)||console.log))(d)},g=function(e,t){var n,r,o=arguments;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n=o.length>2&&void 0!==o[2]?o[2]:"embeded_ad",r=o.length>3&&void 0!==o[3]?o[3]:"playable",!a.e){i.next=4;break}return i.abrupt("return");case 4:t&&t.params&&(t.playable_params=JSON.stringify(t.params)),Number(Object(c.b)("use_iframe_event"))>0&&Object(u.b)()?u.a.sendMessageToParent("send_track",{label:"playable_track",data:t}):Object(s.d)()?Object(l.a)(n,e,t,r):y(n,e,t,r);case 6:case"end":return i.stop()}}))};function y(e,t,n,a){var i,c,u;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,regeneratorRuntime.awrap(Object(o.a)());case 2:i=s.sent,c={tag:e,is_ad_event:"1",refer:a},i&&(c=f({},Object(r.a)(i),{},c),u=i.cid||i.ad_id,c.value=u?+u:0),n&&(c.ad_extra_data=JSON.stringify(n)),h(e,t,{extra:c});case 7:case"end":return s.stop()}}))}},function(e,t,n){"use strict";n(11),n(33),n(34),n(24),n(15),n(23),n(35),n(12),n(31),n(36),n(30),n(4),n(68),n(6),n(26),n(18),n(27),n(7);var r,o,a,i=n(29),c=n(13),u=n(8);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=(s(r={},u.j.floatDefault,u.g.default),s(r,u.j.floatOne,u.g.floatOne),s(r,u.j.floatTwo,u.g.floatTwo),s(r,u.j.floatThree,u.g.floatThree),s(r,u.j.floatFour,u.g.floatFour),s(r,u.j.floatFive,u.g.floatFive),s(r,u.j.floatSix,u.g.floatSix),s(r,u.j.floatSeven,u.g.floatSeven),s(r,u.j.floatEight,u.g.floatEight),r),d=(s(o={},u.h.icon,u.e.icon),s(o,u.h.iconText,u.e.iconText),o),f=(s(a={},u.b.dark,u.f.dark),s(a,u.b.white,u.f.white),s(a,u.b.gradient,u.f.gradient),a),p=n(25),v=n(9),b=n(42);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return w}));var _=function(e){var t,n;try{n=void 0===e?{}:JSON.parse(e)}catch(e){console.error(e),n={}}var r,o="1"===Object(c.b)("display_download_button"),a=n,i=a.playable_download_bar_style,s=a.playable_bar_convert_area_type,v=a.creative_tags,b=a.playable_convert_area,h=a.app_name,y=a.icon_url,_=a.description,w=a.star,O=a.dco_materials,j=a.pure_playable_pop_ups,k=a.endcard,x=a.is_cloud_game,S=a.reward_text,E=a.cloud_game_close_button,P=a.display_cloud_game_close_button,M=a.cloud_game_prompt,A=a.close_playable_button_style,T=a.close_playable_button_text,L=a.close_playable_button_coordinate,I=a.cloud_game_resume_ad_button_text,D=a.display_control_panel,N=a.deeplink_url,R=a.ulink_url,C=a.ad_slot_type,B=a.playable_pre_close_time,F=a.back_video_delay_time,V=a.is_pl_pre_5element,U=a.pl_pre_5element_version,z=a.dpa_data,J=a.ad_label,G=null!==(r=b)&&"object"===m(r)?b:{},H=G.float_type,W=G.desc_type,Q=G.star_type,Y=G.download_button_type,q=G.background_color,X=G.button_text,K=G.bar_button_text,Z=h&&y,$=u.g.default;void 0!==H&&0!==H?$=l[H]:1===W&&Z&&_?$=u.g.desc:1===Q&&Z&&w&&($=u.g.star);var ee,te=d[Y],ne=f[q],re="1"===Object(c.b)("display_download_banner"),oe=Object(c.b)("cloud_game_close_button"),ae=void 0===oe?void 0:parseInt(oe),ie=null!==(t=Object(c.b)("cloud_game_prompt"))&&void 0!==t?t:M,ce=Object(c.b)("game_direction");ee=void 0===ce?(void 0!==Object(c.b)("orientation")?"portrait"===Object(c.b)("orientation"):Object(p.d)())?u.l.portrait:u.l.landscape:parseInt(ce);var ue=!1;return ue=void 0!==D&&1===D,g({},n,{displayDownloadButton:1===n.display_playable_download_button||o,displayPlayableGuide:1===n.playable_interaction_notification,displayDownloadBanner:re,appName:n.app_name||"",appIcon:n.icon_url||"",appDesc:n.description||"",appStar:n.star||5,buttonText:n.button_text||"",convertAreaType:$,convertAreaButtonType:te,convertAreaTheme:ne,convertAreaButtonText:X||"",convertAreaBarButtonText:K||"",dcoMaterials:O,playableGuideStyle:j||0,endcard:k,cloudGameCloseButton:E||ae,displayCloudGameCloseButton:!!P,cloudGamePrompt:ie,closePlayableButtonStyle:A||u.d.none,closePlayableButtonText:T||"结束试玩",closePlayableButtonCoordinate:L||u.c.left,cloudGameResumeAdButton:I||"跳过",materialDirection:ee,nativeUiDisplay:ue,deeplinkUrl:N,ulinkUrl:R,isCloudGame:!0===x,rewardText:S||"试玩时间也计入奖励时长",adSlotType:C,playablePreCloseTime:B,backVideoDelayTime:F,isPlPreFiveElement:V,plPreFiveElementVersion:U||1,playableDownloadBarStyle:i||"",playableBarConvertAreaType:s||u.k.onlyDownloadBtn,creativeTags:v||null,dpaData:z||"",adLabel:J||{}})},w=function(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e=0,2,t.abrupt("return",Promise.race([new Promise((function(t){var n;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Object(v.a)(b.f,{},!0));case 2:if(n=r.sent){r.next=5;break}return r.abrupt("return");case 5:if(e++,n.playable_style){r.next=9;break}return e>=2&&t(g({resSource:"playable_stye_jsb"},_(void 0))),r.abrupt("return");case 9:t(g({resSource:"playable_stye_jsb"},_(n.playable_style)));case 10:case"end":return r.stop()}}))})),new Promise((function(t){var n,r;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(Object(i.a)());case 2:if(n=o.sent){o.next=5;break}return o.abrupt("return");case 5:if(e++,(r=JSON.parse(n.log_extra||"{}")).playable_style){o.next=10;break}return e>=2&&t(g({resSource:"ad_info_jsb"},_(void 0))),o.abrupt("return");case 10:t(g({resSource:"ad_info_jsb"},_(r.playable_style)));case 11:case"end":return o.stop()}}))})),new Promise((function(e){setTimeout((function(){return e(g({resSource:"out_time_limit"},_(void 0)))}),1e3)}))]));case 3:case"end":return t.stop()}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(40),n(4),n(6),n(7);var r,o=n(25),a=n(29),i=n(13),c=n(16);!function(e){e[e.download=0]="download",e[e.store=2]="store"}(r||(r={}));var u=void 0,s=void 0,l=function e(){var t,n,l,d,f,p;return regeneratorRuntime.async((function(v){for(;;)switch(v.prev=v.next){case 0:if(s){v.next=10;break}return v.next=3,regeneratorRuntime.awrap(Object(a.a)());case 3:if(u=v.sent){v.next=6;break}return v.abrupt("return",new Promise((function(t){setTimeout((function(){t(e())}),1e3)})));case 6:if(t=Object(i.c)(),n=Object(i.b)("event_tag"),l=Object(i.a)(),u&&t&&(s={id:t.id||u.cid,pkg_name:t.pkg_name,download_url:t.download_url,name:t.name,source:"recommend",from_page:"endcard",card_type:"3",extra:{page:"endcard",position:-1,app_type:-1,content_type:"card",os_type:Object(o.b)()?"android":"ios",enter_from_merge:null==l?void 0:l.enter_from_merge,enter_method:null==l?void 0:l.enter_method},is_ad:1,log_extra:u.log_extra,web_url:location.href,click_track_url_list:u.track_url_list,compliance_data:u.compliance_data},n&&(s.event_tag=n),u.log_extra))try{(null==(d=Object(c.f)(u.log_extra))?void 0:d.compliance_data)&&1===(null==(p=Object(c.f)(d.compliance_data))?void 0:null===(f=p.ad)||void 0===f?void 0:f.appstore_permit)&&(s.download_mode=r.store)}catch(e){console.error("Error in settomg download_mode",e)}case 10:return v.abrupt("return",s);case 11:case"end":return v.stop()}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(4),n(6),n(7);var r=n(29),o=n(9),a="app_union";function i(e,t,n,i){var c,u;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return n.params.app_id=/trill(\s|\/|_)(\S)/i.test(navigator.userAgent)?1180:1123,c={category:a,tag:e,nt:4,is_ad_event:1,ad_extra_data:JSON.stringify(n),refer:i},s.next=4,regeneratorRuntime.awrap(Object(r.a)());case 4:(u=s.sent)&&(c.value=u.cid,c.log_extra=u.log_extra),Object(o.a)("sendLog",{extJson:c,eventName:e,labelName:t,extValue:""},!1);case 7:case"end":return s.stop()}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(23),n(4),n(6),n(26),n(27),n(7);var r=n(5),o=void 0,a=new Promise((function(e){o=e}));function i(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.race([a,new Promise((function(e){setTimeout((function(){return e(!1)}),1e3)}))]));case 1:case"end":return e.stop()}}))}r.c.once((function(e){var t=e.viewable;o?o(!t):console.error("Error in initViewable: isPrerenderResolve is undefined")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return h}));n(11),n(24),n(15),n(35),n(12),n(31),n(36),n(30),n(4),n(6),n(18),n(7);var r=n(25),o=(n(13),n(121)),a=n(9),i=n(29),c=n(16),u=n(3),s=n(0),l=n(153),d=n(119);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t,n,u,s,l,d;return regeneratorRuntime.async((function(f){for(;;)switch(f.prev=f.next){case 0:if(t=e.downloadUrl,n=e.appId,u=e.deeplinkUrl,s=e.deepLink,!Object(r.b)()){f.next=9;break}return f.next=4,regeneratorRuntime.awrap(Object(o.a)());case 4:void 0!==(l=f.sent)&&l.download_url!==t&&((l=Object(c.a)(l)).download_url=t,u&&(l.deep_link=p({},l.deep_link||{},{deeplink_url:u})),s&&(l.deep_link=p({},l.deep_link||{},{},s))),Object(a.a)("download_app_ad",{data:l},!1),f.next=13;break;case 9:return f.next=11,regeneratorRuntime.awrap(Object(i.a)());case 11:d=f.sent,Object(a.a)("open_app_store",p({app_id:n,download_url:t,skan_parameters:null==d?void 0:d.skan_parameters,preload_web:6,web_url:location.href,log_extra:null==d?void 0:d.log_extra,ad_id:(null==d?void 0:d.ad_id)||(null==d?void 0:d.cid),compliance_data:null==d?void 0:d.compliance_data},u||s?{deep_link:p({deeplink_url:u},s||{})}:{}),!1);case 13:case"end":return f.stop()}}))}function h(e){return Object(u.a)(s.g.clickDownloadButton),l.a||Object(d.a)("click"),b("string"==typeof e?{deeplinkUrl:e}:{deepLink:e})}},function(e){e.exports=JSON.parse('{"a":"7.0.2"}')},function(e,t,n){var r=n(10),o=n(21),a=n(50),i=n(112),c=n(177);r({target:"Object",stat:!0,forced:o((function(){i(1)})),sham:!c},{getPrototypeOf:function(e){return i(a(e))}})},function(e,t,n){n(10)({target:"Object",stat:!0},{setPrototypeOf:n(132)})},function(e,t,n){var r=n(86),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},function(e,t,n){var r=n(19),o=n(52);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(19),o=n(37),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){var r=n(37),o=n(132);e.exports=function(e,t,n){var a,i;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(i=a.prototype)&&i!==n.prototype&&o(e,i),e}},function(e,t,n){var r=n(38),o=n(196);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return r(n),o(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},function(e,t,n){var r=n(53),o=n(45),a=n(128),i=function(e){return function(t,n,i){var c,u=r(t),s=o(u.length),l=a(i,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(51),o="["+n(136)+"]",a=RegExp("^"+o+o+"*"),i=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(i,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r Â áš€â€€â€â€‚â€ƒâ€„â€…â€†â€‡â€ˆâ€‰â€Šâ€¯âŸă€€\u2028\u2029\ufeff"},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(81),o=n(39),a=n(22),i=n(32),c=a("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(38),o=n(166),a=n(45),i=n(98),c=n(167),u=n(168),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,d){var f,p,v,b,h,g,y,m=i(t,n,l?2:1);if(d)f=e;else{if("function"!=typeof(p=c(e)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,b=a(e.length);b>v;v++)if((h=l?m(r(y=e[v])[0],y[1]):m(e[v]))&&h instanceof s)return h;return new s(!1)}f=p.call(e)}for(g=f.next;!(y=g.call(f)).done;)if("object"==typeof(h=u(f,m,y.value,l))&&h&&h instanceof s)return h;return new s(!1)}).stop=function(e){return new s(!0,e)}},function(e,t,n){var r=n(22)("iterator"),o=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},function(e,t,n){var r,o,a=n(19),i=n(172),c=a.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){var r=n(37),o=n(111),a=n(22)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var r=n(10),o=n(206),a=n(112),i=n(132),c=n(95),u=n(52),s=n(47),l=n(22),d=n(88),f=n(97),p=n(176),v=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,h=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,p,y,m){o(n,t,l);var _,w,O,j=function(e){if(e===p&&P)return P;if(!b&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",x=!1,S=e.prototype,E=S[h]||S["@@iterator"]||p&&S[p],P=!b&&E||j(p),M="Array"==t&&S.entries||E;if(M&&(_=a(M.call(new e)),v!==Object.prototype&&_.next&&(d||a(_)===v||(i?i(_,v):"function"!=typeof _[h]&&u(_,h,g)),c(_,k,!0,!0),d&&(f[k]=g))),"values"==p&&E&&"values"!==E.name&&(x=!0,P=function(){return E.call(this)}),d&&!m||S[h]===P||u(S,h,P),f[t]=P,p)if(w={values:j("values"),keys:y?P:j("keys"),entries:j("entries")},m)for(O in w)!b&&!x&&O in S||s(S,O,w[O]);else r({target:t,proto:!0,forced:b||x},w);return w}},function(e,t,n){"use strict";var r=n(38);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(147);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(37),o=n(62),a=n(22)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(22)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(179).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(115),o=n(38),a=n(45),i=n(51),c=n(149),u=n(116);r("match",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),s=String(this);if(!i.global)return u(i,s);var l=i.unicode;i.lastIndex=0;for(var d,f=[],p=0;null!==(d=u(i,s));){var v=String(d[0]);f[p]=v,""===v&&(i.lastIndex=c(s,a(i.lastIndex),l)),p++}return 0===p?null:f}]}))},function(e,t,n){"use strict";var r=n(10),o=n(128),a=n(86),i=n(45),c=n(50),u=n(143),s=n(100),l=n(99),d=Math.max,f=Math.min;r({target:"Array",proto:!0,forced:!l("splice")},{splice:function(e,t){var n,r,l,p,v,b,h=c(this),g=i(h.length),y=o(e,g),m=arguments.length;if(0===m?n=r=0:1===m?(n=0,r=g-y):(n=m-2,r=f(d(a(t),0),g-y)),g+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(l=u(h,r),p=0;p<r;p++)(v=y+p)in h&&s(l,p,h[v]);if(l.length=r,n<r){for(p=y;p<g-r;p++)b=p+n,(v=p+r)in h?h[b]=h[v]:delete h[b];for(p=g;p>g-r+n;p--)delete h[p-1]}else if(n>r)for(p=g-r;p>y;p--)b=p+n-1,(v=p+r-1)in h?h[b]=h[v]:delete h[b];for(p=0;p<n;p++)h[p+y]=arguments[p+2];return h.length=g-r+n,l}})},function(e,t,n){"use strict";var r=n(115),o=n(38),a=n(50),i=n(45),c=n(86),u=n(51),s=n(149),l=n(116),d=Math.max,f=Math.min,p=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n){return[function(n,r){var o=u(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):t.call(String(o),n,r)},function(e,a){var u=n(t,e,this,a);if(u.done)return u.value;var p=o(e),v=String(this),b="function"==typeof a;b||(a=String(a));var h=p.global;if(h){var g=p.unicode;p.lastIndex=0}for(var y=[];;){var m=l(p,v);if(null===m)break;if(y.push(m),!h)break;""===String(m[0])&&(p.lastIndex=s(v,i(p.lastIndex),g))}for(var _,w="",O=0,j=0;j<y.length;j++){m=y[j];for(var k=String(m[0]),x=d(f(c(m.index),v.length),0),S=[],E=1;E<m.length;E++)S.push(void 0===(_=m[E])?_:String(_));var P=m.groups;if(b){var M=[k].concat(S,x,v);void 0!==P&&M.push(P);var A=String(a.apply(void 0,M))}else A=r(k,v,x,S,P,a);x>=O&&(w+=v.slice(O,x)+A,O=x+k.length)}return w+v.slice(O)}];function r(e,n,r,o,i,c){var u=r+e.length,s=o.length,l=b;return void 0!==i&&(i=a(i),l=v),t.call(c,l,(function(t,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>s){var d=p(l/10);return 0===d?t:d<=s?void 0===o[d-1]?a.charAt(1):o[d-1]+a.charAt(1):t}c=o[l-1]}return void 0===c?"":c}))}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));n(54),n(55),n(117);var r=location.search.indexOf("no_playable_click=1")>-1;function o(e){r=e}},function(e,t,n){var r=n(221);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};n(188)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(32),o=n(21),a=n(130);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(78);e.exports=r("native-function-to-string",Function.toString)},function(e,t,n){var r=n(32),o=n(39),a=n(38),i=n(92);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=i(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(44),o=n(53),a=n(133).indexOf,i=n(90);e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(i,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~a(s,n)||s.push(n));return s}},function(e,t,n){var r=n(81);e.exports=r("document","documentElement")},function(e,t,n){e.exports=n(19)},function(e,t,n){var r=n(62),o=n(22)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var r=n(21);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(44),o=n(164),a=n(66),i=n(39);e.exports=function(e,t){for(var n=o(t),c=i.f,u=a.f,s=0;s<n.length;s++){var l=n[s];r(e,l)||c(e,l,u(t,l))}}},function(e,t,n){var r=n(81),o=n(94),a=n(137),i=n(38);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(i(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(47);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(22),o=n(97),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},function(e,t,n){var r=n(161),o=n(97),a=n(22)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(38);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(38),o=n(96),a=n(22)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||null==(n=r(i)[a])?t:o(n)}},function(e,t,n){var r,o,a,i=n(19),c=n(21),u=n(62),s=n(98),l=n(159),d=n(130),f=n(171),p=i.location,v=i.setImmediate,b=i.clearImmediate,h=i.process,g=i.MessageChannel,y=i.Dispatch,m=0,_={},w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},O=function(e){return function(){w(e)}},j=function(e){w(e.data)},k=function(e){i.postMessage(e+"",p.protocol+"//"+p.host)};v&&b||(v=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++m]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(m),m},b=function(e){delete _[e]},"process"==u(h)?r=function(e){h.nextTick(O(e))}:y&&y.now?r=function(e){y.now(O(e))}:g&&!f?(a=(o=new g).port2,o.port1.onmessage=j,r=s(a.postMessage,a,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||c(k)?r="onreadystatechange"in d("script")?function(e){l.appendChild(d("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(O(e),0)}:(r=k,i.addEventListener("message",j,!1))),e.exports={set:v,clear:b}},function(e,t,n){var r=n(172);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(81);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(96),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){t.f=n(22)},function(e,t,n){var r=n(160),o=n(44),a=n(174),i=n(39).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";var r,o,a,i=n(112),c=n(52),u=n(44),s=n(22),l=n(88),d=s("iterator"),f=!1;[].keys&&("next"in(a=[].keys())?(o=i(i(a)))!==Object.prototype&&(r=o):f=!0),null==r&&(r={}),l||u(r,d)||c(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(21);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(10),o=n(45),a=n(146),i=n(51),c=n(148),u="".endsWith,s=Math.min;r({target:"String",proto:!0,forced:!c("endsWith")},{endsWith:function(e){var t=String(i(this));a(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),c=void 0===n?r:s(o(n),r),l=String(e);return u?u.call(t,l,c):t.slice(c-l.length,c)===l}})},function(e,t,n){var r=n(86),o=n(51),a=function(e){return function(t,n){var a,i,c=String(o(t)),u=r(n),s=c.length;return u<0||u>=s?e?"":void 0:(a=c.charCodeAt(u))<55296||a>56319||u+1===s||(i=c.charCodeAt(u+1))<56320||i>57343?e?c.charAt(u):a:e?c.slice(u,u+2):i-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(90),o=n(37),a=n(44),i=n(39).f,c=n(109),u=n(208),s=c("meta"),l=0,d=Object.isExtensible||function(){return!0},f=function(e){i(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,s)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[s].objectID},getWeakData:function(e,t){if(!a(e,s)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[s].weakData},onFreeze:function(e){return u&&p.REQUIRED&&d(e)&&!a(e,s)&&f(e),e}};r[s]=!0},function(e,t,n){"use strict";var r=n(67).forEach,o=n(101);e.exports=o("forEach")?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(e,t,n){"use strict";var r=n(10),o=n(67).findIndex,a=n(105),i=!0;"findIndex"in[]&&Array(1).findIndex((function(){i=!1})),r({target:"Array",proto:!0,forced:i},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findIndex")},function(e,t,n){"use strict";var r=n(10),o=n(212).left;r({target:"Array",proto:!0,forced:n(101)("reduce")},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(32),o=n(92),a=n(53),i=n(110).f,c=function(e){return function(t){for(var n,c=a(t),u=o(c),s=u.length,l=0,d=[];s>l;)n=u[l++],r&&!i.call(c,n)||d.push(e?[n,c[n]]:c[n]);return d}};e.exports={entries:c(!0),values:c(!1)}},function(e,t,n){"use strict";n(4),n(6),n(7);var r,o,a=n(20),i=n(153),c=n(1),u=n(72),s=n(3),l=n(5),d=n(0),f=(n(11),n(24),n(15),n(35),n(12),n(31),n(36),n(30),n(18),n(120));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){var e,t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0!==Object(c.j)()){n.next=3;break}return n.abrupt("return",void 0);case 3:return e=v({isUrlParams:!0},Object(c.j)()),n.next=6,regeneratorRuntime.awrap(Object(c.p)());case 6:if(!n.sent){n.next=12;break}return n.next=9,regeneratorRuntime.awrap(Object(f.a)());case 9:void 0!==(t=n.sent).deeplinkUrl&&(e.deeplink_url=t.deeplinkUrl),void 0!==t.ulinkUrl&&(e.ulink_url=t.ulinkUrl);case 12:return n.abrupt("return",e);case 13:case"end":return n.stop()}}))}!function(e){e[e.AdDownload=1]="AdDownload",e[e.Store=2]="Store",e[e.Clue=3]="Clue"}(r||(r={})),function(e){e[e.CUSTOM=0]="CUSTOM",e[e.TEMPLATE=1]="TEMPLATE",e[e.POWERPLAYABLE=2]="POWERPLAYABLE",e[e.PLAYTEMPLATE=3]="PLAYTEMPLATE",e[e.CREATIVE_LAB=4]="CREATIVE_LAB",e[e.CLAB_EDITOR=5]="CLAB_EDITOR",e[e.MAPI_TEMPLATE=6]="MAPI_TEMPLATE",e[e.SOURCE_CODE_CHECKED=7]="SOURCE_CODE_CHECKED"}(o||(o={}));var g=n(2),y=n(28),m=n(60),_=n(59),w=n(58),O=(n(17),n(9)),j=n(124),k=n(74);function x(e,t){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Object(j.a)({downloadUrl:e,deeplinkUrl:t}));case 1:case"end":return n.stop()}}))}function S(e){var t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t=regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){if(void 0!==g.a.viewable){var t=function t(){g.a.viewable||(e(!0),clearTimeout(n),g.a.removeEventListener("viewableChange",t))};g.a.addEventListener("viewableChange",t);var n=setTimeout((function(){g.a.removeEventListener("viewableChange",t),e(!1)}),2e3)}else var r=0,o=Date.now(),a=setInterval((function(){r<18?r++:(e(Date.now()-o>2e3||!g.a.viewable),clearTimeout(a))}),100)})));case 1:case"end":return e.stop()}})),Object(k.a)(e),n.abrupt("return",t);case 3:case"end":return n.stop()}}))}var E={downloadAppInPangle:function(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.ulink_url){t.next=6;break}return t.next=3,regeneratorRuntime.awrap(S(e.ulink_url));case 3:if(!t.sent){t.next=6;break}return t.abrupt("return");case 6:if(!e.deeplink_url){t.next=12;break}return t.next=9,regeneratorRuntime.awrap(S(e.deeplink_url));case 9:if(!t.sent){t.next=12;break}return t.abrupt("return");case 12:if(e.download_url)x(e.download_url);else if(e.external_url)try{Object(O.a)("landscape_click",{},!1),Object(k.a)(e.external_url)}catch(t){Object(k.a)(e.external_url)}case 13:case"end":return t.stop()}}))}};var P={downloadAppInTikTok:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(c.a)("playableConvertButtonClick",{},!1);case 1:case"end":return e.stop()}}))},sendEventTT:n(122).a},M=Object(w.d)()?P:E;n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return V})),n.d(t,"c",(function(){return U}));var A,T,L=!1,I=!0,D=1e4,N=0;l.b.on((function(){L=!0,clearTimeout(A),A=setTimeout((function(){L=!1}),500)}));var R=!0;function C(e,t){var n,o,l,f,p,v;return regeneratorRuntime.async((function(b){for(;;)switch(b.prev=b.next){case 0:return(n=!!(R&&(null==t?void 0:t.skipCheckClick))||L)&&(R=!1),b.next=4,regeneratorRuntime.awrap(h());case 4:if(o=b.sent,l=!1===(null==o?void 0:o.isUrlParams)&&o.convertType===r.Clue,(f=null==t?void 0:t.delayTime)&&(f<N||f>D)&&(f=void 0,console.error("Incorrect Range Of Delaytime, DelayTime Taking No Effect")),n||l){b.next=12;break}return Object(s.a)(d.g.monitorAutoClick),a.f&&(p={type:m.a.ACTIVE_TOUCH_ERROR},Object(_.a)(p)),b.abrupt("return");case 12:Object(u.c)(),(a.f||a.c)&&(v={type:m.a.OPEN_APP_STORE},Object(_.a)(v)),Object(c.w)("click_start_endcard"),i.a||((null==t?void 0:t.autoClick)?Object(c.w)("click",{auto_click:!0}):Object(c.w)("click")),I&&(I=!1,Object(c.a)("opportunityToSendClick",{},!1)),L=!1,clearTimeout(A),clearTimeout(T),f?T=setTimeout((function(){if(g.a.viewable)B(o,e);else{g.a.addEventListener("viewableChange",(function t(){B(o,e),g.a.removeEventListener("viewableChange",t)}))}}),f):B(o,e);case 21:case"end":return b.stop()}}))}function B(e,t){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Object(y.b)()){n.next=3;break}return y.a.sendMessageToParent("convert"),n.abrupt("return");case 3:if(!(null==M?void 0:M.downloadAppInTikTok)){n.next=7;break}return Object(s.a)(d.g.sdkOpenAppStore,{trigger:t}),null==M||M.downloadAppInTikTok(),n.abrupt("return");case 7:if(e){n.next=10;break}return n.abrupt("return");case 10:if(Object(s.a)(d.g.sdkOpenAppStore,{trigger:t}),e.isUrlParams){n.next=15;break}return n.next=14,regeneratorRuntime.awrap(F(e));case 14:return n.abrupt("return");case 15:if(!(null==M?void 0:M.downloadAppInPangle)){n.next=18;break}return null==M||M.downloadAppInPangle(e),n.abrupt("return");case 18:case"end":return n.stop()}}))}function F(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e.convertType,t.next=t.t0===r.AdDownload?3:t.t0===r.Store?4:t.t0===r.Clue?5:6;break;case 3:throw new Error("Wrong Value of convertType in convertWithMetaInfo");case 4:case 5:return t.abrupt("break",8);case 6:e.convertType;case 8:case"end":return t.stop()}}))}function V(e){C("custom",e)}function U(e){I=e}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,c,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var i=0;i<e.length;i++){var c=e[i];null!=c[0]&&r[c[0]]||(n&&!c[2]?c[2]=n:n&&(c[2]="(".concat(c[2],") and (").concat(n,")")),t.push(c))}},t}},function(e,t,n){"use strict";var r,o={},a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}();function c(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=t.base?a[0]+t.base:a[0],c={css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(c):n.push(r[i]={id:i,parts:[c]})}return n}function u(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=o[r.id],i=0;if(a){for(a.refs++;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(h(r.parts[i],t))}else{for(var c=[];i<r.parts.length;i++)c.push(h(r.parts[i],t));o[r.id]={id:r.id,refs:1,parts:c}}}}function s(e){var t=document.createElement("style");if(void 0===e.attributes.nonce){var r=n.nc;r&&(e.attributes.nonce=r)}if(Object.keys(e.attributes).forEach((function(n){t.setAttribute(n,e.attributes[n])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o&&e.setAttribute("media",o),a&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,b=0;function h(e,t){var n,r,o;if(t.singleton){var a=b++;n=v||(v=s(t)),r=f.bind(null,n,a,!1),o=f.bind(null,n,a,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).attributes="object"==typeof t.attributes?t.attributes:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=c(e,t);return u(n,t),function(e){for(var r=[],a=0;a<n.length;a++){var i=n[a],s=o[i.id];s&&(s.refs--,r.push(s))}e&&u(c(e,t),t);for(var l=0;l<r.length;l++){var d=r[l];if(0===d.refs){for(var f=0;f<d.parts.length;f++)d.parts[f]();delete o[d.id]}}}}},function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof(e=e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},,function(e,t,n){"use strict";var r=n(10),o=n(67).map;r({target:"Array",proto:!0,forced:!n(99)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(10),o=n(203);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(19),o=n(129),a=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=a},function(e,t,n){var r=n(19),o=n(156),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(o.call(a))},function(e,t,n){var r=n(37);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(161),o={};o[n(22)("toStringTag")]="z",e.exports="[object z]"!==String(o)?function(){return"[object "+r(this)+"]"}:o.toString},function(e,t,n){var r=n(19);e.exports=r.Promise},function(e,t,n){var r,o,a,i,c,u,s,l,d=n(19),f=n(66).f,p=n(62),v=n(170).set,b=n(171),h=d.MutationObserver||d.WebKitMutationObserver,g=d.process,y=d.Promise,m="process"==p(g),_=f(d,"queueMicrotask"),w=_&&_.value;w||(r=function(){var e,t;for(m&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?i():a=void 0,e}}a=void 0,e&&e.enter()},m?i=function(){g.nextTick(r)}:h&&!b?(c=!0,u=document.createTextNode(""),new h(r).observe(u,{characterData:!0}),i=function(){u.data=c=!c}):y&&y.resolve?(s=y.resolve(void 0),l=s.then,i=function(){l.call(s,r)}):i=function(){v.call(d,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},function(e,t,n){var r=n(38),o=n(37),a=n(173);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(19);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(32),o=n(21),a=n(92),i=n(137),c=n(110),u=n(50),s=n(93),l=Object.assign;e.exports=!l||o((function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=a(l({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,l=1,d=i.f,f=c.f;o>l;)for(var p,v=s(arguments[l++]),b=d?a(v).concat(d(v)):a(v),h=b.length,g=0;h>g;)p=b[g++],r&&!f.call(v,p)||(n[p]=v[p]);return n}:l},function(e,t,n){var r=n(53),o=n(94).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(98),o=n(50),a=n(168),i=n(166),c=n(45),u=n(100),s=n(167);e.exports=function(e){var t,n,l,d,f,p=o(e),v="function"==typeof this?this:Array,b=arguments.length,h=b>1?arguments[1]:void 0,g=void 0!==h,y=0,m=s(p);if(g&&(h=r(h,b>2?arguments[2]:void 0,2)),null==m||v==Array&&i(m))for(n=new v(t=c(p.length));t>y;y++)u(n,y,g?h(p[y],y):p[y]);else for(f=(d=m.call(p)).next,n=new v;!(l=f.call(d)).done;y++)u(n,y,g?a(d,h,[l.value,y],!0):l.value);return n.length=y,n}},function(e,t,n){"use strict";var r=n(176).IteratorPrototype,o=n(91),a=n(79),i=n(95),c=n(97),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,s,!1,!0),c[s]=u,e}},function(e,t,n){"use strict";var r=n(10),o=n(19),a=n(87),i=n(47),c=n(181),u=n(140),s=n(139),l=n(37),d=n(21),f=n(141),p=n(95),v=n(131);e.exports=function(e,t,n,b,h){var g=o[e],y=g&&g.prototype,m=g,_=b?"set":"add",w={},O=function(e){var t=y[e];i(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(h&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return h&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(h&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof g||!(h||y.forEach&&!d((function(){(new g).entries().next()})))))m=n.getConstructor(t,e,b,_),c.REQUIRED=!0;else if(a(e,!0)){var j=new m,k=j[_](h?{}:-0,1)!=j,x=d((function(){j.has(1)})),S=f((function(e){new g(e)})),E=!h&&d((function(){for(var e=new g,t=5;t--;)e[_](t,t);return!e.has(-0)}));S||((m=t((function(t,n){s(t,m,e);var r=v(new g,t,m);return null!=n&&u(n,r[_],r,b),r}))).prototype=y,y.constructor=m),(x||E)&&(O("delete"),O("has"),b&&O("get")),(E||k)&&O(_),h&&y.clear&&delete y.clear}return w[e]=m,r({global:!0,forced:m!=g},w),p(m,e),h||n.setStrong(m,e,b),m}},function(e,t,n){var r=n(21);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(39).f,o=n(91),a=n(165),i=n(98),c=n(139),u=n(140),s=n(144),l=n(138),d=n(32),f=n(181).fastKey,p=n(80),v=p.set,b=p.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e((function(e,r){c(e,l,t),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&u(r,e[s],e,n)})),p=b(t),h=function(e,t,n){var r,o,a=p(e),i=g(e,t);return i?i.value=n:(a.last=i={index:o=f(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),d?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},g=function(e,t){var n,r=p(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(l.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=p(this),n=g(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),a(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return h(this,0===e?0:e,t)}}:{add:function(e){return h(this,e=0===e?0:e,e)}}),d&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=b(t),a=b(r);s(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(19),o=n(135).trim,a=n(136),i=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==i(a+"08")||22!==i(a+"0x16");e.exports=u?function(e,t){var n=o(String(e));return i(n,t>>>0||(c.test(n)?16:10))}:i},function(e,t,n){var r=n(96),o=n(50),a=n(93),i=n(45),c=function(e){return function(t,n,c,u){r(n);var s=o(t),l=a(s),d=i(s.length),f=e?d-1:0,p=e?-1:1;if(c<2)for(;;){if(f in l){u=l[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in l&&(u=n(u,l[f],f,s));return u}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var r=n(10),o=n(67).find,a=n(105),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r({target:"Array",proto:!0,forced:i},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},function(e,t,n){var r=n(10),o=n(185).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(32),o=n(19),a=n(87),i=n(131),c=n(39).f,u=n(94).f,s=n(147),l=n(145),d=n(47),f=n(21),p=n(138),v=n(22)("match"),b=o.RegExp,h=b.prototype,g=/a/g,y=/a/g,m=new b(g)!==g;if(r&&a("RegExp",!m||f((function(){return y[v]=!1,b(g)!=g||b(y)==y||"/a/i"!=b(g,"i")})))){for(var _=function(e,t){var n=this instanceof _,r=s(e),o=void 0===t;return!n&&r&&e.constructor===_&&o?e:i(m?new b(r&&!o?e.source:e,t):b((r=e instanceof _)?e.source:e,r&&o?l.call(e):t),n?this:h,_)},w=function(e){e in _||c(_,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},O=u(b),j=0;O.length>j;)w(O[j++]);h.constructor=_,_.prototype=h,d(o,"RegExp",_)}p("RegExp")},function(e,t,n){"use strict";var r=n(10),o=n(45),a=n(146),i=n(51),c=n(148),u="".startsWith,s=Math.min;r({target:"String",proto:!0,forced:!c("startsWith")},{startsWith:function(e){var t=String(i(this));a(e);var n=o(s(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(10),o=n(135).trim;r({target:"String",proto:!0,forced:n(218)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var r=n(21),o=n(136);e.exports=function(e){return r((function(){return!!o[e]()||"â€‹Â…á Ž"!="â€‹Â…á Ž"[e]()||o[e].name!==e}))}},function(e,t,n){var r=n(10),o=n(185).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){var r=n(10),o=n(38),a=n(37),i=n(44),c=n(39),u=n(66),s=n(112),l=n(79);r({target:"Reflect",stat:!0},{set:function e(t,n,r){var d,f,p=arguments.length<4?t:arguments[3],v=u.f(o(t),n);if(!v){if(a(f=s(t)))return e(f,n,r,p);v=l(0)}if(i(v,"value")){if(!1===v.writable||!a(p))return!1;if(d=u.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=r,c.f(p,n,d)}else c.f(p,n,l(0,r));return!0}return void 0!==v.set&&(v.set.call(p,r),!0)}})},function(e,t,n){t=e.exports=n(187)(!1);var r=n(189)(n(222));t.push([e.i,".ad-logo__MZL8C {\n position: fixed;\n bottom: 16px;\n left: 16px;\n z-index: 10000;\n will-change: transform;\n padding: 3px 5px;\n color: rgba(255, 255, 255, 0.75);\n background: rgba(22, 24, 35, 0.12);\n font-family: 'PingFang SC';\n font-weight: 400;\n font-size: 8px;\n line-height: 8px;\n letter-spacing: 0px;\n pointer-events: auto;\n}\n.ad-logo-icon__39x7N {\n display: inline-block;\n width: 15px;\n height: 6px;\n background: no-repeat center / contain url("+r+");\n}\n",""]),t.locals={adLogo:"ad-logo__MZL8C",adLogoIcon:"ad-logo-icon__39x7N"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iNiIgdmlld0JveD0iMCAwIDE1IDYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMS45NDQ4IDIuNzYwMDZMMTAuMjE3NyAxLjcyMTQxQzEwLjE3NzMgMS42OTcyMyAxMC4xMjc0IDEuNzI3NzYgMTAuMTI3NCAxLjc3NjUyVjQuMzU4NDZDMTAuMTI3NCA0LjQwNDA1IDEwLjE1MDUgNC40NDU2OCAxMC4xODgzIDQuNDY4MjdMMTEuOTE1MyA1LjUwNjkyQzExLjk1NTcgNS41MzExIDEyLjAwNTYgNS41MDA1OCAxMi4wMDU2IDUuNDUxODJWMi44Njk4N0MxMi4wMDUyIDIuODI0NjggMTEuOTgyMiAyLjc4MjY2IDExLjk0NDggMi43NjAwNloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPgo8cGF0aCBkPSJNOS41ODE2IDEuMzM4NzlMNy44NTQ1NiAwLjMwMDE1QzcuODE0NTIgMC4yNzU5NyA3Ljc2NDI4IDAuMzA2NDkgNy43NjQyOCAwLjM1NTI1VjQuMzY4MjlDNy43NjQyOCA0LjQwMzE4IDcuNzkxNDggNC40MzE3MiA3LjgyNDcyIDQuNDMxNzJIOS41ODJDOS42MTUyIDQuNDMxNzIgOS42NDI0IDQuNDAzMTggOS42NDI0IDQuMzY4MjlWMS40NDg2QzkuNjQyIDEuNDAzNDEgOS42MTkgMS4zNjEzOSA5LjU4MTYgMS4zMzg3OVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPgo8cGF0aCBkPSJNNS40OTE2NSA1LjUwNjkyTDcuMjE4NjkgNC40NjgyOEM3LjI1NjA4IDQuNDQ1NjggNy4yNzk1IDQuNDAzNjYgNy4yNzk1IDQuMzU4NDdWMC4wNjM1N0M3LjI3OTUgMC4wMTQ4MSA3LjIyOTI2IC0wLjAxNTcyIDcuMTg5MjIgMC4wMDg0NjAwMkw1LjQ2MjE4IDEuMDQ3MUM1LjQyNDc5IDEuMDY5NyA1LjQwMTM3IDEuMTExNzIgNS40MDEzNyAxLjE1NjkxVjUuNDUxODJDNS40MDEzNyA1LjUwMDU4IDUuNDUxMjMgNS41MzExIDUuNDkxNjUgNS41MDY5MloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPgo8cGF0aCBkPSJNMTIuNDkwMiAzLjE5Nzc5VjQuMzY4ODNDMTIuNDkwMiA0LjQwMzcyIDEyLjUxNzQgNC40MzIyNiAxMi41NTA3IDQuNDMyMjZIMTQuNDk3OUMxNC41NTk4IDQuNDMyMjYgMTQuNTgxNCA0LjM0NjI0IDE0LjUyNzcgNC4zMTQxM0wxMi41ODA1IDMuMTQzMDhDMTIuNTQwNSAzLjExODUxIDEyLjQ5MDIgMy4xNDkwMyAxMi40OTAyIDMuMTk3NzlaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPHBhdGggZD0iTTQuODI1NDggMS40Mjk3M0wwLjAzMDQxNCA0LjMxMzc0Qy0wLjAyMzIyNiA0LjM0NTg1IC0wLjAwMTMxNTk1IDQuNDMxODggMC4wNjAyNjQxIDQuNDMxODhINC44NTU3QzQuODg4OTQgNC40MzE4OCA0LjkxNjE0IDQuNDAzMzMgNC45MTYxNCA0LjM2ODQ1VjEuNDg0ODNDNC45MTYxNCAxLjQzNjA3IDQuODY1OSAxLjQwNTU0IDQuODI1NDggMS40Mjk3M1oiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPgo8L3N2Zz4K"},function(e,t,n){"use strict";n.r(t);n(63),n(4),n(6),n(7),n(192),n(11),n(33),n(34),n(24),n(75),n(54),n(23),n(106),n(77),n(17),n(55),n(43),n(178),n(26),n(114),n(27);function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o="playable-sdk",a="../sdk/playable-sdk.js";var i=function(){var e=void 0;if(document.currentScript)e=document.currentScript;else{var t=r(document.scripts).filter((function(e){return e.src.indexOf(o)>-1}));t.length>0&&(e=t[0])}return e?e.src:a}().split("/").slice(0,-1).join("/");i.endsWith("/")||(i+="/"),n.p=i;n(40);var c=n(41),u=n(3),s=n(2),l=100,d=1500,f=3e3,p=function(e){var t,n=[],r=performance.now(),o=performance.now();function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=0,o=0;o<e.length;o++){var a=e[o];if(a&&a>t?r+=a:r=0,r>=n)return!0}return!1}function i(){window.cancelAnimationFrame(t),s.a.viewable&&setTimeout((function(){r=performance.now(),o=performance.now(),c()}),d)}s.a.addEventListener("viewableChange",i);var c=function c(){if(s.a.viewable){var u=performance.now(),l=u-o;if(o=u,n.push(l),l>=d)return e.freeze(),void s.a.removeEventListener("viewableChange",i);var p=!1;if(n.length>=60?(p=a(n),n=n.slice(-3),r=u):u-r>f&&(p=a(n),r=u),p)return e.lag(),void s.a.removeEventListener("viewableChange",i);t=window.requestAnimationFrame(c)}};c()};n(15),n(102),n(151),n(35),n(12),n(31),n(36),n(30),n(152),n(18);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={timeout:500,parseJson:!0};function y(e){var t,n,r=arguments;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:{},n=b({},g,{},t),o.abrupt("return",new Promise((function(t,r){var o=new XMLHttpRequest;o||r(new Error("Cannot create an XMLHTTP instance")),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)if(200===o.status)try{if(!1===n.parseJson)t(o.responseText);else{var e=JSON.parse(o.responseText);t(e)}}catch(e){r(e)}else r(o.statusText)},o.open("GET",e),o.send(),n.timeout>0&&setTimeout((function(){r(new Error("timeout: ".concat(e)))}),n.timeout)})));case 3:case"end":return o.stop()}}))}var m=n(20),_=(n(46),n(68),n(13)),w=parseInt(Object(_.b)("log_max_length")||"500");window.PLAYABLE_LOGS||(window.PLAYABLE_LOGS=[]);var O=function(){if(window.PLAYABLE_LOGS){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];window.PLAYABLE_LOGS.push("".concat(Date.now(),"> ").concat(t.join(" "))),window.PLAYABLE_LOGS.length>w&&window.PLAYABLE_LOGS.splice(0,window.PLAYABLE_LOGS.length-w/2)}},j=function(e){O(">>>>> ".concat(e))},k=function(){O("<<<<<")},x=m.g||"1"===Object(_.b)("show_playable_log")?{group:function(e){console.group(e),j(e)},groupEnd:function(){console.groupEnd(),k()},debug:function(){var e;(e=console).debug.apply(e,arguments),O.apply(void 0,arguments)}}:{group:j,groupEnd:k,debug:O},S=n(0);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(n,!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var T,L=!1;!function(e){e.success="success",e.notMatch="not_match",e.timeout="timeout",e.runtimeError="runtime_error",e.sdkError="sdk_error"}(T||(T={}));var I,D,N,R=n(9);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(n,!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.h5_start="h5_start",e.h5_loaded="h5_loaded",e.h5_load_main_scene_success="h5_load_main_scene_success",e.h5_load_main_scene_fail="h5_load_main_scene_fail",e.h5_first_touch="h5_first_touch"}(D||(D={})),function(e){e[e.load_main_scene_timeout=101]="load_main_scene_timeout",e[e.load_main_scene_not_match=102]="load_main_scene_not_match",e[e.load_main_scene_runtime_error=103]="load_main_scene_runtime_error"}(N||(N={}));var V=(F(I={},N.load_main_scene_timeout,"èµ„æºåŠ è½½è¶…æ—¶"),F(I,N.load_main_scene_not_match,"èµ„æºåŠ è½½æœªåŒ¹é…"),F(I,N.load_main_scene_runtime_error,"èµ„æºåŠ è½½è¿è¡Œæ—¶å‡ºé”™"),I);function U(e,t){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t&&t.code&&(t.msg=t.msg||V[t.code]),n.next=4,regeneratorRuntime.awrap(Object(R.a)("webview_time_track",F({},e,B({ts:Date.now()},t)),!1));case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),console.error(n.t0);case 9:case"end":return n.stop()}}),null,null,[[0,6]])}var z=n(5),J=n(64),G=n(1),H=n(84);window.addEventListener("error",(function(e){var t=e.error;if(t){var n=t.message,r=t.name,o=t.stack,a=void 0===o?"":o;Object(u.a)(S.g.playablePageError,{type:"page_error",message:n,name:r,stack:a})}})),window.addEventListener("unhandledrejection",(function(e){var t,n,r,o;Object(u.a)(S.g.playablePageError,{type:"page_error",name:"unhandledrejection",message:null!==(t=null===(n=e.reason)||void 0===n?void 0:n.message)&&void 0!==t?t:"",stack:null!==(r=null===(o=e.reason)||void 0===o?void 0:o.stack)&&void 0!==r?r:""})}));var W,Q,Y,q,X,K,Z,$=Date.now();(W=function(e){var t,n,r,o;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:t=e.status,n={status:t},o={},a.t0=e.status,a.next=a.t0===T.notMatch?6:a.t0===T.timeout?11:a.t0===T.runtimeError?16:a.t0===T.success?20:22;break;case 6:return n.not_matched_resources=e.notMatchedResources,n.missed_resources=e.missedResources,r=D.h5_load_main_scene_fail,o.code=N.load_main_scene_not_match,a.abrupt("break",26);case 11:return n.not_matched_resources=e.notMatchedResources,n.missed_resources=e.missedResources,r=D.h5_load_main_scene_fail,o.code=N.load_main_scene_timeout,a.abrupt("break",26);case 16:return n.error_message=e.errorMessage,r=D.h5_load_main_scene_fail,o.code=N.load_main_scene_runtime_error,a.abrupt("break",26);case 20:return r=D.h5_load_main_scene_success,a.abrupt("break",26);case 22:throw r=D.h5_load_main_scene_fail,o.code=N.load_main_scene_runtime_error,e;case 26:return a.next=28,regeneratorRuntime.awrap(Object(G.p)());case 28:a.sent&&(n.playable_loading_duration=Date.now()-$),Object(u.a)(S.g.sdkLoadMainScene,n),U(r,o);case 32:case"end":return a.stop()}}))},regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Q=location.origin+location.pathname,Y=Q.replace("index.html",""),q="".concat(Y,"__playable_ready_resources__.json"),e.prev=3,e.next=6,regeneratorRuntime.awrap(y(q));case 6:X=e.sent,K=A(X).filter((function(e){return!([".mp3",".wav",".ogg"].some((function(t){return e.indexOf(t)>-1}))||0===e.indexOf("http")||e.indexOf("index.html")>-1||0===e.indexOf("http")&&e.indexOf("slardar")>-1)})),Z=0,function e(){setTimeout((function(){var t=A(K),n=[],r=[],o=[];if(window.performance&&window.performance.getEntriesByType){window.performance.getEntriesByType("resource").forEach((function(e){if(0===e.name.indexOf("http")){e.name.indexOf("playable-sdk.js)")>-1&&o.push(e.name);var a=e.name.replace(Y,"").replace(/\?.*$/,""),i=t.indexOf(a);if(i>-1)n.push(e.name),t.splice(i,1);else{if(m.b.some((function(t){return t.test(e.name)})))return;r.push(e.name)}}}));var a=A(t),i={matchedResources:n,notMatchedResources:r,missedResources:a};x.debug("missedResources:",a),o.length&&!L&&(L=!0,Object(u.a)(S.g.sdkLoadMainScene,{status:T.sdkError,error_resources:o})),0===a.length?(x.debug("monitorReadyResources(success)",n,r,a),W({status:T.success})):Z>=100?(x.debug("monitorReadyResources(timeout)",n,r,a),W(P({},i,{status:T.timeout}))):(Z++,e())}}),300)}(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),W({status:T.runtimeError,errorMessage:e.t0.stack||e.t0.message});case 16:case"end":return e.stop()}}),null,null,[[3,13]])).catch((function(e){console.error(e),Object(u.a)(S.g.sdkLoadMainScene,{status:T.runtimeError,error_message:e.stack||e.message})}));document.addEventListener("visibilitychange",(function e(){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:document.hidden||(document.removeEventListener("visibilitychange",e),Object(u.a)(S.g.webviewShow,{timestamp:Date.now()}));case 1:case"end":return t.stop()}}))}));window.addEventListener("load",(function(){var e,t,n,r;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return e=window.performance.timing,t=e.requestStart,n=e.domContentLoadedEventStart,r=e.loadEventStart,Object(H.a)(n,!0),Object(u.a)(S.g.loadingPlayableStart,{timestamp:window.performance.timing.requestStart}),Object(u.a)(S.g.loadedPlayable,{requestStart:t,domContentLoadedEventStart:n,loadEventStart:r}),Object(u.a)(S.g.firstscreenLoadingFinish,{timestamp:Date.now()}),p({lag:function(){Object(u.a)(S.g.playableRenderLag)},freeze:function(){Object(u.a)(S.g.playableRenderFreeze)}}),o.next=8,regeneratorRuntime.awrap(U(D.h5_loaded));case 8:case"end":return o.stop()}}))}));var ee=function(e,t){var n=0;return function(){var r=Date.now();if(r-n>=t){n=r;for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];e.apply(this,a)}}}((function(){Object(c.b)("playableTouchMove",{},!1)}),100);z.b.on((function e(){Object(J.b)([J.a.exemptedFromPlay])||(z.b.off(e),Object(u.a)(S.g.firstTouchPlayable),s.a.setViewable(!0),U(D.h5_first_touch),Object(c.b)("playableInteractionTriggered",{},!1),Object(c.a)())})),z.b.on(ee),U(D.h5_start);Object(R.a)("jssdk_load_finish",{},!1);n(82),n(117);var te=location.search.indexOf("is_muted=1")>-1;function ne(){var e,t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(Object(G.p)());case 2:return e=n.sent,n.next=5,regeneratorRuntime.awrap(Object(G.r)());case 5:if(!n.sent){n.next=8;break}return n.abrupt("return",!0);case 8:if(e){n.next=10;break}return n.abrupt("return",!1);case 10:return n.next=12,regeneratorRuntime.awrap(Object(G.d)());case 12:if(null==(t=n.sent)?void 0:t.sdkEdition){n.next=15;break}return n.abrupt("return",!1);case 15:if(!(parseInt(t.sdkEdition.replace(/\./g,""))>=3500)){n.next=18;break}return n.abrupt("return",!0);case 18:return n.abrupt("return",!1);case 19:case"end":return n.stop()}}))}var re,oe=!1;function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;if(!e)return e;var n=t;return n>0&&(n=-n),e.slice(n)}function ie(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(ne());case 2:re=e.sent,oe=re;case 4:case"end":return e.stop()}})).catch((function(e){console.error(e.stack||e.message||e)}));var ce=[],ue=HTMLAudioElement.prototype.pause,se=HTMLAudioElement.prototype.play;function le(e){if(x.group("addAudioToList"),x.debug("audio:",e),ye(e))x.groupEnd();else{var t;if(!(e instanceof HTMLAudioElement))throw x.groupEnd(),new Error("Wrong type of audio: ".concat(Object(G.i)(e)));if(s.a.viewable)t={audio:e,prevMuted:void 0,prevPaused:void 0};else{var n=e.paused;e.autoplay&&(n=!1,e.autoplay=!1),t={audio:e,prevMuted:e.muted,prevPaused:n}}e.addEventListener("play",(function(){x.group("audio play event: ".concat(ae(e.currentSrc)," ").concat(e.muted," ").concat(e.currentTime)),s.a.viewable||(t.prevPaused=!1,ve(t)),x.groupEnd()})),r("loadstart"),r("loadedmetadata"),r("loadeddata"),r("canplay"),e.addEventListener("volumechange",(function(){x.group("audio:volumechange");var e=be.get(t.audio)||0;0===e&&void 0!==t.prevMuted&&(x.debug("update prevMuted from ".concat(t.prevMuted," to ").concat(t.audio.muted)),t.prevMuted=t.audio.muted),x.debug("before set: ".concat(e));var n=e>0?e-1:0;be.set(t.audio,n),x.debug("after set: ".concat(n)),pe(t),x.groupEnd()})),e.addEventListener("durationchange",(function(){x.group("durationchange"),de(t),x.groupEnd()})),x.debug("after handle, viewable: ".concat(s.a.viewable,", cur_muted: ").concat(s.a.muted,", muted: ").concat(e.muted,", prevMuted: ").concat(t.prevMuted,", paused: ").concat(e.paused,", prevPaused: ").concat(t.prevPaused)),pe(t),de(t),x.debug("after handle, viewable: ".concat(s.a.viewable,", cur_muted: ").concat(s.a.muted,", muted: ").concat(e.muted,", prevMuted: ").concat(t.prevMuted,", paused: ").concat(e.paused,", prevPaused: ").concat(t.prevPaused)),ce.push(t),x.groupEnd()}function r(n){e.addEventListener(n,(function(){x.group("audio ".concat(n," event: ").concat(ae(e.currentSrc))),e.autoplay=!1,s.a.viewable||e.paused||de(t),s.a.muted&&!e.muted&&pe(t),x.groupEnd()}))}}function de(e){var t;x.group("handleAudioPaused: ".concat(ae(e.audio.currentSrc))),x.debug("viewable:",s.a.viewable),x.debug("prevPaused:",e.prevPaused),x.debug("audio.paused:",e.audio.paused),s.a.viewable?(!1===e.prevPaused&&(t=e,x.debug("private:play",ae(t.audio.currentSrc)),se.call(t.audio)),e.prevPaused=void 0):(void 0===e.prevPaused&&(e.prevPaused=e.audio.paused),e.audio.paused||ve(e)),x.groupEnd()}var fe=void 0;function pe(e,t){var n;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(t){r.next=6;break}if(void 0!==fe){r.next=5;break}return r.next=4,regeneratorRuntime.awrap(ne());case 4:fe=r.sent;case 5:fe||(n=!1);case 6:if(void 0===n&&(n=s.a.muted),x.group("handleAudioMuted: ".concat(ae(e.audio.currentSrc))),x.debug("supportVolume:",fe),x.debug("muted:",s.a.muted),x.debug("realMute:",n),x.debug("isForceMuted:",te),x.debug("prevMuted:",e.prevMuted),x.debug("audio.muted:",e.audio.muted),!te){r.next=18;break}return he(e),x.groupEnd(),r.abrupt("return");case 18:n?(void 0===e.prevMuted&&(e.prevMuted=e.audio.muted),e.audio.muted||he(e)):(!1===e.prevMuted&&ge(e),e.prevMuted=void 0),x.groupEnd();case 20:case"end":return r.stop()}}))}function ve(e){return x.debug("private:pause",ae(e.audio.currentSrc)),ue.call(e.audio)}var be=new Map;function he(e){if(x.debug("private:mute"),e.audio.src||e.audio.currentSrc||null!==e.audio.srcObject){if(!e.audio.muted){var t=be.get(e.audio)||0;x.debug("before set: ".concat(t));var n=t+1;be.set(e.audio,n),x.debug("after set: ".concat(n))}e.audio.muted=!0}}function ge(e){if(x.debug("private:resume"),e.audio.muted){var t=be.get(e.audio)||0;x.debug("before set: ".concat(t));var n=t+1;be.set(e.audio,n),x.debug("after set: ".concat(n))}e.audio.muted=!1}function ye(e){for(var t=0;t<ce.length;t++)if(ce[t].audio===e)return ce[t]}function me(){x.group("handleVisibilitychange(".concat(s.a.viewable,")")),ce.forEach((function(e){de(e)})),x.groupEnd()}function _e(){x.group("handleForceMutedchange"),ce.forEach((function(e){pe(e)})),x.groupEnd()}var we=function(e){var t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.isInit,x.group("audio:handleVolumechange(".concat(t,")")),ce.forEach((function(e){pe(e,t)})),x.groupEnd();case 4:case"end":return n.stop()}}))};function Oe(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var je=[],ke=HTMLVideoElement.prototype.pause,xe=HTMLVideoElement.prototype.play;function Se(e){if(x.group("addVideoToList"),x.debug("video:",e),De(e))x.groupEnd();else{var t;if(e.playsInline=!0,e.setAttribute("webkit-playsinline","true"),!(e instanceof HTMLVideoElement))throw x.groupEnd(),new Error("Wrong type of video: ".concat(Object(G.i)(e)));if(s.a.viewable)t={video:e,prevMuted:void 0,prevPaused:void 0};else{var n=e.paused;e.autoplay&&(n=!1,e.autoplay=!1),t={video:e,prevMuted:e.muted,prevPaused:n}}e.addEventListener("play",(function(){x.group("video play event: ".concat(ae(e.currentSrc))),s.a.viewable||(t.prevPaused=!1,Ae(t)),x.groupEnd()})),r("loadstart"),r("loadedmetadata"),r("loadeddata"),r("canplay"),e.addEventListener("volumechange",(function(){x.group("video:volumechange");var e=Te.get(t.video)||0;0===e&&void 0!==t.prevMuted&&(t.prevMuted=t.video.muted),Te.set(t.video,e>0?e-1:0),Me(t),x.groupEnd()})),x.debug("before handle, viewable: ".concat(s.a.viewable,", cur_muted: ").concat(s.a.muted,", muted: ").concat(e.muted,", prevMuted: ").concat(t.prevMuted,", paused: ").concat(e.paused,", prevPaused: ").concat(t.prevPaused)),Me(t),Ee(t),x.debug("after handle, viewable: ".concat(s.a.viewable,", cur_muted: ").concat(s.a.muted,", muted: ").concat(e.muted,", prevMuted: ").concat(t.prevMuted,", paused: ").concat(e.paused,", prevPaused: ").concat(t.prevPaused)),je.push(t),x.groupEnd()}function r(n){e.addEventListener(n,(function(){x.group("video ".concat(n," event: ").concat(ae(e.currentSrc))),e.autoplay=!1,s.a.viewable||e.paused||Ee(t),s.a.muted&&!e.muted&&Me(t),x.groupEnd()}))}}function Ee(e){var t;x.group("handleVideoPaused: ".concat(ae(e.video.currentSrc))),x.debug("viewable:",s.a.viewable),x.debug("prevPaused:",e.prevPaused),x.debug("video.paused:",e.video.paused),s.a.viewable?(!1===e.prevPaused&&(t=e,x.debug("private:play"),xe.call(t.video)),e.prevPaused=void 0):(void 0===e.prevPaused&&(e.prevPaused=e.video.paused),e.video.paused||Ae(e)),x.groupEnd()}var Pe=void 0;function Me(e){var t,n=arguments;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length>1&&void 0!==n[1]&&n[1]){r.next=7;break}if(void 0!==Pe){r.next=6;break}return r.next=5,regeneratorRuntime.awrap(ne());case 5:Pe=r.sent;case 6:Pe||(t=!1);case 7:if(void 0===t&&(t=s.a.muted),x.group("handleVideoMuted: ".concat(ae(e.video.currentSrc))),x.debug("supportVolume:",Pe),x.debug("muted:",s.a.muted),x.debug("realMute:",t),x.debug("isForceMuted:",te),x.debug("prevMuted:",e.prevMuted),x.debug("video.muted:",e.video.muted),!te){r.next=19;break}return Le(e),x.groupEnd(),r.abrupt("return");case 19:t?(void 0===e.prevMuted&&(e.prevMuted=e.video.muted),e.video.muted||Le(e)):(!1===e.prevMuted&&Ie(e),e.prevMuted=void 0),x.groupEnd();case 21:case"end":return r.stop()}}))}function Ae(e){return x.debug("private:pause"),ke.call(e.video)}var Te=new Map;function Le(e){if(x.debug("private:mute"),!e.video.muted){var t=Te.get(e.video)||0;Te.set(e.video,t+1)}e.video.muted=!0}function Ie(e){if(x.debug("private:resume"),e.video.muted){var t=Te.get(e.video)||0;Te.set(e.video,t+1)}e.video.muted=!1}function De(e){for(var t=0;t<je.length;t++)if(je[t].video===e)return je[t]}function Ne(){x.group("handleVisibilitychange"),je.forEach((function(e){Ee(e)})),x.groupEnd()}function Re(){x.group("handleForceMutedchange"),je.forEach((function(e){Me(e)})),x.groupEnd()}var Ce=function(e){var t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.isInit,x.group("video:handleVolumechange(".concat(t,")")),je.forEach((function(e){Me(e,t)})),x.groupEnd();case 4:case"end":return n.stop()}}))};function Be(e){le(e)}function Fe(e){Se(e)}Object(G.v)((function(){var e=document.createElement;document._createElement=e,document.createElement=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=e.apply(document,n);return o instanceof HTMLAudioElement?Be(o):o instanceof HTMLVideoElement&&Fe(o),o}}));n(76),n(107);var Ve=[];function Ue(){var e=window.AudioNode||window.webkitAudioNode,t=e.prototype.connect;e.prototype.connect=function(e,n,r){if(!(e instanceof AudioDestinationNode))return t.call(this,e,n,r);var o=e.context.createGain();return Object(G.i)(e.context).includes("OfflineAudioContext")||function(e){var t;if(x.group("addWebAudioToList"),x.debug("webAudio:",e),Ve.some((function(t){return t.audio===e})))return;t={audio:e},x.debug("before handle, viewable: ".concat(s.a.viewable,", gain: ").concat(e.gain.value)),ze(t),x.debug("after handle, viewable: ".concat(s.a.viewable,", gain: ").concat(e.gain.value)),Ve.push(t),x.groupEnd(),e.context.addEventListener("statechange",(function(){x.debug("webAudio.context.state changed to: ".concat(e.context.state)),ze(t)}))}(o),t.call(this,o),t.call(o,e,n,r)}}function ze(e){if(x.group("handleWebAudioState"),x.debug("viewable:",s.a.viewable),x.debug("webAudio:",e.audio),x.debug("webAudio.gain:",e.audio.gain.value),te)return Je(e.audio),void x.groupEnd();(oe?s.a.viewable&&!s.a.muted:s.a.viewable)?function(e){e.gain.value=1;var t=e.context;"interrupted"===e.context.state&&t.resume&&t.resume()}(e.audio):Je(e.audio),x.groupEnd()}function Je(e){e.gain.value=1e-4}function Ge(e){return function(){x.group(e),Ve.forEach((function(e){ze(e)})),x.groupEnd()}}window._allWebAudios=Ve;var He=Ge("handleVisibilitychange"),We=Ge("handleMutedchange"),Qe=Ge("handleForceMutedchange");Object(G.v)((function(){Ue()})),Object(G.v)((function(){s.a.addEventListener("viewableChange",He)})),Object(G.v)((function(){s.a.addEventListener("mutedChange",We)})),Object(G.v)((function(){z.a.on(Qe)})),window._allAudios=ce,Object(G.v)((function(){var e;e=window.Audio,window._Audio=e,window.Audio=function(t){var n=new e(t);return le(n),n},window.Audio.prototype=e.prototype,HTMLAudioElement.prototype.pause=function(){if(x.debug("audio pause()"),ye(this)||le(this),!s.a.viewable){var e=ye(this);e&&(e.prevPaused=!0)}return ue.call(this)},HTMLAudioElement.prototype.play=function(){if(x.debug("audio play()"),ye(this)||le(this),s.a.viewable)return se.call(this);var e=ye(this);return e&&(e.prevPaused=!1),Promise.resolve()}})),Object(G.v)((function(){window.addEventListener("load",(function(){x.group("loaded"),x.debug("viewable:",s.a.viewable),ie(document.getElementsByTagName("audio")).forEach((function(e){le(e)})),x.groupEnd()}))})),Object(G.v)((function(){s.a.addEventListener("viewableChange",me)})),Object(G.v)((function(){z.a.on(_e)})),Object(G.v)((function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:s.a.addEventListener("mutedChange",we);case 1:case"end":return e.stop()}}))})),Object(G.v)((function(){document.createElement("audio").muted=!0})),Object(G.v)((function(){var e=0;setInterval((function(){ce.forEach((function(t){var n;t.audio.paused||(void 0!==t.currentTime?(t.currentTime===t.audio.currentTime?(t.audio.currentTime+=.1,e+=1):e=0,e>=3?(x.debug("audio blocked, need handleAudioPaused"),n=t,x.debug("private:forcePlay"),n.prevPaused=!1,n.audio.pause(),de(n),e=0):t.currentTime=t.audio.currentTime):t.currentTime=t.audio.currentTime)}))}),1e3)})),window._allVideos=je,Object(G.v)((function(){HTMLVideoElement.prototype.pause=function(){if(x.debug("video pause()"),De(this)||Se(this),!s.a.viewable){var e=De(this);e&&(e.prevPaused=!0)}return ke.call(this)},HTMLVideoElement.prototype.play=function(){if(x.debug("video play()"),De(this)||(x.debug("not in allVideos"),Se(this)),x.debug("currentStates.viewable: ".concat(s.a.viewable)),s.a.viewable)return xe.call(this);var e=De(this);return e&&(e.prevPaused=!1),Promise.resolve()}})),Object(G.v)((function(){window.addEventListener("load",(function(){x.group("loaded"),x.debug("viewable:",s.a.viewable),Oe(document.getElementsByTagName("video")).forEach((function(e){Se(e)})),x.groupEnd()}))})),Object(G.v)((function(){s.a.addEventListener("viewableChange",Ne)})),Object(G.v)((function(){z.a.on(Re)})),Object(G.v)((function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:s.a.addEventListener("mutedChange",Ce);case 1:case"end":return e.stop()}}))})),Object(G.v)((function(){setInterval((function(){je.forEach((function(e){e.video.paused||(void 0!==e.currentTime?(e.currentTime===e.video.currentTime&&(e.video.currentTime+=.1),e.currentTime=e.video.currentTime):e.currentTime=e.video.currentTime)}))}),1e3)}));var Ye=Object(G.e)();Object(G.v)((function(){window.Element?(window.Element.prototype.requestFullScreen=Ye,window.Element.prototype.webkitRequestFullScreen=Ye,window.Element.prototype.requestFullscreen=Ye,window.Element.prototype.webkitRequestFullscreen=Ye):(document.documentElement.requestFullScreen=Ye,document.documentElement.webkitRequestFullScreen=Ye,document.documentElement.requestFullscreen=Ye,document.documentElement.webkitRequestFullscreen=Ye)})),Object(G.v)((function(){window.alert=function(e){console.group("Not allow using alert!"),console.warn(e),console.groupEnd()},window.prompt=function(e,t){return console.group("Not allow using prompt!"),console.warn(e),console.groupEnd(),t||""},window.confirm=function(e){return console.group("Not allow using confirm!"),console.warn(e),console.groupEnd(),!1}}));var qe=new Map,Xe={};function Ke(e){return function(t){var n=qe.get(t);if(n){var r=n.url;Xe[r]||(Xe[r]=!0,Object(u.a)(S.g.sdkResourceError,{type:"xhr",resource:r,status:e}))}}}var Ze=Ke("error"),$e=Ke("timeout");Object(G.v)((function(){!function(){var e=window.XMLHttpRequest;window._XMLHttpRequest=e,window.XMLHttpRequest=function(){var t=new e;return t.addEventListener("error",(function(){Ze(t)})),t.addEventListener("timeout",(function(){$e(t)})),t},window.XMLHttpRequest.DONE=e.DONE,window.XMLHttpRequest.HEADERS_RECEIVED=e.HEADERS_RECEIVED,window.XMLHttpRequest.LOADING=e.LOADING,window.XMLHttpRequest.OPENED=e.OPENED,window.XMLHttpRequest.UNSENT=e.UNSENT;var t=e.prototype.open;e.prototype.open=function(e,n,r,o,a){"data:"!==n.slice(0,5)&&qe.set(this,{url:n}),void 0===r?t.apply(this,[e,n]):t.apply(this,[e,n,r,o,a])},window.XMLHttpRequest.prototype=e.prototype}()}));var et,tt,nt=n(70),rt=n(69);if(window.addEventListener("beforeunload",(function(){Object(G.w)("playable_track",{event:S.f.sdkLeavePlayable.name,timestamp:Date.now(),params:rt.b})})),window.addEventListener("error",(function(e){var t,n=e.target;if(n){var r=n,o=null===(t=r.tagName)||void 0===t?void 0:t.toUpperCase(),a="";"SCRIPT"===o?a=r.src:"LINK"===o&&(a=r.href),a&&Object(u.a)(S.g.sdkResourceError,{type:"tag",resource:a})}}),!0),Object(G.m)()&&(null===(et=window)||void 0===et?void 0:null===(tt=et.performance)||void 0===tt?void 0:tt.getEntries)){var ot={};setInterval((function(){window.performance.getEntries().filter((function(e){return e.name.indexOf(m.a)>-1})).filter((function(e){var t;return 0===(null===(t=e)||void 0===t?void 0:t.decodedBodySize)})).forEach((function(e){var t=e.name;ot[t]||(Object(u.a)(S.g.sdkResourceError,{type:"performance",resource:t}),ot[t]=!0)}))}),1e3)}Object(G.r)()&&Object(G.t)()&&Object(G.a)("popGesture",{enable:0},!1);var at,it,ct,ut=n(118);regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(Object(G.p)());case 2:return at=e.sent,e.next=5,regeneratorRuntime.awrap(Object(G.d)());case 5:it=e.sent,ct=!1,it&&(ct=!!it.sdkEdition&&Object(ut.a)(it.sdkEdition,"4.3.0.0")>=0),at&&ct&&z.f.on((function e(t){t.name===S.b.loadMainScene&&(Object(G.a)("removeLoading",{},!1),z.f.off(e))}));case 9:case"end":return e.stop()}}));var st,lt=n(125),dt=n(71),ft=!1,pt=5;function vt(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:ft||(Object(dt.a)(S.f.pageview.name),ft=!0),pt>0&&(Object(dt.a)(S.f.ensurePageview.name),pt--);case 2:case"end":return e.stop()}}))}"loading"!==document.readyState?vt():document.addEventListener("DOMContentLoaded",vt),z.f.on(vt),function(e){e[e.repeatedTouchStart=0]="repeatedTouchStart"}(st||(st={}));var bt=!1;z.b.on((function(e){var t=e.type;"touchstart"!==t?"touchend"===t&&(Object(u.a)(S.g.sdkUserClick),bt=!1):bt?Object(u.a)(S.g.sdkTouchError,{reason:st.repeatedTouchStart}):bt=!0})),z.d.on((function(e){var t=e.name,n=e.params;Object(u.a)(S.e.noJsbPermission,{name:t,params:n})}));var ht,gt=n(56),yt=n(49);!function(e){e[e.OUT=0]="OUT",e[e.IN=1]="IN"}(ht||(ht={}));var mt=n(65);function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(n,!0).forEach((function(t){Ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jt=Object.keys(wt({},S.a,{},S.d,{},S.c));var kt=n(186),xt={},St={},Et=(n(219),n(73));function Pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var At=new(function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="sendTimeStamps",r=new Map,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}var t,n,r;return t=e,(n=[{key:"isInRegisteredAreas",value:function(e){var t,n,r=Object.entries(xt).some((function(r){var o=Pt(r,2),a=o[0],i=o[1],c=Et.a[e],u=c.x,s=c.y;return void 0!==i&&i.x<=u&&u<=i.x+i.width&&i.y<=s&&s<=i.y+i.height&&(t=i,n=a,!0)}));return{targetArea:t,targetAreaId:n,inArea:r}}},{key:"hasExemptionName",value:function(){return Object(J.b)([J.a.exemptedFromConvert])}},{key:"sendEvent",value:function(e){Object(u.a)(S.g.sdkClickConvertArea,{area:e})}},{key:"throttleCall",value:function(e,t){var n,r=this.sendTimeStamps.get(e),o=null!==(n=t.throttleTime)&&void 0!==n?n:2e3;if(o<=0)this.sendEvent(t);else{if(void 0===r)return this.sendTimeStamps.set(e,Date.now()),void this.sendEvent(t);var a=Date.now();a-r>o&&(this.sendTimeStamps.set(e,a),this.sendEvent(t))}}},{key:"commit",value:function(){if(!this.hasExemptionName()){var e=this.isInRegisteredAreas("start"),t=e.inArea,n=e.targetAreaId;if(t){var r=this.isInRegisteredAreas("end"),o=r.inArea,a=r.targetArea,i=r.targetAreaId;o&&n===i&&this.throttleCall(i,a)}}}}])&&Mt(t.prototype,n),r&&Mt(t,r),e}()),Tt=["x","y","width","height"],Lt=[],It=["x","y","width","height"],Dt=1,Nt="1"===Object(G.h)("debug_convert_area");function Rt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={x:e.x,y:e.y,width:e.width,height:e.height};return Tt.forEach((function(e){var r=n[e];if(void 0!==r){if("number"!=typeof r)throw new Error("Wrong type of ".concat(e))}else if(t)throw new Error("MUST have ".concat(e))})),Lt.forEach((function(e){var t=n[e];if(void 0!==t&&"number"!=typeof t)throw new Error("Wrong type of ".concat(e))})),n}function Ct(e){if(Nt){var t=St[e];t&&(document.body.removeChild(t),St[e]=void 0)}}function Bt(e,t){e.style.position="fixed",e.style.top="".concat(t.y,"px"),e.style.left="".concat(t.x,"px"),e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.background="rgba(255,0,0,0.5)",e.style.zIndex="999999",e.style.pointerEvents="none",e.style.willChange="transform"}function Ft(e){var t=Dt,n=Rt(e,!0);return xt[t]=n,Dt++,function(e,t){if(Nt){var n=St[e];if(void 0!==n)throw new Error("Duplicated areaId in addConvertAreaDOM: ".concat(e));Bt(n=document.createElement("div"),t),document.body.appendChild(n),St[e]=n}}(t,n),t}function Vt(e,t){var n=xt[e];if(void 0===n)throw new Error("Wrong areaId");var r=Rt(t);It.forEach((function(e){var t=r[e];void 0!==t&&(n[e]=t)})),function(e,t){if(Nt){var n=St[e];if(!n)throw new Error("Wrong areaId in updateConvertAreaDOM: ".concat(e));Bt(n,t)}}(e,n)}Nt&&(window._registeredAreas=xt,window._registeredAreasDOM=St),z.b.on((function(e){"touchend"===e.type&&At.commit()}));var Ut=n(48);Object(Ut.b)("android_download",(function(e){Object(G.u)("app_ad_event",(function(t){var n=t||{},r=n.status,o=n.total_bytes,a=n.current_bytes;e({status:r,total_bytes:o,current_bytes:a})}))}));var zt,Jt={width:0,height:0};Object(G.u)("resize",(function(e){x.debug("jsb resize: ".concat(e.width,", ").concat(e.height,". (").concat(window.innerWidth,", ").concat(window.innerHeight,")")),Jt.width=e.width,Jt.height=e.height,function e(){clearTimeout(zt),x.debug("waitToTriggerResize: jsb(".concat(Jt.width,", ").concat(Jt.height,") window(").concat(window.innerWidth,", ").concat(window.innerHeight,")")),function(){return Math.abs(window.innerWidth-Jt.width)<10&&Math.abs(window.innerHeight-Jt.height)<10}()?function(){x.debug("triggerWindowResize: window(".concat(window.innerWidth,", ").concat(window.innerHeight,")"));var e=new Event("resize");window.dispatchEvent(e)}():zt=setTimeout((function(){e()}),200)}()}));n(184);var Gt=n(153),Ht=n(85);function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(n,!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(){Object(G.u)("enterPlayablePage",(function(){Object(kt.c)(!0)})),Object(G.u)("change_playable_click",(function(e){Object(Gt.b)(!e.send_click)}));var e=Date.now();s.a.addEventListener("viewableChange",(function(t){if(!t.isInit){var n=Object(G.f)(Ht.a).reduce((function(e,t){var n;return Object(G.o)(S.f,t)?n=S.f[t].name:Object(G.o)(S.a,t)&&(n=S.a[t].name),void 0!==n&&(e[n]=Ht.a[t]),e}),{});if(Object(u.a)(S.g.sdkViewableChange,Qt({viewable:t.viewable?1:0},n)),t.viewable){if(t.viewable){var r=Date.now()-e;Object(u.a)(S.g.sdkBackgroundDuration,Qt({duration:r},n))}}else e=Date.now()}}))}"loading"!==document.readyState?qt():document.addEventListener("DOMContentLoaded",qt);var Xt,Kt,Zt=4,$t=0;function en(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}z.e.on((function e(){s.a.hasPlayablwShown&&($t>=Zt?z.e.offAll():(Object(u.a)(S.g.playableShow,{times:$t,innerWidth:window.innerWidth,innerHeight:window.innerHeight,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight,availWidth:screen.availWidth,availHeight:screen.availHeight,screenWidth:screen.width,screenHeight:screen.height,jsSDKVersion:lt.a}),0===$t&&setTimeout(e,1e3),$t++))}));var nn=(tn(Xt={},S.b.loadMainScene,{sent:!1,params:void 0}),tn(Xt,S.b.startPlayPlayable,{sent:!1,params:void 0}),tn(Xt,S.b.finishPlayPlayable,{sent:!1,params:void 0}),tn(Xt,S.g.playableShow,{sent:!1,params:void 0}),Xt),rn=(tn(Kt={},S.b.loadMainScene,S.g.loadMainSceneInUser),tn(Kt,S.b.startPlayPlayable,S.g.startPlayPlayableInUser),tn(Kt,S.b.finishPlayPlayable,S.g.finishPlayPlayableInUser),Kt);z.f.on((function(e){var t=e.name,n=e.params;if(Object(G.o)(nn,t)){var r=[];if(nn[S.g.playableShow].sent){if(Object(G.o)(rn,t))nn[t].sent||r.push(t)}else t===S.g.playableShow&&r.push.apply(r,en(Object(G.f)(nn).filter((function(e){return Object(G.o)(rn,e)&&nn[e].sent}))));r.forEach((function(e){return Object(u.a)(rn[e],nn[e].params)})),nn[t].sent=!0,nn[t].params=n}}));var on=n(42);Object(Ut.b)("playableReplay",(function(e){Object(G.u)(on.e,(function(t){var n=(t||{}).playable_replay_count;rt.b.playable_replay_count=n,rt.b.playable_enter_from=2,e({playable_replay_count:n})}))})),Object(Ut.b)("playablePageShow",(function(e){Object(G.u)("playablePageShow",(function(){e()}))}));var an=n(14);Object(G.u)("endcard_control_event",(function(e){if(Object(an.c)(an.b.VIEWABLE,an.a.ENDCARD_CONTROL_EVENT)){var t=e.endcard_show,n=!0===t||1===t;s.a.setViewable(n)}if(Object(an.c)(an.b.MUTED,an.a.ENDCARD_CONTROL_EVENT)){var r=e.endcard_mute,o=!0===r||1===r;s.a.setMuted(o)}}));Object(G.v)((function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(G.u)("volumeChange",(function(e){if(Object(an.c)(an.b.MUTED,an.a.VIEWABLE_MUTE)){var t=e.endcard_mute,n=!0===t||1===t;s.a.setMuted(n)}})),document.addEventListener("visibilitychange",(function(){if(Object(an.c)(an.b.MUTED,an.a.BROWSER)){var e=document.hidden;s.a.setMuted(e)}}));case 2:case"end":return e.stop()}}))}));var cn=n(60),un=n(59);Object(G.v)((function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(G.u)("viewableChange",(function(e){if(Object(an.c)(an.b.VIEWABLE,an.a.VIEWABLE_MUTE)){var t=e.viewStatus,n=!0===t||1===t;s.a.setViewable(n)}})),document.addEventListener("visibilitychange",(function(){if(Object(an.c)(an.b.VIEWABLE,an.a.BROWSER)){var e=!document.hidden;s.a.setViewable(e)}}));case 2:case"end":return e.stop()}}))}));var sn=n(123),ln={addEventListener:Ut.a,removeEventListener:Ut.c,isReady:function(){return!0},isViewable:function(){var e,t,n;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return m.f&&(e={type:cn.a.IS_VIEWABLE},Object(un.a)(e)),r.next=3,regeneratorRuntime.awrap(Object(G.p)());case 3:if(!r.sent){r.next=12;break}return r.next=6,regeneratorRuntime.awrap(Object(G.s)());case 6:if(void 0!==(n=r.sent)){r.next=9;break}return r.abrupt("return",s.a.viewable);case 9:t=n,r.next=13;break;case 12:t=s.a.viewable;case 13:return s.a.setViewable(t),r.abrupt("return",t);case 15:case"end":return r.stop()}}))},_isViewableSync:function(){if(m.f){var e={type:cn.a.IS_VIEWABLE};Object(un.a)(e)}return s.a.viewable},isMuted:function(){var e,t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(Object(G.p)());case 2:if(!n.sent){n.next=11;break}return n.next=5,regeneratorRuntime.awrap(Object(G.l)());case 5:if(void 0!==(t=n.sent)){n.next=8;break}return n.abrupt("return",s.a.muted);case 8:e=t,n.next=12;break;case 11:e=s.a.muted;case 12:return s.a.setMuted(e),n.abrupt("return",e);case 14:case"end":return n.stop()}}))},isPrerender:sn.a};var dn={},fn=function(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(Object(c.b)("getVideoInfo",{},!1));case 2:return(null==(e=t.sent)?void 0:e.playable_vid)&&dn[e.playable_vid]&&(e.video_url=dn[e.playable_vid]),t.abrupt("return",e);case 5:case"end":return t.stop()}}))},pn=function(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:Object(c.b)("sendVideoProgress",{currentProgress:e},!1);case 1:case"end":return t.stop()}}))},vn=function(){var e,t,n=arguments;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:3e3,r.next=3,regeneratorRuntime.awrap(Object(R.a)("x.getAppInfo",{},!0,e));case 3:if(void 0!==(t=r.sent)){r.next=6;break}return r.abrupt("return",void 0);case 6:if(!t.hasOwnProperty("data")){r.next=10;break}return r.abrupt("return",t.data);case 10:return r.abrupt("return",t);case 11:case"end":return r.stop()}}))},bn=function(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(vn());case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return",0);case 5:return t.abrupt("return",e.statusBarHeight||0);case 6:case"end":return t.stop()}}))},hn=n(124);function gn(){var e,t,n,r;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(Object(G.g)());case 2:if(e=o.sent,t=e.dpaData,n=void 0,"string"==typeof t)try{r=JSON.parse(t||"{}"),n=r}catch(e){console.error("Error in parse dpa_data: ".concat(e.stack||e.message||e))}else void 0!==t&&(n=t);return o.abrupt("return",n);case 7:case"end":return o.stop()}}))}var yn={version:lt.a,sendEvent:function(e,t){!function(e,t){jt.some((function(t){return t===e}))?Object(u.a)(e,t,!0):(console.group("playable sdk error"),console.error('sendEvent 事件名称 "'.concat(e,'" 不存在,合法事件名称如下:')),console.error(jt),console.groupEnd())}(e,function(e,t){var n=wt({},t);[S.b.loadMainScene,S.b.loadMainSceneError].includes(e)&&(n=wt({},n,{prerender_duration:Date.now()-H.b}));e===S.b.clickArea&&(Object(mt.a)(),n=wt({},n,{is_playable_finish:gt.a&&yt.a===gt.a?ht.IN:ht.OUT,playable_sequence:mt.e,playable_gap:1===mt.e?void 0:mt.d,playable_play_duration:Object(mt.b)()}));e===S.b.finishPlayPlayable&&Object(gt.c)();e!==S.b.finishPlayPlayable&&e!==S.b.playableEnd||(n=wt({},n,{playable_play_duration:Object(mt.b)()}));return n}(e,t))},sendGameCloudEvent:function(){Object(u.a)(S.g.callSdkFn,{fnName:"sendGameCloudEvent"})},sendLostResourceInfo:function(){Object(u.a)(S.g.callSdkFn,{fnName:"sendLostResourceInfo"})},openAppStore:function(){Object(kt.b)()},registerConvertArea:function(e){return Object(u.a)(S.g.callSdkFn,{fnName:"registerConvertArea"}),Ft(e)},updateConvertArea:function(e,t){return Object(u.a)(S.g.callSdkFn,{fnName:"updateConvertArea"}),Vt(e,t)},unregisterConvertArea:function(e){return Object(u.a)(S.g.callSdkFn,{fnName:"unregisterConvertArea"}),function(e){if(void 0===xt[e])throw new Error("Wrong areaId");xt[e]=void 0,Ct(e)}(e)},unregisterAllConvertArea:function(){Object(u.a)(S.g.callSdkFn,{fnName:"unregisterAllConvertArea"}),Object.keys(xt).forEach((function(e){xt[e]=void 0,Ct(parseInt(e))}))},isPangle:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"isPangle"}),e.next=3,regeneratorRuntime.awrap(Object(G.p)());case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}))},getUIMaterial:function(){Object(u.a)(S.g.callSdkFn,{fnName:"getUIMaterial"})},getContextInfo:function(){Object(u.a)(S.g.callSdkFn,{fnName:"getContextInfo"})},sendScenarioInfo:function(){Object(u.a)(S.g.callSdkFn,{fnName:"sendScenarioInfo"})},getPlayableSettingInfo:function(){Object(u.a)(S.g.callSdkFn,{fnName:"getPlayableSettingInfo"})},sendRealPlay:function(){Object(u.a)(S.g.callSdkFn,{fnName:"sendRealPlay"})},popAbnormalMask:function(){Object(u.a)(S.g.callSdkFn,{fnName:"popAbnormalMask"})},sendFirstFrameShow:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"sendFirstFrameShow"}),e.next=3,regeneratorRuntime.awrap(regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(R.a)("playable_material_first_frame_show",void 0,!1);case 1:case"end":return e.stop()}})));case 3:case"end":return e.stop()}}))},sendGyroDuration:function(){Object(u.a)(S.g.callSdkFn,{fnName:"sendGyroDuration"})},getVideoInfo:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"getVideoInfo"}),e.next=3,regeneratorRuntime.awrap(fn());case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}))},sendVideoProgress:function(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"sendVideoProgress"}),t.next=3,regeneratorRuntime.awrap(pn(e));case 3:case"end":return t.stop()}}))},sendPlayableReward:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"sendPlayableReward"}),e.next=3,regeneratorRuntime.awrap(regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(c.b)("sendPlayableReward",{},!1);case 1:case"end":return e.stop()}})));case 3:case"end":return e.stop()}}))},getBarHeight:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"getBarHeight"}),e.next=3,regeneratorRuntime.awrap(bn());case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}))},openApp:function(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"openApp"}),t.next=3,regeneratorRuntime.awrap(Object(hn.b)(e));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}))},playableAlphaPlayerPlay:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(u.a)(S.g.callSdkFn,{fnName:"playableAlphaPlayerPlay"});case 1:case"end":return e.stop()}}))},playableTransfromModuleHighlight:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(u.a)(S.g.callSdkFn,{fnName:"playableTransfromModuleHighlight"});case 1:case"end":return e.stop()}}))},deviceShakeShort:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(u.a)(S.g.callSdkFn,{fnName:"deviceShakeShort"});case 1:case"end":return e.stop()}}))},getDpaInfo:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"getDpaInfo"}),e.next=3,regeneratorRuntime.awrap(gn());case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}))},getPlayableStyle:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"getPlayableStyle"}),e.next=3,regeneratorRuntime.awrap(Object(G.g)());case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}))},playableSendClickEvent:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(u.a)(S.g.callSdkFn,{fnName:"playableSendClickEvent"});case 1:case"end":return e.stop()}}))},openAdLandPageLinks:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(u.a)(S.g.callSdkFn,{fnName:"openAdLandPageLinks"});case 1:case"end":return e.stop()}}))},ensureMediaPermission:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(u.a)(S.g.callSdkFn,{fnName:"ensureMediaPermission"});case 1:case"end":return e.stop()}}))},saveMedia:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:Object(u.a)(S.g.callSdkFn,{fnName:"saveMedia"});case 1:case"end":return e.stop()}}))},addEventListener:ln.addEventListener,removeEventListener:ln.removeEventListener,isReady:ln.isReady,_isViewableSync:ln._isViewableSync,isViewable:ln.isViewable,isMuted:ln.isMuted,isPrerender:function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(u.a)(S.g.callSdkFn,{fnName:"isPrerender"}),e.next=3,regeneratorRuntime.awrap(ln.isPrerender());case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}))},shake:function(){Object(u.a)(S.g.callSdkFn,{fnName:"shake"})},vibrate:function(){Object(u.a)(S.g.callSdkFn,{fnName:"vibrate"})},setSensorInterval:function(){Object(u.a)(S.g.callSdkFn,{fnName:"setSensorInterval"})},getSensorInterval:function(){Object(u.a)(S.g.callSdkFn,{fnName:"getSensorInterval"})},playableSetScrollRect:function(){Object(u.a)(S.g.callSdkFn,{fnName:"playableSetScrollRect"})},playableCancelScrollRect:function(){Object(u.a)(S.g.callSdkFn,{fnName:"playableCancelScrollRect"})}},mn=function(e){return new Promise((function(t){setTimeout((function(){t()}),e)}))},_n=(n(126),n(127),n(154)),wn=n.n(_n),On=n(104),jn=n(74);function kn(e){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function En(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pn(e,t){return(Pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var An=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==kn(t)&&"function"!=typeof t?En(e):t}(this,Sn(t).call(this)),Mn(En(n),"parent",void 0),Mn(En(n),"mounted",!1),Mn(En(n),"adText",""),Mn(En(n),"privacyUrl",""),Mn(En(n),"adIcon",""),Mn(En(n),"handleTouchStart",Object(G.b)((function(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(Object(G.d)());case 3:e=t.sent,!(null==e||!e.sdkEdition)&&Object(ut.a)(e.sdkEdition,"4.4.0.0")>=0?Object(G.a)("openPrivacy",{},!1):Object(jn.a)(n.privacyUrl),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),Object(jn.a)(n.privacyUrl);case 11:case"end":return t.stop()}}),null,null,[[0,8]])})));var r=e.parent,o=e.adLabel;return(null==o?void 0:o.text)&&(n.adText=o.text),(null==o?void 0:o.privacy_url)&&(n.privacyUrl=o.privacy_url),(null==o?void 0:o.icon)&&(n.adIcon=o.icon),n.parent=r,n.html=n.getHtml(),Object(G.p)().then((function(){n.updateDomOnce()})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pn(e,t)}(t,e),n=t,(r=[{key:"getHtml",value:function(){return'<div id="'.concat("playable-ad-logo",'" class="').concat(wn.a.adLogo,'">').concat("logo"===this.adIcon?"<div class="+wn.a.adLogoIcon+"></div>":"").concat(this.adText,"</div>")}},{key:"updateDomOnce",value:function(){var e=this;this.mounted?Object(G.n)()&&(this.dom.addEventListener("touchstart",(function(t){t.stopPropagation(),e.handleTouchStart()}),!0),this.dom.addEventListener("click",(function(e){return e.stopPropagation()}),!0),this.dom.addEventListener("dblclick",(function(e){return e.stopPropagation()}),!0)):this.html=this.getHtml()}},{key:"mount",value:function(){this.mounted=!0,this.parent.appendChild(this.dom)}},{key:"unmount",value:function(){this.mounted=!1,this.dom.remove()}}])&&xn(n.prototype,r),o&&xn(n,o),t}(On.a),Tn=n(29);function Ln(e){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dn(e){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rn(e,t){return(Rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Cn=function(e){function t(){var e,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==Ln(t)&&"function"!=typeof t?Nn(e):t}(this,Dn(t).call(this)),n=Nn(e),o=!1,(r="isShowSko")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rn(e,t)}(t,e),n=t,(r=[{key:"handleViewableChange",value:function(e){e.viewable&&!this.isShowSko&&(Number(Object(G.h)("plb_skoverlay"))||-1)>0&&(this.isShowSko=!0,function(){Object(G.w)("plb_skoverlay");var e=!1,t=function(t){t.viewable&&!e&&(e=!0,Object(G.a)("dismissSKOverlay",void 0,!1))};Object(G.w)("click",{auto_click:!0}),Object(G.a)("presentSKOverlay",void 0,!1),setTimeout((function(){s.a.viewable?t({viewable:!0}):s.a.addEventListener("viewableChange",t)}),3200)}())}},{key:"mount",value:function(){s.a.viewable?this.handleViewableChange({viewable:!0}):s.a.addEventListener("viewableChange",this.handleViewableChange)}},{key:"unmount",value:function(){s.a.removeEventListener("viewableChange",this.handleViewableChange)}}])&&In(n.prototype,r),o&&In(n,o),t}(On.a),Bn=n(28);function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(n,!0).forEach((function(t){Un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zn(e){var t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:t=Date.now().toString(36)+Math.random().toString(36).substr(2,9),Bn.a.sendMessageToParent("get_playable_style",{id:t}),Bn.a.onMessage("playable_style",(function(n){n.id===t&&n.style&&e(Vn({resSource:"playable_stye_jsb"},Object(c.h)(n.style)))}));case 3:case"end":return n.stop()}}))}var Jn=function(e){var t,r;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(n.e(5).then(n.bind(null,230)));case 2:t=o.sent,r=t.FixedDownloadButton,new r({parent:document.body,clickCallback:e}).mount();case 6:case"end":return o.stop()}}))},Gn=function(e){var t,r;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(n.e(2).then(n.bind(null,260)));case 2:t=o.sent,r=t.ConvertArea,new r({parent:document.body,playableStyle:e}).mount();case 6:case"end":return o.stop()}}))},Hn=function(){var e,t,r,o,a;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(n.e(3).then(n.bind(null,262)));case 2:return e=i.sent,t=e.initPlayableGuide,i.next=6,regeneratorRuntime.awrap(Object(G.g)());case 6:if(r=i.sent,o=r.playableGuideStyle,a=t({parent:document.body,style:o}),!Object(G.m)()){i.next=13;break}return i.next=13,regeneratorRuntime.awrap(mn(1e3));case 13:1===Ht.a.playableShow?a.mount():z.f.on((function e(t){t.name===S.g.playableShow&&(a.mount(),z.f.off(e))}));case 14:case"end":return i.stop()}}))},Wn=function(e){var t;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(n.e(4).then(n.bind(null,261)));case 2:t=r.sent,new(0,t.DownloadBanner)({parent:document.body,data:e});case 5:case"end":return r.stop()}}))},Qn=function(e){var t,r;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(n.e(1).then(n.bind(null,263)));case 2:t=o.sent,r=t.DownloadBar,new r({parent:document.body,playableStyle:e}).mount();case 6:case"end":return o.stop()}}))},Yn=null,qn=function(e){try{if(!(null==e?void 0:e.icon)&&!(null==e?void 0:e.text))return!1;var t=new An({parent:document.body,adLabel:e});return t.mount(),Yn=t,!0}catch(e){return console.error("Error in mount ADLogo",e),!1}},Xn=function(){try{return(new Cn).mount(),!0}catch(e){return console.error("Error in mount IOSEvent",e),!1}};n(220);function Kn(e){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $n(e,t){return($n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function er(e,t,n,r){return(er="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,a=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nr(e)););return e}(e,t);if(a){if((o=Object.getOwnPropertyDescriptor(a,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else ar(r,t,n);return!0})(e,t,n,r)}function tr(e,t,n,r,o){if(!er(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ir=window.Audio,cr=window.AudioContext||window.webkitAudioContext,ur=AudioNode.prototype.connect,sr=function(){function e(){var t=this;rr(this,e),ar(this,"isMuted",!1),ar(this,"globalGainNodes",[]),ar(this,"overrideMedia",(function(){var e=t;window.Audio=function(t){function n(t){var r;return rr(this,n),r=function(e,t){return!t||"object"!==Kn(t)&&"function"!=typeof t?Zn(e):t}(this,nr(n).call(this,t)),ar(Zn(r),"_mutedVolume",void 0),ar(Zn(r),"_volume",void 0),ar(Zn(r),"_muted",void 0),r._mutedVolume=r.volume,r._volume=e.isMuted?0:r.volume,r.volume=r._volume,Object.defineProperty(Zn(r),"volume",{get:function(){return r._volume},set:function(t){r._mutedVolume=t,r._volume=e.isMuted?0:t,tr(nr(n.prototype),"volume",r._volume,Zn(r),!0)}}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$n(e,t)}(n,t),n}(ir);var n=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){return e.isMuted?this.volume=0:this.volume=this._mutedVolume||1,n.call(this)}})),ar(this,"overrideAudioContext",(function(){var e=t,n=new Map;window.AudioContext=window.webkitAudioContext=function(){var t=new cr,r=t.createGain();return r.gain.setValueAtTime(e.isMuted?0:1,r.context.currentTime),r.connect(t.destination),n.set(t,r),e.globalGainNodes.push(r),t},AudioNode.prototype.connect=function(e){for(var t,r=n.get(this.context),o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return e===this.context.destination&&r?(t=ur).call.apply(t,[this,r].concat(a)):ur.call.apply(ur,[this,e].concat(a))}})),ar(this,"init",(function(){t.overrideMedia(),t.overrideAudioContext(),t.observe()})),ar(this,"muted",(function(){t.isMuted=!0,document.querySelectorAll("audio, video").forEach((function(e){e._mutedVolume=e.volume,e.volume=0,e.muted=!0})),t.globalGainNodes&&t.globalGainNodes.forEach((function(e){e.gain.setValueAtTime(0,e.context.currentTime)}))})),ar(this,"unmuted",(function(){t.isMuted=!1,document.querySelectorAll("audio, video").forEach((function(e){e.volume=e._mutedVolume||1,e.muted=!1})),t.globalGainNodes&&t.globalGainNodes.forEach((function(e){e.gain.setValueAtTime(1,e.context.currentTime)}))})),this.init()}var t,n,r;return t=e,r=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"observe",value:function(){var e=this;new MutationObserver((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){"AUDIO"!==t.tagName&&"VIDEO"!==t.tagName||(t.volume=e.isMuted?0:t.volume,t.muted=e.isMuted||t.muted)}))}))})).observe(document,{childList:!0,subtree:!0})}}])&&or(t.prototype,n),r&&or(t,r),e}();ar(sr,"instance",void 0);var lr=sr.getInstance();function dr(){Object(G.t)()&&Object(G.a)("popGesture",{enable:0},!1)}var fr,pr;n(8);function vr(){var e;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(Object(R.a)(on.c,{},!0));case 2:return e=t.sent,t.abrupt("return",e||{});case 4:case"end":return t.stop()}}))}!function(e){e[e.VIDEO_AND_PLB=0]="VIDEO_AND_PLB",e[e.PLB_ONLY=1]="PLB_ONLY"}(fr||(fr={})),function(e){e[e.pause=1]="pause",e[e.continue=2]="continue"}(pr||(pr={}));var br=1e4,hr=5e3,gr=100,yr=Number(Object(G.h)("click_delay"))||-1,mr=!1,_r=!(Number(Object(G.h)("need_click"))>0);function wr(){var e,t,n,r,o,a,i,c,u,l,d;return regeneratorRuntime.async((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,regeneratorRuntime.awrap(vr());case 2:if(!(n=f.sent).isMultiAd||"number"!=typeof n.currentIndex||"number"!=typeof n.totalAdCount||n.currentIndex!==n.totalAdCount-1){f.next=5;break}return f.abrupt("return");case 5:r=!1,o=0,a=function(){r=!0},z.b.on(a),i=0,c=!1,console.log("adData: ",n),u=(u=null==n?void 0:null===(e=n.popup)||void 0===e?void 0:e.max_time)&&"number"==typeof u&&u>0?u:void 0,void 0===(l=(l=null==n?void 0:null===(t=n.popup)||void 0===t?void 0:t.show_after_inactivity)&&"number"==typeof l&&l>0?1e3*l:void 0)&&(l=(null==n?void 0:n.isMultiAd)||(null==n?void 0:n.playable_type)!==fr.VIDEO_AND_PLB?br:hr),console.log("showAfterInactivity: ",l),u&&l&&(d=Object(nt.b)((function(){var e,t;s.a.viewable&&!c&&(r?(r=!1,o=0):o+=gr,l&&u&&o>=l&&!r&&i<u?regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.isMultiAd){r.next=9;break}return r.next=3,regeneratorRuntime.awrap(Object(G.a)(on.b,{},!1));case 3:if(e=r.sent,!("number"==typeof(t=(e||{}).leftTime)&&t<=0)&&t){r.next=9;break}return Object(nt.a)(d),z.b.off(a),r.abrupt("return");case 9:Object(G.u)(on.h,(function(){Object(G.a)(on.a,{status:pr.pause},!1)}),!0),Object(G.a)(on.i,{},!1),c=!0,Object(G.u)(on.g,(function(){o=0,c=!1}),!0),i++;case 14:case"end":return r.stop()}})):u&&i>=u&&(Object(nt.a)(d),z.b.off(a)))}),gr));case 19:case"end":return f.stop()}}))}function Or(){var e,t,n,r;return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:s.a.addEventListener("viewableChange",(function(){s.a.viewable?mr=!0:Object(G.m)()||(mr=!1)})),e=function e(){Object(J.b)([J.a.exemptedFromPlay])||(z.b.off(e),_r=!0)},z.b.on(e),yr>=0&&(t=0,n=!1,50,100,r=Object(nt.b)((function(){mr&&!n&&((t+=50)>yr&&t-yr<100&&_r?(n=!0,Object(kt.b)({skipCheckClick:!0,autoClick:!0})):t-yr>100&&r&&Object(nt.a)(r))}),50)),window.addEventListener("load",(function(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(wr());case 2:case"end":return e.stop()}}))}));case 5:case"end":return o.stop()}}))}try{Object(u.a)(S.g.playableSdkPageStart,{timestamp:performance.now()})}catch(e){}window._tt_config=!0,window.playableSDK=yn,window.openAppStore=yn.openAppStore,Object(G.r)()?null==dr||dr():null==Or||Or(),Number(Object(G.h)("need_mute"))>0&&lr.muted(),Number(Object(G.h)("use_iframe_event"))>0&&Object(Bn.b)()&&document.addEventListener("DOMContentLoaded",(function(){Bn.a.onMessage("mute",lr.muted),Bn.a.onMessage("unmute",lr.unmuted),Bn.a.sendMessageToParent("playable_page_rendered")})),function(){var e=!1,t=!1,n=function(){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(e||o(),t){n.next=8;break}if(!(Number(Object(G.h)("use_iframe_event"))>0&&Object(Bn.b)())){n.next=6;break}zn((function(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(r(5,e));case 2:case"end":return t.stop()}}))})),n.next=8;break;case 6:return n.next=8,regeneratorRuntime.awrap(r(5));case 8:case"end":return n.stop()}}))};function r(e,n){var o,a;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n){i.next=4;break}return i.next=3,regeneratorRuntime.awrap(Object(G.g)());case 3:n=i.sent;case 4:if(n){i.next=7;break}return e>0?setTimeout((function(){r(e-1)}),1e3):Object(u.a)(S.g.sdkInitDownloadButton,{success:!1}),i.abrupt("return");case 7:if(Number(Object(G.h)("use_iframe_event"))>0&&Object(Bn.b)()&&Bn.a.onMessage("hide_ad_logo",(function(){Yn&&Yn.unmount()})),(!Object(G.h)("hide_ad_logo")||Number(Object(G.h)("hide_ad_logo"))<=0)&&qn(null===(o=n)||void 0===o?void 0:o.adLabel),n.displayDownloadButton&&!window.HIDE_PLAYABLE_DOWNLOAD_BUTTON&&("default"===n.convertAreaType?Jn():Gn(n),Object(u.a)(S.g.sdkInitDownloadButton,{success:!0})),n.playableDownloadBarStyle?n.playableDownloadBarStyle&&n.appName&&n.appIcon?Qn(n):Object(u.a)(S.g.gotPlayableDownloadBarStyle,{playable_download_bar_style:0}):Object(u.a)(S.g.gotPlayableDownloadBarStyle,{playable_download_bar_style:-1}),n.displayPlayableGuide&&!window.HIDE_PLAYABLE_REWARD_GUIDE&&Hn(),!n.displayDownloadBanner){i.next=19;break}return i.next=16,regeneratorRuntime.awrap(Object(Tn.a)());case 16:a=i.sent,Wn(null==a?void 0:a.land_page_data),Object(u.a)(S.g.sdkInitDownloadButton,{success:!0});case 19:t=!0;case 20:case"end":return i.stop()}}))}function o(){Object(G.t)()&&Xn(),e=!0}"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)}()}]);
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # My Playable Toolkit
2
- - `Just a Noname Playable Ads Dev!`
3
- - `Hi, I'm Hiep from HMGames, this is a simple playable toolkit to make an easier build solution!`
1
+ # My Playable Toolkit
2
+ - `Just a Noname Playable Ads Dev!`
3
+ - `Hi, I'm Hiep from HMGames, this is a simple playable toolkit to make an easier build solution!`