@appshell/react-shell 1.0.0-alpha.12 → 1.0.0-alpha.13

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.
@@ -0,0 +1,25 @@
1
+ {
2
+ "short_name": "Appshell Host",
3
+ "name": "Appshell React Host",
4
+ "icons": [
5
+ {
6
+ "src": "favicon.ico",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon"
9
+ },
10
+ {
11
+ "src": "logo192.png",
12
+ "type": "image/png",
13
+ "sizes": "192x192"
14
+ },
15
+ {
16
+ "src": "logo512.png",
17
+ "type": "image/png",
18
+ "sizes": "512x512"
19
+ }
20
+ ],
21
+ "start_url": ".",
22
+ "display": "standalone",
23
+ "theme_color": "#000000",
24
+ "background_color": "#ffffff"
25
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "id": "Appshell",
3
+ "name": "Appshell",
4
+ "metaData": {
5
+ "name": "Appshell",
6
+ "type": "app",
7
+ "buildInfo": {
8
+ "buildVersion": "1.0.0-alpha.13",
9
+ "buildName": "@appshell/react-shell"
10
+ },
11
+ "remoteEntry": {
12
+ "name": "",
13
+ "path": "",
14
+ "type": "global"
15
+ },
16
+ "types": {
17
+ "path": "",
18
+ "name": "",
19
+ "zip": "",
20
+ "api": ""
21
+ },
22
+ "globalName": "Appshell",
23
+ "pluginVersion": "2.8.2",
24
+ "publicPath": "auto"
25
+ },
26
+ "shared": [
27
+ {
28
+ "id": "Appshell:react-dom",
29
+ "name": "react-dom",
30
+ "version": "18.2.0",
31
+ "singleton": true,
32
+ "requiredVersion": "18.2.0",
33
+ "assets": {
34
+ "js": {
35
+ "async": [],
36
+ "sync": [
37
+ "vendors-node_modules_react-dom_index_js.js"
38
+ ]
39
+ },
40
+ "css": {
41
+ "async": [],
42
+ "sync": []
43
+ }
44
+ },
45
+ "fallback": ""
46
+ },
47
+ {
48
+ "id": "Appshell:react",
49
+ "name": "react",
50
+ "version": "18.2.0",
51
+ "singleton": true,
52
+ "requiredVersion": "18.2.0",
53
+ "assets": {
54
+ "js": {
55
+ "async": [],
56
+ "sync": [
57
+ "vendors-node_modules_react_index_js.js"
58
+ ]
59
+ },
60
+ "css": {
61
+ "async": [],
62
+ "sync": []
63
+ }
64
+ },
65
+ "fallback": ""
66
+ }
67
+ ],
68
+ "remotes": [],
69
+ "exposes": []
70
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "id": "Appshell",
3
+ "name": "Appshell",
4
+ "metaData": {
5
+ "name": "Appshell",
6
+ "type": "app",
7
+ "buildInfo": {
8
+ "buildVersion": "1.0.0-alpha.13",
9
+ "buildName": "@appshell/react-shell"
10
+ },
11
+ "remoteEntry": {
12
+ "name": "",
13
+ "path": "",
14
+ "type": "global"
15
+ },
16
+ "types": {
17
+ "path": "",
18
+ "name": "",
19
+ "zip": "",
20
+ "api": ""
21
+ },
22
+ "globalName": "Appshell",
23
+ "pluginVersion": "2.8.2",
24
+ "publicPath": "auto"
25
+ },
26
+ "shared": [
27
+ {
28
+ "singleton": true,
29
+ "requiredVersion": "18.2.0",
30
+ "shareScope": "default",
31
+ "name": "react-dom",
32
+ "version": "18.2.0",
33
+ "eager": false,
34
+ "id": "Appshell:react-dom",
35
+ "assets": {
36
+ "js": {
37
+ "async": [],
38
+ "sync": [
39
+ "vendors-node_modules_react-dom_index_js.js"
40
+ ]
41
+ },
42
+ "css": {
43
+ "async": [],
44
+ "sync": []
45
+ }
46
+ },
47
+ "usedIn": [],
48
+ "usedExports": [],
49
+ "fallback": ""
50
+ },
51
+ {
52
+ "singleton": true,
53
+ "requiredVersion": "18.2.0",
54
+ "shareScope": "default",
55
+ "name": "react",
56
+ "version": "18.2.0",
57
+ "eager": false,
58
+ "id": "Appshell:react",
59
+ "assets": {
60
+ "js": {
61
+ "async": [],
62
+ "sync": [
63
+ "vendors-node_modules_react_index_js.js"
64
+ ]
65
+ },
66
+ "css": {
67
+ "async": [],
68
+ "sync": []
69
+ }
70
+ },
71
+ "usedIn": [],
72
+ "usedExports": [],
73
+ "fallback": ""
74
+ }
75
+ ],
76
+ "remotes": [],
77
+ "exposes": []
78
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ (globalThis["webpackChunkappshell_react_shell"] = globalThis["webpackChunkappshell_react_shell"] || []).push([["node_modules_web-vitals_dist_web-vitals_js"],{
3
+
4
+ /***/ "../../node_modules/web-vitals/dist/web-vitals.js"
5
+ /*!********************************************************!*\
6
+ !*** ../../node_modules/web-vitals/dist/web-vitals.js ***!
7
+ \********************************************************/
8
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
9
+
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ getCLS: () => (/* binding */ b),
13
+ /* harmony export */ getFCP: () => (/* binding */ L),
14
+ /* harmony export */ getFID: () => (/* binding */ M),
15
+ /* harmony export */ getINP: () => (/* binding */ z),
16
+ /* harmony export */ getLCP: () => (/* binding */ J),
17
+ /* harmony export */ getTTFB: () => (/* binding */ Q),
18
+ /* harmony export */ onCLS: () => (/* binding */ b),
19
+ /* harmony export */ onFCP: () => (/* binding */ L),
20
+ /* harmony export */ onFID: () => (/* binding */ M),
21
+ /* harmony export */ onINP: () => (/* binding */ z),
22
+ /* harmony export */ onLCP: () => (/* binding */ J),
23
+ /* harmony export */ onTTFB: () => (/* binding */ Q)
24
+ /* harmony export */ });
25
+ var e,n,t,r,i,a=-1,o=function(e){addEventListener("pageshow",(function(n){n.persisted&&(a=n.timeStamp,e(n))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},u=function(){var e=c();return e&&e.activationStart||0},f=function(e,n){var t=c(),r="navigate";return a>=0?r="back-forward-cache":t&&(r=document.prerendering||u()>0?"prerender":document.wasDiscarded?"restore":t.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},d=function(e,n,t,r){var i,a;return function(o){n.value>=0&&(o||r)&&((a=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=a,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},l=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},v=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},p=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},m=-1,h=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},g=function(e){"hidden"===document.visibilityState&&m>-1&&(m="visibilitychange"===e.type?e.timeStamp:0,T())},y=function(){addEventListener("visibilitychange",g,!0),addEventListener("prerenderingchange",g,!0)},T=function(){removeEventListener("visibilitychange",g,!0),removeEventListener("prerenderingchange",g,!0)},E=function(){return m<0&&(m=h(),y(),o((function(){setTimeout((function(){m=h(),y()}),0)}))),{get firstHiddenTime(){return m}}},C=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},L=function(e,n){n=n||{},C((function(){var t,r=[1800,3e3],i=E(),a=f("FCP"),c=s("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(c.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-u(),0),a.entries.push(e),t(!0)))}))}));c&&(t=d(e,a,r,n.reportAllChanges),o((function(i){a=f("FCP"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,t(!0)}))})))}))},b=function(e,n){n=n||{},L(p((function(){var t,r=[.1,.25],i=f("CLS",0),a=0,c=[],u=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=c[0],t=c[c.length-1];a&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,c.push(e)):(a=e.value,c=[e])}})),a>i.value&&(i.value=a,i.entries=c,t())},p=s("layout-shift",u);p&&(t=d(e,i,r,n.reportAllChanges),v((function(){u(p.takeRecords()),t(!0)})),o((function(){a=0,i=f("CLS",0),t=d(e,i,r,n.reportAllChanges),l((function(){return t()}))})),setTimeout(t,0))})))},w={passive:!0,capture:!0},S=new Date,A=function(r,i){e||(e=i,n=r,t=new Date,F(removeEventListener),I())},I=function(){if(n>=0&&n<t-S){var i={entryType:"first-input",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+n};r.forEach((function(e){e(i)})),r=[]}},P=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){A(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,w),removeEventListener("pointercancel",r,w)};addEventListener("pointerup",t,w),addEventListener("pointercancel",r,w)}(n,e):A(n,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,P,w)}))},M=function(t,i){i=i||{},C((function(){var a,c=[100,300],u=E(),l=f("FID"),m=function(e){e.startTime<u.firstHiddenTime&&(l.value=e.processingStart-e.startTime,l.entries.push(e),a(!0))},h=function(e){e.forEach(m)},g=s("first-input",h);a=d(t,l,c,i.reportAllChanges),g&&v(p((function(){h(g.takeRecords()),g.disconnect()}))),g&&o((function(){var o;l=f("FID"),a=d(t,l,c,i.reportAllChanges),r=[],n=-1,e=null,F(addEventListener),o=m,r.push(o),I()}))}))},k=0,D=1/0,x=0,B=function(e){e.forEach((function(e){e.interactionId&&(D=Math.min(D,e.interactionId),x=Math.max(x,e.interactionId),k=x?(x-D)/7+1:0)}))},R=function(){return i?k:performance.interactionCount||0},H=function(){"interactionCount"in performance||i||(i=s("event",B,{type:"event",buffered:!0,durationThreshold:0}))},N=0,O=function(){return R()-N},q=[],j={},_=function(e){var n=q[q.length-1],t=j[e.interactionId];if(t||q.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};j[r.id]=r,q.push(r)}q.sort((function(e,n){return n.latency-e.latency})),q.splice(10).forEach((function(e){delete j[e.id]}))}},z=function(e,n){n=n||{},C((function(){var t=[200,500];H();var r,i=f("INP"),a=function(e){e.forEach((function(e){(e.interactionId&&_(e),"first-input"===e.entryType)&&(!q.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&_(e))}));var n,t=(n=Math.min(q.length-1,Math.floor(O()/50)),q[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},c=s("event",a,{durationThreshold:n.durationThreshold||40});r=d(e,i,t,n.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),v((function(){a(c.takeRecords()),i.value<0&&O()>0&&(i.value=0,i.entries=[]),r(!0)})),o((function(){q=[],N=R(),i=f("INP"),r=d(e,i,t,n.reportAllChanges)})))}))},G={},J=function(e,n){n=n||{},C((function(){var t,r=[2500,4e3],i=E(),a=f("LCP"),c=function(e){var n=e[e.length-1];if(n){var r=Math.max(n.startTime-u(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[n],t())}},m=s("largest-contentful-paint",c);if(m){t=d(e,a,r,n.reportAllChanges);var h=p((function(){G[a.id]||(c(m.takeRecords()),m.disconnect(),G[a.id]=!0,t(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,h,!0)})),v(h),o((function(i){a=f("LCP"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,G[a.id]=!0,t(!0)}))}))}}))},K=function e(n){document.prerendering?C((function(){return e(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(n)}),!0):setTimeout(n,0)},Q=function(e,n){n=n||{};var t=[800,1800],r=f("TTFB"),i=d(e,r,t,n.reportAllChanges);K((function(){var a=c();if(a){var s=a.responseStart;if(s<=0||s>performance.now())return;r.value=Math.max(s-u(),0),r.entries=[a],i(!0),o((function(){r=f("TTFB",0),(i=d(e,r,t,n.reportAllChanges))(!0)}))}}))};
26
+
27
+
28
+ /***/ }
29
+
30
+ }]);
31
+ //# sourceMappingURL=node_modules_web-vitals_dist_web-vitals_js.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_modules_web-vitals_dist_web-vitals_js.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC,yCAAyC,kCAAkC,MAAM,cAAc,uGAAuG,cAAc,UAAU,+BAA+B,iBAAiB,uBAAuB,6IAA6I,qKAAqK,mBAAmB,IAAI,wDAAwD,2CAA2C,mCAAmC,kBAAkB,GAAG,GAAG,gCAAgC,mBAAmB,MAAM,MAAM,WAAW,qBAAqB,QAAQ,mBAAmB,kGAAkG,uDAAuD,mBAAmB,eAAe,kCAAkC,yCAAyC,WAAW,GAAG,GAAG,eAAe,kBAAkB,gEAAgE,4EAA4E,eAAe,SAAS,mBAAmB,gBAAgB,mBAAmB,uEAAuE,eAAe,6FAA6F,cAAc,sFAAsF,cAAc,4FAA4F,cAAc,qCAAqC,uBAAuB,UAAU,KAAK,KAAK,sBAAsB,WAAW,eAAe,wEAAwE,WAAW,UAAU,iBAAiB,OAAO,eAAe,6DAA6D,uBAAuB,iJAAiJ,GAAG,GAAG,iDAAiD,uDAAuD,4CAA4C,GAAG,IAAI,GAAG,iBAAiB,OAAO,iBAAiB,qDAAqD,uBAAuB,sBAAsB,2BAA2B,sGAAsG,0CAA0C,uBAAuB,gDAAgD,yBAAyB,iBAAiB,6DAA6D,WAAW,GAAG,oBAAoB,IAAI,IAAI,sBAAsB,4BAA4B,mDAAmD,cAAc,gBAAgB,OAAO,iIAAiI,uBAAuB,KAAK,SAAS,eAAe,iBAAiB,gEAAgE,oCAAoC,iBAAiB,WAAW,cAAc,IAAI,cAAc,+EAA+E,wEAAwE,cAAc,eAAe,wEAAwE,gBAAgB,GAAG,iBAAiB,OAAO,eAAe,iDAAiD,+FAA+F,eAAe,aAAa,sBAAsB,iDAAiD,kCAAkC,qBAAqB,MAAM,gGAAgG,GAAG,GAAG,6BAA6B,uBAAuB,+FAA+F,GAAG,cAAc,2CAA2C,cAAc,qDAAqD,6CAA6C,GAAG,kBAAkB,aAAa,UAAU,eAAe,yCAAyC,yCAAyC,gEAAgE,KAAK,OAAO,mDAAmD,oBAAoB,sBAAsB,2BAA2B,qCAAqC,eAAe,IAAI,iBAAiB,OAAO,eAAe,gBAAgB,IAAI,+BAA+B,uBAAuB,2EAA2E,mCAAmC,0DAA0D,GAAG,UAAU,GAAG,yDAAyD,oEAAoE,gBAAgB,0CAA0C,EAAE,6CAA6C,+BAA+B,gBAAgB,oEAAoE,iBAAiB,oDAAoD,IAAI,GAAG,KAAK,iBAAiB,OAAO,eAAe,kDAAkD,oBAAoB,MAAM,kCAAkC,oDAAoD,mCAAmC,MAAM,8BAA8B,oBAAoB,8DAA8D,GAAG,yCAAyC,yBAAyB,uBAAuB,uDAAuD,uDAAuD,GAAG,IAAI,GAAG,iBAAiB,oCAAoC,YAAY,wEAAwE,YAAY,sBAAsB,iBAAiB,QAAQ,2DAA2D,cAAc,UAAU,MAAM,sBAAsB,oCAAoC,4DAA4D,kDAAkD,IAAI,IAAwJ","sources":["webpack://appshell-react-shell/../../node_modules/web-vitals/dist/web-vitals.js"],"sourcesContent":["var e,n,t,r,i,a=-1,o=function(e){addEventListener(\"pageshow\",(function(n){n.persisted&&(a=n.timeStamp,e(n))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},u=function(){var e=c();return e&&e.activationStart||0},f=function(e,n){var t=c(),r=\"navigate\";return a>=0?r=\"back-forward-cache\":t&&(r=document.prerendering||u()>0?\"prerender\":document.wasDiscarded?\"restore\":t.type.replace(/_/g,\"-\")),{name:e,value:void 0===n?-1:n,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},d=function(e,n,t,r){var i,a;return function(o){n.value>=0&&(o||r)&&((a=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=a,n.rating=function(e,n){return e>n[1]?\"poor\":e>n[0]?\"needs-improvement\":\"good\"}(n.value,t),e(n))}},l=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},v=function(e){var n=function(n){\"pagehide\"!==n.type&&\"hidden\"!==document.visibilityState||e(n)};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},p=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},m=-1,h=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},g=function(e){\"hidden\"===document.visibilityState&&m>-1&&(m=\"visibilitychange\"===e.type?e.timeStamp:0,T())},y=function(){addEventListener(\"visibilitychange\",g,!0),addEventListener(\"prerenderingchange\",g,!0)},T=function(){removeEventListener(\"visibilitychange\",g,!0),removeEventListener(\"prerenderingchange\",g,!0)},E=function(){return m<0&&(m=h(),y(),o((function(){setTimeout((function(){m=h(),y()}),0)}))),{get firstHiddenTime(){return m}}},C=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},L=function(e,n){n=n||{},C((function(){var t,r=[1800,3e3],i=E(),a=f(\"FCP\"),c=s(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(c.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-u(),0),a.entries.push(e),t(!0)))}))}));c&&(t=d(e,a,r,n.reportAllChanges),o((function(i){a=f(\"FCP\"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,t(!0)}))})))}))},b=function(e,n){n=n||{},L(p((function(){var t,r=[.1,.25],i=f(\"CLS\",0),a=0,c=[],u=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=c[0],t=c[c.length-1];a&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,c.push(e)):(a=e.value,c=[e])}})),a>i.value&&(i.value=a,i.entries=c,t())},p=s(\"layout-shift\",u);p&&(t=d(e,i,r,n.reportAllChanges),v((function(){u(p.takeRecords()),t(!0)})),o((function(){a=0,i=f(\"CLS\",0),t=d(e,i,r,n.reportAllChanges),l((function(){return t()}))})),setTimeout(t,0))})))},w={passive:!0,capture:!0},S=new Date,A=function(r,i){e||(e=i,n=r,t=new Date,F(removeEventListener),I())},I=function(){if(n>=0&&n<t-S){var i={entryType:\"first-input\",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+n};r.forEach((function(e){e(i)})),r=[]}},P=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,n){var t=function(){A(e,n),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",t,w),removeEventListener(\"pointercancel\",r,w)};addEventListener(\"pointerup\",t,w),addEventListener(\"pointercancel\",r,w)}(n,e):A(n,e)}},F=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(n){return e(n,P,w)}))},M=function(t,i){i=i||{},C((function(){var a,c=[100,300],u=E(),l=f(\"FID\"),m=function(e){e.startTime<u.firstHiddenTime&&(l.value=e.processingStart-e.startTime,l.entries.push(e),a(!0))},h=function(e){e.forEach(m)},g=s(\"first-input\",h);a=d(t,l,c,i.reportAllChanges),g&&v(p((function(){h(g.takeRecords()),g.disconnect()}))),g&&o((function(){var o;l=f(\"FID\"),a=d(t,l,c,i.reportAllChanges),r=[],n=-1,e=null,F(addEventListener),o=m,r.push(o),I()}))}))},k=0,D=1/0,x=0,B=function(e){e.forEach((function(e){e.interactionId&&(D=Math.min(D,e.interactionId),x=Math.max(x,e.interactionId),k=x?(x-D)/7+1:0)}))},R=function(){return i?k:performance.interactionCount||0},H=function(){\"interactionCount\"in performance||i||(i=s(\"event\",B,{type:\"event\",buffered:!0,durationThreshold:0}))},N=0,O=function(){return R()-N},q=[],j={},_=function(e){var n=q[q.length-1],t=j[e.interactionId];if(t||q.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};j[r.id]=r,q.push(r)}q.sort((function(e,n){return n.latency-e.latency})),q.splice(10).forEach((function(e){delete j[e.id]}))}},z=function(e,n){n=n||{},C((function(){var t=[200,500];H();var r,i=f(\"INP\"),a=function(e){e.forEach((function(e){(e.interactionId&&_(e),\"first-input\"===e.entryType)&&(!q.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&_(e))}));var n,t=(n=Math.min(q.length-1,Math.floor(O()/50)),q[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},c=s(\"event\",a,{durationThreshold:n.durationThreshold||40});r=d(e,i,t,n.reportAllChanges),c&&(c.observe({type:\"first-input\",buffered:!0}),v((function(){a(c.takeRecords()),i.value<0&&O()>0&&(i.value=0,i.entries=[]),r(!0)})),o((function(){q=[],N=R(),i=f(\"INP\"),r=d(e,i,t,n.reportAllChanges)})))}))},G={},J=function(e,n){n=n||{},C((function(){var t,r=[2500,4e3],i=E(),a=f(\"LCP\"),c=function(e){var n=e[e.length-1];if(n){var r=Math.max(n.startTime-u(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[n],t())}},m=s(\"largest-contentful-paint\",c);if(m){t=d(e,a,r,n.reportAllChanges);var h=p((function(){G[a.id]||(c(m.takeRecords()),m.disconnect(),G[a.id]=!0,t(!0))}));[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,h,!0)})),v(h),o((function(i){a=f(\"LCP\"),t=d(e,a,r,n.reportAllChanges),l((function(){a.value=performance.now()-i.timeStamp,G[a.id]=!0,t(!0)}))}))}}))},K=function e(n){document.prerendering?C((function(){return e(n)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(n)}),!0):setTimeout(n,0)},Q=function(e,n){n=n||{};var t=[800,1800],r=f(\"TTFB\"),i=d(e,r,t,n.reportAllChanges);K((function(){var a=c();if(a){var s=a.responseStart;if(s<=0||s>performance.now())return;r.value=Math.max(s-u(),0),r.entries=[a],i(!0),o((function(){r=f(\"TTFB\",0),(i=d(e,r,t,n.reportAllChanges))(!0)}))}}))};export{b as getCLS,L as getFCP,M as getFID,z as getINP,J as getLCP,Q as getTTFB,b as onCLS,L as onFCP,M as onFID,z as onINP,J as onLCP,Q as onTTFB};\n"],"names":[],"sourceRoot":""}