test-hel-tpl-remote-lib-111 0.0.1 → 0.0.2

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.
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "files": {
3
- "static/js/0.5c853936.chunk.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/0.5c853936.chunk.js",
4
- "main.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js",
5
- "runtime-main.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/runtime-main.e18d2cf7.js",
6
- "index.html": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/index.html",
7
- "precache-manifest.d376e39cbf960d26b36e995ad8603c00.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/precache-manifest.d376e39cbf960d26b36e995ad8603c00.js",
8
- "service-worker.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/service-worker.js",
9
- "static/js/0.5c853936.chunk.js.LICENSE.txt": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/0.5c853936.chunk.js.LICENSE.txt",
10
- "static/js/main.c27f8348.chunk.js.LICENSE.txt": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js.LICENSE.txt"
3
+ "static/js/0.4197380e.chunk.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/0.4197380e.chunk.js",
4
+ "main.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js",
5
+ "runtime-main.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/runtime-main.ac5ce731.js",
6
+ "index.html": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/index.html",
7
+ "precache-manifest.290cfaf3b30e2bc5f6df906644cb4f37.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/precache-manifest.290cfaf3b30e2bc5f6df906644cb4f37.js",
8
+ "service-worker.js": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/service-worker.js",
9
+ "static/js/0.4197380e.chunk.js.LICENSE.txt": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/0.4197380e.chunk.js.LICENSE.txt",
10
+ "static/js/main.dd3fb72e.chunk.js.LICENSE.txt": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js.LICENSE.txt"
11
11
  },
12
12
  "entrypoints": [
13
- "static/js/runtime-main.e18d2cf7.js",
14
- "static/js/main.c27f8348.chunk.js"
13
+ "static/js/runtime-main.ac5ce731.js",
14
+ "static/js/main.dd3fb72e.chunk.js"
15
15
  ]
16
16
  }
@@ -4,21 +4,21 @@
4
4
  "app_group_name": "test-hel-tpl-remote-lib-111",
5
5
  "git_repo_url": "",
6
6
  "extract_mode": "build",
7
- "online_version": "0.0.1",
8
- "build_version": "0.0.1"
7
+ "online_version": "0.0.2",
8
+ "build_version": "0.0.2"
9
9
  },
10
10
  "version": {
11
11
  "plugin_ver": "3.1.0",
12
12
  "sub_app_name": "test-hel-tpl-remote-lib-111",
13
- "sub_app_version": "0.0.1",
13
+ "sub_app_version": "0.0.2",
14
14
  "src_map": {
15
- "webDirPath": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist",
16
- "htmlIndexSrc": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/index.html",
15
+ "webDirPath": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist",
16
+ "htmlIndexSrc": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/index.html",
17
17
  "iframeSrc": "",
18
18
  "chunkCssSrcList": [],
19
19
  "chunkJsSrcList": [
20
- "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/hel_userChunk_1.js",
21
- "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js"
20
+ "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/hel_userChunk_1.js",
21
+ "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js"
22
22
  ],
23
23
  "privCssSrcList": [],
24
24
  "headAssetList": [],
@@ -26,17 +26,17 @@
26
26
  {
27
27
  "tag": "script",
28
28
  "attrs": {
29
- "src": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/hel_userChunk_1.js"
29
+ "src": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/hel_userChunk_1.js"
30
30
  }
31
31
  },
32
32
  {
33
33
  "tag": "script",
34
34
  "attrs": {
35
- "src": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js"
35
+ "src": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js"
36
36
  }
37
37
  }
38
38
  ]
39
39
  },
40
- "html_content": "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"/><title>remote-lib-tpl</title><meta name=\"description\" content=\"hel remote lib template\"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id=\"root\"></div><script>!function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement(\"script\");l.charset=\"utf-8\",l.timeout=120,i.nc&&l.setAttribute(\"nonce\",i.nc),l.src=function(e){return i.p+\"static/js/\"+({}[e]||e)+\".\"+{0:\"5c853936\"}[e]+\".chunk.js\"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&(\"load\"===t.type?\"missing\":t.type),u=t&&t.target&&t.target.src;a.message=\"Loading chunk \"+e+\" failed.\\n(\"+n+\": \"+u+\")\",a.name=\"ChunkLoadError\",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:\"timeout\",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,\"a\",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p=\"https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/\",i.oe=function(e){throw console.error(e),e};var l=this[\"helJsonp_test-hel-tpl-remote-lib-111_1679058373255\"]=this[\"helJsonp_test-hel-tpl-remote-lib-111_1679058373255\"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([])</script><script src=\"https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js\"></script></body></html>"
40
+ "html_content": "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"/><title>remote-lib-tpl</title><meta name=\"description\" content=\"hel remote lib template\"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id=\"root\"></div><script>!function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement(\"script\");l.charset=\"utf-8\",l.timeout=120,i.nc&&l.setAttribute(\"nonce\",i.nc),l.src=function(e){return i.p+\"static/js/\"+({}[e]||e)+\".\"+{0:\"4197380e\"}[e]+\".chunk.js\"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&(\"load\"===t.type?\"missing\":t.type),u=t&&t.target&&t.target.src;a.message=\"Loading chunk \"+e+\" failed.\\n(\"+n+\": \"+u+\")\",a.name=\"ChunkLoadError\",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:\"timeout\",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,\"a\",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p=\"https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/\",i.oe=function(e){throw console.error(e),e};var l=this[\"helJsonp_test-hel-tpl-remote-lib-111_1679203534628\"]=this[\"helJsonp_test-hel-tpl-remote-lib-111_1679203534628\"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([])</script><script src=\"https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js\"></script></body></html>"
41
41
  }
42
42
  }
@@ -1 +1 @@
1
- !function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"5c853936"}[e]+".chunk.js"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/",i.oe=function(e){throw console.error(e),e};var l=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([])
1
+ !function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"4197380e"}[e]+".chunk.js"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/",i.oe=function(e){throw console.error(e),e};var l=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([])
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><title>remote-lib-tpl</title><meta name="description" content="hel remote lib template"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"5c853936"}[e]+".chunk.js"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/",i.oe=function(e){throw console.error(e),e};var l=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([])</script><script src="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js"></script></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><title>remote-lib-tpl</title><meta name="description" content="hel remote lib template"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"4197380e"}[e]+".chunk.js"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/",i.oe=function(e){throw console.error(e),e};var l=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([])</script><script src="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js"></script></body></html>
@@ -0,0 +1,26 @@
1
+ self.__precacheManifest = (self.__precacheManifest || []).concat([
2
+ {
3
+ "revision": "506175e9eb9bf8a641147591bf73dbeb",
4
+ "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/index.html"
5
+ },
6
+ {
7
+ "revision": "4f5e993d27c34092cdaa",
8
+ "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/0.4197380e.chunk.js"
9
+ },
10
+ {
11
+ "revision": "114fa89da3636722bc04f5ae14df1de3",
12
+ "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/0.4197380e.chunk.js.LICENSE.txt"
13
+ },
14
+ {
15
+ "revision": "76309bb8176b8b3ce633",
16
+ "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js"
17
+ },
18
+ {
19
+ "revision": "4e0e34f265fae8f33b01b27ae29d9d6f",
20
+ "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/main.dd3fb72e.chunk.js.LICENSE.txt"
21
+ },
22
+ {
23
+ "revision": "f417e5f7b5712465030b",
24
+ "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/static/js/runtime-main.ac5ce731.js"
25
+ }
26
+ ]);
@@ -14,7 +14,7 @@
14
14
  importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
15
15
 
16
16
  importScripts(
17
- "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/precache-manifest.d376e39cbf960d26b36e995ad8603c00.js"
17
+ "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/precache-manifest.290cfaf3b30e2bc5f6df906644cb4f37.js"
18
18
  );
19
19
 
20
20
  self.addEventListener('message', (event) => {
@@ -33,7 +33,7 @@ workbox.core.clientsClaim();
33
33
  self.__precacheManifest = [].concat(self.__precacheManifest || []);
34
34
  workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
35
35
 
36
- workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/index.html"), {
36
+ workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/index.html"), {
37
37
 
38
38
  blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
39
39
  });
@@ -1,2 +1,2 @@
1
- /*! For license information please see 0.5c853936.chunk.js.LICENSE.txt */
2
- (this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]||[]).push([[0],[,,function(e,t,r){"use strict";r.r(t);var n={get num1to9(){return/^[1-9]+[0-9]*$/},get en(){return/^[A-Za-z]+$/},get enSnake(){return/^[a-z][_0-9a-z]*[a-z0-9]+$/},get enOrNumOrUnderline(){return/^[A-Za-z0-9_]+$/},get enOrNum(){return/^[A-Za-z0-9]+$/}};t.default=n},function(e,t,r){"use strict";r.r(t),r.d(t,"canBeNum",(function(){return o})),r.d(t,"random",(function(){return a}));var n=r(2);function o(e){var t=typeof e;if("string"===t){if(e.includes(".")){var r=e.replace(/\./g,"");if(!n.default.num1to9.test(r))return!1;var o=parseFloat(e);return!Number.isNaN(o)}return n.default.num1to9.test(e)}return"number"===t}function a(e){return Math.floor(e*Math.random())}},function(e,t,r){"use strict";r.r(t),function(e){function n(e){return(n="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 o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],p=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;p=!1}else for(;!(p=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);p=!0);}catch(c){l=!0,o=c}finally{try{if(!p&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(e,t)||u(e,t)||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 i(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||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 u(e,t){if(e){if("string"===typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"DEFAULT_ONLINE_VER",(function(){return J})),r.d(t,"allowLog",(function(){return Z})),r.d(t,"appReady",(function(){return ie})),r.d(t,"default",(function(){return Ie})),r.d(t,"getAppMeta",(function(){return de})),r.d(t,"getAppPlatform",(function(){return Ne})),r.d(t,"getAppStyleStr",(function(){return Me})),r.d(t,"getGlobalThis",(function(){return Q})),r.d(t,"getHelDebug",(function(){return Y})),r.d(t,"getHelEventBus",(function(){return ee})),r.d(t,"getPlatform",(function(){return $})),r.d(t,"getPlatformConfig",(function(){return ce})),r.d(t,"getPlatformHost",(function(){return ue})),r.d(t,"getSharedCache",(function(){return re})),r.d(t,"getUserEventBus",(function(){return te})),r.d(t,"getVerApp",(function(){return fe})),r.d(t,"getVerExtraCssList",(function(){return ye})),r.d(t,"getVerLib",(function(){return ge})),r.d(t,"getVerLoadStatus",(function(){return Ae})),r.d(t,"getVerStyleStrStatus",(function(){return _e})),r.d(t,"getVersion",(function(){return Ee})),r.d(t,"helEvents",(function(){return q})),r.d(t,"helLoadStatus",(function(){return K})),r.d(t,"initPlatformConfig",(function(){return le})),r.d(t,"isSubApp",(function(){return z})),r.d(t,"libReady",(function(){return ae})),r.d(t,"log",(function(){return W})),r.d(t,"resetGlobalThis",(function(){return B})),r.d(t,"setAppMeta",(function(){return me})),r.d(t,"setAppPlatform",(function(){return Se})),r.d(t,"setAppStyleStr",(function(){return we})),r.d(t,"setEmitApp",(function(){return se})),r.d(t,"setEmitLib",(function(){return ve})),r.d(t,"setGlobalThis",(function(){return X})),r.d(t,"setVerExtraCssList",(function(){return he})),r.d(t,"setVerLoadStatus",(function(){return be})),r.d(t,"setVerStyleStrStatus",(function(){return Le})),r.d(t,"setVersion",(function(){return Ve})),r.d(t,"tryGetAppName",(function(){return oe})),r.d(t,"tryGetVersion",(function(){return ne})),r.d(t,"trySetMasterAppLoadedSignal",(function(){return U}));var l={NOT_LOAD:0,LOADING:1,LOADED:2},c=["ht","tps",":/","/foo","tpri","nt.q","q.c","om/"].join("");function s(e){return"unpkg"===e?"https://unpkg.com":function(e){return"".concat(c).concat(e)}()}var f=null;function d(){if(f)return f;try{if("undefined"!==typeof window)return window;if("undefined"!==typeof self)return self;if("undefined"!==typeof e)return e;throw new Error("opps")}catch(t){throw new Error("unable to locate global object")}}function m(){return d()}var v=m().__HEL_MICRO_DEBUG__;function g(){return v}function h(e,t){return t.includes(",")?t.split(",").some((function(t){return e.includes(t)})):e.includes(t)}function y(){return 0!==A()}function b(e){var t=parseInt(e,10);[1,2].includes(t)&&(g().logMode=t)}function A(){return g().logMode}function L(e){g().logFilter=e}function _(){return g().logFilter}v?void 0===v.logMode&&(v.logMode=0,v.logFilter=""):(v={logMode:0,logFilter:"",isInit:!1},m().__HEL_MICRO_DEBUG__=v),function(){if(g().isInit)return;g().isInit=!0;var e=function(){var e=function(){try{var e,t;return(null===(e=d().top)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.search)||""}catch(o){var r,n;return(null===(r=d())||void 0===r||null===(n=r.location)||void 0===n?void 0:n.search)||""}}(),t={};if(null!==e&&void 0!==e&&e.startsWith("?")){e.substring(1).split("&").forEach((function(e){var r=a(e.split("="),2),n=r[0],o=r[1];t[n]=o}))}return t}(),t=e.hellog,r=e.hellogf,n=d().localStorage;b(t||(null===n||void 0===n?void 0:n.getItem("HelConfig.logMode"))||0),L(r||(null===n||void 0===n?void 0:n.getItem("HelConfig.logFilter"))||"")}();var S=" %c--\x3e HEL LOG:",N="color:#ad4e00;font-weight:600";function E(){if(y()){for(var e=1===A()?console.log:console.trace||console.log,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r[0],a=r.slice(1);if("string"!==typeof o)return e.apply(void 0,[S,N].concat(r));var u=_(),p=["".concat(S," ").concat(o),N].concat(i(a));u?h(o,u)&&e.apply(void 0,i(p)):e.apply(void 0,i(p))}}function V(){var e="";try{throw new Error("getJsRunLocation")}catch(r){var t=r.stack.split("\n");e=t[t.length-1]||""}return e}function M(e,t,r,n){w(e,t)[r]=n}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e[t];return n||(n=r,e[t]=n),n}function I(e){return{isConfigOverwrite:!1,platform:e,initPack:"out",appName2Comp:{},appName2Lib:{},appName2isLibAssigned:{},appName2EmitApp:{},appName2verLoadStatus:{},appName2verEmitLib:{},appName2verEmitApp:{},appName2verStyleStr:{},appName2verStyleFetched:{},appName2verExtraCssList:{},appName2verAppVersion:{},appName2app:{},appName2appVersion:{},appName2styleStr:{},appGroupName2firstVer:{},isInnerHooksInit:!1,strictMatchVer:!0,apiMode:"jsonp",apiPrefix:"",apiSuffix:"",apiPathOfApp:"/openapi/v1/app/info",apiPathOfAppVersion:"",getUserName:null,prepareRequestInfo:null,getSubAppAndItsVersionFn:null,onFetchMetaFailed:null,userLsKey:""}}function O(){var e={};return{on:function(t,r){var n=e[t];if(!n){var o=[];e[t]=o,n=o}n.push(r)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=e[t];if(a){var i=a.slice();i.forEach((function(e){return e.apply(void 0,n)}))}},off:function(t,r){var n=e[t];if(n)for(var o=0,a=n.length;o<a;o++){if(n[o]===r){n.splice(o,1);break}}}}}function P(){var e=x();if(e){var t=e.cacheRoot;w(t,"appGroupName2platform");var r=t.caches;return Object.keys(r).forEach((function(e){var t=r[e];w(t,"appGroupName2firstVer"),w(t,"appName2verExtraCssList")})),void(e.userEventBus||(e.userEventBus=O()))}e=function(){var e,t=I("hel"),r=I("unpkg"),n={platform:"unpkg",appName2platform:{},appGroupName2platform:{},caches:(e={},o(e,"hel",t),o(e,"unpkg",r),e)},a=O(),i=O();return{createFeature:V(),eventBus:a,userEventBus:i,cacheRoot:n,unpkgCache:r,helCache:t,dev:{setLogMode:b,setLogFilter:L}}}(),m().__HEL_MICRO_SHARED__=e}function x(){return m().__HEL_MICRO_SHARED__}function C(){return x().cacheRoot.platform||"unpkg"}function D(e){var t=e||C(),r=k(),n=r.caches[t];if(!n){var o=I(e);r.caches[t]=o,n=o}return n}function k(){return x().cacheRoot}var j=!1,F=!1;function G(e){if(e&&(j=!1,F=!1),!0!==F){F=!0;var t=d();void 0===t.__MASTER_APP_LOADED__&&(t.__MASTER_APP_LOADED__=!0,j=!0)}}function B(e){e&&X(e),G(!!e),P()}E("hel-micro-core ver ".concat("3.13.5")),B();var R=function(e,t,r,n){var o=n||{},a=o.versionId;M(re(o.platform)[r],e,a||J,t)},H=function(e,t,r){var n,o=r||{},a=o.versionId,i=re(o.platform)[t],u=a||J;return(null===(n=i[e])||void 0===n?void 0:n[u])||l.NOT_LOAD},T=function(e,t,r){if(!e[J]){var n=de(t,r),o=e[null===n||void 0===n?void 0:n.online_version];o&&(e[J]=o)}},U=G,z=function(){return!j},$=C,q={SUB_APP_LOADED:"subAppLoaded",SUB_LIB_LOADED:"SubLibLoaded",STYLE_STR_FETCHED:"StyleStrFetched"},K=l,J="__default_online_ver__",Z=y,W=E,Y=g,Q=d,X=function(e){f=e};function ee(){return x().eventBus}function te(){return x().userEventBus}function re(e){return D(e)}function ne(e,t){var r=V();E("[[ core:tryGetVersion ]] may include source > ".concat(r));var n=re(t).appGroupName2firstVer[e]||"";if(r.includes("https://")||r.includes("http://")){var o=a(r.split("//"),2)[1].split("/");if(n){if("unpkg"===t&&o.some((function(e){return e.includes(n)})))return n;if(o.includes(n))return n;if("static"===o[1]&&"js"===o[2]||"js"===o[1])return n}return"unpkg"===t?o[1].split("@")[1]||n:o[2]||n}return n}function oe(e,t){return e===J?t||"":e.includes("_")?e.substring(0,e.length-15):t||""}function ae(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.platform||Ne(e),o=r.versionId||ne(e,n),a=r.appName||oe(o,e),i=de(a,n);null!==i&&void 0!==i&&i.__fromCust&&(o=i.online_version,a=i.name);var u={platform:n,appName:a,appGroupName:e,versionId:o,appProperties:t,Comp:function(){},lifecycle:{}};ve(a,u,{appGroupName:e,platform:n}),be(a,K.LOADED,{versionId:o,platform:n});var p=ee();p.emit(q.SUB_LIB_LOADED,u)}function ie(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.lifecycle,o=r.platform||Ne(e),a=r.versionId||ne(e,o),i=r.appName||oe(a,e),u={Comp:t,appName:i,appGroupName:e,lifecycle:n,platform:o,versionId:a,isLib:!1};se(i,u),be(i,K.LOADED,{versionId:a,platform:o});var p=ee();p.emit(q.SUB_APP_LOADED,u)}function ue(e){var t=e||$(),r=re(t).apiPrefix;return r||s(t)}function pe(e){return{apiMode:e.apiMode,apiPrefix:e.apiPrefix,apiSuffix:e.apiSuffix,apiPathOfApp:e.apiPathOfApp,apiPathOfAppVersion:e.apiPathOfAppVersion,getSubAppAndItsVersionFn:e.getSubAppAndItsVersionFn,onFetchMetaFailed:e.onFetchMetaFailed,strictMatchVer:e.strictMatchVer,getUserName:e.getUserName,userLsKey:e.userLsKey,platform:e.platform,shouldUseGray:e.shouldUseGray}}function le(e,t){var r,n,o=D(t),a=pe(e);o.isConfigOverwrite||(o.isConfigOverwrite=!0,r=o,n=a,Object.keys(n).forEach((function(e){var t=n[e];[null,void 0,""].includes(t)||(r[e]=t)})))}function ce(e){return pe(D(e))}function se(e,t){W("[[ core:setEmitApp ]] appName,emitApp:",e,t);var r=t.versionId,n=re(t.platform),o=n.appName2verEmitApp,a=n.appName2Comp,i=n.appName2EmitApp;w(o,e)[J]||(a[e]=t.Comp,i[e]=t,M(o,e,J,t)),r&&M(o,e,r,t)}function fe(e,t){var r,n=t||{},o=n.versionId,a=n.platform,i=re(a),u=i.appName2verEmitApp,p=i.appName2Comp,l=i.strictMatchVer,c=i.appName2EmitApp,s=null!==(r=n.strictMatchVer)&&void 0!==r?r:l,f=w(u,e);T(f,e,a);var d=f[o||J],m=p[e],v=m?{Comp:m}:null,g=s?null:c[e]||v,h=d||g||null;return W("[[ core:getVerApp ]] appName,options,result:",e,n,h),h}function de(e,t){return re(t).appName2app[e]}function me(e,t){re(t).appName2app[e.name]=e}function ve(e,t,r){var o=(r||{}).appGroupName,a=t.versionId,i=t.appProperties,u=t.platform||r.platform,p=re(u),l=p.appName2verEmitLib,c=p.appName2Lib,s=p.appName2isLibAssigned,f=de(e,u),d=function(e){var t=c[e];t?"object"===n(t)&&0===Object.keys(t).length&&Object.assign(t,i):c[e]=i,s[e]=!0};d(e),o?d(o):f&&d(f.app_group_name),W("[[ core:setEmitLib ]] appMeta:",f),w(l,e)[J]||M(l,e,J,i),a&&M(l,e,a,i)}function ge(e,t){var r,n=t||{},o=n.versionId,a=re(n.platform),i=a.appName2verEmitLib,u=a.appName2Lib,p=a.strictMatchVer,l=a.appName2isLibAssigned,c=null!==(r=n.strictMatchVer)&&void 0!==r?r:p,s=w(i,e);T(s,e);var f=s[o||J],d=l[e]?u[e]:null,m=f||(c?null:d)||null;return W("[[ core:getVerLib ]] appName,options,result:",e,n,m),m}function he(e,t,r){var n=r||{},o=n.versionId,a=re(n.platform).appName2verExtraCssList;W("[[ core:setVerExtraCssList ]] cssList:",t),w(a,e)[J]||M(a,e,J,t),o&&M(a,e,o,t)}function ye(e,t){var r=t||{},n=r.versionId,o=w(re(r.platform).appName2verExtraCssList,e),a=o[n]||o[J]||[];return W("[[ core:getVerExtraCssList ]] options,cssList:",r,a),a}function be(e,t,r){R(e,t,"appName2verLoadStatus",r)}function Ae(e,t){return H(e,"appName2verLoadStatus",t)}function Le(e,t,r){R(e,t,"appName2verStyleFetched",r)}function _e(e,t){return H(e,"appName2verStyleFetched",t)}function Se(e,t){return k().appGroupName2platform[e]=t,Ne(e)}function Ne(e){return k().appGroupName2platform[e]||C()}function Ee(e,t){var r,n=t||{},o=n.platform,a=n.versionId,i=re(o),u=i.appName2verAppVersion,p=i.appName2appVersion[e]||null;return a&&(null===(r=u[e])||void 0===r?void 0:r[a])||p}function Ve(e,t,r){var n=(r||{}).platform,o=re(n),a=o.appName2verAppVersion,i=o.appGroupName2firstVer,u=o.appName2appVersion,p=t.sub_app_version;if(p){var l=de(e,n);w(a,e)[J]||(M(a,e,J,t),u[e]=t),M(a,e,p,t),i[l.app_group_name]=p}}function Me(e,t){var r,n=t||{},o=n.platform,a=n.versionId,i=re(o),u=i.appName2verStyleStr,p=i.appName2styleStr[e]||"";return a?(null===(r=u[e])||void 0===r?void 0:r[a])||p||"":p}function we(e,t,r){var n=r||{},o=n.platform,a=n.versionId,i=re(o),u=i.appName2verStyleStr,p=i.appName2verStyleFetched,l=i.appName2styleStr;a?(M(u,e,a,t),M(p,e,a,K.LOADED)):l[e]=t}var Ie={DEFAULT_ONLINE_VER:J,helLoadStatus:l,helEvents:q,isSubApp:z,trySetMasterAppLoadedSignal:G,getHelEventBus:ee,getUserEventBus:te,getHelDebug:g,getSharedCache:re,getPlatform:C,getPlatformHost:ue,getPlatformConfig:ce,getAppPlatform:Ne,setAppPlatform:Se,getVerApp:fe,setEmitApp:se,getVerLib:ge,setEmitLib:ve,getAppMeta:de,setAppMeta:me,getVersion:Ee,setVersion:Ve,getAppStyleStr:Me,setAppStyleStr:we,getVerLoadStatus:Ae,setVerLoadStatus:be,getVerStyleStrStatus:_e,setVerStyleStrStatus:Le,getVerExtraCssList:ye,setVerExtraCssList:he,tryGetVersion:ne,tryGetAppName:oe,initPlatformConfig:le,libReady:ae,appReady:ie,log:E,allowLog:y,getGlobalThis:d,setGlobalThis:X,resetGlobalThis:B}}.call(this,r(5))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.r(t),r.d(t,"LIB_NAME",(function(){return n}));var n="test-hel-tpl-remote-lib-111"},function(e,t,r){!function(e,t){"use strict";var r=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(t),n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e){return e||"unpkg"}function a(e,r){var n=r||(null===t.getAppPlatform||void 0===t.getAppPlatform?void 0:t.getAppPlatform(e)),o=t.getSharedCache(n).appName2Lib;return o[e]||(o[e]={}),o[e]}r.default.log("hel-lib-proxy ver 3.13.2");var i=(0,r.default.getUserEventBus)();function u(e,t){var a=n({},t||{});return a.platform=o(),r.default.getVerLib(e,a)}function p(e,n){var i,u=!0,p="";n&&("string"==typeof n?p=n:(p=n.platform||"",u=null===(i=n.asProxy)||void 0===i||i));var l=a(e,p=p||o());return"function"==typeof Proxy&&u&&(l=function(e,r,n){return new Proxy(r,{get:function(r,o){var i=String(o);return t.log("[[getLibProxy]] call lib ["+e+"] method ["+i+"]"),Object.keys(r).length?r[i]:a(e,n)[i]}})}(e,l,p)),r.default.log("[[ exposeLib ]] libName, libObj",e,l),l}function l(e,t,a){var i=function(e){var t={allowDup:!1,platform:o()};return n(n({},t),e||{})}(a);r.default.libReady(e,t,i)}function c(e,t,n){r.default.appReady(e,t,n)}function s(e,t){return r.default.getVerApp(e,t)}function f(){return!r.default.isSubApp()}var d=r.default.isSubApp,m={libReady:l,exposeLib:p,getLib:u,isSubApp:d,isMasterApp:f,eventBus:i,appReady:c,exposeApp:s};e.appReady=c,e.default=m,e.eventBus=i,e.exposeApp=s,e.exposeLib=p,e.getLib=u,e.isMasterApp=f,e.isSubApp=d,e.libReady=l,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(4))},function(e,t,r){"use strict";r.r(t);var n=r(6),o=r(3);window.__callMethod__=function(){var e=Object(o.random)(100);i("".concat(e,"_").concat(Date.now()))};var a='\n <span style="color:#c62d31">---\x3e lazy load mode</span>\n <pre style="background-color:lightgray;padding-top:12px">\n import helMicro from \'hel-micro\';\n\n export async function callRemoteMethod(){\n const remoteLib = await helMicro.preFetchLib(\''.concat(n.LIB_NAME,"');\n // now you can call the remote lib by 'remoteLib' reference\n }\n </pre>\n <span style=\"color:#c62d31\">---\x3e preload mode</span>\n <pre style=\"background-color:lightgray;padding-top:12px\">\n // call preFetchLib at entry js file\n (async function(){\n const helMicro = await import('hel-micro');\n await helMicro.preFetchLib('").concat(n.LIB_NAME,"');\n import('./loadApp'); // move your app original entry file content to this file and load it\n })();\n\n /** --------------------------------------------------------------------------- */\n import remoteLib from '").concat(n.LIB_NAME,"';\n remoteLib.num.random(19); // now you can call the remote safely just like local module\n </pre>\n");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.querySelector("#container");t||((t=document.createElement("div")).id="container",document.body.append(t)),t.innerHTML='\n <div style="padding:60px;">\n <h1>Cool, as you see this is your hel remote module\n <a style="color:blue" href="https://github.com/hel-eco/test-hel-tpl-remote-lib-111" target="_blank" rel="noopener noreferrer">'.concat(n.LIB_NAME,'</a>\n </h1>\n <span style="color:red;">you can delete or edit this file, It will only run at master-app mode</span>,\n see the <a href="https://www.bilibili.com/video/BV1Dd4y1y7Wj/?vd_source=51bc50bf5f860e0d778c49b00d192cee" target="_blank" rel="noopener noreferrer">video</a>\n if you want to use local debug feature.\n <br />\n <h2>\n <button onclick="__callMethod__()" style="font-size:20px;background-color:#ff9800;color:white;border:none;padding:6px;">click me</button>\n to see changed result : ').concat(e,"\n </h2>\n <fieldset>\n <legend>usage snippet</legend>\n ").concat(a,'\n </fieldset>\n <p style="font-size:20px">\n <img width="30px" style="vertical-align:middle" src="https://tnfe.gtimg.com/image/1k4xi9izbk_1651642720099.png"></img>\n <a href="https://github.com/tnfe/hel" target="_blank" rel="noopener noreferrer">hel-micro</a>,\n a module federation SDK which is unrelated to tool\uff0cmore details see\n <a href="https://tnfe.github.io/hel/" target="_blank" rel="noopener noreferrer">doc</a>.\n </p>\n </div>\n ')}i()},function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"sayHelloToHel",(function(){return i}));var o={};r.r(o),r.d(o,"regs",(function(){return a})),r.d(o,"num",(function(){return u})),r.d(o,"myMod",(function(){return n}));var a=r(2);function i(e){return"hello hel, I am ".concat("",", I come from ").concat(e)}var u=r(3);t.default=o}]]);
1
+ /*! For license information please see 0.4197380e.chunk.js.LICENSE.txt */
2
+ (this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]||[]).push([[0],[,,function(e,t,r){"use strict";r.r(t);var n={get num1to9(){return/^[1-9]+[0-9]*$/},get en(){return/^[A-Za-z]+$/},get enSnake(){return/^[a-z][_0-9a-z]*[a-z0-9]+$/},get enOrNumOrUnderline(){return/^[A-Za-z0-9_]+$/},get enOrNum(){return/^[A-Za-z0-9]+$/}};t.default=n},function(e,t,r){"use strict";r.r(t),r.d(t,"canBeNum",(function(){return o})),r.d(t,"random",(function(){return a}));var n=r(2);function o(e){var t=typeof e;if("string"===t){if(e.includes(".")){var r=e.replace(/\./g,"");if(!n.default.num1to9.test(r))return!1;var o=parseFloat(e);return!Number.isNaN(o)}return n.default.num1to9.test(e)}return"number"===t}function a(e){return Math.floor(e*Math.random())}},function(e,t,r){"use strict";r.r(t),function(e){function n(e){return(n="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 o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],p=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;p=!1}else for(;!(p=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);p=!0);}catch(c){l=!0,o=c}finally{try{if(!p&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(e,t)||u(e,t)||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 i(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||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 u(e,t){if(e){if("string"===typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"DEFAULT_ONLINE_VER",(function(){return J})),r.d(t,"allowLog",(function(){return Z})),r.d(t,"appReady",(function(){return ie})),r.d(t,"default",(function(){return Ie})),r.d(t,"getAppMeta",(function(){return de})),r.d(t,"getAppPlatform",(function(){return Ne})),r.d(t,"getAppStyleStr",(function(){return Me})),r.d(t,"getGlobalThis",(function(){return Q})),r.d(t,"getHelDebug",(function(){return Y})),r.d(t,"getHelEventBus",(function(){return ee})),r.d(t,"getPlatform",(function(){return $})),r.d(t,"getPlatformConfig",(function(){return ce})),r.d(t,"getPlatformHost",(function(){return ue})),r.d(t,"getSharedCache",(function(){return re})),r.d(t,"getUserEventBus",(function(){return te})),r.d(t,"getVerApp",(function(){return fe})),r.d(t,"getVerExtraCssList",(function(){return ye})),r.d(t,"getVerLib",(function(){return ge})),r.d(t,"getVerLoadStatus",(function(){return Ae})),r.d(t,"getVerStyleStrStatus",(function(){return _e})),r.d(t,"getVersion",(function(){return Ee})),r.d(t,"helEvents",(function(){return q})),r.d(t,"helLoadStatus",(function(){return K})),r.d(t,"initPlatformConfig",(function(){return le})),r.d(t,"isSubApp",(function(){return z})),r.d(t,"libReady",(function(){return ae})),r.d(t,"log",(function(){return W})),r.d(t,"resetGlobalThis",(function(){return B})),r.d(t,"setAppMeta",(function(){return me})),r.d(t,"setAppPlatform",(function(){return Se})),r.d(t,"setAppStyleStr",(function(){return we})),r.d(t,"setEmitApp",(function(){return se})),r.d(t,"setEmitLib",(function(){return ve})),r.d(t,"setGlobalThis",(function(){return X})),r.d(t,"setVerExtraCssList",(function(){return he})),r.d(t,"setVerLoadStatus",(function(){return be})),r.d(t,"setVerStyleStrStatus",(function(){return Le})),r.d(t,"setVersion",(function(){return Ve})),r.d(t,"tryGetAppName",(function(){return oe})),r.d(t,"tryGetVersion",(function(){return ne})),r.d(t,"trySetMasterAppLoadedSignal",(function(){return U}));var l={NOT_LOAD:0,LOADING:1,LOADED:2},c=["ht","tps",":/","/foo","tpri","nt.q","q.c","om/"].join("");function s(e){return"unpkg"===e?"https://unpkg.com":function(e){return"".concat(c).concat(e)}()}var f=null;function d(){if(f)return f;try{if("undefined"!==typeof window)return window;if("undefined"!==typeof self)return self;if("undefined"!==typeof e)return e;throw new Error("opps")}catch(t){throw new Error("unable to locate global object")}}function m(){return d()}var v=m().__HEL_MICRO_DEBUG__;function g(){return v}function h(e,t){return t.includes(",")?t.split(",").some((function(t){return e.includes(t)})):e.includes(t)}function y(){return 0!==A()}function b(e){var t=parseInt(e,10);[1,2].includes(t)&&(g().logMode=t)}function A(){return g().logMode}function L(e){g().logFilter=e}function _(){return g().logFilter}v?void 0===v.logMode&&(v.logMode=0,v.logFilter=""):(v={logMode:0,logFilter:"",isInit:!1},m().__HEL_MICRO_DEBUG__=v),function(){if(g().isInit)return;g().isInit=!0;var e=function(){var e=function(){try{var e,t;return(null===(e=d().top)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.search)||""}catch(o){var r,n;return(null===(r=d())||void 0===r||null===(n=r.location)||void 0===n?void 0:n.search)||""}}(),t={};if(null!==e&&void 0!==e&&e.startsWith("?")){e.substring(1).split("&").forEach((function(e){var r=a(e.split("="),2),n=r[0],o=r[1];t[n]=o}))}return t}(),t=e.hellog,r=e.hellogf,n=d().localStorage;b(t||(null===n||void 0===n?void 0:n.getItem("HelConfig.logMode"))||0),L(r||(null===n||void 0===n?void 0:n.getItem("HelConfig.logFilter"))||"")}();var S=" %c--\x3e HEL LOG:",N="color:#ad4e00;font-weight:600";function E(){if(y()){for(var e=1===A()?console.log:console.trace||console.log,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r[0],a=r.slice(1);if("string"!==typeof o)return e.apply(void 0,[S,N].concat(r));var u=_(),p=["".concat(S," ").concat(o),N].concat(i(a));u?h(o,u)&&e.apply(void 0,i(p)):e.apply(void 0,i(p))}}function V(){var e="";try{throw new Error("getJsRunLocation")}catch(r){var t=r.stack.split("\n");e=t[t.length-1]||""}return e}function M(e,t,r,n){w(e,t)[r]=n}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e[t];return n||(n=r,e[t]=n),n}function I(e){return{isConfigOverwrite:!1,platform:e,initPack:"out",appName2Comp:{},appName2Lib:{},appName2isLibAssigned:{},appName2EmitApp:{},appName2verLoadStatus:{},appName2verEmitLib:{},appName2verEmitApp:{},appName2verStyleStr:{},appName2verStyleFetched:{},appName2verExtraCssList:{},appName2verAppVersion:{},appName2app:{},appName2appVersion:{},appName2styleStr:{},appGroupName2firstVer:{},isInnerHooksInit:!1,strictMatchVer:!0,apiMode:"jsonp",apiPrefix:"",apiSuffix:"",apiPathOfApp:"/openapi/v1/app/info",apiPathOfAppVersion:"",getUserName:null,prepareRequestInfo:null,getSubAppAndItsVersionFn:null,onFetchMetaFailed:null,userLsKey:""}}function O(){var e={};return{on:function(t,r){var n=e[t];if(!n){var o=[];e[t]=o,n=o}n.push(r)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=e[t];if(a){var i=a.slice();i.forEach((function(e){return e.apply(void 0,n)}))}},off:function(t,r){var n=e[t];if(n)for(var o=0,a=n.length;o<a;o++){if(n[o]===r){n.splice(o,1);break}}}}}function P(){var e=x();if(e){var t=e.cacheRoot;w(t,"appGroupName2platform");var r=t.caches;return Object.keys(r).forEach((function(e){var t=r[e];w(t,"appGroupName2firstVer"),w(t,"appName2verExtraCssList")})),void(e.userEventBus||(e.userEventBus=O()))}e=function(){var e,t=I("hel"),r=I("unpkg"),n={platform:"unpkg",appName2platform:{},appGroupName2platform:{},caches:(e={},o(e,"hel",t),o(e,"unpkg",r),e)},a=O(),i=O();return{createFeature:V(),eventBus:a,userEventBus:i,cacheRoot:n,unpkgCache:r,helCache:t,dev:{setLogMode:b,setLogFilter:L}}}(),m().__HEL_MICRO_SHARED__=e}function x(){return m().__HEL_MICRO_SHARED__}function C(){return x().cacheRoot.platform||"unpkg"}function D(e){var t=e||C(),r=k(),n=r.caches[t];if(!n){var o=I(e);r.caches[t]=o,n=o}return n}function k(){return x().cacheRoot}var j=!1,F=!1;function G(e){if(e&&(j=!1,F=!1),!0!==F){F=!0;var t=d();void 0===t.__MASTER_APP_LOADED__&&(t.__MASTER_APP_LOADED__=!0,j=!0)}}function B(e){e&&X(e),G(!!e),P()}E("hel-micro-core ver ".concat("3.13.5")),B();var R=function(e,t,r,n){var o=n||{},a=o.versionId;M(re(o.platform)[r],e,a||J,t)},H=function(e,t,r){var n,o=r||{},a=o.versionId,i=re(o.platform)[t],u=a||J;return(null===(n=i[e])||void 0===n?void 0:n[u])||l.NOT_LOAD},T=function(e,t,r){if(!e[J]){var n=de(t,r),o=e[null===n||void 0===n?void 0:n.online_version];o&&(e[J]=o)}},U=G,z=function(){return!j},$=C,q={SUB_APP_LOADED:"subAppLoaded",SUB_LIB_LOADED:"SubLibLoaded",STYLE_STR_FETCHED:"StyleStrFetched"},K=l,J="__default_online_ver__",Z=y,W=E,Y=g,Q=d,X=function(e){f=e};function ee(){return x().eventBus}function te(){return x().userEventBus}function re(e){return D(e)}function ne(e,t){var r=V();E("[[ core:tryGetVersion ]] may include source > ".concat(r));var n=re(t).appGroupName2firstVer[e]||"";if(r.includes("https://")||r.includes("http://")){var o=a(r.split("//"),2)[1].split("/");if(n){if("unpkg"===t&&o.some((function(e){return e.includes(n)})))return n;if(o.includes(n))return n;if("static"===o[1]&&"js"===o[2]||"js"===o[1])return n}return"unpkg"===t?o[1].split("@")[1]||n:o[2]||n}return n}function oe(e,t){return e===J?t||"":e.includes("_")?e.substring(0,e.length-15):t||""}function ae(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.platform||Ne(e),o=r.versionId||ne(e,n),a=r.appName||oe(o,e),i=de(a,n);null!==i&&void 0!==i&&i.__fromCust&&(o=i.online_version,a=i.name);var u={platform:n,appName:a,appGroupName:e,versionId:o,appProperties:t,Comp:function(){},lifecycle:{}};ve(a,u,{appGroupName:e,platform:n}),be(a,K.LOADED,{versionId:o,platform:n});var p=ee();p.emit(q.SUB_LIB_LOADED,u)}function ie(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.lifecycle,o=r.platform||Ne(e),a=r.versionId||ne(e,o),i=r.appName||oe(a,e),u={Comp:t,appName:i,appGroupName:e,lifecycle:n,platform:o,versionId:a,isLib:!1};se(i,u),be(i,K.LOADED,{versionId:a,platform:o});var p=ee();p.emit(q.SUB_APP_LOADED,u)}function ue(e){var t=e||$(),r=re(t).apiPrefix;return r||s(t)}function pe(e){return{apiMode:e.apiMode,apiPrefix:e.apiPrefix,apiSuffix:e.apiSuffix,apiPathOfApp:e.apiPathOfApp,apiPathOfAppVersion:e.apiPathOfAppVersion,getSubAppAndItsVersionFn:e.getSubAppAndItsVersionFn,onFetchMetaFailed:e.onFetchMetaFailed,strictMatchVer:e.strictMatchVer,getUserName:e.getUserName,userLsKey:e.userLsKey,platform:e.platform,shouldUseGray:e.shouldUseGray}}function le(e,t){var r,n,o=D(t),a=pe(e);o.isConfigOverwrite||(o.isConfigOverwrite=!0,r=o,n=a,Object.keys(n).forEach((function(e){var t=n[e];[null,void 0,""].includes(t)||(r[e]=t)})))}function ce(e){return pe(D(e))}function se(e,t){W("[[ core:setEmitApp ]] appName,emitApp:",e,t);var r=t.versionId,n=re(t.platform),o=n.appName2verEmitApp,a=n.appName2Comp,i=n.appName2EmitApp;w(o,e)[J]||(a[e]=t.Comp,i[e]=t,M(o,e,J,t)),r&&M(o,e,r,t)}function fe(e,t){var r,n=t||{},o=n.versionId,a=n.platform,i=re(a),u=i.appName2verEmitApp,p=i.appName2Comp,l=i.strictMatchVer,c=i.appName2EmitApp,s=null!==(r=n.strictMatchVer)&&void 0!==r?r:l,f=w(u,e);T(f,e,a);var d=f[o||J],m=p[e],v=m?{Comp:m}:null,g=s?null:c[e]||v,h=d||g||null;return W("[[ core:getVerApp ]] appName,options,result:",e,n,h),h}function de(e,t){return re(t).appName2app[e]}function me(e,t){re(t).appName2app[e.name]=e}function ve(e,t,r){var o=(r||{}).appGroupName,a=t.versionId,i=t.appProperties,u=t.platform||r.platform,p=re(u),l=p.appName2verEmitLib,c=p.appName2Lib,s=p.appName2isLibAssigned,f=de(e,u),d=function(e){var t=c[e];t?"object"===n(t)&&0===Object.keys(t).length&&Object.assign(t,i):c[e]=i,s[e]=!0};d(e),o?d(o):f&&d(f.app_group_name),W("[[ core:setEmitLib ]] appMeta:",f),w(l,e)[J]||M(l,e,J,i),a&&M(l,e,a,i)}function ge(e,t){var r,n=t||{},o=n.versionId,a=re(n.platform),i=a.appName2verEmitLib,u=a.appName2Lib,p=a.strictMatchVer,l=a.appName2isLibAssigned,c=null!==(r=n.strictMatchVer)&&void 0!==r?r:p,s=w(i,e);T(s,e);var f=s[o||J],d=l[e]?u[e]:null,m=f||(c?null:d)||null;return W("[[ core:getVerLib ]] appName,options,result:",e,n,m),m}function he(e,t,r){var n=r||{},o=n.versionId,a=re(n.platform).appName2verExtraCssList;W("[[ core:setVerExtraCssList ]] cssList:",t),w(a,e)[J]||M(a,e,J,t),o&&M(a,e,o,t)}function ye(e,t){var r=t||{},n=r.versionId,o=w(re(r.platform).appName2verExtraCssList,e),a=o[n]||o[J]||[];return W("[[ core:getVerExtraCssList ]] options,cssList:",r,a),a}function be(e,t,r){R(e,t,"appName2verLoadStatus",r)}function Ae(e,t){return H(e,"appName2verLoadStatus",t)}function Le(e,t,r){R(e,t,"appName2verStyleFetched",r)}function _e(e,t){return H(e,"appName2verStyleFetched",t)}function Se(e,t){return k().appGroupName2platform[e]=t,Ne(e)}function Ne(e){return k().appGroupName2platform[e]||C()}function Ee(e,t){var r,n=t||{},o=n.platform,a=n.versionId,i=re(o),u=i.appName2verAppVersion,p=i.appName2appVersion[e]||null;return a&&(null===(r=u[e])||void 0===r?void 0:r[a])||p}function Ve(e,t,r){var n=(r||{}).platform,o=re(n),a=o.appName2verAppVersion,i=o.appGroupName2firstVer,u=o.appName2appVersion,p=t.sub_app_version;if(p){var l=de(e,n);w(a,e)[J]||(M(a,e,J,t),u[e]=t),M(a,e,p,t),i[l.app_group_name]=p}}function Me(e,t){var r,n=t||{},o=n.platform,a=n.versionId,i=re(o),u=i.appName2verStyleStr,p=i.appName2styleStr[e]||"";return a?(null===(r=u[e])||void 0===r?void 0:r[a])||p||"":p}function we(e,t,r){var n=r||{},o=n.platform,a=n.versionId,i=re(o),u=i.appName2verStyleStr,p=i.appName2verStyleFetched,l=i.appName2styleStr;a?(M(u,e,a,t),M(p,e,a,K.LOADED)):l[e]=t}var Ie={DEFAULT_ONLINE_VER:J,helLoadStatus:l,helEvents:q,isSubApp:z,trySetMasterAppLoadedSignal:G,getHelEventBus:ee,getUserEventBus:te,getHelDebug:g,getSharedCache:re,getPlatform:C,getPlatformHost:ue,getPlatformConfig:ce,getAppPlatform:Ne,setAppPlatform:Se,getVerApp:fe,setEmitApp:se,getVerLib:ge,setEmitLib:ve,getAppMeta:de,setAppMeta:me,getVersion:Ee,setVersion:Ve,getAppStyleStr:Me,setAppStyleStr:we,getVerLoadStatus:Ae,setVerLoadStatus:be,getVerStyleStrStatus:_e,setVerStyleStrStatus:Le,getVerExtraCssList:ye,setVerExtraCssList:he,tryGetVersion:ne,tryGetAppName:oe,initPlatformConfig:le,libReady:ae,appReady:ie,log:E,allowLog:y,getGlobalThis:d,setGlobalThis:X,resetGlobalThis:B}}.call(this,r(5))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.r(t),r.d(t,"LIB_NAME",(function(){return n}));var n="test-hel-tpl-remote-lib-111"},function(e,t,r){!function(e,t){"use strict";var r=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(t),n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e){return e||"unpkg"}function a(e,r){var n=r||(null===t.getAppPlatform||void 0===t.getAppPlatform?void 0:t.getAppPlatform(e)),o=t.getSharedCache(n).appName2Lib;return o[e]||(o[e]={}),o[e]}r.default.log("hel-lib-proxy ver 3.13.2");var i=(0,r.default.getUserEventBus)();function u(e,t){var a=n({},t||{});return a.platform=o(),r.default.getVerLib(e,a)}function p(e,n){var i,u=!0,p="";n&&("string"==typeof n?p=n:(p=n.platform||"",u=null===(i=n.asProxy)||void 0===i||i));var l=a(e,p=p||o());return"function"==typeof Proxy&&u&&(l=function(e,r,n){return new Proxy(r,{get:function(r,o){var i=String(o);return t.log("[[getLibProxy]] call lib ["+e+"] method ["+i+"]"),Object.keys(r).length?r[i]:a(e,n)[i]}})}(e,l,p)),r.default.log("[[ exposeLib ]] libName, libObj",e,l),l}function l(e,t,a){var i=function(e){var t={allowDup:!1,platform:o()};return n(n({},t),e||{})}(a);r.default.libReady(e,t,i)}function c(e,t,n){r.default.appReady(e,t,n)}function s(e,t){return r.default.getVerApp(e,t)}function f(){return!r.default.isSubApp()}var d=r.default.isSubApp,m={libReady:l,exposeLib:p,getLib:u,isSubApp:d,isMasterApp:f,eventBus:i,appReady:c,exposeApp:s};e.appReady=c,e.default=m,e.eventBus=i,e.exposeApp=s,e.exposeLib=p,e.getLib=u,e.isMasterApp=f,e.isSubApp=d,e.libReady=l,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(4))},function(e,t,r){"use strict";r.r(t);var n=r(6),o=r(3);window.__callMethod__=function(){var e=Object(o.random)(100);i("".concat(e,"_").concat(Date.now()))};var a='\n <span style="color:#c62d31">---\x3e lazy load mode</span>\n <pre style="background-color:lightgray;padding-top:12px">\n import helMicro from \'hel-micro\';\n\n export async function callRemoteMethod(){\n const remoteLib = await helMicro.preFetchLib(\''.concat(n.LIB_NAME,"');\n // now you can call the remote lib by 'remoteLib' reference\n }\n </pre>\n <span style=\"color:#c62d31\">---\x3e preload mode</span>\n <pre style=\"background-color:lightgray;padding-top:12px\">\n // call preFetchLib at entry js file\n (async function(){\n const helMicro = await import('hel-micro');\n await helMicro.preFetchLib('").concat(n.LIB_NAME,"');\n import('./loadApp'); // move your app original entry file content to this file and load it\n })();\n\n /** --------------------------------------------------------------------------- */\n import remoteLib from '").concat(n.LIB_NAME,"';\n remoteLib.num.random(19); // now you can call the remote safely just like local module\n </pre>\n");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.querySelector("#container");t||((t=document.createElement("div")).id="container",document.body.append(t)),t.innerHTML='\n <div style="padding:60px;">\n <h1>Cool, as you see this is your hel remote module\n <a style="color:blue" href="https://github.com/hel-eco/test-hel-tpl-remote-lib-111" target="_blank" rel="noopener noreferrer">'.concat(n.LIB_NAME,'</a>\n </h1>\n <span style="color:red;">you can delete or edit this file, It will only run at master-app mode</span>,\n see the <a href="https://www.bilibili.com/video/BV1Dd4y1y7Wj/?vd_source=51bc50bf5f860e0d778c49b00d192cee" target="_blank" rel="noopener noreferrer">video</a>\n if you want to use local debug feature.\n <br />\n <h2>\n <button onclick="__callMethod__()" style="font-size:20px;background-color:#ff9800;color:white;border:none;padding:6px;">click me</button>\n to see changed result : ').concat(e,"\n </h2>\n <fieldset>\n <legend>usage snippet</legend>\n ").concat(a,'\n </fieldset>\n <p style="font-size:20px">\n <img width="30px" style="vertical-align:middle" src="https://tnfe.gtimg.com/image/1k4xi9izbk_1651642720099.png"></img>\n <a href="https://github.com/tnfe/hel" target="_blank" rel="noopener noreferrer">hel-micro</a>,\n a module federation SDK which is unrelated to tool\uff0cmore details see\n <a href="https://tnfe.github.io/hel/" target="_blank" rel="noopener noreferrer">doc</a>.\n </p>\n </div>\n ')}i()},function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"sayHelloToHel",(function(){return i}));var o={};r.r(o),r.d(o,"regs",(function(){return a})),r.d(o,"num",(function(){return u})),r.d(o,"myMod",(function(){return n}));var a=r(2);function i(e){return"hello hel, I am ".concat("",", I come from ").concat(e)}var u=r(3);t.default=o}]]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see main.c27f8348.chunk.js.LICENSE.txt */
2
- (this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]||[]).push([[1],[function(t,r,e){t.exports=e(1)},function(t,r,e){"use strict";function n(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(h){return void e(h)}c.done?r(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var a=t.apply(r,e);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(){i=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(k){u=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof f?r:f,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,r,e){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 j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=s(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}t.wrap=h;var l={};function f(){}function p(){}function v(){}var d={};u(d,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==r&&e.call(g,o)&&(d=g);var m=v.prototype=f.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){var n;this._invoke=function(o,i){function a(){return new r((function(n,a){!function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==typeof l&&e.call(l,"__await")?r.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):r.resolve(l).then((function(t){h.value=t,a(h)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return l;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,l;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,l):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function b(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function O(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,u(m,"constructor",v),u(v,"constructor",p),p.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(h(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),u(m,c,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,_.prototype={constructor:_,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(E),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),u=e.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),l},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),l}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:O(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},t}function a(){return(a=o(i().mark((function t(){var r,n,o,a,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.e(0).then(e.t.bind(null,7,7));case 2:return r=t.sent,n=r.libReady,o=r.isMasterApp,t.next=7,e.e(0).then(e.bind(null,6));case 7:return a=t.sent,c=a.LIB_NAME,t.next=11,e.e(0).then(e.bind(null,9));case 11:if(u=t.sent,n(c,u.default),!o()){t.next=16;break}return t.next=16,e.e(0).then(e.bind(null,8));case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.r(r),function(){return a.apply(this,arguments)}().catch(console.error);r.default="HEL REMOTE MOD"}],[[0,2]]]);
1
+ /*! For license information please see main.dd3fb72e.chunk.js.LICENSE.txt */
2
+ (this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]||[]).push([[1],[function(t,r,e){t.exports=e(1)},function(t,r,e){"use strict";function n(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(h){return void e(h)}c.done?r(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var a=t.apply(r,e);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(){i=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(k){u=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof f?r:f,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,r,e){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 j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=s(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}t.wrap=h;var l={};function f(){}function p(){}function v(){}var d={};u(d,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==r&&e.call(g,o)&&(d=g);var m=v.prototype=f.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){var n;this._invoke=function(o,i){function a(){return new r((function(n,a){!function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==typeof l&&e.call(l,"__await")?r.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):r.resolve(l).then((function(t){h.value=t,a(h)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return l;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,l;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,l):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function b(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function O(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,u(m,"constructor",v),u(v,"constructor",p),p.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(h(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),u(m,c,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,_.prototype={constructor:_,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(E),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),u=e.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),l},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),l}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:O(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},t}function a(){return(a=o(i().mark((function t(){var r,n,o,a,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.e(0).then(e.t.bind(null,7,7));case 2:return r=t.sent,n=r.libReady,o=r.isMasterApp,t.next=7,e.e(0).then(e.bind(null,6));case 7:return a=t.sent,c=a.LIB_NAME,t.next=11,e.e(0).then(e.bind(null,9));case 11:if(u=t.sent,n(c,u.default),!o()){t.next=16;break}return t.next=16,e.e(0).then(e.bind(null,8));case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.r(r),function(){return a.apply(this,arguments)}().catch(console.error);r.default="HEL REMOTE MOD"}],[[0,2]]]);
@@ -1 +1 @@
1
- !function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"5c853936"}[e]+".chunk.js"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/",i.oe=function(e){throw console.error(e),e};var l=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679058373255"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([]);
1
+ !function(e){function t(t){for(var n,i,l=t[0],a=t[1],c=t[2],f=0,p=[];f<l.length;f++)i=l[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);p.length;)p.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,l=1;l<r.length;l++){var a=r[l];0!==o[a]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={2:0},u=[];function i(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,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{0:"4197380e"}[e]+".chunk.js"}(e);var a=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(c);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",a.name="ChunkLoadError",a.type=n,a.request=u,r[1](a)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.2/hel_dist/",i.oe=function(e){throw console.error(e),e};var l=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]=this["helJsonp_test-hel-tpl-remote-lib-111_1679203534628"]||[],a=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var s=a;r()}([]);
@@ -0,0 +1,7 @@
1
+ // import { appGroupName } from '../../package.json'
2
+ // 如果从 package.json 直接导出 appGroupName
3
+ // rollup 打包需要配置 @rollup/plugin-json
4
+ // webpack 打包会把整个 package 对象打到运行代码里
5
+
6
+ export const LIB_NAME = 'test-hel-tpl-remote-lib-111';
7
+
@@ -0,0 +1,5 @@
1
+ import * as utils from '../utils';
2
+
3
+ export type LibProperties = typeof utils;
4
+
5
+ export default utils;
@@ -0,0 +1,10 @@
1
+ import type { LibProperties } from './libProperties';
2
+ import { exposeLib } from 'hel-lib-proxy';
3
+ import { LIB_NAME } from '../configs/subApp';
4
+
5
+
6
+ export const lib = exposeLib<LibProperties>(LIB_NAME);
7
+
8
+ export type Lib = LibProperties;
9
+
10
+ export default lib;
package/lib/index.ts ADDED
@@ -0,0 +1,24 @@
1
+
2
+ async function main() {
3
+ const { libReady, isMasterApp } = await import('hel-lib-proxy');
4
+ const { LIB_NAME } = await import('./configs/subApp');
5
+ // 如有其他远程包依赖并且需要在内部使用静态导入的语法,可使用 preFetchLib 来加载这些包体
6
+ // const { preFetchLib } = await import('hel-micro');
7
+ // await preFetchLib('other-lib');
8
+ // await Promise.all([preFetchLib('lib1'), preFetchLib('lib2')]);
9
+
10
+ const libProperties = await import('./entrance/libProperties');
11
+ // !!!注意这句话不能删掉,否则会导致使用方无法获取到模块
12
+ libReady(LIB_NAME, libProperties.default);
13
+
14
+ // 这里可根据自己的情况做调整或删除(仅为了本地启动模块时可以以web项目的形式做一些自定义验证逻辑),
15
+ // 被别的使用方载入当前模块时并不会触发 if 块里的逻辑
16
+ if (isMasterApp()) {
17
+ await import('./loadApp');
18
+ }
19
+ };
20
+
21
+ main().catch(console.error);
22
+
23
+ // avoid isolatedModules warning
24
+ export default 'HEL REMOTE MOD';
package/lib/loadApp.ts ADDED
@@ -0,0 +1,73 @@
1
+ /**
2
+ * 该文件仅用于演示,可删除或者根据自己想在本地启动时做一些其他工作而调整
3
+ */
4
+ import { LIB_NAME } from './configs/subApp';
5
+ import { random } from './utils/num';
6
+
7
+ function __callMethod__() {
8
+ const num = random(100);
9
+ forceRender(`${num}_${Date.now()}`);
10
+ }
11
+ // @ts-ignore
12
+ window.__callMethod__ = __callMethod__;
13
+
14
+ const usageSnippet = `
15
+ <span style="color:#c62d31">---> lazy load mode</span>
16
+ <pre style="background-color:lightgray;padding-top:12px">
17
+ import helMicro from 'hel-micro';
18
+
19
+ export async function callRemoteMethod(){
20
+ const remoteLib = await helMicro.preFetchLib('${LIB_NAME}');
21
+ // now you can call the remote lib by 'remoteLib' reference
22
+ }
23
+ </pre>
24
+ <span style="color:#c62d31">---> preload mode</span>
25
+ <pre style="background-color:lightgray;padding-top:12px">
26
+ // call preFetchLib at entry js file
27
+ (async function(){
28
+ const helMicro = await import('hel-micro');
29
+ await helMicro.preFetchLib('${LIB_NAME}');
30
+ import('./loadApp'); // move your app original entry file content to this file and load it
31
+ })();
32
+
33
+ /** --------------------------------------------------------------------------- */
34
+ import remoteLib from '${LIB_NAME}';
35
+ remoteLib.num.random(19); // now you can call the remote safely just like local module
36
+ </pre>
37
+ `;
38
+
39
+ function forceRender(result = '') {
40
+ let con = document.querySelector('#container');
41
+ if (!con) {
42
+ con = document.createElement('div');
43
+ con.id = 'container';
44
+ document.body.append(con);
45
+ }
46
+ con.innerHTML = `
47
+ <div style="padding:60px;">
48
+ <h1>Cool, as you see this is your hel remote module
49
+ <a style="color:blue" href="https://github.com/hel-eco/test-hel-tpl-remote-lib-111" target="_blank" rel="noopener noreferrer">${LIB_NAME}</a>
50
+ </h1>
51
+ <span style="color:red;">you can delete or edit this file, It will only run at master-app mode</span>,
52
+ see the <a href="https://www.bilibili.com/video/BV1Dd4y1y7Wj/?vd_source=51bc50bf5f860e0d778c49b00d192cee" target="_blank" rel="noopener noreferrer">video</a>
53
+ if you want to use local debug feature.
54
+ <br />
55
+ <h2>
56
+ <button onclick="__callMethod__()" style="font-size:20px;background-color:#ff9800;color:white;border:none;padding:6px;">click me</button>
57
+ to see changed result : ${result}
58
+ </h2>
59
+ <fieldset>
60
+ <legend>usage snippet</legend>
61
+ ${usageSnippet}
62
+ </fieldset>
63
+ <p style="font-size:20px">
64
+ <img width="30px" style="vertical-align:middle" src="https://tnfe.gtimg.com/image/1k4xi9izbk_1651642720099.png"></img>
65
+ <a href="https://github.com/tnfe/hel" target="_blank" rel="noopener noreferrer">hel-micro</a>,
66
+ a module federation SDK which is unrelated to tool,more details see
67
+ <a href="https://tnfe.github.io/hel/" target="_blank" rel="noopener noreferrer">doc</a>.
68
+ </p>
69
+ </div>
70
+ `;
71
+ }
72
+
73
+ forceRender();
@@ -0,0 +1,14 @@
1
+ import { sayHelloToHel } from '../myMod';
2
+
3
+ /**
4
+ * @author fancyzhong
5
+ * @priority P0
6
+ * @casetype unit
7
+ */
8
+ describe('test myMod', () => {
9
+ test('sayHelloToHel', () => {
10
+ const yourRtxName = ''; // 此处改写为你的rtx名字
11
+ const ret = `hello hel, I am ${yourRtxName}, I come from bj`;
12
+ expect(sayHelloToHel('bj') === ret).toBeTruthy();
13
+ });
14
+ });
@@ -0,0 +1,19 @@
1
+ import { canBeNum } from '../num';
2
+
3
+ /**
4
+ * @author fancyzhong
5
+ * @priority P0
6
+ * @casetype unit
7
+ */
8
+ describe('test num util', () => {
9
+ test('canBeNum should works as expect', () => {
10
+ expect(canBeNum(1)).toBeTruthy();
11
+ expect(canBeNum(1.0)).toBeTruthy();
12
+ expect(canBeNum('1')).toBeTruthy();
13
+ expect(canBeNum('1.')).toBeTruthy();
14
+ expect(canBeNum('1.0')).toBeTruthy();
15
+ expect(canBeNum('1.s')).toBeFalsy();
16
+ expect(canBeNum('1s')).toBeFalsy();
17
+ expect(canBeNum(null)).toBeFalsy();
18
+ });
19
+ });
@@ -0,0 +1,22 @@
1
+ import regs from '../regs';
2
+
3
+ /**
4
+ * @author fancyzhong
5
+ * @priority P0
6
+ * @casetype unit
7
+ */
8
+ describe('test regs', () => {
9
+ test('regs', () => {
10
+ expect(regs.en.test('123')).toBeFalsy();
11
+ expect(regs.en.test('abc')).toBeTruthy();
12
+
13
+ expect(regs.num1to9.test('123')).toBeTruthy();
14
+ expect(regs.num1to9.test('abc')).toBeFalsy();
15
+
16
+ expect(regs.enSnake.test('ab_cc')).toBeTruthy();
17
+ expect(regs.enSnake.test('_aa_cc')).toBeFalsy();
18
+
19
+ expect(regs.enOrNum.test('ab_cc')).toBeFalsy();
20
+ expect(regs.enOrNum.test('aa11cc22AA')).toBeTruthy();
21
+ });
22
+ });
@@ -0,0 +1,9 @@
1
+ import * as regs from './regs';
2
+ import * as myMod from './myMod';
3
+ import * as num from './num';
4
+
5
+ export {
6
+ regs,
7
+ num,
8
+ myMod,
9
+ };
@@ -0,0 +1,5 @@
1
+
2
+ export function sayHelloToHel(from: string) {
3
+ const yourRtxName = ''; // 此处改写为你的rtx名字
4
+ return `hello hel, I am ${yourRtxName}, I come from ${from}`;
5
+ }
@@ -0,0 +1,34 @@
1
+ import regs from './regs';
2
+
3
+ /**
4
+ * 检查输入值是否能转化为数字且没有包含其他除.以外的非法字符
5
+ * input: '22.s' ---> outpur: false
6
+ * input: '22.1' ---> outpur: true
7
+ * input: '22' ---> outpur: true
8
+ * input: 22 ---> outpur: true
9
+ * input: 22.1 ---> outpur: true
10
+ * @param val
11
+ */
12
+ export function canBeNum(val: any) {
13
+ const valType = typeof val;
14
+ if (valType === 'string') {
15
+ if (val.includes('.')) {
16
+ const pureStr = val.replace(/\./g, '');
17
+ // 去掉.之后,如果还包含有其他字符,则直接返回false
18
+ if (!regs.num1to9.test(pureStr)) return false;
19
+
20
+ const parsed = parseFloat(val);
21
+ return !Number.isNaN(parsed);
22
+ }
23
+ return regs.num1to9.test(val);
24
+ } if (valType === 'number') {
25
+ return true;
26
+ }
27
+ return false;
28
+ }
29
+
30
+ export function random(seed: number) {
31
+ return Math.floor(seed * Math.random());
32
+ // return 10000;
33
+ // return 888;
34
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * 采取getter模式,让外界来每次获取的都是新的正则表达式
3
+ * 避免同一个表达式反复使用出现bug
4
+ */
5
+
6
+ const regs = {
7
+ get num1to9() {
8
+ return /^[1-9]+[0-9]*$/;
9
+ },
10
+ /** 必需全部是英文 */
11
+ get en() {
12
+ return /^[A-Za-z]+$/;
13
+ },
14
+ /** 蛇形英文命名方式,且首尾不能是下划线,开头不能是数字 */
15
+ get enSnake() {
16
+ // return /^[a-z][0-9a-z]*(_[0-9a-z]*[a-z]+)+$/;
17
+ return /^[a-z][_0-9a-z]*[a-z0-9]+$/;
18
+ },
19
+ get enOrNumOrUnderline() {
20
+ return /^[A-Za-z0-9_]+$/;
21
+ },
22
+ /** 必需全部是英文或数字 */
23
+ get enOrNum() {
24
+ return /^[A-Za-z0-9]+$/;
25
+ },
26
+ };
27
+
28
+ export default regs;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "module": "hel_proxy_es/entry.js",
6
6
  "unpkg": "hel_dist/index.html",
7
7
  "types": "lib/entrance/libTypes.ts",
8
- "version": "0.0.1",
8
+ "version": "0.0.2",
9
9
  "dependencies": {
10
10
  "@types/lodash": "^4.14.182",
11
11
  "hel-lib-proxy": "3.13.2",
@@ -86,7 +86,7 @@
86
86
  "lint-staged": "^10.5.3",
87
87
  "pnp-webpack-plugin": "1.6.4",
88
88
  "react-dev-utils": "^11.0.4",
89
- "replace-absolute-path": "^1.0.0",
89
+ "replace-absolute-path": "1.3.4",
90
90
  "resolve": "^1.22.1",
91
91
  "resolve-url-loader": "^3.1.2",
92
92
  "rollup": "^2.56.3",
@@ -1,26 +0,0 @@
1
- self.__precacheManifest = (self.__precacheManifest || []).concat([
2
- {
3
- "revision": "991621516ed57553e4914d2e86f00601",
4
- "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/index.html"
5
- },
6
- {
7
- "revision": "59b9431318f2c4d3431b",
8
- "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/0.5c853936.chunk.js"
9
- },
10
- {
11
- "revision": "114fa89da3636722bc04f5ae14df1de3",
12
- "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/0.5c853936.chunk.js.LICENSE.txt"
13
- },
14
- {
15
- "revision": "9a378155806506cdb26e",
16
- "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js"
17
- },
18
- {
19
- "revision": "4e0e34f265fae8f33b01b27ae29d9d6f",
20
- "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/main.c27f8348.chunk.js.LICENSE.txt"
21
- },
22
- {
23
- "revision": "af9954ccc47eeab258b4",
24
- "url": "https://unpkg.com/test-hel-tpl-remote-lib-111@0.0.1/hel_dist/static/js/runtime-main.e18d2cf7.js"
25
- }
26
- ]);