hel-tpl-remote-react-comps-ts
Version:
最简单的远程react组件模板(ts) codesandbox: https://codesandbox.io/s/demo-load-remote-react-comp-2bnpl0?file=/src/App.js
3 lines • 39 kB
JavaScript
/*! For license information please see main.aea1d0f2.js.LICENSE.txt */
!function(){var t={511:function(t,e,r){!function(t,e){"use strict";function r(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var n=r(e),o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)};function i(t,r){var n=r||(null===e.getAppPlatform||void 0===e.getAppPlatform?void 0:e.getAppPlatform(t)),o=e.getSharedCache(n).appName2Lib;return o[t]||(o[t]={}),o[t]}var a="4.7.0";n.log("hel-lib-proxy ver ".concat(a));var u=n.getUserEventBus,c=n.helConsts,l=u();function s(t,e){var r=o({},e||{});return r.platform=c.DEFAULT_PLAT,n.getVerLib(t,r)}function f(t,r){var o,a=!0,u="";r&&("string"==typeof r?u=r:(u=r.platform||"",a=null===(o=r.asProxy)||void 0===o||o));var l=i(t,u=u||n.getAppPlatform(t)||c.DEFAULT_PLAT);return"function"==typeof Proxy&&a&&(l=function(t,r,n){return new Proxy(r,{get:function(r,o){var a=String(o);return e.log("[[getLibProxy]] call lib [".concat(t,"] method [").concat(a,"]")),Object.keys(r).length?r[a]:i(t,n)[a]}})}(t,l,u)),n.log("[[ exposeLib ]] libName, libObj",t,l),l}function p(t,r,i){var a=function(t){var r={allowDup:!1,platform:e.helConsts.DEFAULT_PLAT};return o(o({},r),t||{})}(i);n.libReady(t,r,a)}function v(t,e,r){n.appReady(t,e,r)}function d(t,e){return n.getVerApp(t,e)}var m=n.isSubApp;function h(){return!n.isSubApp()}var g=Object.freeze({__proto__:null,VER:a,eventBus:l,getLib:s,exposeLib:f,libReady:p,appReady:v,exposeApp:d,isSubApp:m,isMasterApp:h}),y=e.commonUtil.purify,_=["isMasterApp","isSubApp","eventBus"],b=["appReady","libReady"];function E(t,e){return e&&"object"==typeof e?o({platform:t},y(e)):e}function A(t,e){var r={};return Object.keys(t).forEach((function(n){var o=t[n];if(_.includes(n))r[n]=o;else if(b.includes(n))r[n]=function(t,e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1],a=r[2];return t(o,i,E(e,void 0===a?{}:a))}}(o,e);else{var i="exposeLib"===n;r[n]=function(t,e,r){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n[0],a=n[1];return t(i,r&&"string"==typeof a?a||e:E(e,a))}}(o,e,i)}})),r}function S(t){var e=A(g,t);return e.createInstance=S,e}var L=a,N=p,O=f,I=s,T=m,w=h,P=l,C=v,D=d,x={VER:L,libReady:N,exposeLib:O,getLib:I,isSubApp:T,isMasterApp:w,eventBus:P,appReady:C,exposeApp:D,createInstance:S};t.VER=L,t.appReady=C,t.createInstance=S,t.default=x,t.eventBus=P,t.exposeApp=D,t.exposeLib=O,t.getLib=I,t.isMasterApp=w,t.isSubApp=T,t.libReady=N,Object.defineProperty(t,"__esModule",{value:!0})}(e,r(780))},780:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"===typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.r(e),r.d(e,{allowLog:function(){return te},appReady:function(){return Me},commonDataUtil:function(){return he},commonUtil:function(){return zt},evName:function(){return Re},getAppMeta:function(){return ce},getAppPlatform:function(){return Te},getAppStyleStr:function(){return Ee},getCommonData:function(){return de},getCustomData:function(){return pe},getGlobalThis:function(){return re},getHelDebug:function(){return Zt},getHelEventBus:function(){return De},getPlatform:function(){return $t},getPlatformConfig:function(){return Ie},getSharedCache:function(){return Qt},getUserEventBus:function(){return xe},getVerApp:function(){return oe},getVerExtraCssList:function(){return Se},getVerLib:function(){return ae},getVerLoadStatus:function(){return ge},getVerStyleStrStatus:function(){return _e},getVersion:function(){return se},helConsts:function(){return Xt},helEvents:function(){return Ht},helLoadStatus:function(){return Bt},inectPlatToMod:function(){return Wt},initPlatformConfig:function(){return Pe},isSubApp:function(){return Jt},libReady:function(){return je},log:function(){return ee},originInit:function(){return Ce},resetGlobalThis:function(){return qt},setAppMeta:function(){return le},setAppPlatform:function(){return we},setAppStyleStr:function(){return Ae},setCommonData:function(){return me},setCustomData:function(){return ve},setEmitApp:function(){return ie},setEmitLib:function(){return ue},setGlobalThis:function(){return ne},setVerExtraCssList:function(){return Le},setVerLoadStatus:function(){return ye},setVerStyleStrStatus:function(){return be},setVersion:function(){return fe},tryGetAppName:function(){return Oe},tryGetVersion:function(){return Ne}});var f=null;function p(){return f||function(){if("undefined"===typeof window){if("undefined"===typeof r.g)throw new Error("unable to locate global object");f=r.g}else f=window}(),f}function v(){return p()}function d(t){return Object.keys(t)}function m(){var t=function(){try{var t,e;return(null===(t=p().top)||void 0===t||null===(e=t.location)||void 0===e?void 0:e.search)||""}catch(o){var r,n;return(null===(r=p())||void 0===r||null===(n=r.location)||void 0===n?void 0:n.search)||""}}(),e={};null!==t&&void 0!==t&&t.startsWith("?")&&t.substring(1).split("&").forEach((function(t){var r=u(t.split("="),2),n=r[0],o=r[1];e[n]=o}));return e}function h(){var t="";try{throw new Error("getJsRunLocation")}catch(r){var e=r.stack.split("\n");t=e[e.length-1]||""}return t}function g(t,e,r,n){y(t,e)[r]=n}function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t[e];return n||(n=r,t[e]=n),n}function _(t,e){Object.keys(e).forEach((function(r){var n=e[r];[null,void 0,""].includes(n)||(t[r]=n)}))}function b(t,e){t.includes(e)||t.push(e)}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.nullValues,n=void 0===r?[null,void 0,""]:r,o=e.emptyObjIsNull,a=void 0===o||o,u=e.emptyArrIsNull,c=void 0===u||u,l=n.includes(t);if(l)return!0;if(Array.isArray(t))return!!c&&0===t.length;if("object"===i(t)){var s=d(t),f=s.length;return!!a&&0===f}return!1}function A(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e}var S=E,L=b,N=d;function O(t,e){var r=e||function(t){return!S(t)},n={};return N(t).forEach((function(e){r(t[e])&&(n[e]=t[e])})),n}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MULTI",r=t.split("\n"),n=r.length-1,o=r.map((function(t,r){var o;if(!t&&(0===r||r===n))return"";var i=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=t;return t.endsWith("<br/>")?(n=t.substring(0,n.length-5),"".concat(n).concat(e)):"".concat(n).concat(r)},a=(null===(o=t.trimStart)||void 0===o?void 0:o.call(t))||t;return"MULTI"===e?"".concat(i(a,""),"\n"):a=i(a,"\n"," ")})).join("");return o}function T(t){return I(t,"ONE")}function w(t,e,r){t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(e),r)}function P(t){w(t,"heldisabled","1"),t.disabled=!0}var C=Object.freeze({__proto__:null,noop:A,safeParse:function(t,e,r){if(t&&"string"!==typeof t)return t;try{return JSON.parse(t)||e}catch(n){if(void 0!==e)return e;if(r)throw new Error(r);throw n}},isNull:S,noDupPush:L,okeys:N,merge2List:function(t,e){var r=[];return t.forEach((function(t){return L(r,t)})),e.forEach((function(t){return L(r,t)})),r},purify:O,getObjsVal:function(t,e,r){var n,o=r,i=function(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(t);try{for(i.s();!(n=i.n()).done;){var a=n.value[e];if(![null,void 0,""].includes(a)){o=a;break}}}catch(u){i.e(u)}finally{i.f()}return o},pfstr:I,nbstr:T,nbalert:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=p(),n=T(t),o=r.alert||A;e&&r.location?r.location.port&&o(n):o(n)},setDataset:w,disableNode:P});var D={isIncludeFilter:function(t,e){return e.includes(",")?e.split(",").some((function(e){return t.includes(e)})):t.includes(e)},getLogFilter:function(){return M().logFilter},setLogFilter:function(t){M().logFilter=t},setLogMode:function(t){var e=parseInt(t,10);[1,2].includes(e)&&(M().logMode=e)},getLogMode:function(){return M().logMode}},x={};function R(){if(E(x=v().__HEL_MICRO_DEBUG__)){x={logMode:0,logFilter:"",isInit:!1},v().__HEL_MICRO_DEBUG__=x;try{!function(){if(!M().isInit){M().isInit=!0;var t=m(),e=t.hellog,r=t.hellogf,n=p().localStorage,o=e||(null===n||void 0===n?void 0:n.getItem("HelConfig.logMode"))||0;D.setLogMode(o);var i=r||(null===n||void 0===n?void 0:n.getItem("HelConfig.logFilter"))||"";D.setLogFilter(i)}}()}catch(t){}}else void 0===x.logMode&&(x.logMode=0,x.logFilter="")}function j(){return 0!==D.getLogMode()}function M(){return x}var G=" %c--\x3e HEL LOG:",F="color:#ad4e00;font-weight:600";function V(){if(j()){for(var t=1===D.getLogMode()?console.log:console.trace||console.log,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r[0],i=r.slice(1);if("string"!==typeof o)return t.apply(void 0,[G,F].concat(r));var a=D.getLogFilter(),u=["".concat(G," ").concat(o),F].concat(c(i));a?D.isIncludeFilter(o,a)&&t.apply(void 0,c(u)):t.apply(void 0,c(u))}}var K="unpkg",k="__default_online_ver__",U=K,Y={CORE_VER:"4.7.0",DEFAULT_API_PREFIX:"https://unpkg.com",DEFAULT_API_URL:"/openapi/v1/app/info",DEFAULT_ONLINE_VER:k,DEFAULT_USER_LS_KEY:"HelUserRtxName",DEFAULT_PLAT:U,PLAT_HEL:"hel",PLAT_UNPKG:K,KEY_CSS_STR:"CSS_STR",KEY_ASSET_CTX:"ASSET_CTX",KEY_STYLE_TAG_ADDED:"STYLE_TAG_ADDED",KEY_CSS_LINK_TAG_ADDED:"CSS_LINK_TAG_ADDED",KEY_IGNORE_CSS_PREFIX_LIST:"IGNORE_CSS_PREFIX_LIST",KEY_IGNORE_STYLE_TAG_KEY:"IGNORE_STYLE_TAG_KEY",KEY_IGNORE_CSS_PREFIX_2_KEYS:"IGNORE_CSS_PREFIX_2_KEYS"},H={SUB_APP_LOADED:"subAppLoaded",SUB_LIB_LOADED:"SubLibLoaded",STYLE_STR_FETCHED:"StyleStrFetched",STYLE_TAG_ADDED:"StyleTagAdded",CSS_LINK_TAG_ADDED:"CssLinkTagAdded"},B={NOT_LOAD:0,LOADING:1,LOADED:2},X=Y.DEFAULT_API_URL,W=Y.DEFAULT_USER_LS_KEY,z=Y.PLAT_HEL,J=Y.PLAT_UNPKG,q=Y.DEFAULT_API_PREFIX,$=Y.CORE_VER,Q=Y.KEY_CSS_LINK_TAG_ADDED,Z=Y.KEY_STYLE_TAG_ADDED,tt=Y.KEY_IGNORE_CSS_PREFIX_LIST,et=Y.KEY_IGNORE_STYLE_TAG_KEY,rt=Y.KEY_IGNORE_CSS_PREFIX_2_KEYS;function nt(t){return{apiMode:"get",apiPrefix:(t||{}).apiPrefix,apiSuffix:"",apiPathOfApp:X,apiPathOfAppVersion:"",getSubAppAndItsVersionFn:null,onFetchMetaFailed:null,strictMatchVer:!0,getUserName:null,userLsKey:W,shouldUseGray:null,trustAppNames:null,semverApi:null,hook:{}}}function ot(t){return o(o({isConfigOverwrite:!1,platform:t,appName2Comp:{},appName2Lib:{},appName2isLibAssigned:{},appName2EmitApp:{},appName2verLoadStatus:{},appName2verEmitLib:{},appName2verEmitApp:{},appName2verStyleStr:{},appName2verStyleFetched:{},appName2verExtraCssList:{},appName2verAppVersion:{},appName2verCustomData:{},appName2app:{},appName2appVersion:{},appName2styleStr:{},appGroupName2firstVer:{},isOriginInitCalled:!1},nt()),{},{origin:nt({apiPrefix:q})})}function it(){var t={};return{on:function(e,r){var n=t[e];if(!n){var o=[];t[e]=o,n=o}n.push(r)},emit:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=t[e];if(i){var a=i.slice();a.forEach((function(t){return t.apply(void 0,n)}))}},off:function(e,r){var n=t[e];if(n)for(var o=0,i=n.length;o<i;o++){if(n[o]===r){n.splice(o,1);break}}}}}function at(t){[Q,Z,tt,et,rt].forEach((function(e){return y(t,e,function(t){return t===tt?[]:{}}(e))}))}function ut(){var t=ct();if(t){var e=t.cacheRoot;y(e,"appGroupName2platform"),y(e,"common");var r=e.caches;return Object.keys(r).forEach((function(t){var e=r[t];y(e,"appGroupName2firstVer"),y(e,"appName2verExtraCssList"),y(e,"appName2verCustomData"),y(e,"hook"),y(e,"origin",nt()),y(e.origin,"hook")})),at(e.common),void(t.userEventBus||(t.userEventBus=it()))}t=function(){var t,e=ot(J),r=ot(z),n={platform:z,platformHint:"the platform value here does not make any sense!",appName2platform:{},appGroupName2platform:{},caches:(t={},a(t,J,e),a(t,z,r),t),common:{}},o=it(),i=it();return{ver:$,isStyleObInit:!1,nativeHeadAppend:null,nativeBodyAppend:null,createFeature:h(),eventBus:o,userEventBus:i,cacheRoot:n,unpkgCache:e,helCache:r,dev:{setLogMode:D.setLogMode,setLogFilter:D.setLogFilter}}}(),at(t.cacheRoot.common),v().__HEL_MICRO_SHARED__=t}function ct(){return v().__HEL_MICRO_SHARED__}function lt(){return U}function st(t){var e=t||lt(),r=ft(),n=r.caches[e];if(!n){var o=i(t);if("string"!==o)throw console.error("invalid plaform:",t),new Error("fatal error: platform only can be a string, now it is ".concat(o));var a=ot(t);r.caches[e]=a,n=a}return n}function ft(){return ct().cacheRoot}var pt={getCustomData:function(t,e,r){var n=r.versionId,o=y(st(r.platform).appName2verCustomData,t);return y(o,e)[n||k]},getAppMeta:function(t,e){return st(e).appName2app[t]},setVerLoadStatus:function(t,e,r,n){var o=n||{},i=o.versionId;g(st(o.platform)[r],t,i||k,e)},getVerLoadStatus:function(t,e,r){var n,o=r||{},i=o.versionId,a=st(o.platform)[e],u=i||k;return(null===(n=a[t])||void 0===n?void 0:n[u])||B.NOT_LOAD},ensureOnlineModule:function(t,e,r){if(!t[k]){var n=pt.getAppMeta(e,r),o=t[null===n||void 0===n?void 0:n.online_version];o&&(t[k]=o)}}};function vt(t,e){V("[[ core:setEmitApp ]] appName,emitApp:",t,e);var r=e.versionId,n=st(e.platform),o=n.appName2verEmitApp,i=n.appName2Comp,a=n.appName2EmitApp;y(o,t)[k]||(i[t]=e.Comp,a[t]=e,g(o,t,k,e)),r&&g(o,t,r,e)}var dt=Y.KEY_CSS_LINK_TAG_ADDED,mt=Y.KEY_STYLE_TAG_ADDED,ht=Y.KEY_IGNORE_CSS_PREFIX_LIST,gt=Y.KEY_IGNORE_STYLE_TAG_KEY,yt=Y.KEY_IGNORE_CSS_PREFIX_2_KEYS;function _t(t){return y(ft().common,t)}function bt(t){return ft().common[t]}function Et(t,e){var r=_t(t)[e];return void 0!==r?r:null}function At(t,e,r){_t(t)[e]=r}var St={setIgnoreCssPrefix:function(t){b(bt(ht),t)},setIgnoreStyleTagKey:function(t){St.getIgnoreStyleTagMap()[t]=1},getIgnoreStyleTagMap:function(){return bt(gt)},setIgnoreCssPrefixKey:function(t,e){var r=Et(yt,t);r||At(yt,t,r=[]),b(r,e)},getIgnoreCssPrefixKeys:function(t){return bt(yt)[t]||[]},getMatchedIgnoreCssPrefix:function(t){for(var e=bt(ht),r="",n=0;n<e.length;n++){var o=e[n];if(t.startsWith(o)){r=o;break}}return r},getIgnoreCssPrefixCssUrlList:function(t){var e=Et(dt,t);return e||At(dt,t,e=[]),e},setIgnoreCssPrefixCssUrl:function(t,e){St.getIgnoreCssPrefixCssUrlList(t).push(e)},getStyleTagText:function(t){return Et(mt,t)||""},clearStyleTagText:function(t){At(mt,t,"")},appendStyleTagText:function(t,e){var r=St.getStyleTagText(t);At(mt,t,"".concat(r," ").concat(e))}};function Lt(t,e){var r=t.apiMode,n=t.apiPrefix,o=t.apiSuffix,i=t.apiPathOfApp,a=t.apiPathOfAppVersion,u=t.getSubAppAndItsVersionFn,c=t.onFetchMetaFailed,l=t.strictMatchVer,s=t.getUserName,f=t.userLsKey,p=t.shouldUseGray,v=t.getApiPrefix,d=t.trustAppNames,m=t.platform,h=t.origin,g={apiMode:r,apiPrefix:n,apiSuffix:o,apiPathOfApp:i,apiPathOfAppVersion:a,getSubAppAndItsVersionFn:u,onFetchMetaFailed:c,strictMatchVer:l,getUserName:s,userLsKey:f,shouldUseGray:p,getApiPrefix:v,trustAppNames:d,hook:t.hook,platform:m};return e&&(g.origin=h),g}function Nt(t){return ft().appGroupName2platform[t]||lt()}function Ot(t,e){var r=e.customKey,n=y(st(e.platform).appName2verCustomData,t);return y(n,r)}var It=H.STYLE_TAG_ADDED,Tt=H.CSS_LINK_TAG_ADDED;function wt(){return ct().eventBus}var Pt={styleTagAdded:function(t){return"".concat(It,"/").concat(t)},cssLinkTagAdded:function(t){return"".concat(Tt,"(").concat(t,")")}};function Ct(t,e,r){var n=(r||{}).appGroupName,o=e.versionId,a=e.appProperties,u=e.platform||r.platform,c=st(u),l=c.appName2verEmitLib,s=c.appName2Lib,f=c.appName2isLibAssigned,p=pt.getAppMeta(t,u),v=function(t){var e=s[t];e?"object"===i(e)&&0===Object.keys(e).length&&Object.assign(e,a):s[t]=a,f[t]=!0};v(t),n?v(n):p&&v(p.app_group_name),V("[[ core:setEmitLib ]] appMeta:",p),y(l,t)[k]||g(l,t,k,a),o&&g(l,t,o,a)}function Dt(t,e){return st(e).appName2app[t]}function xt(t,e,r){pt.setVerLoadStatus(t,e,"appName2verLoadStatus",r)}function Rt(t,e){var r=h();V("[[ core:tryGetVersion ]] may include source > ".concat(r));var n=st(e).appGroupName2firstVer[t]||"";if(r.includes("https://")||r.includes("http://")){var o=u(r.split("//"),2)[1].split("/");if(n){if(e===U&&o.some((function(t){return t.includes(n)})))return n;if(o.includes(n))return n;if("static"===o[1]&&"js"===o[2]||"js"===o[1])return n}return e===U?o[1].split("@")[1]||n:o[2]||n}return n}function jt(t,e){return t===k?e||"":t.includes("_")?t.substring(0,t.length-15):e||""}var Mt=!1,Gt=!1;var Ft=Y.KEY_ASSET_CTX;function Vt(t,e){if(!e||!["LINK","SCRIPT"].includes(e.tagName))return t(e);var r=e.href,n=e.tagName,o=e.src,i="LINK"===n,a=Et(Ft,r||o||"")||{},u=a.platform,c=a.groupName,l=a.name,s=a.ver,f=a.beforeAppend,p=e;if(f){var v=i?"href":"src",d=e.getAttribute(v);p=f({el:e,nativeAppend:t,setAssetUrl:function(t){return e.setAttribute(v,t)},url:d,tagName:n})||e}return u&&function(t,e){var r=e.platform,n=e.groupName,o=e.name,i=e.ver;w(t,"el",e.elName),w(t,"plat",r),w(t,"gname",n),w(t,"name",o),w(t,"ver",i)}(p,{platform:u,groupName:c,name:l,ver:s,elName:i?"HelLink":"HelScript"}),t(p)}var Kt="/* @helstart ",kt=Kt.length;function Ut(t,e){var r=t.tagName,n=t.innerText,o=t.href;if(["STYLE","LINK"].includes(r)&&("STYLE"!==r||n))if("STYLE"===r){var i=n.indexOf(Kt);if(i<0)return;var a=n.indexOf(" @helend */"),u=n.substring(kt+i,a);if(u){var c=u.trim();w(t,"gname",c),e[c]&&P(t);var l=wt();St.appendStyleTagText(c,n),l.emit(Pt.styleTagAdded(c),{nodes:[t]})}}else{var s=function(t,e){var r=wt(),n=St.getMatchedIgnoreCssPrefix(e);return n&&(St.setIgnoreCssPrefixCssUrl(n,e),r.emit(Pt.cssLinkTagAdded(n),{nodes:[t]})),n}(t,o);s&&P(t)}}function Yt(t,e){var r=t.tagName,n=t.src,o=void 0===n?"":n;if("SCRIPT"!==r)return!1;if(!o.endsWith(".hot-update.js"))return!1;var i=St.getMatchedIgnoreCssPrefix(o);if(!i)return!1;var a=St.getIgnoreCssPrefixKeys(i);if(!a.length)return!1;var u=!1;return a.forEach((function(t){e[t]&&(!function(t){var e=p();if(e){var r=e.document.head.querySelectorAll('style[data-gname="'.concat(t,'"]'));r.length&&(St.clearStyleTagText(t),r.forEach((function(e){P(e),St.appendStyleTagText(t,e.innerText)})),wt().emit(Pt.styleTagAdded(t),{nodes:r}))}}(t),u=!0)})),u}qt(),V("hel-micro-core ver ".concat(Y.CORE_VER));var Ht=H,Bt=B,Xt=Y,Wt=function t(e,r,n){var a=n||{},u=a.ignoreKeys,c=void 0===u?[]:u,l=a.arg1PlatObjFnKeys,s=void 0===l?[]:l,f={};return Object.keys(r).forEach((function(a){var u=r[a];if(c.includes(a))f[a]=u;else{var l=i(u);f[a]=l&&"object"===l?t(e,u,n):"function"!==l?u:function(t,e){var r=this,n=e.fn,i=e.fnName,a=e.arg1PlatObjFnKeys.includes(i);return function(){for(var e=function(e){return o({platform:t},O(e||{}))},i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];var l=u[0],s=u[1];return a?u[0]=e(l):u[1]=e(s),n.apply(r,u)}}(e,{arg1PlatObjFnKeys:s,fn:u,fnName:a})}})),f},zt=C,Jt=function(){return"more details see: https://tnfe.github.io/hel/docs/tutorial/attention-is-subapp",console.log("%c".concat("WARNING: calling isSubApp is unsafe, use hel-iso.isSubApp instead,\nmore details see: https://tnfe.github.io/hel/docs/tutorial/attention-is-subapp"),"color:red;"),!Mt};function qt(t){t&&ne(t),function(t){if(t&&(Mt=!1,Gt=!1),!Gt){Gt=!0;var e=p();void 0===e.__MASTER_APP_LOADED__&&(e.__MASTER_APP_LOADED__=!0,Mt=!0)}}(!!t),ut(),R(),function(){var t=ct(),e=p().document,r=t.nativeHeadAppend,n=t.nativeBodyAppend;if(!r&&e){var o=e.head,i=e.body;r=o.appendChild.bind(o),n=i.appendChild.bind(i),t.nativeHeadAppend=r,t.nativeBodyAppend=n,e.head.appendChild=function(t){return Vt(r,t)},e.body.appendChild=function(t){return Vt(n,t)}}}(),function(){var t=ct(),e=p(),r=t.isStyleObInit,n=e.document;if(!r&&n){t.isStyleObInit=!0;var o=St.getIgnoreStyleTagMap(),i=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver;i&&new i((function(t){t.forEach((function(t){for(var e=t.addedNodes,r=t.removedNodes,n=e.length,i=0;i<n;i++)Ut(e[i],o);for(var a=r.length,u=0;u<a&&!Yt(r[u],o);u++);}))})).observe(document.head,{childList:!0})}}()}var $t=lt,Qt=st,Zt=M,te=j,ee=V,re=p,ne=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null;null!==(e=f)&&void 0!==e&&e.__HEL_MICRO_SHARED__&&(n=f.__HEL_MICRO_SHARED__),f=r?o(o({},f),t):t,n&&(f.__HEL_MICRO_SHARED__=n)},oe=function(t,e){var r,n=e||{},o=n.versionId,i=n.platform,a=st(i),u=a.appName2verEmitApp,c=a.appName2Comp,l=a.strictMatchVer,s=a.appName2EmitApp,f=null!==(r=n.strictMatchVer)&&void 0!==r?r:l,p=y(u,t);pt.ensureOnlineModule(p,t,i);var v=p[o||k],d=c[t],m=d?{Comp:d}:null,h=f?null:s[t]||m,g=v||h||null;return V("[[ core:getVerApp ]] appName,options,result:",t,n,g),g},ie=vt,ae=function(t,e){var r,n=e||{},o=n.versionId,i=st(n.platform),a=i.appName2verEmitLib,u=i.appName2Lib,c=i.strictMatchVer,l=i.appName2isLibAssigned,s=null!==(r=n.strictMatchVer)&&void 0!==r?r:c,f=y(a,t);pt.ensureOnlineModule(f,t);var p=f[o||k],v=l[t]?u[t]:null,d=p||(s?null:v)||null;return V("[[ core:getVerLib ]] appName,options,result:",t,n,d),d},ue=Ct,ce=Dt,le=function(t,e){st(e).appName2app[t.name]=t},se=function(t,e){var r,n=e||{},o=n.platform,i=n.versionId,a=st(o),u=a.appName2verAppVersion,c=a.appName2appVersion[t]||null;return i&&(null===(r=u[t])||void 0===r?void 0:r[i])||c},fe=function(t,e,r){var n=(r||{}).platform,o=st(n),i=o.appName2verAppVersion,a=o.appGroupName2firstVer,u=o.appName2appVersion,c=e.sub_app_version;if(c){var l=pt.getAppMeta(t,n);y(i,t)[k]||(g(i,t,k,e),u[t]=e),g(i,t,c,e),a[l.app_group_name]=c}},pe=function(t,e){var r=Ot(t,e)[e.versionId||k];return void 0!==r?r:null},ve=function(t,e){var r=e.customValue,n=e.versionId;Ot(t,e)[n||k]=r},de=Et,me=At,he=St,ge=function(t,e){return pt.getVerLoadStatus(t,"appName2verLoadStatus",e)},ye=xt,_e=function(t,e){return pt.getVerLoadStatus(t,"appName2verStyleFetched",e)},be=function(t,e,r){pt.setVerLoadStatus(t,e,"appName2verStyleFetched",r)},Ee=function(t,e){var r,n=e||{},o=n.platform,i=n.versionId,a=st(o),u=a.appName2verStyleStr,c=a.appName2styleStr[t]||"";return i?(null===(r=u[t])||void 0===r?void 0:r[i])||c||"":c},Ae=function(t,e,r){var n=r||{},o=n.platform,i=n.versionId,a=st(o),u=a.appName2verStyleStr,c=a.appName2verStyleFetched,l=a.appName2styleStr;i?(g(u,t,i,e),g(c,t,i,B.LOADED)):l[t]=e},Se=function(t,e){var r=e||{},n=r.versionId,o=y(st(r.platform).appName2verExtraCssList,t),i=o[n]||o[k]||[];return V("[[ core:getVerExtraCssList ]] options,cssList:",r,i),i},Le=function(t,e,r){var n=r||{},o=n.versionId,i=st(n.platform).appName2verExtraCssList;V("[[ core:setVerExtraCssList ]] cssList:",e),y(i,t)[k]||g(i,t,k,e),o&&g(i,t,o,e)},Ne=Rt,Oe=jt,Ie=function(t){return Lt(st(t),!0)},Te=Nt,we=function(t,e){return ft().appGroupName2platform[t]=e,Nt(t)},Pe=function(t,e){var r=st(e),n=Lt(t);r.isConfigOverwrite||(r.isConfigOverwrite=!0,_(r,n))},Ce=function(t,e){var r=st(t),n="[[ core:originInit ]] invalid call, it can only been called";if(r.isConfigOverwrite)V("".concat(n," before init"));else if(r.isOriginInitCalled)V("".concat(n," one time"));else{var o=Lt(e);r.isOriginInitCalled=!0,_(r.origin,o)}},De=wt,xe=function(){return ct().userEventBus},Re=Pt,je=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.platform||Nt(t),o=r.versionId||Rt(t,n),i=r.appName||jt(o,t),a=Dt(i,n);null!==a&&void 0!==a&&a.__fromCust&&(o=r.versionId||a.online_version,i=a.name);var u={platform:n,appName:i,appGroupName:t,versionId:o,appProperties:e,Comp:function(){},lifecycle:{}};Ct(i,u,{appGroupName:t,platform:n}),xt(i,B.LOADED,{versionId:o,platform:n});var c=wt();c.emit(H.SUB_LIB_LOADED,u)},Me=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.lifecycle,o=r.platform||Nt(t),i=r.versionId||Rt(t,o),a=r.appName||jt(i,t),u={Comp:e,appName:a,appGroupName:t,lifecycle:n,platform:o,versionId:i,isLib:!1};vt(a,u),xt(a,B.LOADED,{versionId:i,platform:o});var c=wt();c.emit(H.SUB_APP_LOADED,u)}},363:function(t){"use strict";t.exports=React},533:function(t){"use strict";t.exports=ReactDOM}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.m=t,r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=function(t){return Promise.all(Object.keys(r.f).reduce((function(e,n){return r.f[n](t,e),e}),[]))},r.u=function(t){return"static/js/"+t+"."+{291:"522cd032",622:"43eda72c"}[t]+".chunk.js"},r.miniCssF=function(t){return"static/css/"+t+"."+{291:"0bcd258f",622:"0bcd258f"}[t]+".chunk.css"},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t={},e="hel-tpl-remote-react-comps-ts:";r.l=function(n,o,i,a){if(t[n])t[n].push(o);else{var u,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==e+i){u=f;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.setAttribute("data-webpack",e+i),u.src=n),t[n]=[o];var p=function(e,r){u.onerror=u.onload=null,clearTimeout(v);var o=t[n];if(delete t[n],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(t){return t(r)})),e)return e(r)},v=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.p="https://unpkg.com/hel-tpl-remote-react-comps-ts@2.4.0/hel_dist/",function(){var t=function(t){return new Promise((function(e,n){var o=r.miniCssF(t),i=r.p+o;if(function(t,e){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===t||o===e))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===t||o===e)return a}}(o,i))return e();!function(t,e,r,n){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(i){if(o.onerror=o.onload=null,"load"===i.type)r();else{var a=i&&("load"===i.type?"missing":i.type),u=i&&i.target&&i.target.href||e,c=new Error("Loading CSS chunk "+t+" failed.\n("+u+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=u,o.parentNode.removeChild(o),n(c)}},o.href=e,document.head.appendChild(o)}(t,i,e,n)}))},e={179:0};r.f.miniCss=function(r,n){e[r]?n.push(e[r]):0!==e[r]&&{291:1,622:1}[r]&&n.push(e[r]=t(r).then((function(){e[r]=0}),(function(t){throw delete e[r],t})))}}(),function(){var t={179:0};r.f.j=function(e,n){var o=r.o(t,e)?t[e]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise((function(r,n){o=t[e]=[r,n]}));n.push(o[2]=i);var a=r.p+r.u(e),u=new Error;r.l(a,(function(n){if(r.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}}),"chunk-"+e,e)}};var e=function(e,n){var o,i,a=n[0],u=n[1],c=n[2],l=0;if(a.some((function(e){return 0!==t[e]}))){for(o in u)r.o(u,o)&&(r.m[o]=u[o]);if(c)c(r)}for(e&&e(n);l<a.length;l++)i=a[l],r.o(t,i)&&t[i]&&t[i][0](),t[i]=0},n=self["helJsonp_hel-tpl-remote-react-comps-ts_1683112624001"]=self["helJsonp_hel-tpl-remote-react-comps-ts_1683112624001"]||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}(),function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new N(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(T){return{type:"throw",arg:T}}}r.wrap=s;var p={};function v(){}function d(){}function m(){}var h={};l(h,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(O([])));y&&y!==n&&o.call(y,a)&&(h=y);var _=m.prototype=v.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==t(p)&&o.call(p,"__await")?r.resolve(p.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(p).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=m,l(_,"constructor",m),l(m,"constructor",d),d.displayName=l(m,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},r.awrap=function(t){return{__await:t}},b(E.prototype),l(E.prototype,u,(function(){return this})),r.AsyncIterator=E,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new E(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}function n(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}var i=function(){var t=u(),e=t.__HEL_ISO_FLAG__,r=t.__MASTER_APP_LOADED__;return{isFirstMod:void 0===e,isBeforeCore:void 0===r}}();!function(){var t=u();void 0===t.__HEL_ISO_FLAG__&&(t.__HEL_ISO_FLAG__=1)}();var a=function(){var t=u(),e=t.location,r=t.__HEL_MICRO_SHARED__,n=i.isFirstMod,o=i.isBeforeCore;if(!n)return!1;if(o)return!0;var a=function(){var t="";try{throw new Error("codeHost")}catch(r){var e=r.stack.split("\n");t=e[e.length-1]||""}return t.split("//")[1].split("/")[0]}();if(e&&e.host===a)return!0;if(r){var c=r.cacheRoot.appGroupName2platform;if(!Object.keys(c).length)return!0}return!1}();function u(){return window||r.g}function c(){return a}var l=c,s=r(511),f="hel-tpl-remote-react-comps-ts";function p(){return(p=o(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(291).then(r.bind(r,291));case 2:if(n=t.sent,console.log("libProperties",n),(0,s.libReady)(f,n.default),!l()){t.next=8;break}return t.next=8,r.e(622).then(r.bind(r,622));case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}(function(){return p.apply(this,arguments)})().catch(console.error)}()}();
//# sourceMappingURL=main.aea1d0f2.js.map