aimux-cli 0.1.19 → 0.1.20
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.
- package/README.md +13 -4
- package/bin/aimux +4 -0
- package/bin/aimux-dev +2 -6
- package/dist/agent-output-parser-audit.d.ts +23 -0
- package/dist/agent-output-parser-audit.js +187 -0
- package/dist/agent-output-parser-contract.d.ts +9 -0
- package/dist/agent-output-parser-contract.js +33 -0
- package/dist/agent-output-parser-fixtures.d.ts +15 -0
- package/dist/agent-output-parser-fixtures.js +593 -0
- package/dist/agent-output-parser-harness.d.ts +21 -0
- package/dist/agent-output-parser-harness.js +43 -0
- package/dist/agent-output-parser-test-utils.d.ts +1 -0
- package/dist/agent-output-parser-test-utils.js +7 -0
- package/dist/agent-output-parser.js +215 -35
- package/dist/atomic-write.d.ts +15 -0
- package/dist/atomic-write.js +69 -4
- package/dist/attachment-store.d.ts +7 -0
- package/dist/attachment-store.js +64 -5
- package/dist/backend-session-discovery.d.ts +17 -0
- package/dist/backend-session-discovery.js +57 -0
- package/dist/config.js +9 -4
- package/dist/connection-targets.js +20 -1
- package/dist/context/context-bridge.js +4 -1
- package/dist/credentials.js +3 -6
- package/dist/daemon.d.ts +1 -0
- package/dist/daemon.js +16 -0
- package/dist/dashboard/index.d.ts +1 -0
- package/dist/dashboard/index.js +1 -0
- package/dist/dashboard/targets.js +14 -2
- package/dist/dashboard/ui-state-store.js +4 -3
- package/dist/last-used.js +3 -2
- package/dist/launcher-env.d.ts +4 -0
- package/dist/launcher-env.js +70 -0
- package/dist/main.js +16 -1
- package/dist/metadata-server.d.ts +13 -2
- package/dist/metadata-server.js +60 -4
- package/dist/metadata-store.js +4 -3
- package/dist/mobile-push-bridge.d.ts +8 -0
- package/dist/mobile-push-bridge.js +22 -0
- package/dist/mobile-push-throttle.d.ts +23 -0
- package/dist/mobile-push-throttle.js +53 -0
- package/dist/multiplexer/dashboard-model.js +3 -2
- package/dist/multiplexer/dashboard-ops.d.ts +3 -2
- package/dist/multiplexer/dashboard-ops.js +2 -2
- package/dist/multiplexer/dashboard-tail-methods.d.ts +3 -2
- package/dist/multiplexer/dashboard-tail-methods.js +2 -2
- package/dist/multiplexer/dashboard-view-methods.js +2 -0
- package/dist/multiplexer/index.d.ts +1 -1
- package/dist/multiplexer/index.js +4 -4
- package/dist/multiplexer/persistence-methods.js +2 -1
- package/dist/multiplexer/runtime-lifecycle-methods.js +6 -2
- package/dist/multiplexer/runtime-state.js +13 -1
- package/dist/multiplexer/service-state-snapshot.js +4 -2
- package/dist/multiplexer/services.js +5 -4
- package/dist/multiplexer/session-launch.d.ts +1 -1
- package/dist/multiplexer/session-launch.js +18 -6
- package/dist/multiplexer/session-runtime-core.js +9 -2
- package/dist/multiplexer/tool-picker.d.ts +2 -1
- package/dist/multiplexer/tool-picker.js +29 -21
- package/dist/notify.d.ts +1 -1
- package/dist/notify.js +8 -5
- package/dist/paths.js +50 -4
- package/dist/project-takeover.d.ts +1 -0
- package/dist/project-takeover.js +117 -0
- package/dist/relay-client.d.ts +10 -0
- package/dist/relay-client.js +5 -0
- package/dist/runtime-core/backend-id-reconcile.d.ts +13 -0
- package/dist/runtime-core/backend-id-reconcile.js +23 -0
- package/dist/runtime-core/exchange-store.js +3 -8
- package/dist/runtime-core/topology-store.js +3 -8
- package/dist/runtime-owner.d.ts +3 -0
- package/dist/runtime-owner.js +10 -0
- package/dist/shell-args.d.ts +13 -0
- package/dist/shell-args.js +25 -0
- package/dist/shell-hooks.d.ts +1 -0
- package/dist/shell-hooks.js +1 -0
- package/dist/team.js +4 -3
- package/dist/tmux/runtime-manager.js +2 -0
- package/dist/tui/screens/dashboard-renderers.js +6 -6
- package/dist/vitest.setup.d.ts +1 -0
- package/dist/vitest.setup.js +9 -0
- package/dist-ui/_expo/static/css/web-8782287775683e5a944b821b854d0f60.css +1 -0
- package/dist-ui/_expo/static/js/web/{entry-477c745b2adc79367a4380ecf07d9ff6.js → entry-90d00d223eefabe5cc21e4329b274fa5.js} +260 -252
- package/dist-ui/index.html +2 -2
- package/package.json +3 -1
- package/dist-ui/_expo/static/css/web-30453ede1678c16acb08b97e83e8646d.css +0 -1
|
@@ -4,11 +4,11 @@ var __BUNDLE_START_TIME__=globalThis.nativePerformanceNow?nativePerformanceNow()
|
|
|
4
4
|
'undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window&&window;
|
|
5
5
|
!(function(r){let l=0,n=!0===r.RN$useAlwaysAvailableJSErrorHandling?r.RN$handleException:(r,l)=>{throw r};const t={setGlobalHandler(r){n=r},getGlobalHandler:()=>n,reportError(r){n&&n(r,!1)},reportFatalError(r){n&&n(r,!0)},applyWithGuard(r,n,e,a,o){try{return l++,r.apply(n,e)}catch(r){t.reportError(r)}finally{l--}return null},applyWithGuardIfNeeded:(r,l,n)=>t.inGuard()?r.apply(l,n):(t.applyWithGuard(r,l,n),null),inGuard:()=>!!l,guard(r,l,n){if('function'!=typeof r)return console.warn('A function must be passed to ErrorUtils.guard, got ',r),null;const e=l??r.name??'<generated guard>';return function(...l){return t.applyWithGuard(r,n??this,l,null,e)}}};r.ErrorUtils=t})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this);
|
|
6
6
|
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0])},0,[1]);
|
|
7
|
-
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var n=r(d[1]);(0,r(d[2]).renderRootComponent)(n.App)},1,[2,5,
|
|
7
|
+
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var n=r(d[1]);(0,r(d[2]).renderRootComponent)(n.App)},1,[2,5,2790]);
|
|
8
8
|
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1])},2,[3,4]);
|
|
9
9
|
__d(function(g,r,i,a,m,e,d){},3,[]);
|
|
10
10
|
__d(function(g,r,i,a,m,e,d){const _='undefined'==typeof window;globalThis.__webpack_chunk_load__=_=>g[`${__METRO_GLOBAL_PREFIX__}__loadBundleAsync`](_),globalThis.__webpack_require__=o=>{const t=ErrorUtils.reportFatalError;_&&(ErrorUtils.reportFatalError=_=>{throw _});try{return g[`${__METRO_GLOBAL_PREFIX__}__r`](o)}finally{_&&(ErrorUtils.reportFatalError=t)}}},4,[]);
|
|
11
|
-
__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.App=function(){return t.jsx(c.Head.Provider,{children:t.jsx(u.ExpoRoot,{context:n.ctx})})};const n=r(d[1]),u=(o(r(d[2])),r(d[3])),c=r(d[4]);r(d[5])},5,[6,288,8,680,
|
|
11
|
+
__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.App=function(){return t.jsx(c.Head.Provider,{children:t.jsx(u.ExpoRoot,{context:n.ctx})})};const n=r(d[1]),u=(o(r(d[2])),r(d[3])),c=r(d[4]);r(d[5])},5,[6,288,8,680,2784,2789]);
|
|
12
12
|
__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},6,[7]);
|
|
13
13
|
__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createElement=e.createInteropElement=e.jsxDEV=e.jsx=e.jsxs=e.Fragment=void 0;const n=r(d[0]),l=t(r(d[1])),s=t(r(d[2]));var u=r(d[0]);Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return u.Fragment}}),e.jsxs=(0,s.default)(l.default.jsxs),e.jsx=(0,s.default)(l.default.jsx),e.jsxDEV=(0,s.default)(l.default.jsxDEV),e.createInteropElement=(0,s.default)(n.createElement),e.createElement=n.createElement},7,[8,10,12]);
|
|
14
14
|
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},8,[9]);
|
|
@@ -348,7 +348,7 @@ __d(function(g,_r,i,a,m,_e,_d){"use strict";const t=["style","mode","edges"];fun
|
|
|
348
348
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initialWindowMetrics",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"initialWindowSafeAreaInsets",{enumerable:!0,get:function(){return t}});const n=null,t=null},286,[]);
|
|
349
349
|
__d(function(g,r,i,a,m,e,d){},287,[]);
|
|
350
350
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ctx",{enumerable:!0,get:function(){return t}});const t=r(d[0])},288,[289]);
|
|
351
|
-
__d(function(g,r,i,a,m,e,d){const t=Object.defineProperties({},{"./(main)/(tabs)/(dashboard)/_layout.tsx":{enumerable:!0,get:()=>r(d[0])},"./(main)/(tabs)/(dashboard)/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[1])},"./(main)/(tabs)/(dashboard)/graveyard.tsx":{enumerable:!0,get:()=>r(d[2])},"./(main)/(tabs)/(dashboard)/index.tsx":{enumerable:!0,get:()=>r(d[3])},"./(main)/(tabs)/(dashboard)/plans/[sessionId].tsx":{enumerable:!0,get:()=>r(d[4])},"./(main)/(tabs)/(dashboard)/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[5])},"./(main)/(tabs)/(inbox)/_layout.tsx":{enumerable:!0,get:()=>r(d[6])},"./(main)/(tabs)/(inbox)/notifications/_layout.tsx":{enumerable:!0,get:()=>r(d[7])},"./(main)/(tabs)/(inbox)/notifications/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[8])},"./(main)/(tabs)/(inbox)/notifications/index.tsx":{enumerable:!0,get:()=>r(d[9])},"./(main)/(tabs)/(inbox)/notifications/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[10])},"./(main)/(tabs)/(settings)/_layout.tsx":{enumerable:!0,get:()=>r(d[11])},"./(main)/(tabs)/(settings)/settings.tsx":{enumerable:!0,get:()=>r(d[12])},"./(main)/(tabs)/(threads)/_layout.tsx":{enumerable:!0,get:()=>r(d[13])},"./(main)/(tabs)/(threads)/threads.tsx":{enumerable:!0,get:()=>r(d[14])},"./(main)/(tabs)/_layout.tsx":{enumerable:!0,get:()=>r(d[15])},"./(main)/(tabs)/library/_layout.tsx":{enumerable:!0,get:()=>r(d[16])},"./(main)/(tabs)/library/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[17])},"./(main)/(tabs)/library/index.tsx":{enumerable:!0,get:()=>r(d[18])},"./(main)/(tabs)/library/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[19])},"./(main)/(tabs)/project/_layout.tsx":{enumerable:!0,get:()=>r(d[20])},"./(main)/(tabs)/project/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[21])},"./(main)/(tabs)/project/index.tsx":{enumerable:!0,get:()=>r(d[22])},"./(main)/(tabs)/project/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[23])},"./(main)/(tabs)/topology/_layout.tsx":{enumerable:!0,get:()=>r(d[24])},"./(main)/(tabs)/topology/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[25])},"./(main)/(tabs)/topology/index.tsx":{enumerable:!0,get:()=>r(d[26])},"./(main)/(tabs)/topology/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[27])},"./(main)/_layout.tsx":{enumerable:!0,get:()=>r(d[28])},"./
|
|
351
|
+
__d(function(g,r,i,a,m,e,d){const t=Object.defineProperties({},{"./(main)/(tabs)/(dashboard)/_layout.tsx":{enumerable:!0,get:()=>r(d[0])},"./(main)/(tabs)/(dashboard)/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[1])},"./(main)/(tabs)/(dashboard)/graveyard.tsx":{enumerable:!0,get:()=>r(d[2])},"./(main)/(tabs)/(dashboard)/index.tsx":{enumerable:!0,get:()=>r(d[3])},"./(main)/(tabs)/(dashboard)/plans/[sessionId].tsx":{enumerable:!0,get:()=>r(d[4])},"./(main)/(tabs)/(dashboard)/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[5])},"./(main)/(tabs)/(inbox)/_layout.tsx":{enumerable:!0,get:()=>r(d[6])},"./(main)/(tabs)/(inbox)/notifications/_layout.tsx":{enumerable:!0,get:()=>r(d[7])},"./(main)/(tabs)/(inbox)/notifications/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[8])},"./(main)/(tabs)/(inbox)/notifications/index.tsx":{enumerable:!0,get:()=>r(d[9])},"./(main)/(tabs)/(inbox)/notifications/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[10])},"./(main)/(tabs)/(settings)/_layout.tsx":{enumerable:!0,get:()=>r(d[11])},"./(main)/(tabs)/(settings)/settings.tsx":{enumerable:!0,get:()=>r(d[12])},"./(main)/(tabs)/(threads)/_layout.tsx":{enumerable:!0,get:()=>r(d[13])},"./(main)/(tabs)/(threads)/threads.tsx":{enumerable:!0,get:()=>r(d[14])},"./(main)/(tabs)/_layout.tsx":{enumerable:!0,get:()=>r(d[15])},"./(main)/(tabs)/library/_layout.tsx":{enumerable:!0,get:()=>r(d[16])},"./(main)/(tabs)/library/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[17])},"./(main)/(tabs)/library/index.tsx":{enumerable:!0,get:()=>r(d[18])},"./(main)/(tabs)/library/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[19])},"./(main)/(tabs)/project/_layout.tsx":{enumerable:!0,get:()=>r(d[20])},"./(main)/(tabs)/project/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[21])},"./(main)/(tabs)/project/index.tsx":{enumerable:!0,get:()=>r(d[22])},"./(main)/(tabs)/project/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[23])},"./(main)/(tabs)/topology/_layout.tsx":{enumerable:!0,get:()=>r(d[24])},"./(main)/(tabs)/topology/agent/[sessionId]/chat.tsx":{enumerable:!0,get:()=>r(d[25])},"./(main)/(tabs)/topology/index.tsx":{enumerable:!0,get:()=>r(d[26])},"./(main)/(tabs)/topology/service/[serviceId].tsx":{enumerable:!0,get:()=>r(d[27])},"./(main)/_layout.tsx":{enumerable:!0,get:()=>r(d[28])},"./(main)/global-notifications.tsx":{enumerable:!0,get:()=>r(d[29])},"./(main)/global-threads.tsx":{enumerable:!0,get:()=>r(d[30])},"./_layout.tsx":{enumerable:!0,get:()=>r(d[31])},"./auth.tsx":{enumerable:!0,get:()=>r(d[32])},"./cli-auth.tsx":{enumerable:!0,get:()=>r(d[33])},"./shares/invite/[ownerUserId]/[token]/accept.tsx":{enumerable:!0,get:()=>r(d[34])}});function n(n){return t[n]}n.keys=function(){return Object.keys(t)},n.resolve=function(t){throw new Error('Unimplemented Metro module context functionality')},m.exports=n},289,[290,689,2569,2572,2573,2574,2578,2579,2580,2581,2585,2586,2587,2590,2591,2592,2596,2597,2598,2600,2601,2602,2603,2608,2609,2610,2611,2614,2615,2767,2768,2769,2775,2782,2783]);
|
|
352
352
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}}),r(d[0]);var n=r(d[1]),c=r(d[2]);function t(){return(0,c.jsxs)(n.Stack,{screenOptions:{headerShown:!1},children:[(0,c.jsx)(n.Stack.Screen,{name:"index"}),(0,c.jsx)(n.Stack.Screen,{name:"agent/[sessionId]/chat"}),(0,c.jsx)(n.Stack.Screen,{name:"plans/[sessionId]"}),(0,c.jsx)(n.Stack.Screen,{name:"service/[serviceId]"}),(0,c.jsx)(n.Stack.Screen,{name:"graveyard"})]})}},290,[8,291,6]);
|
|
353
353
|
__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.Tabs=e.Stack=void 0;var o=r(d[0]);Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return o.Stack}});var c=r(d[1]);Object.defineProperty(e,"Tabs",{enumerable:!0,get:function(){return c.Tabs}}),n(r(d[2]),e)},291,[292,609,679]);
|
|
354
354
|
__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Stack=void 0;const u=t(r(d[0]));e.Stack=u.default;const c=r(d[1]);u.default.Screen=c.Screen,e.default=u.default},292,[293,593]);
|
|
@@ -698,7 +698,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{v
|
|
|
698
698
|
__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.shouldAppendSitemap=u,e.shouldAppendNotFound=s,e.getRootStackRouteNames=function(){const t=[n.INTERNAL_SLOT_NAME];s()&&t.push(n.NOT_FOUND_ROUTE_NAME);u()&&t.push(n.SITEMAP_ROUTE_NAME);return t};const o=t(r(d[0])),n=r(d[1]);function u(){const t=o.default.expoConfig?.extra?.router;return!1!==t?.sitemap}function s(){const t=o.default.expoConfig?.extra?.router;return!1!==t?.notFound}},595,[596,599]);
|
|
699
699
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"AppOwnership",{enumerable:!0,get:function(){return l.AppOwnership}}),Object.defineProperty(_e,"ExecutionEnvironment",{enumerable:!0,get:function(){return l.ExecutionEnvironment}}),Object.defineProperty(_e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return l.UserInterfaceIdiom}});var n=e(r(d[0])),t=r(d[1]);r(d[2]);var u=e(r(d[3])),l=r(d[4]),o=e(r(d[5]));o.default||console.warn("No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?");const s=(0,t.requireOptionalNativeModule)('ExpoUpdates');let f=null;if(s){let e;s.manifest?e=s.manifest:s.manifestString&&(e=JSON.parse(s.manifestString)),e&&Object.keys(e).length>0&&(f=e)}let c=null;if(u.default.EXDevLauncher){let e;u.default.EXDevLauncher.manifestString&&(e=JSON.parse(u.default.EXDevLauncher.manifestString)),e&&Object.keys(e).length>0&&(c=e)}let p=null;if(o.default&&o.default.manifest){const e=o.default.manifest;p='string'==typeof e?JSON.parse(e):e}let b=f??c??p;const E=o.default||{},{appOwnership:O}=E,x=(0,n.default)(E,["name","appOwnership"]),v=Object.assign({},x,{appOwnership:O??null});function _(e){return!h(e)}function h(e){return'metadata'in e}function S(e=!1){if(!b){const e=null===b?'null':'undefined';if(x.executionEnvironment,l.ExecutionEnvironment.Bare,x.executionEnvironment===l.ExecutionEnvironment.StoreClient||x.executionEnvironment===l.ExecutionEnvironment.Standalone)throw new t.CodedError('ERR_CONSTANTS_MANIFEST_UNAVAILABLE',`Constants.manifest is ${e}, must be an object.`)}return b}Object.defineProperties(v,{__unsafeNoWarnManifest:{get(){const e=S(!0);return e&&_(e)?e:null},enumerable:!1},__unsafeNoWarnManifest2:{get(){const e=S(!0);return e&&h(e)?e:null},enumerable:!1},manifest:{get(){const e=S();return e&&_(e)?e:null},enumerable:!0},manifest2:{get(){const e=S();return e&&h(e)?e:null},enumerable:!0},expoConfig:{get(){const e=S(!0);return e?s&&s.isEmbeddedLaunch?p:h(e)?e.extra?.expoClient??null:_(e)?e:null:null},enumerable:!0},expoGoConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.expoGo??null:_(e)?e:null:null},enumerable:!0},easConfig:{get(){const e=S(!0);return e?h(e)?e.extra?.eas??null:_(e)?e:null:null},enumerable:!0},__rawManifest_TEST:{get:()=>b,set(e){b=e},enumerable:!1}});var N=v},596,[283,554,111,101,597,598]);
|
|
700
700
|
__d(function(g,r,i,a,m,e,d){"use strict";var t,n,o;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AppOwnership",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ExecutionEnvironment",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return o}}),(function(t){t.Expo="expo"})(t||(t={})),(function(t){t.Bare="bare",t.Standalone="standalone",t.StoreClient="storeClient"})(n||(n={})),(function(t){t.Handset="handset",t.Tablet="tablet",t.Desktop="desktop",t.TV="tv",t.Unsupported="unsupported"})(o||(o={}))},597,[]);
|
|
701
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var u={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"aimux\",\"slug\":\"aimux\",\"version\":\"1.0.0\",\"orientation\":\"portrait\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"aimux\",\"userInterfaceStyle\":\"automatic\",\"newArchEnabled\":true,\"web\":{\"bundler\":\"metro\",\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"aimux\",\"orientation\":\"portrait\",\"name\":\"aimux\"},\"runtimeVersion\"
|
|
701
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var u={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"aimux\",\"slug\":\"aimux\",\"version\":\"1.0.0\",\"orientation\":\"portrait\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"aimux\",\"userInterfaceStyle\":\"automatic\",\"newArchEnabled\":true,\"web\":{\"bundler\":\"metro\",\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"aimux\",\"orientation\":\"portrait\",\"name\":\"aimux\"},\"runtimeVersion\":\"1.0.0-4\",\"updates\":{\"url\":\"https://u.expo.dev/f617e4a4-cc8d-4fee-b69c-a2211c5e15c1\",\"enabled\":true,\"checkAutomatically\":\"ON_LOAD\",\"fallbackToCacheTimeout\":30000},\"experiments\":{\"typedRoutes\":true},\"extra\":{\"router\":{},\"eas\":{\"projectId\":\"f617e4a4-cc8d-4fee-b69c-a2211c5e15c1\"}},\"owner\":\"tradersamwise\",\"sdkVersion\":\"54.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"]}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},598,[597]);
|
|
702
702
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SITEMAP_ROUTE_NAME=e.NOT_FOUND_ROUTE_NAME=e.INTERNAL_SLOT_NAME=void 0,e.INTERNAL_SLOT_NAME='__root',e.NOT_FOUND_ROUTE_NAME='+not-found',e.SITEMAP_ROUTE_NAME='_sitemap'},599,[]);
|
|
703
703
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveHref=void 0,e.resolveHrefStringWithSegments=function(t,{segments:n=[],params:s={}}={},{relativeToDirectory:o}={}){if(t.startsWith('.')){let c=n?.map(t=>{if(!t.startsWith('['))return t;if(t.startsWith('[...')){t=t.slice(4,-1);const n=s[t];return Array.isArray(n)?n.join('/'):n?.split(',')?.join('/')??''}return t=t.slice(1,-1),s[t]}).filter(Boolean).join('/')??'/';o&&(c=`${c}/`);const f=new URL(t,`http://hostname/${c}`);t=`${f.pathname}${f.search}`}return t};function t(t,s){for(const[o,c=""]of Object.entries(s)){const f=`[${o}]`,l=`[...${o}]`;if(t.includes(f))t=t.replace(f,n(c));else{if(!t.includes(l))continue;t=t.replace(l,n(c))}delete s[o]}return{pathname:t,params:s}}function n(t){return Array.isArray(t)?t.map(t=>n(t)).join('/'):encodeURIComponent(t.toString())}function s(t){return Object.entries(t).filter(([,t])=>null!=t).map(([t,n])=>`${t}=${encodeURIComponent(n.toString())}`).join('&')}e.resolveHref=n=>{if('string'==typeof n)return(0,e.resolveHref)({pathname:n});const o=n.pathname??'';if(!n?.params)return o;const{pathname:c,params:f}=t(o,Object.assign({},n.params)),l=s(f);return c+(l?`?${l}`:'')}},600,[]);
|
|
704
704
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRoutePreloadedInStack=function(t,o){if(!t||'stack'!==t.type)return!1;return t.preloadedRoutes.some(t=>t.key===o.key)}},601,[]);
|
|
@@ -790,7 +790,7 @@ __d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||
|
|
|
790
790
|
__d(function(g,r,_i,a,_m,e,d){"use strict";var t,n=this&&this.__createBinding||(Object.create?function(t,n,u,i){void 0===i&&(i=u);var o=Object.getOwnPropertyDescriptor(n,u);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,i,o)}:function(t,n,u,i){void 0===i&&(i=u),t[i]=n[u]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||(t=function(n){return t=Object.getOwnPropertyNames||function(t){var n=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[n.length]=u);return n},t(n)},function(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var c=t(i),l=0;l<c.length;l++)"default"!==c[l]&&n(o,i,c[l]);return u(o,i),o});Object.defineProperty(e,"__esModule",{value:!0}),e.useThenable=function(t){const[n]=o.useState(t);let u=[!1,void 0];n.then(t=>{u=[!0,t]});const[i,c]=o.useState(u),[l]=i;return o.useEffect(()=>{let t=!1;return l||(async()=>{let u;try{u=await n}finally{t||c([!0,u])}})(),()=>{t=!0}},[n,l]),i};const o=i(r(d[0]))},687,[8]);
|
|
791
791
|
__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=function({error:u,retry:b}){const y=(0,l.use)(o.BottomTabBarHeightContext)?n.View:s.SafeAreaView,S=u instanceof h.ReactServerError;return t.jsx(n.View,{style:w.container,children:t.jsxs(y,{style:{flex:1,gap:8,maxWidth:720,marginHorizontal:'auto'},children:[S?t.jsx(f,{error:u}):t.jsx(x,{error:u}),t.jsx(n.View,{style:{flex:1}}),!1,t.jsx(c.Pressable,{testID:"router_error_retry",onPress:b,children:({hovered:o,pressed:l})=>t.jsx(n.View,{style:[w.buttonInner,(o||l)&&{backgroundColor:'white'}],children:t.jsx(n.Text,{style:[w.buttonText,{color:o||l?'black':'white'}],children:"Retry"})})})]})})};const o=r(d[1]),l=r(d[2]),n=r(d[3]),s=r(d[4]),c=r(d[5]),h=(r(d[6]),r(d[7]));function x({error:o}){return t.jsxs(n.View,{style:{marginBottom:12,gap:4,flexWrap:'wrap'},children:[t.jsx(n.Text,{role:"heading","aria-level":1,style:w.title,children:"Something went wrong"}),t.jsxs(n.Text,{testID:"router_error_message",role:"heading","aria-level":2,style:w.errorMessage,children:["Error: ",o.message]})]})}const u={404:'NOT_FOUND',500:'INTERNAL_SERVER_ERROR',503:'SERVICE_UNAVAILABLE',504:'GATEWAY_TIMEOUT'};function f({error:o}){let l=String(o.statusCode);l+=': '+(u[o.statusCode]??'Server Error');const s=o.headers.get('cf-ray'),c=o.headers.get('Date');return t.jsxs(n.View,{style:{padding:12,gap:8},children:[t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:{fontSize:n.Platform.select({web:24,default:16}),fontWeight:'bold',marginBottom:4,color:'white'},children:l}),t.jsx(n.ScrollView,{style:{borderColor:'rgba(255,255,255,0.5)',borderTopWidth:n.StyleSheet.hairlineWidth,borderBottomWidth:n.StyleSheet.hairlineWidth,maxHeight:150},contentContainerStyle:{paddingVertical:4},children:t.jsx(n.Text,{testID:"router_error_message",selectable:!0,allowFontScaling:!0,style:{color:'white'},children:o.message})}),t.jsx(b,{title:"Code",right:o.statusCode}),s&&t.jsx(b,{title:"ID",right:s}),c&&t.jsx(b,{title:"Date",right:c}),o.url&&t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:{fontSize:14,opacity:.5,color:'white'},children:o.url})]})}function b({title:o,right:l}){const s={fontSize:16,color:'white'};return t.jsxs(n.View,{style:{flexDirection:'row',justifyContent:'space-between'},children:[t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:s,children:o}),l&&t.jsx(n.Text,{selectable:!0,allowFontScaling:!0,style:[s,w.code],children:l})]})}const w=n.StyleSheet.create({container:{flex:1,backgroundColor:'black',padding:24,alignItems:'stretch',justifyContent:'center'},title:{color:'white',fontSize:n.Platform.select({web:32,default:24}),fontWeight:'bold'},buttonText:Object.assign({fontSize:18,fontWeight:'bold',color:'black'},n.Platform.select({web:{transitionDuration:'100ms'}})),buttonInner:Object.assign({},n.Platform.select({web:{transitionDuration:'100ms'}}),{paddingVertical:12,paddingHorizontal:24,borderColor:'white',borderWidth:2,marginLeft:8,justifyContent:'center',alignItems:'center'}),code:{fontFamily:n.Platform.select({default:'Courier',ios:'Courier New',android:'monospace'}),fontWeight:'500'},errorMessage:{color:'white',fontSize:16},subtitle:{color:'white',fontSize:14,marginBottom:12},link:{color:'rgba(255,255,255,0.4)',textDecorationStyle:'solid',textDecorationLine:'underline',fontSize:14,textAlign:'center'}})},688,[6,440,8,21,281,653,611,591]);
|
|
792
792
|
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},689,[690]);
|
|
793
|
-
__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var t=r(d[0]),s=e(r(d[1]));r(d[2]);var n=e(r(d[3])),l=e(r(d[4])),o=e(r(d[5])),u=e(r(d[6])),c=r(d[7]),m=r(d[8]),x=r(d[9]),f=r(d[10]),h=r(d[11]),p=r(d[12]),b=r(d[13]),j=r(d[14]),y=r(d[15]),v=r(d[16]),N=r(d[17]),w=r(d[18]),S=r(d[19]),T=r(d[20]),E=r(d[21]),I=r(d[22]),A=r(d[23]),P=r(d[24]),k=r(d[25]),L=r(d[26]);const O=2e3,B=900,M=36,z=96,F=24,V=32,C=8;function R(){const e=(0,c.useLocalSearchParams)(),R=(0,w.singleRouteParam)(e.sessionId),U=R??"",_=(0,m.useAtomValue)(A.selectedProjectAtom),q=(0,m.useAtomValue)((0,I.desktopStateFamily)(_?.path??"")),D=(0,m.useSetAtom)(A.selectedSessionIdAtom),$=(0,m.useSetAtom)(E.ingestEventAtom),H=(0,m.useAtomValue)((0,E.outputBufferFamily)(U)),K=(0,m.useSetAtom)((0,E.outputBufferFamily)(U)),W=(0,m.useAtomValue)((0,E.parsedOutputFamily)(U)),G=(0,m.useSetAtom)((0,E.parsedOutputFamily)(U)),J=(0,m.useAtomValue)((0,E.lastErrorFamily)(U)),Q=(0,m.useAtomValue)(P.relayConfiguredAtom),X=(0,m.useAtomValue)(P.relayStatusAtom),[Y,Z]=(0,m.useAtom)(k.activeSharedSessionAtom),{getToken:ee}=(0,j.useAuth)(),te=(0,c.useRouter)(),se=(0,c.usePathname)(),{width:ae}=(0,o.default)(),[ne,re]=(0,t.useState)(null),[le,ie]=(0,t.useState)(!1),[oe,de]=(0,t.useState)(""),[ue,ce]=(0,t.useState)(!1),[me,xe]=(0,t.useState)(null),[fe,he]=(0,t.useState)(null),[pe,be]=(0,t.useState)(null),[ge,je]=(0,t.useState)(""),[ye,ve]=(0,t.useState)(!1),[Ne,we]=(0,t.useState)(null),[Se,Te]=(0,t.useState)(null),[Ee,Ie]=(0,m.useAtom)(k.chatTerminalSplitAtom),Ae=(0,t.useRef)(null),Pe=(0,t.useRef)(null);(0,t.useEffect)(()=>{R&&D(R)},[R,D]),(0,t.useEffect)(()=>{let e=!1;return(async()=>{try{const t=await ee();e||re(t)}catch{e||re(null)}})(),()=>{e=!0}},[ee]);const ke=_?.serviceEndpoint??null,Le=Q&&"connected"===X;(0,t.useEffect)(()=>{if(!ke||!R||Le||Q)return;const e=(0,y.startHeartbeat)({serviceEndpoint:ke,sessionId:R,token:ne,onEvent:e=>{$(e)},onError:e=>{console.warn("heartbeat error:",e)}});return()=>e.stop()},[ke,R,ne,$,Le,Q]),(0,t.useEffect)(()=>{if(!ke||!R||!Le)return;let e=!1,t=null;return(async function s(){if(!e){try{const t=await(0,v.getAgentOutput)(ke,R,void 0,{token:ne});if(e)return;K(t.output??""),G(t.parsed??null)}catch(t){e||console.warn("relay transcript poll failed:",t)}e||(t=setTimeout(s,O))}})(),()=>{e=!0,t&&clearTimeout(t)}},[ke?.host,ke?.port,R,ne,Le,K,G]);const Oe=(0,t.useMemo)(()=>(0,N.messagesFromParsedAgentOutput)(W),[W]),Be=(0,t.useMemo)(()=>Oe,[Oe]);(0,t.useEffect)(()=>{Ae.current?.scrollToEnd({animated:!0})},[Be.length,H]),(0,t.useEffect)(()=>{Pe.current?.scrollToEnd({animated:!1})},[H,Ee]);const Me=R?q?.sessions.find(e=>e.id===R)??null:null,ze=Boolean(H),Fe=("undefined"!=typeof window?window.innerWidth:ae)>=B,Ve=Fe&&ze&&Ee,Ce=!Fe&&ze&&Ee,Re=Ve||Ce?"Show transcript view":"Show terminal view",Ue=Se?Math.max(F,Math.floor((Se-V)/C)):null,qe=Math.min(Fe?z:M,Ue??(Fe?z:M)),De=(0,t.useMemo)(()=>(0,S.formatTerminalOutputForDisplay)(H,{dividerWidth:qe}),[H,qe]);async function $e(){const e=ge.trim();if(ke&&R&&e&&!ye){je(""),ve(!0),we(null);try{await(0,v.sendAgentInput)(ke,R,e,{token:ne})}catch(t){je(e),we(t instanceof Error?t.message:String(t))}finally{ve(!1)}}}async function He(e){if(ne&&fe&&!pe){be(e),xe(null);try{const t=await(0,v.removeShareParticipant)(fe.ownerUserId,fe.id,e,{token:ne});he(t.share),xe("Participant removed.")}catch(e){xe(e instanceof Error?e.message:String(e))}finally{be(null)}}}(0,t.useEffect)(()=>{if(!le)return;let e=!1;return(async function(){if(!ne||!R)return;if(Y?.sessionId===R){const t=await(0,v.getShare)(Y.ownerUserId,Y.shareId,{token:ne});return void(e||he(t.share))}if(!_?.path)return;const t=await(0,v.listShares)({token:ne});e||he(t.shares.find(e=>e.projectRoot===_.path&&e.sessionId===R)??null)})().catch(t=>{e||xe(t instanceof Error?t.message:String(t))}),()=>{e=!0}},[Y,_,R,le,ne]);const Ke=(0,L.jsx)(u.default,{className:"flex-1 bg-card",onLayout:function(e){Te(e.nativeEvent.layout.width)},children:(0,L.jsxs)(l.default,{ref:Pe,className:"flex-1 px-4 py-3",horizontal:!1,children:[(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground mb-2",children:"Live output"}),(0,L.jsx)(f.Text,{className:"text-secondary-foreground text-xs font-mono",children:De})]})});return(0,L.jsx)(u.default,{className:"flex-1 bg-background",children:(0,L.jsxs)(u.default,{className:"flex-1",style:{flexDirection:"row"},children:[null,(0,L.jsxs)(u.default,{className:"flex-1",children:[(0,L.jsxs)(u.default,{className:"border-b border-border px-4 py-3 flex-row items-center justify-between",children:[(0,L.jsx)(n.default,{onPress:function(){te.canGoBack()?te.back():te.replace((0,T.parentViewHrefForPath)(se,_?.path))},accessibilityLabel:"Back",className:"mr-3 h-8 w-8 items-center justify-center rounded-md border border-border active:bg-accent",children:(0,L.jsx)(x.ChevronLeft,{size:16,color:"#a1a1aa"})}),(0,L.jsxs)(u.default,{className:"flex-1",children:[(0,L.jsx)(f.Text,{className:"text-base font-semibold text-foreground",numberOfLines:1,children:Me?.label||R||"Unknown session"}),(0,L.jsxs)(f.Text,{className:"text-xs text-muted-foreground",numberOfLines:1,children:[Me?.command??""," \xb7 ",Me?.status??"unknown"]})]}),(0,L.jsxs)(u.default,{className:"flex-row items-center",children:[(0,L.jsx)(n.default,{onPress:()=>ie(e=>!e),accessibilityLabel:"Invite collaborator",className:"h-8 w-8 items-center justify-center rounded-md border border-border mr-2",children:(0,L.jsx)(x.UserPlus,{size:15,color:"#a1a1aa"})}),(0,L.jsx)(n.default,{onPress:()=>Ie(e=>!e),disabled:!ze,accessibilityLabel:Re,className:"h-8 w-8 items-center justify-center rounded-md border border-border mr-2 disabled:opacity-40",children:Ve||Ce?(0,L.jsx)(x.MessageSquare,{size:15,color:"#a1a1aa"}):Fe?(0,L.jsx)(x.Columns2,{size:15,color:"#a1a1aa"}):(0,L.jsx)(x.SquareTerminal,{size:15,color:"#a1a1aa"})}),(0,L.jsx)(n.default,{onPress:()=>R?te.push({pathname:"/plans/[sessionId]",params:{sessionId:R}}):void 0,children:(0,L.jsx)(f.Text,{className:"text-sm text-primary",children:"Plan"})})]})]}),le?(0,L.jsxs)(u.default,{className:"border-b border-border bg-card px-4 py-3",children:[Y?(0,L.jsxs)(u.default,{className:"flex-row items-center justify-between gap-3",children:[(0,L.jsxs)(u.default,{className:"flex-1",children:[(0,L.jsx)(f.Text,{className:"text-sm font-medium text-foreground",children:"Shared session view"}),(0,L.jsxs)(f.Text,{className:"text-xs text-muted-foreground mt-1",numberOfLines:1,children:["Connected to ",Y.ownerUserId]})]}),(0,L.jsx)(h.Button,{size:"sm",variant:"outline",label:pe?"Leaving...":"Leave",disabled:!ne||Boolean(pe),onPress:async function(){if(ne&&Y&&!pe){be(Y.shareId),xe(null);try{await(0,v.leaveShare)(Y.ownerUserId,Y.shareId,{token:ne}),Z(null),he(null),te.replace("/")}catch(e){xe(e instanceof Error?e.message:String(e))}finally{be(null)}}}})]}):(0,L.jsxs)(u.default,{className:"flex-row items-center gap-2",children:[(0,L.jsx)(p.Input,{value:oe,onChangeText:de,placeholder:"Email address",autoCapitalize:"none",autoCorrect:!1,keyboardType:"email-address",className:"flex-1 h-9 text-sm"}),(0,L.jsx)(h.Button,{size:"sm",label:ue?"Sending...":"Invite",disabled:ue||!Q||!ne||!_?.path||!R||!oe.trim(),onPress:async function(){const e=oe.trim();if(_?.path&&R&&e&&!ue)if(ne){ce(!0),xe(null);try{const t=await(0,v.createShareInvite)(_.path,R,e,ke,{token:ne});he(t.share),de(""),xe(t.emailDelivered?`Invite sent to ${t.invite.email}.`:`Invite created for ${t.invite.email}; email delivery is not configured.`)}catch(e){xe(e instanceof Error?e.message:String(e))}finally{ce(!1)}}else xe("Sign in is required to send invites.")}})]}),fe?(0,L.jsxs)(u.default,{className:"mt-3 border-t border-border pt-3",children:[(0,L.jsx)(f.Text,{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"Participants"}),fe.participants.map(e=>(0,L.jsxs)(u.default,{className:"mt-2 flex-row items-center justify-between gap-3",children:[(0,L.jsxs)(u.default,{className:"flex-1",children:[(0,L.jsx)(f.Text,{className:"text-sm text-foreground",numberOfLines:1,children:e.displayName}),(0,L.jsxs)(f.Text,{className:"text-xs text-muted-foreground",numberOfLines:1,children:[e.role," \xb7 ",e.status,e.email?` \xb7 ${e.email}`:""]})]}),Y||"owner"===e.role||"active"!==e.status?null:(0,L.jsx)(h.Button,{size:"sm",variant:"outline",label:pe===e.userId?"Removing...":"Remove",disabled:!ne||Boolean(pe),onPress:()=>He(e.userId)})]},e.userId)),!Y&&fe.invites.some(e=>"pending"===e.status)?(0,L.jsxs)(u.default,{className:"mt-3",children:[(0,L.jsx)(f.Text,{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"Pending invites"}),fe.invites.filter(e=>"pending"===e.status).map(e=>(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground mt-2",numberOfLines:1,children:e.email},e.id))]}):null]}):null,Q?ne?me?(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground mt-2",children:me}):null:(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground mt-2",children:"Sign in is required to send invites."}):(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground mt-2",children:"Remote mode is required for shared session invites."})]}):null,ke?(0,L.jsxs)(s.default,{className:"flex-1",behavior:void 0,style:{flex:1},children:[(0,L.jsxs)(u.default,{className:"flex-1",style:Ve?{flex:1,flexDirection:"row"}:{flex:1},children:[Ve?(0,L.jsx)(u.default,{className:"flex-1 border-r border-border",children:Ke}):null,Ce?(0,L.jsx)(u.default,{className:"flex-1",children:Ke}):(0,L.jsx)(u.default,{className:"flex-1",children:(0,L.jsxs)(l.default,{ref:Ae,className:"flex-1 px-4 py-2",children:[Be.map((e,t)=>(0,L.jsx)(b.MessageBlock,{message:e,serviceEndpoint:ke},e.id??e.clientMessageId??`idx-${t}`)),H&&0===Oe.length&&!Ve?(0,L.jsxs)(u.default,{className:"self-start max-w-[90%] rounded-lg bg-secondary px-3 py-2 my-1",children:[(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground mb-1",children:"Live output"}),(0,L.jsx)(f.Text,{className:"text-secondary-foreground text-xs font-mono",children:H})]}):null,J?(0,L.jsx)(f.Text,{className:"text-xs text-destructive my-2",children:J}):null,Ne?(0,L.jsx)(f.Text,{className:"text-xs text-destructive my-2",children:Ne}):null]})})]}),(0,L.jsx)(u.default,{className:"border-t border-border bg-background px-3 py-3",style:{flexShrink:0},children:(0,L.jsxs)(u.default,{className:"flex-row items-end gap-2",children:[(0,L.jsx)(p.Input,{value:ge,onChangeText:je,onKeyPress:function(e){"Enter"!==e.nativeEvent.key||e.nativeEvent.shiftKey||(e.preventDefault?.(),$e())},placeholder:"Message the agent...",multiline:!0,editable:!ye,className:"min-h-11 max-h-32 flex-1 py-2 text-sm",textAlignVertical:"top"}),(0,L.jsx)(h.Button,{label:ye?"Sending...":"Send",disabled:ye||!ge.trim(),onPress:$e,className:"h-11 px-4"})]})})]}):(0,L.jsx)(u.default,{className:"p-4",children:(0,L.jsx)(f.Text,{className:"text-sm text-muted-foreground",children:"Project service not running. Start the project host to view this session."})})]})]})})}},690,[8,241,111,249,140,274,116,291,691,695,2388,2392,2394,2395,2400,2536,2538,2539,2540,2541,2542,2543,2547,2549,2558,2559,6]);
|
|
793
|
+
__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=r(d[0]),s=e(r(d[1]));r(d[2]);var n=e(r(d[3])),l=e(r(d[4])),o=e(r(d[5])),u=e(r(d[6])),c=r(d[7]),m=r(d[8]),f=r(d[9]),x=r(d[10]),h=r(d[11]),p=r(d[12]),b=r(d[13]),j=r(d[14]),y=r(d[15]),v=r(d[16]),N=r(d[17]),w=r(d[18]),S=r(d[19]),T=r(d[20]),I=r(d[21]),A=r(d[22]),k=r(d[23]),E=r(d[24]),P=r(d[25]),B=r(d[26]),L=r(d[27]),z=r(d[28]),O=r(d[29]);const M=2e3,R=900,C=36,F=96,V=24,U=32,q=8,D=4,$=700;function _(){const e=(0,c.useLocalSearchParams)(),_=(0,T.singleRouteParam)(e.sessionId),H=_??"",K=(0,m.useAtomValue)(B.selectedProjectAtom),G=(0,m.useAtomValue)((0,P.desktopStateFamily)(K?.path??"")),W=(0,m.useSetAtom)(B.selectedSessionIdAtom),X=(0,m.useSetAtom)(E.ingestEventAtom),J=(0,m.useAtomValue)((0,E.outputBufferFamily)(H)),Q=(0,m.useSetAtom)((0,E.outputBufferFamily)(H)),Y=(0,m.useAtomValue)((0,E.parsedOutputFamily)(H)),Z=(0,m.useSetAtom)((0,E.parsedOutputFamily)(H)),ee=(0,m.useAtomValue)((0,E.lastErrorFamily)(H)),te=(0,m.useAtomValue)(L.relayConfiguredAtom),se=(0,m.useAtomValue)(L.relayStatusAtom),[ae,re]=(0,m.useAtom)(z.activeSharedSessionAtom),{getToken:ne}=(0,j.useAuth)(),le=(0,c.useRouter)(),oe=(0,c.usePathname)(),{width:ie}=(0,o.default)(),[de,ue]=(0,t.useState)(null),[ce,me]=(0,t.useState)(!1),[fe,xe]=(0,t.useState)(""),[he,pe]=(0,t.useState)(!1),[be,ge]=(0,t.useState)(null),[je,ye]=(0,t.useState)(null),[ve,Ne]=(0,t.useState)(null),[we,Se]=(0,t.useState)(""),[Te,Ie]=(0,t.useState)([]),[Ae,ke]=(0,t.useState)(!1),[Ee,Pe]=(0,t.useState)(null),[Be,Le]=(0,t.useState)(null),[ze,Oe]=(0,m.useAtom)(z.chatTerminalSplitAtom),Me=(0,t.useRef)(!1),Re=(0,t.useRef)(null),Ce=(0,t.useRef)(null),Fe=(0,t.useRef)(null),Ve=(0,t.useRef)(!1),Ue=(0,t.useRef)(null);(0,A.useKeyboardInset)();(0,t.useEffect)(()=>{_&&W(_)},[_,W]),(0,t.useEffect)(()=>{let e=!1;return(async()=>{try{const t=await ne();e||ue(t)}catch{e||ue(null)}})(),()=>{e=!0}},[ne]);const qe=K?.serviceEndpoint??null,De=te&&"connected"===se;(0,t.useEffect)(()=>{if(!qe||!_||De||te)return;const e=(0,y.startHeartbeat)({serviceEndpoint:qe,sessionId:_,token:de,onEvent:e=>{X(e)},onError:e=>{console.warn("heartbeat error:",e)}});return()=>e.stop()},[qe,_,de,X,De,te]),(0,t.useEffect)(()=>{if(!qe||!_||!De)return;let e=!1,t=null;return(async function s(){if(!e){try{const t=await(0,v.getAgentOutput)(qe,_,void 0,{token:de});if(e)return;Q(t.output??""),Z(t.parsed??null)}catch(t){e||console.warn("relay transcript poll failed:",t)}e||(t=setTimeout(s,M))}})(),()=>{e=!0,t&&clearTimeout(t)}},[qe?.host,qe?.port,_,de,De,Q,Z]);const $e=(0,t.useMemo)(()=>(0,w.messagesFromParsedAgentOutput)(Y),[Y]),He=(0,t.useMemo)(()=>$e,[$e]),Ke=(0,t.useCallback)(e=>{Ue.current&&clearTimeout(Ue.current),Ue.current=setTimeout(()=>{Fe.current===e&&(Ve.current=!0),Ue.current=null},$)},[]);(0,t.useEffect)(()=>()=>{Ue.current&&clearTimeout(Ue.current)},[]),(0,t.useEffect)(()=>{Fe.current=H,Ve.current=!1,requestAnimationFrame(()=>Re.current?.scrollToEnd({animated:!1}))},[H]),(0,t.useEffect)(()=>{const e=Fe.current===H&&Ve.current;Re.current?.scrollToEnd({animated:e}),Fe.current=H,e||(Ve.current=!1,Ke(H))},[Ke,H,He.length,J]),(0,t.useEffect)(()=>{},[0]),(0,t.useEffect)(()=>{Ce.current?.scrollToEnd({animated:!1})},[J,ze]);const Ge=_?G?.sessions.find(e=>e.id===_)??null:null,We=Boolean(J),Xe=("undefined"!=typeof window?window.innerWidth:ie)>=R,Je=Xe&&We&&ze,Qe=!Xe&&We&&ze,Ye=Je||Qe?"Show transcript view":"Show terminal view",Ze=Be?Math.max(V,Math.floor((Be-U)/q)):null,et=Math.min(Xe?F:C,Ze??(Xe?F:C)),tt=(0,t.useMemo)(()=>(0,I.formatTerminalOutputForDisplay)(J,{dividerWidth:et}),[J,et]),st=(0,S.getComposerSendText)({draft:we,hasServiceEndpoint:Boolean(qe),hasSessionId:Boolean(_),sendBusy:Ae}),at=Te.length>0,rt=Boolean(qe&&_&&!Ae&&(st||at));async function nt(){const e=st??"",t=[...Te];if(qe&&_&&!Me.current&&(e||0!==t.length)){Me.current=!0,Se(""),Ie([]),ke(!0),Pe(null);try{for(let e=0;e<t.length;e+=1){const s=t[e];if(s.uploadedAttachmentId)continue;const n=await(0,v.uploadImageAttachment)(qe,{filename:s.filename,mimeType:s.mimeType,dataBase64:s.dataBase64},{token:de});t[e]=Object.assign({},s,{uploadedAttachmentId:n.attachment.id})}await(0,v.sendAgentInput)(qe,_,e,{token:de,attachmentIds:t.map(e=>e.uploadedAttachmentId).filter(e=>Boolean(e))})}catch(s){Se(e),Ie(t),Pe(s instanceof Error?s.message:String(s))}finally{Me.current=!1,ke(!1)}}}async function lt(e){if(de&&je&&!ve){Ne(e),ge(null);try{const t=await(0,v.removeShareParticipant)(je.ownerUserId,je.id,e,{token:de});ye(t.share),ge("Participant removed.")}catch(e){ge(e instanceof Error?e.message:String(e))}finally{Ne(null)}}}(0,t.useEffect)(()=>{if(!ce)return;let e=!1;return(async function(){if(!de||!_)return;if(ae?.sessionId===_){const t=await(0,v.getShare)(ae.ownerUserId,ae.shareId,{token:de});return void(e||ye(t.share))}if(!K?.path)return;const t=await(0,v.listShares)({token:de});e||ye(t.shares.find(e=>e.projectRoot===K.path&&e.sessionId===_)??null)})().catch(t=>{e||ge(t instanceof Error?t.message:String(t))}),()=>{e=!0}},[ae,K,_,ce,de]);const ot=(0,O.jsx)(u.default,{className:"flex-1 bg-card",onLayout:function(e){Le(e.nativeEvent.layout.width)},children:(0,O.jsxs)(l.default,{ref:Ce,className:"flex-1 px-4 py-3",horizontal:!1,children:[(0,O.jsx)(x.Text,{className:"text-xs text-muted-foreground mb-2",children:"Live output"}),(0,O.jsx)(x.Text,{className:"text-secondary-foreground text-xs font-mono",children:tt})]})});return(0,O.jsx)(u.default,{className:"flex-1 bg-background",style:{flex:1,paddingBottom:0},children:(0,O.jsxs)(u.default,{className:"flex-1",style:{flexDirection:"row"},children:[null,(0,O.jsxs)(u.default,{className:"flex-1",children:[(0,O.jsxs)(u.default,{className:"border-b border-border px-4 py-3 flex-row items-center justify-between",style:{flexShrink:0},children:[(0,O.jsx)(n.default,{onPress:function(){le.canGoBack()?le.back():le.replace((0,k.parentViewHrefForPath)(oe,K?.path))},accessibilityLabel:"Back",className:"mr-3 h-8 w-8 items-center justify-center rounded-md border border-border active:bg-accent",children:(0,O.jsx)(f.ChevronLeft,{size:16,color:"#a1a1aa"})}),(0,O.jsxs)(u.default,{className:"flex-1",children:[(0,O.jsx)(x.Text,{className:"text-base font-semibold text-foreground",numberOfLines:1,children:Ge?.label||_||"Unknown session"}),(0,O.jsxs)(x.Text,{className:"text-xs text-muted-foreground",numberOfLines:1,children:[Ge?.command??""," \xb7 ",Ge?.status??"unknown"]})]}),(0,O.jsxs)(u.default,{className:"flex-row items-center",children:[(0,O.jsx)(n.default,{onPress:()=>me(e=>!e),accessibilityLabel:"Invite collaborator",className:"h-8 w-8 items-center justify-center rounded-md border border-border mr-2",children:(0,O.jsx)(f.UserPlus,{size:15,color:"#a1a1aa"})}),(0,O.jsx)(n.default,{onPress:()=>Oe(e=>!e),disabled:!We,accessibilityLabel:Ye,className:"h-8 w-8 items-center justify-center rounded-md border border-border mr-2 disabled:opacity-40",children:Je||Qe?(0,O.jsx)(f.MessageSquare,{size:15,color:"#a1a1aa"}):Xe?(0,O.jsx)(f.Columns2,{size:15,color:"#a1a1aa"}):(0,O.jsx)(f.SquareTerminal,{size:15,color:"#a1a1aa"})}),(0,O.jsx)(n.default,{onPress:()=>_?le.push({pathname:"/plans/[sessionId]",params:{sessionId:_}}):void 0,children:(0,O.jsx)(x.Text,{className:"text-sm text-primary",children:"Plan"})})]})]}),ce?(0,O.jsxs)(u.default,{className:"border-b border-border bg-card px-4 py-3",style:{flexShrink:0},children:[ae?(0,O.jsxs)(u.default,{className:"flex-row items-center justify-between gap-3",children:[(0,O.jsxs)(u.default,{className:"flex-1",children:[(0,O.jsx)(x.Text,{className:"text-sm font-medium text-foreground",children:"Shared session view"}),(0,O.jsxs)(x.Text,{className:"text-xs text-muted-foreground mt-1",numberOfLines:1,children:["Connected to ",ae.ownerUserId]})]}),(0,O.jsx)(h.Button,{size:"sm",variant:"outline",label:ve?"Leaving...":"Leave",disabled:!de||Boolean(ve),onPress:async function(){if(de&&ae&&!ve){Ne(ae.shareId),ge(null);try{await(0,v.leaveShare)(ae.ownerUserId,ae.shareId,{token:de}),re(null),ye(null),le.replace("/")}catch(e){ge(e instanceof Error?e.message:String(e))}finally{Ne(null)}}}})]}):(0,O.jsxs)(u.default,{className:"flex-row items-center gap-2",children:[(0,O.jsx)(p.Input,{value:fe,onChangeText:xe,placeholder:"Email address",autoCapitalize:"none",autoCorrect:!1,keyboardType:"email-address",className:"flex-1 h-9 text-sm"}),(0,O.jsx)(h.Button,{size:"sm",label:he?"Sending...":"Invite",disabled:he||!te||!de||!K?.path||!_||!fe.trim(),onPress:async function(){const e=fe.trim();if(K?.path&&_&&e&&!he)if(de){pe(!0),ge(null);try{const t=await(0,v.createShareInvite)(K.path,_,e,qe,{token:de});ye(t.share),xe(""),ge(t.emailDelivered?`Invite sent to ${t.invite.email}.`:`Invite created for ${t.invite.email}; email delivery is not configured.`)}catch(e){ge(e instanceof Error?e.message:String(e))}finally{pe(!1)}}else ge("Sign in is required to send invites.")}})]}),je?(0,O.jsxs)(u.default,{className:"mt-3 border-t border-border pt-3",children:[(0,O.jsx)(x.Text,{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"Participants"}),je.participants.map(e=>(0,O.jsxs)(u.default,{className:"mt-2 flex-row items-center justify-between gap-3",children:[(0,O.jsxs)(u.default,{className:"flex-1",children:[(0,O.jsx)(x.Text,{className:"text-sm text-foreground",numberOfLines:1,children:e.displayName}),(0,O.jsxs)(x.Text,{className:"text-xs text-muted-foreground",numberOfLines:1,children:[e.role," \xb7 ",e.status,e.email?` \xb7 ${e.email}`:""]})]}),ae||"owner"===e.role||"active"!==e.status?null:(0,O.jsx)(h.Button,{size:"sm",variant:"outline",label:ve===e.userId?"Removing...":"Remove",disabled:!de||Boolean(ve),onPress:()=>lt(e.userId)})]},e.userId)),!ae&&je.invites.some(e=>"pending"===e.status)?(0,O.jsxs)(u.default,{className:"mt-3",children:[(0,O.jsx)(x.Text,{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"Pending invites"}),je.invites.filter(e=>"pending"===e.status).map(e=>(0,O.jsx)(x.Text,{className:"text-xs text-muted-foreground mt-2",numberOfLines:1,children:e.email},e.id))]}):null]}):null,te?de?be?(0,O.jsx)(x.Text,{className:"text-xs text-muted-foreground mt-2",children:be}):null:(0,O.jsx)(x.Text,{className:"text-xs text-muted-foreground mt-2",children:"Sign in is required to send invites."}):(0,O.jsx)(x.Text,{className:"text-xs text-muted-foreground mt-2",children:"Remote mode is required for shared session invites."})]}):null,qe?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(u.default,{className:"flex-1",style:Je?{flex:1,flexDirection:"row"}:{flex:1},children:[Je?(0,O.jsx)(u.default,{className:"flex-1 border-r border-border",children:ot}):null,Qe?(0,O.jsx)(u.default,{className:"flex-1",children:ot}):(0,O.jsx)(u.default,{className:"flex-1",children:(0,O.jsxs)(l.default,{ref:Re,className:"flex-1 px-4 py-2",contentContainerStyle:{flexGrow:1},keyboardDismissMode:"none",keyboardShouldPersistTaps:"handled",children:[He.map((e,t)=>(0,O.jsx)(b.MessageBlock,{message:e,serviceEndpoint:qe},e.id??e.clientMessageId??`idx-${t}`)),J&&0===$e.length&&!Je?(0,O.jsxs)(u.default,{className:"self-start max-w-[90%] rounded-lg bg-secondary px-3 py-2 my-1",children:[(0,O.jsx)(x.Text,{className:"text-xs text-muted-foreground mb-1",children:"Live output"}),(0,O.jsx)(x.Text,{className:"text-secondary-foreground text-xs font-mono",children:J})]}):null,ee?(0,O.jsx)(x.Text,{className:"text-xs text-destructive my-2",children:ee}):null,Ee?(0,O.jsx)(x.Text,{className:"text-xs text-destructive my-2",children:Ee}):null]})})]}),(0,O.jsxs)(u.default,{className:"border-t border-border bg-background px-3 py-3",style:{flexShrink:0},children:[Te.length>0?(0,O.jsx)(l.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,className:"mb-2",children:(0,O.jsx)(u.default,{className:"flex-row gap-2",children:Te.map(e=>(0,O.jsxs)(u.default,{className:"w-24 rounded-md border border-border bg-card p-1",children:[(0,O.jsx)(s.default,{source:{uri:e.previewUri},className:"h-14 w-full rounded",resizeMode:"cover"}),(0,O.jsx)(x.Text,{className:"mt-1 text-[10px] text-muted-foreground",numberOfLines:1,children:e.filename}),(0,O.jsx)(n.default,{onPress:()=>{return t=e.id,void Ie(e=>e.filter(e=>e.id!==t));var t},accessibilityLabel:`Remove ${e.filename}`,className:"absolute right-1 top-1 h-5 w-5 items-center justify-center rounded-full bg-background/90",children:(0,O.jsx)(f.X,{size:12,color:"#a1a1aa"})})]},e.id))})}):null,(0,O.jsxs)(u.default,{className:"flex-row items-end gap-2",children:[(0,O.jsx)(p.Input,{value:we,onChangeText:Se,onKeyPress:function(e){(0,S.shouldSubmitComposerKey)(e.nativeEvent)&&(e.preventDefault?.(),nt())},placeholder:"Message the agent...",multiline:!0,editable:!Ae,className:"min-h-11 max-h-32 flex-1 py-2 text-sm",textAlignVertical:"top"}),(0,O.jsx)(n.default,{onPress:async function(){if(!Ae&&!Me.current)if(Te.length>=D)Pe(`Attach up to ${D} images.`);else{Pe(null);try{const e=await(0,N.pickImageAttachment)();if(!e)return;Ie(t=>[...t,e])}catch(e){Pe(e instanceof Error?e.message:String(e))}}},disabled:Ae,accessibilityLabel:"Attach image",className:"h-11 w-11 items-center justify-center rounded-md border border-border disabled:opacity-40",children:(0,O.jsx)(f.Paperclip,{size:17,color:"#a1a1aa"})}),(0,O.jsx)(h.Button,{label:Ae?"Sending...":"Send",disabled:!rt,onPress:nt,className:"h-11 px-4"})]})]})]}):(0,O.jsx)(u.default,{className:"flex-1 p-4",children:(0,O.jsx)(x.Text,{className:"text-sm text-muted-foreground",children:"Project service not running. Start the project host to view this session."})})]})]})})}},690,[8,185,111,249,140,274,116,291,691,695,2388,2392,2394,2395,2400,2536,2538,2539,2540,2541,2542,2543,2544,2545,2546,2550,2552,2561,2562,6]);
|
|
794
794
|
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},691,[692,694]);
|
|
795
795
|
__d(function(g,r,i,a,m,e,d){'use strict';var t,n,o=r(d[0]),u=0;function f(t){return t(this)}function c(t,n,o){return n(this,'function'==typeof o?o(t(this)):o)}function s(){return t?t():o.INTERNAL_buildStoreRev3()}e.INTERNAL_overrideCreateStore=function(n){t=n(t)},e.atom=function(t,n){var o="atom"+ ++u,s={toString:function(){return o}};return'function'==typeof t?s.read=t:(s.init=t,s.read=f,s.write=c),n&&(s.write=n),s},e.createStore=s,e.getDefaultStore=function(){return n||(n=s()),n}},692,[693]);
|
|
796
796
|
__d(function(g,_r,_i,_a5,m,_e,_d){'use strict';function n(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=Array(e);r<e;r++)t[r]=n[r];return t}function e(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=r(n))||e){t&&(n=t);var a=0;return function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,r){if(e){if("string"==typeof e)return n(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,r):void 0}}function t(n){return'init'in n}function a(n){return'function'==typeof n.write}function i(n){return!!n.onMount}function o(n){return'v'in n||'e'in n}function u(n){if('e'in n)throw n.e;return n.v}function f(n){return'function'==typeof(null==n?void 0:n.then)}function l(n,e,r){if(!r.p.has(n)){r.p.add(n);var t=function(){return r.p.delete(n)};e.then(t,t)}}function v(n,r,t){var a=t.get(n),i=null==a?void 0:a.t,o=r.p;if(null==i||!i.size)return o;if(!o.size)return i;for(var u,f=new Set(i),l=e(o);!(u=l()).done;){var v=u.value;f.add(v)}return f}var d=function(){var n={},e=new WeakMap,r=function(r){var t,a;null==(t=e.get(n))||t.forEach(function(n){return n(r)}),null==(a=e.get(r))||a.forEach(function(n){return n()})};return r.add=function(r,t){var a=r||n,i=e.get(a);return i||(i=new Set,e.set(a,i)),i.add(t),function(){i.delete(t),i.size||e.delete(a)}},r};function c(n){return!!n.INTERNAL_onInit}var s=function(n,e,r){for(var t=arguments.length,a=new Array(t>3?t-3:0),i=3;i<t;i++)a[i-3]=arguments[i];return r.read.apply(r,a)},h=function(n,e,r){for(var t=arguments.length,a=new Array(t>3?t-3:0),i=3;i<t;i++)a[i-3]=arguments[i];return r.write.apply(r,a)},y=function(n,e,r){return r.INTERNAL_onInit(e)},p=function(n,e,r,t){return null==r.onMount?void 0:r.onMount(t)},w=function(n,e,r){var t=n[0],a=t.get(r);if(!a){var i=n[6],o=n[9];a={d:new Map,p:new Set,n:0},t.set(r,a),null==i.i||i.i(r),c(r)&&o(n,e,r)}return a},A=function(n,r){var t=n[1],a=n[3],i=n[4],o=n[5],u=n[6],f=n[13];if(u.f||a.size||i.size||o.size){var l=[],v=function(n){try{n()}catch(n){l.push(n)}};do{u.f&&v(u.f);for(var d,c=new Set,s=e(a);!(d=s()).done;){var h,y=d.value,p=null==(h=t.get(y))?void 0:h.l;if(p)for(var w,A=e(p);!(w=A()).done;){var S=w.value;c.add(S)}}a.clear();for(var N,k=e(o);!(N=k()).done;){var b=N.value;c.add(b)}o.clear();for(var E,z=e(i);!(E=z()).done;){var I=E.value;c.add(I)}i.clear();for(var R,T=e(c);!(R=T()).done;){v(R.value)}a.size&&f(n,r)}while(a.size||o.size||i.size);if(l.length)throw new AggregateError(l)}},S=function(n,r){var t=n[1],a=n[2],i=n[3],o=n[11],u=n[14],f=n[17];if(i.size){for(var l,d=[],c=[],s=new WeakSet,h=new WeakSet,y=[],p=[],w=e(i);!(l=w()).done;){var A=l.value;y.push(A),p.push(o(n,r,A))}for(;y.length;){var S=y.length-1,N=y[S],k=p[S];if(h.has(N))y.pop(),p.pop();else if(s.has(N))a.get(N)===k.n&&(d.push(N),c.push(k)),h.add(N),y.pop(),p.pop();else{s.add(N);for(var b,E=e(v(N,k,t));!(b=E()).done;){var z=b.value;s.has(z)||(y.push(z),p.push(o(n,r,z)))}}}for(var I=d.length-1;I>=0;--I){for(var R,T=d[I],_=c[I],L=!1,M=e(_.d.keys());!(R=M()).done;){var W=R.value;if(W!==T&&i.has(W)){L=!0;break}}L&&(a.set(T,_.n),u(n,r,T),f(n,r,T)),a.delete(T)}}},N=(new WeakSet,function(n,r,i){var v=n[1],d=n[2],c=n[3],s=n[6],h=n[7],y=n[11],p=n[12],w=n[13],A=n[14],S=n[16],N=n[17],k=n[20],b=n[26],E=n[28],z=y(n,r,i),I=E[0];if(o(z)){if(v.has(i)&&d.get(i)!==z.n||z.m===I)return z.m=I,z;for(var R,T=!1,_=e(z.d);!(R=_()).done;){var L=R.value,M=L[0],W=L[1];if(A(n,r,M).n!==W){T=!0;break}}if(!T)return z.m=I,z}var j,O,P=!0,B=new Set(z.d.keys()),C=function(){for(var n,r=e(B);!(n=r()).done;){var t=n.value;z.d.delete(t)}},D=function(){if(v.has(i)){var e=!c.size;N(n,r,i),e&&(w(n,r),p(n,r))}},V={get signal(){return j||(j=new AbortController),j.signal},get setSelf(){return!O&&a(i)&&(O=function(){if(!P)try{for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return S(n,r,i,t)}finally{w(n,r),p(n,r)}}),O}},x=z.n,H=d.get(i)===x;try{var U=h(n,r,i,function(e){if(e===i){var a=y(n,r,e);if(!o(a)){if(!t(e))throw new Error('no atom init');k(n,r,e,e.init)}return u(a)}var d=A(n,r,e);try{return u(d)}finally{var c;B.delete(e),z.d.set(e,d.n),f(z.v)&&l(i,z.v,d),v.has(i)&&(null==(c=v.get(e))||c.t.add(i)),P||D()}},V);if(k(n,r,i,U),f(U)){b(n,r,U,function(){var n;return null==(n=j)?void 0:n.abort()});var $=function(){C(),D()};U.then($,$)}else C();return null==s.r||s.r(i),z.m=I,z}catch(n){return delete z.v,z.e=n,++z.n,z.m=I,z}finally{P=!1,z.n!==x&&H&&(d.set(i,z.n),c.add(i),null==s.c||s.c(i))}}),k=function(n,r,t){for(var a=n[1],i=n[2],o=n[11],u=[t];u.length;)for(var f,l=u.pop(),d=e(v(l,o(n,r,l),a));!(f=d()).done;){var c=f.value,s=o(n,r,c);i.get(c)!==s.n&&(i.set(c,s.n),u.push(c))}},b=function(n,e,r,a){var i=n[3],o=n[6],f=n[8],l=n[11],v=n[12],d=n[13],c=n[14],s=n[15],h=n[16],y=n[17],p=n[20],w=n[28],A=!0;try{return f.apply(void 0,[n,e,r,function(r){return u(c(n,e,r))},function(a){var u=l(n,e,a);try{for(var f=arguments.length,c=new Array(f>1?f-1:0),S=1;S<f;S++)c[S-1]=arguments[S];if(a===r){if(!t(a))throw new Error('atom not writable');var N=u.n,k=c[0];return p(n,e,a,k),y(n,e,a),void(N!==u.n&&(++w[0],i.add(a),s(n,e,a),null==o.c||o.c(a)))}return h(n,e,a,c)}finally{A||(d(n,e),v(n,e))}}].concat(a))}finally{A=!1}},E=function(n,r,t){var a=n[1],i=n[3],o=n[6],u=n[11],f=n[15],l=n[18],v=n[19],d=u(n,r,t),c=a.get(t);if(c&&d.d.size>0){for(var s,h=e(d.d);!(s=h()).done;){var y=s.value,p=y[0],w=y[1];if(!c.d.has(p)){var A=u(n,r,p);l(n,r,p).t.add(t),c.d.add(p),w!==A.n&&(i.add(p),f(n,r,p),null==o.c||o.c(p))}}for(var S,N=e(c.d);!(S=N()).done;){var k=S.value;if(!d.d.has(k)){c.d.delete(k);var b=v(n,r,k);null==b||b.t.delete(t)}}}},z=function(n,r,t){var o=n[1],u=n[4],f=n[6],l=n[10],v=n[11],d=n[12],c=n[13],s=n[14],h=n[16],y=n[18],p=v(n,r,t),w=o.get(t);if(!w){s(n,r,t);for(var A,S=e(p.d.keys());!(A=S()).done;){var N=A.value;y(n,r,N).t.add(t)}if(w={l:new Set,d:new Set(p.d.keys()),t:new Set},o.set(t,w),a(t)&&i(t)){u.add(function(){var e=!0;try{var a=l(n,r,t,function(){try{for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return h(n,r,t,i)}finally{e||(c(n,r),d(n,r))}});a&&(w.u=function(){e=!0;try{a()}finally{e=!1}})}finally{e=!1}})}null==f.m||f.m(t)}return w},I=function(n,r,t){var a=n[1],i=n[5],o=n[6],u=n[11],f=n[19],l=u(n,r,t),v=a.get(t);if(!v||v.l.size)return v;for(var d,c=!1,s=e(v.t);!(d=s()).done;){var h,y=d.value;if(null!=(h=a.get(y))&&h.d.has(t)){c=!0;break}}if(c)return v;v.u&&i.add(v.u),v=void 0,a.delete(t);for(var p,w=e(l.d.keys());!(p=w()).done;){var A=f(n,r,p.value);null==A||A.t.delete(t)}null==o.u||o.u(t)},R=function(n,r,t,a){var i=n[11],o=n[27],u=i(n,r,t),v='v'in u,d=u.v;if(f(a))for(var c,s=e(u.d.keys());!(c=s()).done;){l(t,a,i(n,r,c.value))}u.v=a,delete u.e,v&&Object.is(d,u.v)||(++u.n,f(d)&&o(n,r,d))},T=function(n,e,r){return u((0,n[14])(n,e,r))},_=function(n,e,r){var t=n[3],a=n[12],i=n[13],o=n[16],u=t.size;try{for(var f=arguments.length,l=new Array(f>3?f-3:0),v=3;v<f;v++)l[v-3]=arguments[v];return o(n,e,r,l)}finally{t.size!==u&&(i(n,e),a(n,e))}},L=function(n,e,r,t){var a=n[12],i=n[18],o=n[19],u=i(n,e,r).l;return u.add(t),a(n,e),function(){u.delete(t),o(n,e,r),a(n,e)}},M=function(n,e,r,t){var a=n[25],i=a.get(r);if(!i){i=new Set,a.set(r,i);var o=function(){return a.delete(r)};r.then(o,o)}i.add(t)},W=function(n,e,r){var t=n[25].get(r);null==t||t.forEach(function(n){return n()})},j=new WeakMap;_e.INTERNAL_addPendingPromiseToDependency=l,_e.INTERNAL_buildStoreRev3=function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];var t={get:function(n){return i(a,t,n)},set:function(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return o.apply(void 0,[a,t,n].concat(r))},sub:function(n,e){return u(a,t,n,e)}},a=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},s,h,y,p,w,A,S,N,k,b,E,z,I,R,T,_,L,void 0,new WeakMap,M,W,[0]].map(function(n,r){return e[r]||n});j.set(t,Object.freeze(a));var i=a[21],o=a[22],u=a[23];return t},_e.INTERNAL_getBuildingBlocksRev3=function(n){var e=j.get(n),r=e[24];return r?r(e,n):e},_e.INTERNAL_getMountedOrPendingDependents=v,_e.INTERNAL_hasInitialValue=t,_e.INTERNAL_initializeStoreHooksRev3=function(n){var e,r,t,a,i,o,u,f;return(e=n).i||(e.i=d()),(r=n).r||(r.r=d()),(t=n).c||(t.c=d()),(a=n).m||(a.m=d()),(i=n).u||(i.u=d()),(o=n).f||(o.f=(u=new Set,(f=function(){return u.forEach(function(n){return n()})}).add=function(n){return u.add(n),function(){return u.delete(n)}},f)),n},_e.INTERNAL_isActuallyWritableAtom=a,_e.INTERNAL_isAtomStateInitialized=o,_e.INTERNAL_isPromiseLike=f,_e.INTERNAL_returnAtomValue=u},693,[]);
|
|
@@ -14190,8 +14190,8 @@ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{
|
|
|
14190
14190
|
__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["className","variant","size","label","children"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Button",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"buttonVariants",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"buttonTextVariants",{enumerable:!0,get:function(){return b}});var n=t(r(_d[0])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),s=t(r(_d[2])),o=r(_d[3]),d=r(_d[4]),c=r(_d[5]),l=r(_d[6]);const f=(0,o.cva)("flex-row items-center justify-center rounded-lg",{variants:{variant:{default:"bg-primary",secondary:"bg-secondary",outline:"border border-border bg-transparent",ghost:"bg-transparent",destructive:"bg-destructive"},size:{default:"h-11 px-4 py-2",sm:"h-9 px-3",lg:"h-12 px-6",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),b=(0,o.cva)("font-medium",{variants:{variant:{default:"text-primary-foreground",secondary:"text-secondary-foreground",outline:"text-foreground",ghost:"text-foreground",destructive:"text-destructive-foreground"},size:{default:"text-base",sm:"text-sm",lg:"text-lg",icon:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),v=u.forwardRef((t,u)=>{let{className:o,variant:v,size:p,label:x,children:y}=t,h=(0,n.default)(t,e);return(0,l.jsx)(s.default,Object.assign({ref:u,className:(0,d.cn)(f({variant:v,size:p}),h.disabled&&"opacity-50",o)},h,{children:y??(0,l.jsx)(c.Text,{className:(0,d.cn)(b({variant:v,size:p})),children:x})}))});v.displayName="Button"},2392,[283,8,249,2393,2389,2388,6]);
|
|
14191
14191
|
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["class","className"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"cx",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"cva",{enumerable:!0,get:function(){return o}});var n,l=r(d[0]),t=(n=l)&&n.__esModule?n:{default:n},s=r(d[1]);const u=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,c=s.clsx,o=(n,l)=>s=>{var o;if(null==(null==l?void 0:l.variants))return c(n,null==s?void 0:s.class,null==s?void 0:s.className);const{variants:v,defaultVariants:f}=l,b=Object.keys(v).map(e=>{const n=null==s?void 0:s[e],l=null==f?void 0:f[e];if(null===n)return null;const t=u(n)||u(l);return v[e][t]}),j=s&&Object.entries(s).reduce((e,n)=>{let[l,t]=n;return void 0===t||(e[l]=t),e},{}),y=null==l||null===(o=l.compoundVariants)||void 0===o?void 0:o.reduce((n,l)=>{let{class:s,className:u}=l,c=(0,t.default)(l,e);return Object.entries(c).every(e=>{let[n,l]=e;return Array.isArray(l)?l.includes(Object.assign({},f,j)[n]):Object.assign({},f,j)[n]===l})?[...n,s,u]:n},[]);return c(n,b,y,null==s?void 0:s.class,null==s?void 0:s.className)}},2393,[283,2390]);
|
|
14192
14192
|
__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["className"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Input",{enumerable:!0,get:function(){return s}});var n=t(r(_d[0])),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),o=t(r(_d[2])),c=r(_d[3]),d=r(_d[4]);const s=u.forwardRef((t,u)=>{let{className:s}=t,f=(0,n.default)(t,e);return(0,d.jsx)(o.default,Object.assign({ref:u,className:(0,c.cn)("h-11 rounded-lg border border-border bg-background px-3 py-0 text-base text-foreground placeholder:text-muted-foreground",s),style:{lineHeight:16}},f))});s.displayName="Input"},2394,[283,8,259,2389,6]);
|
|
14193
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e)
|
|
14194
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getDaemonUrl=function(){const n=t.env.AIMUX_DAEMON_URL;if(!n)throw new Error("AIMUX daemon URL is not configured for this connection mode.");return n},e.getServiceUrl=function(t){return`http://${t.host}:${t.port}`};var t=r(d[0])},2396,[2397]);
|
|
14193
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.resolveImageUrl=function(e,t){if(!e.contentUrl)return null;if(e.contentUrl.startsWith("http://")||e.contentUrl.startsWith("https://"))return e.contentUrl;const n=e.contentUrl.startsWith("/")?e.contentUrl:`/${e.contentUrl}`;return"relay"===l.env.AIMUX_CONNECTION_MODE?(0,o.getRelayServiceUrl)(t,n):`${(0,o.getServiceUrl)(t)}${n}`},_e.messageSpeakerLabel=c,_e.MessageBlock=function({message:e}){const t="user"===(e.role??"assistant"),o=t?c(e):null;return(0,u.jsxs)(n.default,{className:t?"self-end max-w-[80%] rounded-lg bg-primary px-3 py-2 my-1":"self-start max-w-[90%] rounded-lg bg-secondary px-3 py-2 my-1",children:[o?(0,u.jsx)(s.Text,{className:t?"text-xs font-semibold text-primary-foreground mb-1":"text-xs font-semibold text-secondary-foreground mb-1",children:o}):null,Array.isArray(e.parts)&&e.parts.length>0?e.parts.map((e,n)=>"text"===e.type?(0,u.jsx)(s.Text,{className:t?"text-primary-foreground":"text-secondary-foreground",children:e.text},n):(0,u.jsx)(f,{label:x(e),isUser:t},n)):(0,u.jsx)(s.Text,{className:t?"text-primary-foreground":"text-secondary-foreground",children:e.text??""})]})},r(d[0]);var e,t=r(d[1]),n=(e=t)&&e.__esModule?e:{default:e},s=r(d[2]),o=r(d[3]),l=r(d[4]),u=r(d[5]);function c(e){const t=e.actor?.displayName?.trim().replace(/\s+/g," ");return t||null}function x(e){return"label"in e&&e.label.trim()?e.label:"[image]"}function f({label:e,isUser:t}){return(0,u.jsx)(n.default,{className:t?"mt-1 self-start rounded border border-primary-foreground/35 bg-primary-foreground/15 px-2 py-1":"mt-1 self-start rounded border border-border bg-background px-2 py-1",children:(0,u.jsx)(s.Text,{className:t?"font-mono text-xs font-semibold text-primary-foreground":"font-mono text-xs font-semibold text-muted-foreground",children:e})})}},2395,[8,116,2388,2396,2397,6]);
|
|
14194
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getDaemonUrl=function(){const n=t.env.AIMUX_DAEMON_URL;if(!n)throw new Error("AIMUX daemon URL is not configured for this connection mode.");return n},e.getServiceUrl=function(t){return`http://${t.host}:${t.port}`},e.getRelayHttpUrl=n,e.getRelayServiceUrl=function(t,o){const s=n();return s?`${s}/proxy/${t.host}/${t.port}${o}`:null};var t=r(d[0]);function n(){const n=t.env.AIMUX_RELAY_URL;if(n)return n.startsWith("wss://")?`https://${n.slice(6)}`:n.startsWith("ws://")?`http://${n.slice(5)}`:n}},2396,[2397]);
|
|
14195
14195
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"env",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]);const _={get CLERK_PUBLISHABLE_KEY(){return t.rawEnv.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY||void 0},get AIMUX_DAEMON_URL(){return(0,n.resolveAppDaemonUrl)()},get AIMUX_RELAY_URL(){return(0,n.resolveAppRelayUrl)()},get AIMUX_CONNECTION_MODE(){return(0,n.resolveAppConnectionMode)()}}},2397,[2398,2399]);
|
|
14196
14196
|
__d(function(g,r,i,a,m,e,d){"use strict";function t(){if("undefined"!=typeof window)return window.__AIMUX_LOCAL_CONFIG__}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"rawEnv",{enumerable:!0,get:function(){return _}});const _={get EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY(){},get EXPO_PUBLIC_AIMUX_DAEMON_URL(){return t()?.daemonUrl??"http://localhost:43190"},get EXPO_PUBLIC_AIMUX_RELAY_URL(){return t()?.relayUrl??void 0},get EXPO_PUBLIC_AIMUX_CONNECTION_MODE(){return t()?.connectionMode??"local"},get NODE_ENV(){return"production"}}},2398,[]);
|
|
14197
14197
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveAppConnectionMode=c,e.resolveAppRelayUrl=function(){return"relay"!==c()?void 0:l(_(n.rawEnv.EXPO_PUBLIC_AIMUX_RELAY_URL)??o)},e.resolveAppDaemonUrl=function(){if("local"!==c())return;const o=_(n.rawEnv.EXPO_PUBLIC_AIMUX_DAEMON_URL);return o?l(o):t},Object.defineProperty(e,"APP_CONNECTION_TARGET_DEFAULTS",{enumerable:!0,get:function(){return u}}),r(d[0]);var n=r(d[1]);const o="wss://relay.aimux.app",t="http://localhost:43190";function l(n){return n.replace(/\/$/,"")}function _(n){const o=n?.trim();return o||void 0}function c(){const o=_(n.rawEnv.EXPO_PUBLIC_AIMUX_CONNECTION_MODE);if("local"===o||"relay"===o)return o;if(o)throw new Error(`EXPO_PUBLIC_AIMUX_CONNECTION_MODE must be "local" or "relay", got ${o}`);return"production"===n.rawEnv.NODE_ENV?"relay":"local"}const u={prodRelayUrl:o,defaultWebDaemonUrl:t}},2399,[111,2398]);
|
|
@@ -14358,263 +14358,271 @@ __d(function(g,r,_i,a,m,_e,d){
|
|
|
14358
14358
|
* https://github.com/Yaffle/EventSource/
|
|
14359
14359
|
*/
|
|
14360
14360
|
!(function(e){"use strict";var t=e.setTimeout,n=e.clearTimeout,o=e.XMLHttpRequest,i=e.XDomainRequest,s=e.ActiveXObject,c=e.EventSource,l=e.document,u=e.Promise,h=e.fetch,f=e.Response,p=e.TextDecoder,y=e.TextEncoder,v=e.AbortController;if("undefined"==typeof window||void 0===l||"readyState"in l||null!=l.body||(l.readyState="loading",window.addEventListener("load",function(e){l.readyState="complete"},!1)),null==o&&null!=s&&(o=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==v){var w=h;h=function(e,t){var n=t.signal;return w(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var o=65533,i="",s=this.bitsNeeded,c=this.codePoint,l=0;l<e.length;l+=1){var u=e[l];0!==s&&(u<128||u>191||!t(c<<6|63&u,s-6,n(s,c)))&&(s=0,c=o,i+=String.fromCharCode(c)),0===s?(u>=0&&u<=127?(s=0,c=u):u>=192&&u<=223?(s=6,c=31&u):u>=224&&u<=239?(s=12,c=15&u):u>=240&&u<=247?(s=18,c=7&u):(s=0,c=o),0===s||t(c,s,n(s,c))||(s=0,c=o)):(s-=6,c=c<<6|63&u),0===s&&(c<=65535?i+=String.fromCharCode(c):(i+=String.fromCharCode(55296+(c-65535-1>>10)),i+=String.fromCharCode(56320+(c-65535-1&1023))))}return this.bitsNeeded=s,this.codePoint=c,i};null!=p&&null!=y&&(function(){try{return"test"===(new p).decode((new y).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1})()||(p=b);var E=function(){};function C(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=E,this.onload=E,this.onerror=E,this.onreadystatechange=E,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=E}function T(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function _(e){for(var t=Object.create(null),n=e.split("\r\n"),o=0;o<n.length;o+=1){var i=n[o].split(": "),s=i.shift(),c=i.join(": ");t[T(s)]=c}this._map=t}function S(){}function x(e){this._headers=e}function A(){}function R(){this._listeners=Object.create(null)}function O(e){t(function(){throw e},0)}function D(e){this.type=e,this.target=void 0}function H(e,t){D.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){D.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function j(e,t){D.call(this,e),this.error=t.error}C.prototype.open=function(e,i){this._abort(!0);var s=this,c=this._xhr,l=1,u=0;this._abort=function(e){0!==s._sendTimeout&&(n(s._sendTimeout),s._sendTimeout=0),1!==l&&2!==l&&3!==l||(l=4,c.onload=E,c.onerror=E,c.onabort=E,c.onprogress=E,c.onreadystatechange=E,c.abort(),0!==u&&(n(u),u=0),e||(s.readyState=4,s.onabort(null),s.onreadystatechange())),l=0};var h=function(){if(1===l){var e=0,t="",n=void 0;if("contentType"in c)e=200,t="OK",n=c.contentType;else try{e=c.status,t=c.statusText,n=c.getResponseHeader("Content-Type")}catch(o){e=0,t="",n=void 0}0!==e&&(l=2,s.readyState=2,s.status=e,s.statusText=t,s._contentType=n,s.onreadystatechange())}},f=function(){if(h(),2===l||3===l){l=3;var e="";try{e=c.responseText}catch(e){}s.readyState=3,s.responseText=e,s.onprogress()}},p=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:E}),f(),1===l||2===l||3===l){if(l=4,0!==u&&(n(u),u=0),s.readyState=4,"load"===e)s.onload(t);else if("error"===e)s.onerror(t);else{if("abort"!==e)throw new TypeError;s.onabort(t)}s.onreadystatechange()}},y=function(e){null!=c&&(4===c.readyState?"onload"in c&&"onerror"in c&&"onabort"in c||p(""===c.responseText?"error":"load",e):3===c.readyState?"onprogress"in c||f():2===c.readyState&&h())},v=function(){u=t(function(){v()},500),3===c.readyState&&f()};"onload"in c&&(c.onload=function(e){p("load",e)}),"onerror"in c&&(c.onerror=function(e){p("error",e)}),"onabort"in c&&(c.onabort=function(e){p("abort",e)}),"onprogress"in c&&(c.onprogress=f),"onreadystatechange"in c&&(c.onreadystatechange=function(e){y(e)}),!("contentType"in c)&&"ontimeout"in o.prototype||(i+=(-1===i.indexOf("?")?"?":"&")+"padding=true"),c.open(e,i,!0),"readyState"in c&&(u=t(function(){v()},0))},C.prototype.abort=function(){this._abort(!1)},C.prototype.getResponseHeader=function(e){return this._contentType},C.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},C.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},C.prototype.send=function(){if("ontimeout"in o.prototype&&("sendAsBinary"in o.prototype||"mozAnon"in o.prototype)||null==l||null==l.readyState||"complete"===l.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var n=this;n._sendTimeout=t(function(){n._sendTimeout=0,n.send()},4)}},_.prototype.get=function(e){return this._map[T(e)]},null!=o&&null==o.HEADERS_RECEIVED&&(o.HEADERS_RECEIVED=2),S.prototype.open=function(e,t,n,i,s,c,l){e.open("GET",s);var u=0;for(var h in e.onprogress=function(){var t=e.responseText.slice(u);u+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),i(new Error("NetworkError"))},e.onload=function(){i(null)},e.onabort=function(){i(null)},e.onreadystatechange=function(){if(e.readyState===o.HEADERS_RECEIVED){var n=e.status,i=e.statusText,s=e.getResponseHeader("Content-Type"),c=e.getAllResponseHeaders();t(n,i,s,new _(c))}},e.withCredentials=c,l)Object.prototype.hasOwnProperty.call(l,h)&&e.setRequestHeader(h,l[h]);return e.send(),e},x.prototype.get=function(e){return this._headers.get(e)},A.prototype.open=function(e,t,n,o,i,s,c){var l=null,f=new v,y=f.signal,w=new p;return h(i,{headers:c,credentials:s?"include":"same-origin",signal:y,cache:"no-store"}).then(function(e){return l=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new x(e.headers)),new u(function(e,t){var o=function(){l.read().then(function(t){if(t.done)e(void 0);else{var i=w.decode(t.value,{stream:!0});n(i),o()}}).catch(function(e){t(e)})};o()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){o(e)}),{abort:function(){null!=l&&l.cancel(),f.abort()}}},R.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var n=t.length,o=0;o<n;o+=1){var i=t[o];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){O(e)}}},R.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,o=n[e];null==o&&(o=[],n[e]=o);for(var i=!1,s=0;s<o.length;s+=1)o[s]===t&&(i=!0);i||o.push(t)},R.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,o=n[e];if(null!=o){for(var i=[],s=0;s<o.length;s+=1)o[s]!==t&&i.push(o[s]);0===i.length?delete n[e]:n[e]=i}},H.prototype=Object.create(D.prototype),N.prototype=Object.create(D.prototype),j.prototype=Object.create(D.prototype);var I=/^text\/event\-stream(;.*)?$/i,P=function(e,t){var n=null==e?t:parseInt(e,10);return n!=n&&(n=t),L(n)},L=function(e){return Math.min(Math.max(e,1e3),18e6)},M=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){O(e)}};function q(e,t){R.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,G(this,e,t)}var X=null!=h&&null!=f&&"body"in f.prototype;function G(e,s,c){s=String(s);var l=Boolean(c.withCredentials),u=c.lastEventIdQueryParameterName||"lastEventId",h=L(1e3),f=P(c.heartbeatTimeout,45e3),p="",y=h,v=!1,w=0,b=c.headers||{},E=c.Transport,T=X&&null==E?void 0:new C(null!=E?new E:null!=o&&"withCredentials"in o.prototype||null==i?new o:new i),_=null!=E&&"string"!=typeof E?new E:null==T?new A:new S,x=void 0,R=0,O=-1,D="",q="",G="",V="",B=0,U=0,k=0,z=function(t,n,o,i){if(0===O)if(200===t&&null!=o&&I.test(o)){O=1,v=Date.now(),y=h,e.readyState=1;var s=new N("open",{status:t,statusText:n,headers:i});e.dispatchEvent(s),M(e,e.onopen,s)}else{var c="";200!==t?(n&&(n=n.replace(/\s+/g," ")),c="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):c="EventSource's response has a Content-Type specifying an unsupported type: "+(null==o?"-":o.replace(/\s+/g," "))+". Aborting the connection.",Z();s=new N("error",{status:t,statusText:n,headers:i});e.dispatchEvent(s),M(e,e.onerror,s),console.error(c)}},K=function(o){if(1===O){for(var i=-1,s=0;s<o.length;s+=1){(u=o.charCodeAt(s))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(i=s)}var c=(-1!==i?V:"")+o.slice(0,i+1);V=(-1===i?V:"")+o.slice(i+1),""!==o&&(v=Date.now(),w+=o.length);for(var l=0;l<c.length;l+=1){var u=c.charCodeAt(l);if(-1===B&&u==="\n".charCodeAt(0))B=0;else if(-1===B&&(B=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==B){1===B&&(k=l+1);var b=c.slice(U,k-1),E=c.slice(k+(k<l&&c.charCodeAt(k)===" ".charCodeAt(0)?1:0),l);"data"===b?(D+="\n",D+=E):"id"===b?q=E:"event"===b?G=E:"retry"===b?(h=P(E,h),y=h):"heartbeatTimeout"===b&&(f=P(E,f),0!==R&&(n(R),R=t(function(){$()},f)))}if(0===B){if(""!==D){p=q,""===G&&(G="message");var C=new H(G,{data:D.slice(1),lastEventId:q});if(e.dispatchEvent(C),"open"===G?M(e,e.onopen,C):"message"===G?M(e,e.onmessage,C):"error"===G&&M(e,e.onerror,C),2===O)return}D="",G=""}B=u==="\r".charCodeAt(0)?-1:0}else 0===B&&(U=l,B=1),1===B?u===":".charCodeAt(0)&&(k=l+1,B=2):2===B&&(B=3)}}},Q=function(o){if(1===O||0===O){O=-1,0!==R&&(n(R),R=0),R=t(function(){$()},y),y=L(Math.min(16*h,2*y)),e.readyState=0;var i=new j("error",{error:o});e.dispatchEvent(i),M(e,e.onerror,i),null!=o&&console.error(o)}},Z=function(){O=2,null!=x&&(x.abort(),x=void 0),0!==R&&(n(R),R=0),e.readyState=2},$=function(){if(R=0,-1===O){v=!1,w=0,R=t(function(){$()},f),O=0,D="",G="",q=p,V="",U=0,k=0,B=0;var n=s;if("data:"!==s.slice(0,5)&&"blob:"!==s.slice(0,5)&&""!==p){var o=s.indexOf("?");n=-1===o?s:s.slice(0,o+1)+s.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===u?'':e}),n+=(-1===s.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(p)}var i=e.withCredentials,c={Accept:"text/event-stream"},l=e.headers;if(null!=l)for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(c[h]=l[h]);try{x=_.open(T,z,K,Q,n,i,c)}catch(e){throw Z(),e}}else if(v||null==x){var y=Math.max((v||Date.now())+f-Date.now(),1);v=!1,R=t(function(){$()},y)}else Q(new Error("No activity within "+f+" milliseconds. "+(0===O?"No response received.":w+" chars received.")+" Reconnecting.")),null!=x&&(x.abort(),x=void 0)};e.url=s,e.readyState=0,e.withCredentials=l,e.headers=b,e._close=Z,$()}q.prototype=Object.create(R.prototype),q.prototype.CONNECTING=0,q.prototype.OPEN=1,q.prototype.CLOSED=2,q.prototype.close=function(){this._close()},q.CONNECTING=0,q.OPEN=1,q.CLOSED=2,q.prototype.withCredentials=void 0;var V=c;null==o||null!=c&&"withCredentials"in c.prototype||(V=q),(function(t){if("object"==typeof m&&"object"==typeof m.exports){var n=t(_e);void 0!==n&&(m.exports=n)}else"function"==typeof define&&define.amd?define(["exports"],t):t(e)})(function(e){e.EventSourcePolyfill=q,e.NativeEventSource=c,e.EventSource=V})})('undefined'==typeof globalThis?'undefined'!=typeof window?window:'undefined'!=typeof self?self:this:globalThis)},2537,[]);
|
|
14361
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.setApiRelay=function(t){
|
|
14362
|
-
__d(function(g,r,i,a,m,e,d){"use strict";
|
|
14363
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.
|
|
14364
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.
|
|
14365
|
-
__d(function(g,r,i,a,m,e,d){"use strict";
|
|
14366
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14367
|
-
__d(function(g,r,i,a,m,
|
|
14368
|
-
__d(function(g,
|
|
14369
|
-
__d(function(g,
|
|
14370
|
-
__d(function(g,r,i,a,m,e,d){
|
|
14371
|
-
__d(function(g,r,i,a,
|
|
14372
|
-
__d(function(g,
|
|
14373
|
-
__d(function(g,r,i,a,m,
|
|
14374
|
-
__d(function(g,r,i,a,m,
|
|
14375
|
-
__d(function(g,r,
|
|
14376
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.
|
|
14377
|
-
__d(function(g,r,i,a,m,
|
|
14378
|
-
__d(function(g,r,
|
|
14379
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),
|
|
14380
|
-
__d(function(g,r,i,a,m,e,d){
|
|
14381
|
-
__d(function(g,r,i,a,m,e,d){
|
|
14382
|
-
__d(function(g,r,i,a,m,
|
|
14383
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14384
|
-
__d(function(g,r,i,a,
|
|
14385
|
-
__d(function(g,r,i,a,m,
|
|
14386
|
-
__d(function(
|
|
14387
|
-
__d(function(g,r,i,
|
|
14388
|
-
__d(function(g,r,i,a,m,
|
|
14389
|
-
__d(function(
|
|
14390
|
-
__d(function(g,r,i,
|
|
14391
|
-
__d(function(g,r,i,a,m,
|
|
14392
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e
|
|
14393
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.
|
|
14394
|
-
__d(function(g,r,i,a,m,
|
|
14395
|
-
__d(function(g,r,i,a,m,
|
|
14396
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return
|
|
14397
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
14398
|
-
__d(function(g,r,i,a,m,
|
|
14399
|
-
__d(function(g,r,i,a,m,
|
|
14400
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),
|
|
14401
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return B}});var t=r(d[0]),s=e(r(d[1])),o=e(r(d[2])),n=e(r(d[3])),l=r(d[4]),c=r(d[5]),u=r(d[6]),x=r(d[7]),f=r(d[8]),h=r(d[9]),b=r(d[10]),p=r(d[11]),j=r(d[12]),N=r(d[13]),v=r(d[14]),y=r(d[15]),A=r(d[16]),w=r(d[17]),k=r(d[18]),S=r(d[19]),T=r(d[20]);const C="__aimux_no_selected_project__",P=[{id:"all",label:"All"},{id:"action-required",label:"Action"},{id:"approval",label:"Approval"},{id:"shipped",label:"Shipped"},{id:"progress",label:"Progress"},{id:"observation",label:"Observe"}];function z(e){const t=Date.parse(e);if(!Number.isFinite(t))return"";const s=Math.max(0,Math.floor((Date.now()-t)/1e3));if(s<60)return"just now";const o=Math.floor(s/60);if(o<60)return`${o}m ago`;const n=Math.floor(o/60);if(n<24)return`${n}h ago`;const l=Math.floor(n/24);return l<7?`${l}d ago`:new Date(t).toLocaleDateString()}function I(e){switch(e){case"action-required":return"Action required";case"approval":return"Approval";case"shipped":return"Shipped";case"progress":return"Progress";case"observation":return"Observation"}}function F(e){switch(e){case"notification":return"notification";case"security":return"security";case"agent":return"agent";case"service":return"service"}}function _(e){switch(e){case"action-required":return"border-amber-500/40 bg-amber-500/10";case"approval":return"border-sky-500/40 bg-sky-500/10";case"shipped":return"border-emerald-500/40 bg-emerald-500/10";case"progress":return"border-violet-500/40 bg-violet-500/10";case"observation":return"border-border bg-card"}}function R({kind:e,source:t}){const s="action-required"===e?"#f59e0b":"approval"===e?"#38bdf8":"shipped"===e?"#22c55e":"progress"===e?"#a78bfa":"#a1a1aa";return"security"===t?(0,T.jsx)(x.ShieldAlert,{size:18,color:"#f87171"}):"approval"===e?(0,T.jsx)(x.GitPullRequest,{size:18,color:s}):"shipped"===e?(0,T.jsx)(x.CheckCircle2,{size:18,color:s}):"progress"===e?(0,T.jsx)(x.Activity,{size:18,color:s}):(0,T.jsx)(x.AlertTriangle,{size:18,color:s})}function O({label:e,count:t,active:o,onPress:n}){return(0,T.jsxs)(s.default,{onPress:n,className:(0,v.cn)("mr-2 mb-2 flex-row items-center rounded-full border px-3 py-1.5 active:opacity-80",o?"border-foreground bg-foreground":"border-border bg-card"),children:[(0,T.jsx)(b.Text,{className:(0,v.cn)("text-[12px] font-semibold",o?"text-background":"text-foreground"),children:e}),(0,T.jsx)(b.Text,{className:(0,v.cn)("ml-1.5 text-[11px] font-bold",o?"text-background/70":"text-muted-foreground"),children:t})]})}function $({card:e,busy:t,onOpen:s,onRead:o,onClear:l}){const{colorScheme:c}=(0,u.useColorScheme)(),p="dark"===c?"#fafafa":"#09090b",j=Boolean(e.sessionId||e.serviceId),N=Boolean(e.notificationId);return(0,T.jsxs)(h.Card,{className:(0,v.cn)("mb-3 rounded-lg p-4",_(e.kind),e.unread&&"bg-secondary"),children:[(0,T.jsxs)(n.default,{className:"flex-row items-start",children:[(0,T.jsx)(n.default,{className:"mr-3 mt-0.5 rounded-full bg-background/60 p-2",children:(0,T.jsx)(R,{kind:e.kind,source:e.source})}),(0,T.jsxs)(n.default,{className:"min-w-0 flex-1",children:[(0,T.jsxs)(n.default,{className:"flex-row items-center",children:[e.unread?(0,T.jsx)(n.default,{className:"mr-2 h-2 w-2 rounded-full bg-emerald-500"}):null,(0,T.jsx)(b.Text,{className:"min-w-0 flex-1 text-[15px] font-semibold text-foreground",numberOfLines:2,children:e.title})]}),e.body?(0,T.jsx)(b.Text,{className:"mt-2 text-[13px] leading-snug text-foreground/90",children:e.body}):null,(0,T.jsxs)(b.Text,{className:"mt-3 text-[11px] uppercase tracking-widest text-muted-foreground",children:[I(e.kind),` \xb7 ${F(e.source)}`,e.subtitle?` \xb7 ${e.subtitle}`:"",z(e.createdAt)?` \xb7 ${z(e.createdAt)}`:""]})]})]}),(0,T.jsxs)(n.default,{className:"mt-4 flex-row flex-wrap gap-2",children:[j?(0,T.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:t,onPress:()=>s(e),className:"gap-1.5",children:[(0,T.jsx)(x.ExternalLink,{size:14,color:p}),(0,T.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Open"})]}):null,N&&e.unread?(0,T.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:t,onPress:()=>o(e),className:"gap-1.5",children:[(0,T.jsx)(x.Check,{size:14,color:p}),(0,T.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Read"})]}):null,N?(0,T.jsxs)(f.Button,{variant:"ghost",size:"sm",disabled:t,onPress:()=>l(e),className:"gap-1.5",children:[(0,T.jsx)(x.Trash2,{size:14,color:"#a1a1aa"}),(0,T.jsx)(b.Text,{className:"text-sm font-medium text-muted-foreground",children:"Clear"})]}):null]})]})}function B(){const e=(0,l.useRouter)(),s=(0,l.usePathname)(),{colorScheme:v}=(0,u.useColorScheme)(),I="dark"===v?"#fafafa":"#09090b",F=(0,c.useAtomValue)(k.selectedProjectAtom),_=(0,c.useAtomValue)(k.selectedProjectPathAtom),R=(0,c.useAtomValue)(k.selectedProjectEndpointAtom),B=_??C,E=(0,c.useAtomValue)((0,w.notificationFeedFamily)(B)),V=(0,c.useAtomValue)((0,w.notificationFeedErrorFamily)(B)),M=(0,c.useAtomValue)((0,A.desktopStateFamily)(B)),q=(0,c.useSetAtom)((0,w.notificationFeedFamily)(B)),D=(0,c.useSetAtom)((0,w.notificationFeedErrorFamily)(B)),L=(0,c.useSetAtom)(k.selectedSessionIdAtom),H=(0,c.useSetAtom)(w.kickNotificationFeedRefreshAtom),G=(0,c.useAtomValue)(S.securityEventsAtom),Y=(0,c.useAtomValue)(S.securityUnreadCountAtom),U=(0,c.useSetAtom)(S.markSecurityEventsReadAtom),J=(0,c.useSetAtom)(S.clearSecurityEventsAtom),{getToken:K}=(0,j.useAuth)(),[Q,W]=(0,t.useState)(null),X=(0,l.useGlobalSearchParams)(),Z=(ee=(0,y.cleanSearchValue)(X.lens),P.some(e=>e.id===ee)?ee:"all");var ee;const te=(0,t.useMemo)(()=>E?.notifications??[],[E?.notifications]),se=(0,t.useMemo)(()=>(0,N.buildForYouFeed)({notifications:te,securityEvents:G,desktopState:M}),[M,te,G]),ae="all"===Z?se.cards:se.cards.filter(e=>e.kind===Z),re=E?.unreadCount??0,oe=E?.fetchedAt?z(E.fetchedAt):"",ne=te.length>0,ie=G.length>0,le=(0,t.useCallback)(async()=>{if(R){W("refresh");try{const e=await K(),t=await(0,p.listNotifications)(R,{token:e});q({notifications:t.notifications,unreadCount:t.unreadCount,fetchedAt:(new Date).toISOString()}),D(null)}catch(e){const t=e instanceof Error?e.message:String(e);D(t)}finally{W(null)}}},[R,K,q,D]),de=(0,t.useCallback)(async(e,t,s={})=>{if(R){W(e);try{const e=await K();"read"===t?await(0,p.markNotificationsRead)(R,s,{token:e}):await(0,p.clearNotifications)(R,s,{token:e});const o=await(0,p.listNotifications)(R,{token:e});q({notifications:o.notifications,unreadCount:o.unreadCount,fetchedAt:(new Date).toISOString()}),D(null),H()}catch(e){const t=e instanceof Error?e.message:String(e);D(t)}finally{W(null)}}},[R,K,H,q,D]);async function ce(t){t.notificationId&&t.unread&&await de(`open:${t.notificationId}`,"read",{id:t.notificationId}),t.sessionId?(L(t.sessionId),e.push((0,y.detailHrefForPath)(s,"agent",t.sessionId,_))):t.serviceId&&e.push((0,y.detailHrefForPath)(s,"service",t.serviceId,_))}return(0,T.jsx)(o.default,{className:"flex-1 bg-background",contentContainerClassName:"px-4 py-5 md:px-8",children:(0,T.jsxs)(n.default,{className:"mx-auto w-full max-w-3xl",children:[(0,T.jsxs)(n.default,{className:"mb-5 flex-row items-start justify-between gap-3",children:[(0,T.jsxs)(n.default,{className:"min-w-0 flex-1",children:[(0,T.jsx)(b.Text,{className:"text-[11px] font-bold uppercase tracking-widest text-muted-foreground",children:"For You"}),(0,T.jsx)(b.Text,{className:"mt-1 text-2xl font-bold text-foreground",children:"Attention Feed"}),(0,T.jsxs)(b.Text,{className:"mt-1 text-sm text-muted-foreground",numberOfLines:2,children:[F?F.name:"Select a project to view attention items",F?.path?` \xb7 ${F.path}`:""]})]}),(0,T.jsx)(f.Button,{variant:"outline",size:"icon",disabled:!R||"refresh"===Q,onPress:le,accessibilityLabel:"Refresh attention feed",children:(0,T.jsx)(x.RotateCw,{size:18,color:I})})]}),(0,T.jsx)(n.default,{className:"mb-4 flex-row flex-wrap",children:P.map(t=>(0,T.jsx)(O,{label:t.label,count:"all"===t.id?se.cards.length:se.counts[t.id],active:Z===t.id,onPress:()=>e.replace((0,y.buildViewHref)("/notifications",{project:_,lens:t.id}))},t.id))}),(0,T.jsxs)(n.default,{className:"mb-4 flex-row flex-wrap items-center gap-2",children:[ie?(0,T.jsx)(n.default,{className:"rounded-full border border-red-500/40 bg-red-950/20 px-3 py-1.5",children:(0,T.jsxs)(b.Text,{className:"text-xs font-medium text-foreground",children:[Y," security unread"]})}):null,(0,T.jsx)(n.default,{className:"rounded-full border border-border bg-card px-3 py-1.5",children:(0,T.jsxs)(b.Text,{className:"text-xs font-medium text-foreground",children:[re," notification unread",oe?` \xb7 updated ${oe}`:""]})}),(0,T.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:!R||0===re||null!==Q,onPress:()=>{de("read-all","read")},className:"gap-1.5",children:[(0,T.jsx)(x.Check,{size:14,color:I}),(0,T.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Read notifications"})]}),ie?(0,T.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:0===Y,onPress:()=>U(),className:"gap-1.5",children:[(0,T.jsx)(x.ShieldAlert,{size:14,color:I}),(0,T.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Read security"})]}):null,(0,T.jsxs)(f.Button,{variant:"ghost",size:"sm",disabled:!R||!ne||null!==Q,onPress:()=>{de("clear-all","clear")},className:"gap-1.5",children:[(0,T.jsx)(x.Trash2,{size:14,color:"#a1a1aa"}),(0,T.jsx)(b.Text,{className:"text-sm font-medium text-muted-foreground",children:"Clear notifications"})]}),ie?(0,T.jsxs)(f.Button,{variant:"ghost",size:"sm",onPress:()=>J(),className:"gap-1.5",children:[(0,T.jsx)(x.Trash2,{size:14,color:"#a1a1aa"}),(0,T.jsx)(b.Text,{className:"text-sm font-medium text-muted-foreground",children:"Clear security"})]}):null]}),V?(0,T.jsxs)(h.Card,{className:"mb-4 rounded-lg border-destructive/50 bg-destructive/10",children:[(0,T.jsx)(b.Text,{className:"text-sm font-semibold text-foreground",children:"Attention feed failed"}),(0,T.jsx)(b.Text,{className:"mt-1 text-xs text-muted-foreground",children:V})]}):null,F?ae.length>0?ae.map(e=>(0,T.jsx)($,{card:e,busy:null!==Q,onOpen:e=>{ce(e)},onRead:e=>e.notificationId?void de(`read:${e.notificationId}`,"read",{id:e.notificationId}):void 0,onClear:e=>e.notificationId?void de(`clear:${e.notificationId}`,"clear",{id:e.notificationId}):void 0},e.id)):R?E?(0,T.jsxs)(h.Card,{className:"rounded-lg p-5",children:[(0,T.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"All caught up"}),(0,T.jsx)(b.Text,{className:"mt-1 text-sm text-muted-foreground",children:"New agent activity, approvals, security alerts, and shipped work will appear here."})]}):(0,T.jsx)(h.Card,{className:"rounded-lg p-5",children:(0,T.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"Loading feed..."})}):(0,T.jsxs)(h.Card,{className:"rounded-lg p-5",children:[(0,T.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"Project host offline"}),(0,T.jsx)(b.Text,{className:"mt-1 text-sm text-muted-foreground",children:"Start the project host to load attention items."})]}):(0,T.jsxs)(h.Card,{className:"rounded-lg p-5",children:[(0,T.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"No project selected"}),(0,T.jsx)(b.Text,{className:"mt-1 text-sm text-muted-foreground",children:"Pick a project from the sidebar to see its attention feed."})]})]})})}},2578,[8,249,140,116,291,691,429,695,2392,2568,2388,2538,2400,2579,2389,2542,2547,2580,2549,2581,6]);
|
|
14402
|
-
__d(function(g,r,i,
|
|
14403
|
-
__d(function(g,r,i,a,m,
|
|
14404
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"securityEventsAtom",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"addSecurityEventAtom",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"markSecurityEventsReadAtom",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"clearSecurityEventsAtom",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"securityUnreadCountAtom",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const u=(0,n.atomWithStorage)("aimux-security-events",[],(0,o.createSsrSafeJsonStorage)(),{getOnInit:!0}),c=(0,n.unwrap)(u,t=>t??[]),s=(0,t.atom)(null,(t,n,o)=>{const u=(new Date).toISOString(),s=t(c),l=s.find(t=>t.id===o.id),f=Object.assign({},o,{receivedAt:l?.receivedAt??u,readAt:l?.readAt});n(c,[f,...s.filter(t=>t.id!==o.id)].slice(0,100))}),l=(0,t.atom)(null,(t,n)=>{const o=(new Date).toISOString();n(c,t(c).map(t=>t.readAt?t:Object.assign({},t,{readAt:o})))}),f=(0,t.atom)(null,(t,n)=>{n(c,[])}),b=(0,t.atom)(t=>t(c).filter(t=>!t.readAt).length)},2581,[691,2544,2550]);
|
|
14405
|
-
__d(function(g,r,i,
|
|
14406
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"
|
|
14407
|
-
__d(function(g,r,i,a,m,
|
|
14408
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
14409
|
-
__d(function(g,r,i,a,m,e,d){"use strict";
|
|
14410
|
-
__d(function(g,r,i,a,m,
|
|
14411
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),
|
|
14412
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14413
|
-
__d(function(g,r,i,a,m,
|
|
14414
|
-
__d(function(g,r,i,a,m,
|
|
14415
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"
|
|
14416
|
-
__d(function(g,r,i,a,m,
|
|
14417
|
-
__d(function(g,r,i,a,m,
|
|
14418
|
-
__d(function(g,r,i,a,m,
|
|
14419
|
-
__d(function(g,r,i,a,m,
|
|
14420
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2597,[
|
|
14421
|
-
__d(function(g,r,i,a,m,
|
|
14422
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),
|
|
14423
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
14424
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14425
|
-
__d(function(g,r,i,a,m,
|
|
14426
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return
|
|
14427
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14428
|
-
__d(function(g,r,i,a,m,
|
|
14429
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=r(d[0]),s=e(t),l=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),c=e(r(d[4])),x=r(d[5]),u=e(x),f=r(d[6]),h=r(d[7]),p=r(d[8]),j=r(d[9]),b=r(d[10]),k=r(d[11]),N=r(d[12]),w=r(d[13]),y=r(d[14]),v=r(d[15]),T=r(d[16]),P=r(d[17]),S=r(d[18]),z=r(d[19]),A=r(d[20]);const C=[{value:"map",label:"Map"},{value:"tree",label:"Tree"},{value:"table",label:"Table"}];function I(e){switch(e){case"active":return"#22c55e";case"attention":return"#f59e0b";case"offline":return"#71717a";case"idle":return"#38bdf8"}}function L(e){switch(e){case"active":return"active";case"attention":return"attention";case"offline":return"offline";case"idle":return"idle"}}function M(e,t){return e.length<=t?e:t<=3?e.slice(0,t):`${e.slice(0,t-3)}...`}function W({label:e,value:t,tone:s}){return(0,A.jsxs)(j.Card,{className:"mr-2 mb-2 min-w-[112px] flex-1 rounded-lg p-3",children:[(0,A.jsx)(N.Text,{className:"text-[22px] font-bold text-foreground leading-tight",children:t}),(0,A.jsxs)(o.default,{className:"mt-1 flex-row items-center",children:[s?(0,A.jsx)(o.default,{className:"mr-1.5 h-2 w-2 rounded-full",style:{backgroundColor:I(s)}}):null,(0,A.jsx)(N.Text,{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:e})]})]})}function O({node:e,onPress:t}){const s=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(o.default,{className:"flex-row items-center",children:[(0,A.jsx)(o.default,{className:"mr-2.5 h-2.5 w-2.5 rounded-full",style:{backgroundColor:I(e.health)}}),(0,A.jsx)(N.Text,{className:"flex-1 text-[14px] font-semibold text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.label}),e.status?(0,A.jsxs)(o.default,{className:"ml-2 flex-row items-center gap-2",children:["agent"===e.kind||"service"===e.kind?(0,A.jsx)(b.RuntimeBadge,{brand:(0,P.runtimeBrandForKind)(e.kind,e.command),compact:!0}):null,(0,A.jsx)(w.StatusPill,{status:e.status})]}):null]}),e.subtitle?(0,A.jsx)(N.Text,{className:"mt-1.5 text-[11px] text-muted-foreground",numberOfLines:2,ellipsizeMode:"tail",children:e.subtitle}):null]});return t?(0,A.jsx)(j.PressableCard,{onPress:t,className:"mb-2 rounded-lg bg-secondary p-3",children:s}):(0,A.jsx)(j.Card,{className:"mb-2 rounded-lg bg-secondary p-3",children:s})}function F({topology:e,width:t,onPickAgent:l,onPickService:c}){const f=Math.max(680,t-64),h=Math.max(240,92+112*e.worktrees.length),p=h/2;return(0,A.jsx)(n.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,A.jsx)(o.default,{className:"rounded-xl border border-border bg-card",children:(0,A.jsxs)(u.default,{width:f,height:h,children:[(0,A.jsx)(x.Line,{x1:130,y1:p,x2:214,y2:p,stroke:"#3f3f46",strokeWidth:2}),(0,A.jsx)(x.Rect,{x:24,y:p-36,width:124,height:72,rx:10,fill:"#18181b",stroke:I(e.project.health),strokeWidth:2}),(0,A.jsx)(x.Circle,{cx:44,cy:p-15,r:5,fill:I(e.project.health)}),(0,A.jsx)(x.Text,{x:62,y:p-9,fill:"#fafafa",fontSize:"13",fontWeight:"700",children:M(e.project.label,12)}),(0,A.jsx)(x.Text,{x:44,y:p+15,fill:"#a1a1aa",fontSize:"10",children:"project"}),e.worktrees.map((e,t)=>{const n=56+112*t,o=[...e.agents,...e.services],u=o.length>1?48:0,f=n-(o.length-1)*u/2;return(0,A.jsxs)(s.default.Fragment,{children:[(0,A.jsx)(x.Line,{x1:216,y1:p,x2:216,y2:n,stroke:"#3f3f46",strokeWidth:1.5}),(0,A.jsx)(x.Line,{x1:216,y1:n,x2:274,y2:n,stroke:"#3f3f46",strokeWidth:1.5}),(0,A.jsx)(x.Rect,{x:276,y:n-28,width:156,height:56,rx:9,fill:"#27272a",stroke:I(e.health),strokeWidth:1.5}),(0,A.jsx)(x.Circle,{cx:296,cy:n-10,r:4,fill:I(e.health)}),(0,A.jsx)(x.Text,{x:310,y:n-5,fill:"#fafafa",fontSize:"12",fontWeight:"700",children:M(e.name,16)}),(0,A.jsx)(x.Text,{x:296,y:n+15,fill:"#a1a1aa",fontSize:"9",children:e.branch?M(e.branch,22):"worktree"}),o.map((e,t)=>{const s=f+t*u,o=Boolean(e.sourceId);return(0,A.jsxs)(x.G,{onPress:o?()=>{"agent"===e.kind&&e.sourceId&&l(e.sourceId),"service"===e.kind&&e.sourceId&&c(e.sourceId)}:void 0,accessibilityLabel:o?`Open ${e.label}`:void 0,style:o?{cursor:"pointer"}:void 0,children:[(0,A.jsx)(x.Line,{x1:432,y1:n,x2:506,y2:s,stroke:"#3f3f46",strokeWidth:1.5}),(0,A.jsx)(x.Rect,{x:520,y:s-20,width:132,height:40,rx:8,fill:"#18181b",stroke:I(e.health),strokeWidth:1.25}),(0,A.jsx)(x.Circle,{cx:535,cy:s-5,r:3.5,fill:I(e.health)}),(0,A.jsx)(x.Text,{x:546,y:s,fill:"#fafafa",fontSize:"11",fontWeight:"700",children:M(e.label,12)}),(0,A.jsx)(x.Text,{x:535,y:s+13,fill:"#a1a1aa",fontSize:"8",children:e.kind}),o?(0,A.jsx)(x.Text,{x:624,y:s+13,fill:"#a1a1aa",fontSize:"8",fontWeight:"700",children:"open"}):null]},e.id)})]},e.id)})]})})})}function R({worktree:e,onPickAgent:t,onPickService:s}){return(0,A.jsxs)(j.Card,{className:"mb-4 overflow-hidden rounded-xl p-0",children:[(0,A.jsxs)(o.default,{className:"flex-row items-stretch border-b border-border bg-card",children:[(0,A.jsx)(o.default,{className:"w-1.5",style:{backgroundColor:I(e.health)}}),(0,A.jsxs)(o.default,{className:"flex-1 px-4 py-3.5",children:[(0,A.jsxs)(o.default,{className:"flex-row items-center",children:[(0,A.jsx)(N.Text,{className:"flex-1 text-[17px] font-bold text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.name}),(0,A.jsx)(N.Text,{className:"ml-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:L(e.health)})]}),e.branch?(0,A.jsxs)(o.default,{className:"mt-2 flex-row items-center self-start rounded border border-border bg-background px-2 py-1",children:[(0,A.jsx)(p.GitBranch,{size:11,color:"#a1a1aa"}),(0,A.jsx)(N.Text,{className:"ml-1.5 text-[11px] font-mono text-muted-foreground",children:e.branch})]}):null]})]}),(0,A.jsxs)(o.default,{className:"p-3",children:[e.agents.length>0?(0,A.jsxs)(o.default,{className:(0,S.cn)(e.services.length>0&&"mb-4"),children:[(0,A.jsxs)(N.Text,{className:"mb-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:["Agents \xb7 ",e.agents.length]}),e.agents.map(e=>(0,A.jsx)(O,{node:e,onPress:()=>e.sourceId&&t(e.sourceId)},e.id))]}):null,e.services.length>0?(0,A.jsxs)(o.default,{children:[(0,A.jsxs)(N.Text,{className:"mb-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:["Services \xb7 ",e.services.length]}),e.services.map(e=>(0,A.jsx)(O,{node:e,onPress:()=>e.sourceId&&s(e.sourceId)},e.id))]}):null,0===e.agents.length&&0===e.services.length?(0,A.jsx)(N.Text,{className:"py-2 text-[12px] italic text-muted-foreground",children:"empty worktree"}):null]})]})}function V({topology:e,onPickAgent:t,onPickService:s}){const n=e.worktrees.flatMap(e=>[...e.agents,...e.services].map(t=>({worktree:e,node:t})));return 0===n.length?(0,A.jsx)(N.Text,{className:"text-sm text-muted-foreground",children:"No agents or services yet."}):(0,A.jsx)(j.Card,{className:"overflow-hidden rounded-xl p-0",children:n.map(({worktree:e,node:n},c)=>(0,A.jsxs)(l.default,{onPress:()=>{"agent"===n.kind&&n.sourceId&&t(n.sourceId),"service"===n.kind&&n.sourceId&&s(n.sourceId)},className:(0,S.cn)("flex-row items-center px-3 py-3 active:bg-accent",c>0&&"border-t border-border"),children:[(0,A.jsx)(o.default,{className:"mr-3",children:(0,A.jsx)(w.StatusDot,{status:n.status??n.health,size:"sm"})}),(0,A.jsxs)(o.default,{className:"min-w-0 flex-1",children:[(0,A.jsxs)(o.default,{className:"flex-row items-center",children:[(0,A.jsx)(N.Text,{className:"flex-1 text-[13px] font-semibold text-foreground",numberOfLines:1,children:n.label}),(0,A.jsx)(N.Text,{className:"ml-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:n.kind})]}),(0,A.jsxs)(N.Text,{className:"mt-1 text-[11px] text-muted-foreground",numberOfLines:1,children:[e.name,n.subtitle?` \xb7 ${n.subtitle}`:""]})]})]},n.id))})}function _(){const{width:e}=(0,c.default)(),s=(0,h.useAtomValue)(v.projectsAtom),l=(0,h.useAtomValue)(v.selectedProjectAtom),x=(0,h.useAtomValue)(v.selectedProjectEndpointAtom),u=(0,f.useGlobalSearchParams)(),b=(0,z.projectPathFromSearchOrLocation)(u.project),w=b?s.find(e=>e.path===b):l,P=w?.serviceEndpoint??(w?.path===l?.path?x:void 0),S=(0,h.useAtomValue)((0,y.desktopStateFamily)(w?.path??"")),I=(0,h.useAtomValue)((0,y.worktreeGroupsFamily)(w?.path??"")),L=(0,h.useSetAtom)(v.selectedSessionIdAtom),M=(0,f.useRouter)(),O=(0,f.usePathname)(),_="tree"===(B=(0,z.cleanSearchValue)(u.mode))||"table"===B?B:"map";var B;const G=(0,t.useMemo)(()=>w?(0,T.buildProjectTopology)(w,I,S):null,[S,I,w]);function H(e){L(e),M.push((0,z.detailHrefForPath)(O,"agent",e,w?.path))}function $(e){M.push((0,z.detailHrefForPath)(O,"service",e,w?.path))}return(0,A.jsx)(o.default,{className:"flex-1 bg-background",children:(0,A.jsx)(n.default,{className:"flex-1",contentContainerClassName:"px-4 py-5 md:px-8 md:py-7",children:w&&G?P&&null===S?(0,A.jsx)(N.Text,{className:"text-sm text-muted-foreground",children:"Loading topology..."}):(0,A.jsxs)(o.default,{className:"w-full max-w-[1100px]",children:[(0,A.jsxs)(o.default,{className:"mb-5",children:[(0,A.jsx)(N.Text,{className:"mb-1.5 text-[11px] font-bold uppercase tracking-widest text-muted-foreground",children:"Topology"}),(0,A.jsx)(N.Text,{className:"text-[28px] font-bold leading-tight text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:w.name}),(0,A.jsxs)(o.default,{className:"mt-2 flex-row items-center",children:[(0,A.jsx)(p.Network,{size:14,color:"#a1a1aa"}),(0,A.jsx)(N.Text,{className:"ml-2 min-w-0 flex-1 text-[12px] text-muted-foreground",numberOfLines:1,ellipsizeMode:"middle",children:w.path})]})]}),P||null!==S?null:(0,A.jsxs)(j.Card,{className:"mb-5 rounded-xl p-5",children:[(0,A.jsx)(N.Text,{className:"text-[14px] font-medium text-foreground",children:"Project host not running."}),(0,A.jsx)(N.Text,{className:"mt-1.5 text-[12px] text-muted-foreground",children:"Start the host to see worktree and agent topology."})]}),(0,A.jsxs)(o.default,{className:"mb-5 flex-row flex-wrap",children:[(0,A.jsx)(W,{label:"Worktrees",value:G.summary.worktrees}),(0,A.jsx)(W,{label:"Agents",value:G.summary.agents}),(0,A.jsx)(W,{label:"Services",value:G.summary.services}),(0,A.jsx)(W,{label:"Active",value:G.summary.active,tone:"active"}),(0,A.jsx)(W,{label:"Attention",value:G.summary.attention,tone:"attention"}),(0,A.jsx)(W,{label:"Offline",value:G.summary.offline,tone:"offline"})]}),(0,A.jsxs)(o.default,{className:"mb-4 flex-row items-center justify-between",children:[(0,A.jsxs)(o.default,{className:"flex-row items-center",children:["map"===_?(0,A.jsx)(p.Network,{size:16,color:"#a1a1aa"}):null,"tree"===_?(0,A.jsx)(p.Rows3,{size:16,color:"#a1a1aa"}):null,"table"===_?(0,A.jsx)(p.Table2,{size:16,color:"#a1a1aa"}):null,(0,A.jsx)(N.Text,{className:"ml-2 text-[13px] font-semibold text-foreground",children:"map"===_?"Relationship Map":"tree"===_?"Worktree Tree":"Node Table"})]}),(0,A.jsx)(k.SegmentedControl,{options:C,value:_,onChange:e=>M.replace((0,z.buildViewHref)("/topology",{project:w.path,mode:e})),className:"ml-3"})]}),"map"===_?(0,A.jsx)(F,{topology:G,width:e,onPickAgent:H,onPickService:$}):null,"tree"===_?(0,A.jsx)(o.default,{children:G.worktrees.map(e=>(0,A.jsx)(R,{worktree:e,onPickAgent:H,onPickService:$},e.id))}):null,"table"===_?(0,A.jsx)(V,{topology:G,onPickAgent:H,onPickService:$}):null,0===G.worktrees.length?(0,A.jsxs)(j.Card,{className:"mt-4 items-center rounded-xl p-6",children:[(0,A.jsx)(p.Box,{size:22,color:"#a1a1aa"}),(0,A.jsx)(N.Text,{className:"mt-2 text-sm text-muted-foreground",children:"No worktrees yet"})]}):null]}):(0,A.jsx)(N.Text,{className:"text-sm text-muted-foreground",children:"Select a project from the sidebar to view topology."})})})}},2606,[8,249,140,116,274,698,291,691,695,2568,2607,2585,2388,2570,2547,2549,2601,2608,2389,2542,6]);
|
|
14430
|
-
__d(function(
|
|
14431
|
-
__d(function(g,r,i,a,m,
|
|
14432
|
-
__d(function(g,r,i,a,m,
|
|
14433
|
-
__d(function(g,r,i,a,m,
|
|
14434
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.AppShell=function({children:e}){const{width:P}=(0,n.default)(),w=P>=1024,_=P>=640&&P<1024,N=P<640,[S,y]=(0,c.useAtom)(h.sidebarOpenAtom),z=(0,u.usePathname)(),[E]=(0,t.useState)(()=>new s.default.Value(-320));(0,t.useEffect)(()=>{N&&y(!1)},[N,y]),(0,t.useEffect)(()=>{N&&y(!1)},[z,N,y]),(0,t.useEffect)(()=>{s.default.timing(E,{toValue:S?0:-320,duration:250,useNativeDriver:!0}).start()},[S,E]);const A=_||N?(0,p.jsx)(b.Button,{variant:"ghost",size:"icon",accessibilityLabel:"Toggle sidebar",onPress:()=>y(e=>!e),children:(0,p.jsx)(f.Menu,{size:20,color:"#a1a1aa"})}):void 0;return(0,p.jsxs)(o.default,{className:"flex-1 bg-background",children:[(0,p.jsx)(j.TopBar,{left:A}),(0,p.jsxs)(o.default,{className:"flex-1 flex-row",children:[w?(0,p.jsx)(x.ProjectSidebar,{}):null,_&&S?(0,p.jsx)(x.ProjectSidebar,{}):null,(0,p.jsx)(o.default,{className:"flex-1",children:e}),N&&S?(0,p.jsx)(l.default,{onPress:()=>y(!1),style:[{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:40},{position:"fixed"}]}):null,N?(0,p.jsx)(s.default.View,{pointerEvents:S?"auto":"none",style:{position:"absolute",top:0,left:0,bottom:0,width:v,zIndex:50,transform:[{translateX:E}]},children:(0,p.jsx)(x.ProjectSidebar,{showBottomNav:!1})}):null]})]})};var t=r(d[0]),s=e(r(d[1]));r(d[2]);var l=e(r(d[3])),o=e(r(d[4])),n=e(r(d[5])),u=r(d[6]),c=r(d[7]),f=r(d[8]),x=r(d[9]),j=r(d[10]),b=r(d[11]),h=r(d[12]),p=r(d[13]);const v=320},2611,[8,109,111,249,116,274,291,691,695,2612,2614,2392,2613,6]);
|
|
14435
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.ProjectSidebar=function({showBottomNav:e=!0}){const s=(0,c.useAtomValue)(w.projectsAtom),u=(0,c.useAtomValue)(w.selectedProjectAtom),x=(0,c.useAtomValue)(w.selectedProjectPathAtom),f=(0,c.useAtomValue)(w.selectedProjectEndpointAtom),p=(0,c.useAtomValue)(w.selectedSessionIdAtom),h=(0,c.useSetAtom)(w.selectProjectAtom),P=(0,c.useSetAtom)(w.selectedSessionIdAtom),S=(0,c.useAtomValue)(v.sidebarShowProjectPickerAtom),y=(0,c.useSetAtom)(v.sidebarShowProjectPickerAtom),T=(0,l.useRouter)(),V=(0,l.usePathname)(),F=(0,l.useGlobalSearchParams)(),E=(0,N.projectPathFromSearchOrLocation)(F.project)??x,C=s.find(e=>e.path===E)??u,H=C?(0,A.getProjectServiceEndpoint)(C):f,{getToken:D}=(0,j.useAuth)(),[G,R]=(0,t.useState)(null);(0,t.useEffect)(()=>{let e=!1;return(async()=>{try{const t=await D();e||R(t)}catch{e||R(null)}})(),()=>{e=!0}},[D]);const U=(0,t.useRef)({effectiveProjectPath:E,selectedProjectPath:x});O(()=>{const e=U.current;U.current={effectiveProjectPath:E,selectedProjectPath:x},!S||e.effectiveProjectPath===E&&e.selectedProjectPath===x||y(!1)},[E,x,y,S]);const q=(0,c.useAtomValue)((0,k.desktopStateFamily)(E??M)),K=(0,c.useAtomValue)((0,k.desktopStateErrorFamily)(E??M)),J=!C||S;return(0,L.jsxs)(o.default,{className:"border-r border-border bg-background",style:{width:I,height:"100%"},children:[(0,L.jsx)(n.default,{className:"flex-1",children:J?(0,L.jsx)(_,{projects:s,selectedPath:E,onSelect:function(e){h(e),y(!1);const t=(0,b.mainTabForPath)(V);T.replace((0,N.buildViewHref)(b.MAIN_TAB_ROUTES[t].href,(0,N.mergeViewParams)(F,{project:e})))}}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(z,{project:C,onSwitchProject:()=>y(!0)}),(0,L.jsx)(B,{projectPath:C.path,endpoint:H,token:G,desktopState:q,desktopStateError:K,selectedSessionId:p,onPickSession:function(e){P(e),T.push((0,N.detailHrefForPath)(V,"agent",e,E))},onPickService:function(e){T.push((0,N.detailHrefForPath)(V,"service",e,E))}})]})}),e?(0,L.jsx)($,{}):null]})};var t=r(d[0]);r(d[1]);var s=e(r(d[2])),n=e(r(d[3])),o=e(r(d[4])),l=r(d[5]),c=r(d[6]),u=r(d[7]),x=r(d[8]),f=r(d[9]),p=r(d[10]),h=r(d[11]),j=r(d[12]),b=r(d[13]),N=r(d[14]),P=r(d[15]),S=r(d[16]),k=r(d[17]),w=r(d[18]),y=r(d[19]),T=r(d[20]),v=r(d[21]),A=r(d[22]),L=r(d[23]);const I=320,M="__aimux_no_selected_project__",O=t.useLayoutEffect;function _({projects:e,selectedPath:t,onSelect:n}){return(0,L.jsxs)(o.default,{className:"pt-5 pb-2",children:[(0,L.jsx)(o.default,{className:"px-4 pb-3",children:(0,L.jsx)(f.Text,{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Projects"})}),0===e.length?(0,L.jsx)(o.default,{className:"px-4 py-3",children:(0,L.jsx)(f.Text,{className:"text-sm text-muted-foreground",children:"No projects detected"})}):e.map(e=>{const l=e.path===t,c=e.serviceAlive;return(0,L.jsxs)(s.default,{onPress:()=>n(e.path),className:(0,S.cn)("px-4 py-2.5 border-l-2",l?"border-l-emerald-500 bg-accent":"border-l-transparent active:bg-accent/60"),children:[(0,L.jsxs)(o.default,{className:"flex-row items-center gap-2",children:[(0,L.jsx)(o.default,{className:(0,S.cn)("h-2 w-2 rounded-full",c?"bg-emerald-400":"bg-muted-foreground/35")}),(0,L.jsx)(f.Text,{className:"text-[14px] font-semibold text-foreground flex-1 min-w-0",numberOfLines:1,ellipsizeMode:"tail",children:e.name}),(0,L.jsx)(f.Text,{className:(0,S.cn)("text-[9px] font-bold uppercase tracking-wide",c?"text-emerald-400":"text-muted-foreground"),children:c?"online":"offline"})]}),(0,L.jsx)(f.Text,{className:"text-[11px] text-muted-foreground mt-0.5 ml-4",numberOfLines:1,ellipsizeMode:"middle",children:e.path})]},e.path)})]})}function z({project:e,onSwitchProject:t}){return(0,L.jsxs)(s.default,{onPress:t,accessibilityLabel:"Switch project",className:"flex-row items-center px-4 py-3.5 border-b border-border bg-card active:bg-accent",children:[(0,L.jsx)(o.default,{className:"mr-2 -ml-1",children:(0,L.jsx)(u.ChevronLeft,{size:16,color:"#a1a1aa"})}),(0,L.jsxs)(o.default,{className:"flex-1 min-w-0",children:[(0,L.jsx)(f.Text,{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground mb-1",children:"All projects"}),(0,L.jsx)(f.Text,{className:"text-[16px] font-bold text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.name}),(0,L.jsx)(f.Text,{className:"text-[11px] text-muted-foreground mt-1",numberOfLines:1,ellipsizeMode:"middle",children:e.path})]})]})}function V({branch:e}){return(0,L.jsxs)(o.default,{className:"flex-row items-center self-start px-2 py-0.5 rounded bg-background border border-border max-w-full",children:[(0,L.jsx)(u.GitBranch,{size:10,color:"#a1a1aa"}),(0,L.jsx)(f.Text,{className:"text-[10px] font-mono text-muted-foreground ml-1.5",numberOfLines:1,ellipsizeMode:"middle",children:e})]})}function F({session:e,isSelected:t,onPress:n}){const l=(0,P.firstTokenOf)(e.command);return(0,L.jsxs)(s.default,{onPress:n,className:(0,S.cn)("flex-row items-center px-3 py-2",t?"bg-accent":"active:bg-accent/60"),children:[(0,L.jsx)(o.default,{className:"mr-2.5",children:(0,L.jsx)(h.StatusDot,{status:e.status,size:"sm"})}),(0,L.jsxs)(o.default,{className:"flex-1 min-w-0",children:[(0,L.jsx)(f.Text,{className:"text-[13px] font-medium text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.label||e.id}),(0,L.jsx)(f.Text,{className:"text-[11px] text-muted-foreground mt-0.5",numberOfLines:1,children:l?`${l} \xb7 ${e.status}`:e.status})]})]})}function E({service:e,endpoint:t,token:n,onPress:l}){const c=e.shellCommand??e.previewLine??e.command??"";return(0,L.jsxs)(o.default,{className:"flex-row items-center px-3 py-2",children:[(0,L.jsxs)(s.default,{onPress:l,className:"flex-1 flex-row items-center min-w-0 active:opacity-70",children:[(0,L.jsx)(o.default,{className:"mr-2.5",children:(0,L.jsx)(h.StatusDot,{status:e.status,size:"sm"})}),(0,L.jsxs)(o.default,{className:"flex-1 min-w-0",children:[(0,L.jsx)(f.Text,{className:"text-[13px] font-medium text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.label||e.id}),(0,L.jsx)(f.Text,{className:"text-[11px] text-muted-foreground mt-0.5",numberOfLines:1,ellipsizeMode:"tail",children:c?`${c} \xb7 ${e.status}`:e.status})]})]}),(0,L.jsx)(o.default,{className:"ml-2",children:(0,L.jsx)(p.ServiceActions,{service:e,endpoint:t,token:n,compact:!0})})]})}function C({bucket:e,endpoint:t,token:s,selectedSessionId:n,onPickSession:l,onPickService:c}){const u=e.sessions.length>0,p=e.services.length>0,h=e.isMainCheckout?"bg-emerald-500":"bg-sky-500";return(0,L.jsxs)(x.Card,{className:"mx-3 mb-3 p-0 overflow-hidden",children:[(0,L.jsxs)(o.default,{className:"flex-row items-stretch border-b border-border bg-secondary",children:[(0,L.jsx)(o.default,{className:(0,S.cn)("w-1",h)}),(0,L.jsxs)(o.default,{className:"flex-1 min-w-0 px-3.5 py-3",children:[(0,L.jsx)(f.Text,{className:"text-[15px] font-bold text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.name}),e.branch?(0,L.jsx)(o.default,{className:"mt-2",children:(0,L.jsx)(V,{branch:e.branch})}):null]})]}),u?(0,L.jsxs)(o.default,{className:"pb-1",children:[(0,L.jsx)(o.default,{className:"px-3.5 pt-3 pb-1.5",children:(0,L.jsxs)(f.Text,{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:["Agents \xb7 ",e.sessions.length]})}),e.sessions.map(e=>(0,L.jsx)(F,{session:e,isSelected:e.id===n,onPress:()=>l(e.id)},e.id))]}):null,p?(0,L.jsxs)(o.default,{className:(0,S.cn)("pb-2",u&&"border-t border-border"),children:[(0,L.jsx)(o.default,{className:"px-3.5 pt-3 pb-1.5",children:(0,L.jsxs)(f.Text,{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:["Services \xb7 ",e.services.length]})}),e.services.map(e=>(0,L.jsx)(E,{service:e,endpoint:t,token:s,onPress:()=>c(e.id)},e.id))]}):null,u||p?(0,L.jsx)(o.default,{className:"h-0.5"}):(0,L.jsx)(o.default,{className:"px-3.5 py-3",children:(0,L.jsx)(f.Text,{className:"text-[11px] text-muted-foreground italic",children:"empty worktree"})})]})}function B({projectPath:e,endpoint:t,token:s,desktopState:n,desktopStateError:l,selectedSessionId:u,onPickSession:x,onPickService:p}){const h=(0,c.useAtomValue)((0,k.worktreeGroupsFamily)(e));if(!t&&null===n)return(0,L.jsxs)(o.default,{className:"mx-3 mt-3 mb-2 rounded-lg border border-border bg-card px-3 py-3",children:[(0,L.jsx)(f.Text,{className:"text-[12px] font-medium text-foreground/90 leading-snug",children:"Project host not running."}),(0,L.jsx)(f.Text,{className:"text-[11px] text-muted-foreground mt-1 leading-snug",children:"Start the host to see worktrees, agents, and services."})]});if(t&&null===n&&l){const e=(0,A.projectStateErrorCopy)(l);return(0,L.jsxs)(o.default,{className:"mx-3 mt-3 mb-2 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-3",children:[(0,L.jsx)(f.Text,{className:"text-[12px] font-medium text-foreground/90 leading-snug",children:e.title}),(0,L.jsx)(f.Text,{className:"text-[11px] text-muted-foreground mt-1 leading-snug",children:e.detail})]})}return t&&null===n?(0,L.jsx)(o.default,{className:"px-4 py-4",children:(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground",children:"Loading project state..."})}):0===h.length?(0,L.jsx)(o.default,{className:"px-4 py-4",children:(0,L.jsx)(f.Text,{className:"text-xs text-muted-foreground",children:"No worktrees yet"})}):(0,L.jsx)(o.default,{className:"pt-3 pb-3",children:h.map(e=>(0,L.jsx)(C,{bucket:e,endpoint:t,token:s,selectedSessionId:u,onPickSession:x,onPickService:p},e.key))})}const H=[{id:"dashboard",label:"Dashboard",Icon:u.Home},{id:"topology",label:"Topology",Icon:u.Network},{id:"project",label:"Project",Icon:u.FolderKanban},{id:"library",label:"Library",Icon:u.BookOpen},{id:"inbox",label:"Inbox",Icon:u.Bell},{id:"threads",label:"Threads",Icon:u.MessageSquare},{id:"settings",label:"Settings",Icon:u.Settings}];function $(){const e=(0,l.usePathname)(),t=(0,b.useMainTabNavigation)(),n=(0,b.mainTabForPath)(e),u=(0,c.useAtomValue)(w.selectedProjectPathAtom),x=(0,c.useAtomValue)((0,y.notificationUnreadCountFamily)(u??M))+(0,c.useAtomValue)(T.securityUnreadCountAtom);return(0,L.jsx)(o.default,{className:"flex-row border-t border-border",children:H.map(({id:e,label:l,Icon:c})=>{const u=e,p=n===u;return(0,L.jsxs)(s.default,{onPress:()=>t(u),className:"flex-1 items-center py-2.5 active:bg-accent/50",children:[(0,L.jsxs)(o.default,{children:[(0,L.jsx)(c,{size:15,color:"#a1a1aa"}),"inbox"===e&&x>0?(0,L.jsx)(o.default,{className:"absolute -right-2 -top-1 min-w-[16px] rounded-full bg-emerald-500 px-1",children:(0,L.jsx)(f.Text,{className:"text-center text-[8px] font-bold leading-none text-black",children:x>99?"99+":x})}):null]}),(0,L.jsx)(f.Text,{className:(0,S.cn)("mt-0.5 text-[10px]",p?"text-foreground":"text-muted-foreground"),children:l})]},e)})})}},2612,[8,111,249,140,116,291,691,695,2568,2388,2569,2570,2400,2592,2542,2571,2389,2547,2549,2580,2581,2613,2557,6]);
|
|
14436
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14437
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
14438
|
-
__d(function(g,r,i,a,m,
|
|
14439
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
14440
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.NotificationBellButton=function({compact:e=!1}){const j=(0,o.usePathname)(),y=(0,u.useMainTabNavigation)(),N=(0,s.useAtomValue)(x.selectedProjectPathAtom),v=(0,s.useAtomValue)((0,b.notificationUnreadCountFamily)(N??p)),A=(0,s.useAtomValue)(_.securityUnreadCountAtom),P=v+A,w=j.startsWith("/notifications");return(0,h.jsxs)(t.default,{accessibilityLabel:P>0?`${P} unread notifications`:"Notifications",onPress:()=>{w||y("inbox")},className:(0,f.cn)("items-center justify-center rounded-lg border border-border active:bg-accent",e?"h-9 w-9":"h-10 w-10",w?"bg-accent":"bg-transparent"),children:[(0,h.jsx)(c.Bell,{size:e?17:19,color:w?"#fafafa":"#a1a1aa"}),P>0?(0,h.jsx)(n.default,{className:"absolute -right-1 -top-1 min-w-[18px] rounded-full bg-emerald-500 px-1.5 py-0.5",children:(0,h.jsx)(l.Text,{className:"text-center text-[10px] font-bold leading-none text-black",children:(B=P,B>99?"99+":String(B))})}):null]});var B},r(d[0]);var t=e(r(d[1])),n=e(r(d[2])),o=r(d[3]),s=r(d[4]),c=r(d[5]),l=r(d[6]),u=r(d[7]),f=r(d[8]),b=r(d[9]),x=r(d[10]),_=r(d[11]),h=r(d[12]);const p="__aimux_no_selected_project__"},2617,[8,249,116,291,691,695,2388,2592,2389,2580,2549,2581,6]);
|
|
14441
|
-
__d(function(g,r,i,a,m,
|
|
14442
|
-
__d(function(g,r,i,a,m,
|
|
14443
|
-
__d(function(g,r,i,a,m,
|
|
14444
|
-
__d(function(g,r,i,a,m,
|
|
14445
|
-
__d(function(g,r,i,a,m,
|
|
14446
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
14447
|
-
__d(function(g,r,
|
|
14448
|
-
__d(function(g,r,i,a,m,
|
|
14449
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14450
|
-
__d(function(g,r,i,a,m,_e,_d){"use strict";
|
|
14451
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"
|
|
14452
|
-
__d(function(g,r,
|
|
14453
|
-
__d(function(g,r,i,a,m,
|
|
14454
|
-
__d(function(g,r,i,a,m,
|
|
14455
|
-
__d(function(
|
|
14456
|
-
__d(function(g,r,i,a,m,
|
|
14361
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.setApiRelay=function(t){s=t},Object.defineProperty(e,"ApiError",{enumerable:!0,get:function(){return o}}),e.getDaemonHealth=async function(n){return f()?u("GET","/health"):c(`${(0,t.getDaemonUrl)()}/health`,{method:"GET"},n)},e.listProjects=async function(n){if(f()){return(await u("GET","/projects")).projects}return(await c(`${(0,t.getDaemonUrl)()}/projects`,{method:"GET"},n)).projects},e.ensureProject=async function(n,s){return f()?u("POST","/projects/ensure",{projectRoot:n}):c(`${(0,t.getDaemonUrl)()}/projects/ensure`,{method:"POST",body:JSON.stringify({projectRoot:n})},s)},e.getProjectState=async function(t,n){return p(t,"GET","/state",n)},e.getAgentOutput=async function(t,n,s,o){const c=new URLSearchParams({sessionId:n});void 0!==s&&c.set("startLine",String(s));return p(t,"GET",`/agents/output?${c.toString()}`,o)},e.sendAgentInput=async function(t,n,s,o){return p(t,"POST","/agents/input",o,Object.assign({sessionId:n,text:s},o?.attachmentIds?.length?{attachmentIds:o.attachmentIds}:{}))},e.uploadImageAttachment=async function(t,n,s){return p(t,"POST","/attachments",s,{kind:"image",filename:n.filename,mimeType:n.mimeType,dataBase64:n.dataBase64})},e.createShareInvite=async function(t,n,s,o,u){return c(`${l()}/shares/invite`,{method:"POST",body:JSON.stringify({projectRoot:t,sessionId:n,email:s,serviceEndpoint:o})},u)},e.listShares=async function(t){return c(`${l()}/shares`,{},t)},e.getShare=async function(t,n,s){return c(`${l()}/shares/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,{},s)},e.leaveShare=async function(t,n,s){return c(`${l()}/shares/${encodeURIComponent(t)}/${encodeURIComponent(n)}/leave`,{method:"POST"},s)},e.removeShareParticipant=async function(t,n,s,o){return c(`${l()}/shares/${encodeURIComponent(t)}/${encodeURIComponent(n)}/participants/${encodeURIComponent(s)}`,{method:"DELETE"},o)},e.acceptShareInvite=async function(t,n,s){return c(`${l()}/shares/invite/${encodeURIComponent(t)}/${encodeURIComponent(n)}/accept`,{method:"POST"},s)},e.getPlan=async function(t,n,s){return p(t,"GET",`/plans/${encodeURIComponent(n)}`,s)},e.putPlan=async function(t,n,s,o){return p(t,"PUT",`/plans/${encodeURIComponent(n)}`,o,{content:s})},e.getDesktopState=async function(t,n){return p(t,"GET","/desktop-state",n)},e.listNotifications=async function(t,n){const s=new URLSearchParams;n?.unreadOnly&&s.set("unread","1");n?.sessionId&&s.set("sessionId",n.sessionId);const o=s.toString();return p(t,"GET","/notifications"+(o?`?${o}`:""),n)},e.markNotificationsRead=async function(t,n={},s){return p(t,"POST","/notifications/read",s,n)},e.clearNotifications=async function(t,n={},s){const o=await p(t,"POST","/notifications/clear",s,n);return{ok:o.ok,cleared:o.cleared??o.updated??0}},e.createService=async function(t,n,s){return p(t,"POST","/services/create",s,n)},e.stopService=async function(t,n,s){return p(t,"POST","/services/stop",s,{serviceId:n})},e.resumeService=async function(t,n,s){return p(t,"POST","/services/resume",s,{serviceId:n})},e.removeService=async function(t,n,s){return p(t,"POST","/services/remove",s,{serviceId:n})},e.createWorktree=async function(t,n,s){return p(t,"POST","/worktrees/create",s,{name:n})},e.removeWorktree=async function(t,n,s){return p(t,"POST","/worktrees/remove",s,{path:n})},e.graveyardWorktree=async function(t,n,s){return p(t,"POST","/worktrees/graveyard",s,{path:n})},e.listWorktrees=async function(t,n){return p(t,"GET","/worktrees",n)},e.listGraveyard=async function(t,n){return p(t,"GET","/graveyard",n)},e.resurrectGraveyardAgent=async function(t,n,s){return p(t,"POST","/graveyard/resurrect",s,{sessionId:n})},e.resurrectGraveyardWorktree=async function(t,n,s){return p(t,"POST","/graveyard/worktrees/resurrect",s,{path:n})},e.deleteGraveyardWorktree=async function(t,n,s){return p(t,"POST","/graveyard/worktrees/delete",s,{path:n})},e.listThreads=async function(t,n,s){const o=n?`/threads?session=${encodeURIComponent(n)}`:"/threads";return p(t,"GET",o,s)},e.listWorkflow=async function(t,n="user",s){return p(t,"GET",`/workflow?participant=${encodeURIComponent(n)}`,s)},e.listTasks=async function(t,n,s){const o=new URLSearchParams;n?.sessionId&&o.set("session",n.sessionId);n?.status&&o.set("status",n.status);const c=o.toString();return p(t,"GET","/tasks"+(c?`?${c}`:""),s)},e.listProjectLibrary=async function(t,n){return p(t,"GET","/library",n)},e.getTask=async function(t,n,s){return p(t,"GET",`/tasks/${encodeURIComponent(n)}`,s)};var t=r(d[0]),n=r(d[1]);let s=null;class o extends Error{constructor(t,n,s){super(s),this.status=t,this.body=n,this.name="ApiError"}}async function c(t,n,s){const c=new Headers(n.headers);s?.token&&c.set("Authorization",`Bearer ${s.token}`),c.has("content-type")||void 0===n.body||null===n.body||c.set("content-type","application/json");const u=await fetch(t,Object.assign({},n,{headers:c,signal:s?.signal}));if(!u.ok){const n=await u.json().catch(()=>null),s=n&&"object"==typeof n&&"error"in n?String(n.error):`HTTP ${u.status}`;throw new o(u.status,n,`${s} (${t})`)}return await u.json()}async function u(t,n,c){const u=s;if(!u)throw new o(0,null,"Relay not connected");const y=await u.request(t,n,c);if(y.status>=400){const t=y.body;throw new o(y.status,y.body,t?.error??`HTTP ${y.status}`)}return y.body}async function y(t,n,s,o){return u(n,`/proxy/${t.host}/${t.port}${s}`,o)}function f(){return null!==s||"relay"===n.env.AIMUX_CONNECTION_MODE}async function p(n,s,o,u,p){return f()?y(n,s,o,p):c(`${(0,t.getServiceUrl)(n)}${o}`,Object.assign({method:s},void 0!==p?{body:JSON.stringify(p)}:{}),u)}function l(){const t=n.env.AIMUX_RELAY_URL;if(!t)throw new o(0,null,"Relay sharing is not configured");return t.replace(/^ws/,"http").replace(/\/+$/,"")}},2538,[2396,2397]);
|
|
14362
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.pickImageAttachment=async function(){if("undefined"==typeof document)return null;const t=document.createElement("input");t.type="file",t.accept=n;const o=await new Promise(n=>{const o=o=>{t.removeEventListener("change",c),t.removeEventListener("cancel",l),n(o)},c=()=>o(t.files?.[0]??null),l=()=>o(null);t.addEventListener("change",c),t.addEventListener("cancel",l),t.click()});if(!o)return null;const c=await new Promise((n,t)=>{const c=new FileReader;c.onerror=()=>t(c.error??new Error("Could not read image.")),c.onload=()=>n(String(c.result)),c.readAsDataURL(o)}),l=c.indexOf(",");if(-1===l)throw new Error("Could not read image data.");return{id:`local_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`,filename:o.name||"image",mimeType:o.type||"image/png",dataBase64:c.slice(l+1),previewUri:c,sizeBytes:o.size}};const n="image/png,image/jpeg,image/webp,image/gif"},2539,[]);
|
|
14363
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.messageText=function(t){if(Array.isArray(t.parts)&&t.parts.length>0)return t.parts.filter(t=>"text"===t.type).map(t=>t.text).join("\n").trim();return String(t.text??"").trim()},e.messagesFromParsedAgentOutput=function(t){const n=Array.isArray(t?.blocks)?t.blocks:[],s=[],u={labelsByKey:new Map,nextIndex:1};return n.forEach((t,n)=>{const p=c(t),l=o(String(t.text??""));l&&("prompt"!==p&&"response"!==p||s.push({id:`parsed-${n}-${p}`,role:"prompt"===p?"user":"assistant",parts:f(l,u)}))}),s};const t=/^\s*-\s+(.+?)\s+\((image\/[^,]+),\s+\d+\s+bytes\):\s+(.+?\.aimux\/attachments\/(att_[A-Za-z0-9_-]+)\.[^\s/]+)\s*$/,n=/^(.*?)\s*Attached image files:\s*-\s+(.+?)\s+\((image\/[^,]+),\s+\d+\s+bytes\):\s+(.+?\.aimux\/attachments\/(att_[A-Za-z0-9_-]+)\.[^\s/]+)\s*$/,s=/^\s*(?:[\u2514\u23bfL]\s*)?(?:\.aimux\/attachments\/|.+?\.aimux\/attachments\/)(att_[A-Za-z0-9_-]+)\.[^\s/]+\s*$/;function c(t){return String(t.type??t.kind??"").trim()}function o(t){return t.replace(/\r/g,"").trim()}function u(t,n){const s=t.labelsByKey.get(n);if(s)return s;const c=`[image #${t.nextIndex}]`;return t.nextIndex+=1,t.labelsByKey.set(n,c),c}function p(t,n,s={}){return{type:"image_reference",label:u(t,n),attachmentId:n,filename:s.filename,mimeType:s.mimeType,contentUrl:`/attachments/${n}/content`}}function l(t,n){const s=n.join("\n").trim();s&&t.push({type:"text",text:s}),n.length=0}function f(c,o){const u=c.split("\n"),f=[],h=[];for(let c=0;c<u.length;c+=1){const y=u[c]??"",x=y.match(n);if(x?.[5]){const t=x[1]?.trim();t&&h.push(t),l(f,h),f.push(p(o,x[5],{filename:x[2],mimeType:x[3]}));continue}if(/^\s*Attached image files:\s*$/.test(y)){const n=[];let s=c+1;for(;s<u.length;){const c=(u[s]??"").match(t);if(!c)break;n.push(p(o,c[4]??c[3]??"",{filename:c[1],mimeType:c[2]})),s+=1}if(n.length>0){l(f,h),f.push(...n),c=s-1;continue}}if(/^\s*Viewed Image\s*$/i.test(y)){const t=c+1,n=(u[t]??"").match(s);if(n?.[1]){l(f,h),f.push(p(o,n[1])),c=t;continue}}h.push(y)}return l(f,h),f.length>0?f:[{type:"text",text:c}]}},2540,[]);
|
|
14364
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.trim();return n||null}Object.defineProperty(e,'__esModule',{value:!0}),e.normalizeComposerDraft=t,e.shouldSubmitComposerKey=function(t){return!("Enter"!==t.key||t.shiftKey||t.ctrlKey||t.metaKey||t.altKey)},e.getComposerSendText=function(n){return!n.sendBusy&&n.hasServiceEndpoint&&n.hasSessionId?t(n.draft):null}},2541,[]);
|
|
14365
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.singleRouteParam=function(t){return Array.isArray(t)?t[0]:t}},2542,[]);
|
|
14366
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.formatTerminalOutputForDisplay=function(t,{dividerWidth:n=o}={}){const s=t.split("\n"),u=[];let f=!1;for(const t of s){if(c(t)){if(f)continue;const o=t.match(/^\s*/)?.[0]??"";u.push(`${o}${t.trim().slice(0,n)}`),f=!0;continue}u.push(t),f=!1}return u.join("\n")};const t=24,n=.9,o=72,s=new Set(["\u2500","\u2501","\u2550","\u254c","\u254d","\u23af","-","_","="]);function c(o){const c=o.trim();if(c.length<t)return!1;let u=0,f=0;for(const t of Array.from(c))s.has(t)?u+=1:t.trim().length>0&&(f+=1);const l=u+f;return u>=t&&l>0&&u/l>=n}},2543,[]);
|
|
14367
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.useKeyboardState=n,_e.useKeyboardInset=function(){return n().inset},_e.useKeyboardVisible=function(){return n().visible};var t=r(d[0]);e(r(d[1])),e(r(d[2]));function n(){const[e,n]=(0,t.useState)({visible:!1,inset:0});return(0,t.useEffect)(()=>{},[]),e}r(d[3])},2544,[8,141,224,111]);
|
|
14368
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return Array.isArray(t)?t[0]:t}function n(n){const o=t(n);if(!o)return null;const c=o.trim();return c.length>0?c:null}function o(t){return n(t)}function c(){if("undefined"==typeof window)return null;try{return o(new URLSearchParams(window.location.search).get("project")??void 0)}catch{return null}}function u(t,n={}){return{pathname:t,params:Object.fromEntries(Object.entries(n).filter(t=>{const n=t[1];return"string"==typeof n&&n.trim().length>0}))}}function s(t){return t.startsWith("/topology")?"/topology":t.startsWith("/project")?"/project":t.startsWith("/library")?"/library":t.startsWith("/notifications")?"/notifications":""}Object.defineProperty(e,'__esModule',{value:!0}),e.firstSearchValue=t,e.cleanSearchValue=n,e.projectPathFromSearch=o,e.projectPathFromSearchOrLocation=function(t){return o(t)??c()},e.buildViewHref=u,e.mergeViewParams=function(t,c){return{project:void 0!==c.project?c.project:o(t.project),mode:void 0!==c.mode?c.mode:n(t.mode),lens:void 0!==c.lens?c.lens:n(t.lens),section:void 0!==c.section?c.section:n(t.section),document:void 0!==c.document?c.document:n(t.document),threadId:void 0!==c.threadId?c.threadId:n(t.threadId)}},e.detailHrefForPath=function(t,n,o,c){const l=s(t),f="agent"===n?`agent/${encodeURIComponent(o)}/chat`:`service/${encodeURIComponent(o)}`;return u(`${l}/${f}`,{project:c})},e.parentViewHrefForPath=function(t,n){return u(s(t)||"/",{project:n})}},2545,[]);
|
|
14369
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"outputBufferFamily",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"parsedOutputFamily",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"streamingFamily",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"streamTokenFamily",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"lastErrorFamily",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"ingestEventAtom",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);const o=(0,n.atomFamily)(n=>(0,t.atom)("")),s=(0,n.atomFamily)(n=>(0,t.atom)(null)),u=(0,n.atomFamily)(n=>(0,t.atom)(!1)),l=(0,n.atomFamily)(n=>(0,t.atom)(0)),c=(0,n.atomFamily)(n=>(0,t.atom)(null)),y=(0,t.atom)(null,(t,n,l)=>{switch(l.type){case"ready":return void(l.sessionId&&(n(u(l.sessionId),!1),n(c(l.sessionId),null)));case"agent_output":return n(o(l.sessionId),l.output),n(s(l.sessionId),l.parsed??null),void n(u(l.sessionId),!0);case"alert":if(!l.sessionId)return;return void("task_done"!==l.kind&&"task_failed"!==l.kind||n(u(l.sessionId),!1));case"error":return n(c(l.sessionId),l.error),void n(u(l.sessionId),!1)}})},2546,[691,2547]);
|
|
14370
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},2547,[2548,2549]);
|
|
14371
|
+
__d(function(g,_r,_i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]),n=Symbol('');function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function r(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=i(t))||n){e&&(t=e);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(){return o=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},o.apply(null,arguments)}function i(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}var a=function(t,n,e){return(n.has(e)?n:n.set(e,t())).get(e)},u=new WeakMap;var f=new WeakSet,c=function(t){if('object'!=typeof t||null===t)return t;Object.freeze(t);for(var n,e=r(Object.getOwnPropertyNames(t));!(n=e()).done;){var o=n.value;c(t[o])}return t};function l(t){if(f.has(t))return t;f.add(t);var n=t.read;if(t.read=function(t,e){return c(n.call(this,t,e))},'write'in t){var e=t.write;t.write=function(n,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return e.call.apply(e,[this,n,function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return e[0]===t&&(e[1]=c(e[1])),r.apply(void 0,e)}].concat(i))}}return t}var v=function(t,n,e){return(n.has(e)?n:n.set(e,t())).get(e)},s=new WeakMap,d={},m=function(t){return!!t.write};var h=function(t){return'function'==typeof(null==t?void 0:t.then)};function y(t,n){var e,r;void 0===t&&(t=function(){try{return window.localStorage}catch(t){return}});var o,i={getItem:function(o,i){var a,u,f=function(t){if(e!==(t=t||'')){try{r=JSON.parse(t,null==n?void 0:n.reviver)}catch(t){return i}e=t}return r},c=null!=(a=null==(u=t())?void 0:u.getItem(o))?a:null;return h(c)?c.then(f):f(c)},setItem:function(e,r){var o;return null==(o=t())?void 0:o.setItem(e,JSON.stringify(r,null==n?void 0:n.replacer))},removeItem:function(n){var e;return null==(e=t())?void 0:e.removeItem(n)}};try{var a;o=null==(a=t())?void 0:a.subscribe}catch(t){}return!o&&'undefined'!=typeof window&&'function'==typeof window.addEventListener&&window.Storage&&(o=function(n,e){if(!(t()instanceof window.Storage))return function(){};var r=function(r){r.storageArea===t()&&r.key===n&&e(r.newValue)};return window.addEventListener('storage',r),function(){window.removeEventListener('storage',r)}}),o&&(i.subscribe=(function(t){return function(n,e,r){return t(n,function(t){var n;try{n=JSON.parse(t||'')}catch(t){n=r}e(n)})}})(o)),i}var b=y();var p=function(t,n,e){return(n.has(e)?n:n.set(e,t())).get(e)},w=new WeakMap,O=function(){};function k(n,e){return void 0===e&&(e=O),r=function(){var r=new WeakMap,o=new WeakMap,i=t.atom(0),a=t.atom([]);a.INTERNAL_onInit=function(t){t.set(a,[function(){return t.set(i,function(t){return t+1})}])};var u=t.atom(function(t){var f,c;t(i);try{c=t(u)}catch(t){}var l,v=t(n);if('function'!=typeof(null==(l=v)?void 0:l.then))return{v:v};if(v!==(null==(f=c)?void 0:f.p)&&v.then(function(n){o.set(v,n),(0,t(a)[0])()},function(n){r.set(v,n),(0,t(a)[0])()}),r.has(v))throw r.get(v);return o.has(v)?{p:v,v:o.get(v)}:c&&'v'in c?{p:v,f:e(c.v),v:c.v}:{p:v,f:e()}});return u.init=void 0,t.atom(function(t){var n=t(u);return'f'in n?n.f:n.v},function(t,e){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return e.apply(void 0,[n].concat(o))})},o=e,i=p(function(){return new WeakMap},w,n),p(r,i,o);var r,o,i}var S=new WeakMap;_e.RESET=n,_e.atomFamily=function(t,n){var e=null,o=new Map,i=new Set,a=function(i){var f;if(void 0===n)f=o.get(i);else for(var c,l=r(o);!(c=l()).done;){var v=c.value,s=v[0],d=v[1];if(n(s,i)){f=d;break}}if(void 0!==f){if(null==e||!e(f[1],i))return f[0];a.remove(i)}var m=t(i);return o.set(i,[m,Date.now()]),u('CREATE',i,m),m},u=function(t,n,e){for(var o,a=r(i);!(o=a()).done;){(0,o.value)({type:t,param:n,atom:e})}};return a.unstable_listen=function(t){return i.add(t),function(){i.delete(t)}},a.getParams=function(){return o.keys()},a.remove=function(t){if(void 0===n){if(!o.has(t))return;var e=o.get(t)[0];o.delete(t),u('REMOVE',t,e)}else for(var i,a=r(o);!(i=a()).done;){var f=i.value,c=f[0],l=f[1][0];if(n(c,t)){o.delete(c),u('REMOVE',c,l);break}}},a.setShouldRemove=function(t){if(e=t)for(var n,i=r(o);!(n=i()).done;){var a=n.value,f=a[0],c=a[1],l=c[0],v=c[1];e(v,f)&&(o.delete(f),u('REMOVE',f,l))}},a},_e.atomWithDefault=function(e){var r=Symbol(),o=t.atom(r),i=t.atom(function(t,n){var i=t(o);return i!==r?i:e(t,n)},function(t,e,a){var u='function'==typeof a?a(t(i)):a;e(o,u===n?r:u)});return i},_e.atomWithLazy=function(n){var e=t.atom(void 0);return delete e.init,Object.defineProperty(e,'init',{get:function(){return n()}}),e},_e.atomWithObservable=function(n,e){var r=function(t){if('e'in t)throw t.e;return t.d},o=t.atom(function(r){var o,i,a,u,f,c,l,v=n(r),s=(null==(o=(i=v)[Symbol.observable])?void 0:o.call(i))||v,d=function(){return new Promise(function(t){a=t})},m=e&&'initialValue'in e?{d:'function'==typeof e.initialValue?e.initialValue():e.initialValue}:d(),h=function(t){f=t,null==a||a(t),null==u||u(t)},y=function(){return!u},b=function(){c&&(c.unsubscribe(),c=void 0)},p=function(){c&&(clearTimeout(l),c.unsubscribe()),c=s.subscribe({next:function(t){return h({d:t})},error:function(t){return h({e:t})},complete:function(){}}),y()&&null!=e&&e.unstable_timeout&&(l=setTimeout(b,e.unstable_timeout))};p();var w=t.atom(f||m);return w.onMount=function(t){return u=t,f&&t(f),c?clearTimeout(l):p(),function(){u=void 0,null!=e&&e.unstable_timeout?l=setTimeout(b,e.unstable_timeout):b()}},[w,v,d,p,y]});return t.atom(function(t){var n,e=t(o),i=t(e[0]);return'function'==typeof(null==(n=i)?void 0:n.then)?i.then(r):r(i)},function(t,n,e){var r=t(o),i=r[0],a=r[1],u=r[2],f=r[3],c=r[4];if(!('next'in a))throw new Error('observable is not subject');c()&&(n(i,u()),f()),a.next(e)})},_e.atomWithReducer=function(n,e){return t.atom(n,function(t,n,r){n(this,e(t(this),r))})},_e.atomWithRefresh=function(n,e){var r=t.atom(0);return t.atom(function(t,e){return t(r),n(t,e)},function(t,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];if(0===i.length)n(r,function(t){return t+1});else if(e)return e.apply(void 0,[t,n].concat(i))})},_e.atomWithReset=function(e){var r=t.atom(e,function(t,o,i){var a='function'==typeof i?i(t(r)):i;o(r,a===n?e:a)});return r},_e.atomWithStorage=function(e,r,o,i){void 0===o&&(o=b);var a=null==i?void 0:i.getOnInit,u=t.atom(a?o.getItem(e,r):r);return u.onMount=function(t){return t(o.getItem(e,r)),null==o.subscribe?void 0:o.subscribe(e,t,r)},t.atom(function(t){return t(u)},function(t,i,a){var f='function'==typeof a?a(t(u)):a;return f===n?(i(u,r),o.removeItem(e)):h(f)?f.then(function(t){return i(u,t),o.setItem(e,t)}):(i(u,f),o.setItem(e,f))})},_e.createJSONStorage=y,_e.freezeAtom=l,_e.freezeAtomCreator=function(t){return function(){return l(t.apply(void 0,arguments))}},_e.loadable=function(n){return e=function(){var e={state:'loading'},r=k(n,function(){return e});return t.atom(function(t){try{var n=t(r);return n===e?e:{state:'hasData',data:n}}catch(t){return{state:'hasError',error:t}}})},r=n,(S.has(r)?S:S.set(r,e())).get(r);var e,r},_e.selectAtom=function(n,e,r){return void 0===r&&(r=Object.is),o=function(){var o=Symbol(),i=function(t){var n=t[0],i=t[1];if(i===o)return e(n);var a=e(n,i);return r(i,a)?i:a},a=t.atom(function(t){var e=t(a),r=t(n);return i([r,e])});return a.init=o,a},i=e,f=r,c=a(function(){return new WeakMap},u,n),l=a(function(){return new WeakMap},c,i),a(o,l,f);var o,i,f,c,l},_e.splitAtom=function(n,e){return r=function(){var r=new WeakMap,o=function(a,u){var f=r.get(a);if(f)return f;var c=u&&r.get(u),l=[],v=[];return a.forEach(function(r,u){var f=e?e(r):u;v[u]=f;var s=c&&c.atomList[c.keyList.indexOf(f)];if(s)l[u]=s;else{var d=function(t){var e=t(i),r=t(n),u=o(r,null==e?void 0:e.arr).keyList.indexOf(f);if(u<0||u>=r.length){var c=a[o(a).keyList.indexOf(f)];if(c)return c;throw new Error('splitAtom: index out of bounds for read')}return r[u]};l[u]=m(n)?t.atom(d,function(t,e,r){var a=t(i),u=t(n),c=o(u,null==a?void 0:a.arr).keyList.indexOf(f);if(c<0||c>=u.length)throw new Error('splitAtom: index out of bounds for write');var l='function'==typeof r?r(u[c]):r;Object.is(u[c],l)||e(n,[].concat(u.slice(0,c),[l],u.slice(c+1)))}):t.atom(d)}}),f=c&&c.keyList.length===v.length&&c.keyList.every(function(t,n){return t===v[n]})?c:{arr:a,atomList:l,keyList:v},r.set(a,f),f},i=t.atom(function(t){var e=t(i),r=t(n);return o(r,null==e?void 0:e.arr)});i.init=void 0;var a=m(n)?t.atom(function(t){return t(i).atomList},function(t,e,r){switch(r.type){case'remove':var o=t(a).indexOf(r.atom);if(o>=0){var i=t(n);e(n,[].concat(i.slice(0,o),i.slice(o+1)))}break;case'insert':var u=r.before?t(a).indexOf(r.before):t(a).length;if(u>=0){var f=t(n);e(n,[].concat(f.slice(0,u),[r.value],f.slice(u)))}break;case'move':var c=t(a).indexOf(r.atom),l=r.before?t(a).indexOf(r.before):t(a).length;if(c>=0&&l>=0){var v=t(n);e(n,c<l?[].concat(v.slice(0,c),v.slice(c+1,l),[v[c]],v.slice(l)):[].concat(v.slice(0,l),[v[c]],v.slice(l,c),v.slice(c+1)))}}}):t.atom(function(t){return t(i).atomList});return a},o=e||d,i=v(function(){return new WeakMap},s,n),v(r,i,o);var r,o,i},_e.unstable_withStorageValidator=function(t){return function(n){return o({},n,{getItem:function(e,r){var o=function(n){return t(n)?n:r},i=n.getItem(e,r);return h(i)?i.then(o):o(i)}})}},_e.unwrap=k},2548,[692]);
|
|
14372
|
+
__d(function(g,_r,i,_a,m,_e,d){'use strict';var t=_r(d[0]),r=_r(d[1]),e=_r(d[2]),n=_r(d[3]);function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function a(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=u(t))||r){e&&(t=e);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,r){if(t){if("string"==typeof t)return o(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,r):void 0}}var c=new WeakMap;var l=function(t){var r=c.get(t);return r||(r=new WeakSet,c.set(t,r)),r};_e.useAtomCallback=function(e,o){var a=t.useMemo(function(){return n.atom(null,function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return e.apply(void 0,[t,r].concat(o))})},[e]);return r.useSetAtom(a,o)},_e.useHydrateAtoms=function(t,e){for(var n,u=r.useStore(e),c=l(u),s=a(t);!(n=s()).done;){var f=n.value,v=f[0],y=o(f).slice(1);(!c.has(v)||null!=e&&e.dangerouslyForceHydrate)&&(c.add(v),u.set.apply(u,[v].concat(y)))}},_e.useReducerAtom=function(e,n,o){var a=r.useAtom(e,o),u=a[0],c=a[1];return[u,t.useCallback(function(t){c(function(r){return n(r,t)})},[c,n])]},_e.useResetAtom=function(n,o){var a=r.useSetAtom(n,o);return t.useCallback(function(){return a(e.RESET)},[a])}},2549,[8,694,2548,692]);
|
|
14373
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"desktopStateFamily",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"desktopStateErrorFamily",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"desktopStateRefreshNonceAtom",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"kickDesktopStateRefreshAtom",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"worktreeGroupsFamily",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const u=(0,n.atomFamily)(n=>(0,t.atom)(null)),l=(0,n.atomFamily)(n=>(0,t.atom)(null)),c=(0,t.atom)(0),f=(0,t.atom)(null,(t,n)=>{n(c,t(c)+1)}),y=(0,n.atomFamily)(n=>(0,t.atom)(t=>{const l=t(u(n));return l?(0,o.groupByWorktree)(l):[]}))},2550,[691,2547,2551]);
|
|
14374
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.groupByWorktree=function(t){const n=new Map,o=t.mainCheckoutPath,c={key:s,name:t.mainCheckoutInfo?.name??"Main Checkout",branch:t.mainCheckoutInfo?.branch??"",path:o??null,isMainCheckout:!0,sessions:[],services:[]};n.set(s,c);for(const s of t.worktrees)o&&s.path===o||n.set(s.path,{key:s.path,name:s.name,branch:s.branch,path:s.path,isMainCheckout:!1,sessions:[],services:[]});function h(s){if(!s)return c;if(o&&s===o)return c;const t=n.get(s);if(t)return t;const h={key:s,name:s.split(/[\\/]/).pop()??s,branch:"",path:s,isMainCheckout:!1,sessions:[],services:[]};return n.set(s,h),h}for(const s of t.sessions)h(s.worktreePath).sessions.push(s);for(const s of t.services)h(s.worktreePath).services.push(s);const u=[];u.push(c);for(const s of t.worktrees){if(o&&s.path===o)continue;const t=n.get(s.path);t&&u.push(t)}for(const s of n.values())u.includes(s)||u.push(s);return u};const s="__main_checkout__"},2551,[]);
|
|
14375
|
+
__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"projectsAtom",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"selectedProjectPathAtom",{enumerable:!0,get:function(){return a}}),Object.defineProperty(e,"selectedSessionIdAtom",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"lastSyncAtAtom",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"selectedProjectAtom",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"selectedProjectEndpointAtom",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"selectedSessionAtom",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"reconcileProjectsAtom",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"selectProjectAtom",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),l=r(d[3]),c=r(d[4]);const u=(0,t.atom)([]),a=(0,n.atomWithStorage)("aimux-selected-project",null,(0,o.createSsrSafeJsonStorage)(),{getOnInit:!0}),s=(0,t.atom)(null),f=(0,t.atom)(null),p=(0,t.atom)(t=>{const n=t(a);return n?t(u).find(t=>t.path===n)??null:null}),b=(0,t.atom)(t=>{const n=t(p);return(0,l.getProjectServiceEndpoint)(n)}),j=(0,t.atom)(t=>{const n=t(p),o=t(s);return n&&o?t((0,c.desktopStateFamily)(n.path))?.sessions.find(t=>t.id===o)??null:null}),P=(0,t.atom)(null,(t,n,o)=>{const l=[...o].sort((t,n)=>t.name.localeCompare(n.name));let c=t(a),p=t(s);const b=!!c&&l.some(t=>t.path===c);!c&&l.length>0?c=l[0].path:c&&!b&&(c=l[0]?.path??null,p=null),n(u,l),n(a,c),n(s,p),n(f,Date.now())}),y=(0,t.atom)(null,(t,n,o)=>{n(a,o),n(s,null)})},2552,[691,2547,2553,2560,2550]);
|
|
14376
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.createSsrSafeJsonStorage=c,_e.createSsrSafeMergingJsonStorage=function(e){const t=c();return Object.assign({},t,{getItem:async(n,o)=>{if(u())return o;const s=await t.getItem(n,o);return Object.assign({},e,s)}})};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const s={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function u(){return"undefined"==typeof window}function c(){return(0,o.createJSONStorage)(()=>u()?s:n.default)}},2553,[2554,2547]);
|
|
14377
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useAsyncStorage",{enumerable:!0,get:function(){return n.useAsyncStorage}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),o=u.default},2554,[2555,2559]);
|
|
14378
|
+
__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return i}});var e,t=r(d[0]);const o=((e=t)&&e.__esModule?e:{default:e}).default.bind({concatArrays:!0,ignoreUndefined:!0});function n(e,t){const n=window.localStorage.getItem(e);if(n){const l=JSON.parse(n),c=JSON.parse(t),s=JSON.stringify(o(l,c));window.localStorage.setItem(e,s)}else window.localStorage.setItem(e,t)}function l(e,t){return new Promise((o,n)=>{try{const n=e();t?.(null,n),o(n)}catch(e){t?.(e),n(e)}})}function c(e,t,o){return Promise.all(e).then(e=>{const n=o?.(e)??null;return t?.(null,n),Promise.resolve(n)},e=>(t?.(e),Promise.reject(e)))}const s={getItem:(e,t)=>l(()=>window.localStorage.getItem(e),t),setItem:(e,t,o)=>l(()=>window.localStorage.setItem(e,t),o),removeItem:(e,t)=>l(()=>window.localStorage.removeItem(e),t),mergeItem:(e,t,o)=>l(()=>n(e,t),o),clear:e=>l(()=>window.localStorage.clear(),e),getAllKeys:e=>l(()=>{const e=window.localStorage.length,t=[];for(let o=0;o<e;o+=1){const e=window.localStorage.key(o)||"";t.push(e)}return t},e),flushGetRequests:()=>{},multiGet:(e,t)=>c(e.map(e=>s.getItem(e)),t,t=>t.map((t,o)=>[e[o],t])),multiSet:(e,t)=>c(e.map(e=>s.setItem(e[0],e[1])),t),multiRemove:(e,t)=>c(e.map(e=>s.removeItem(e)),t),multiMerge:(e,t)=>c(e.map(e=>s.mergeItem(e[0],e[1])),t)};var i=s},2555,[2556]);
|
|
14379
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default},2556,[2557]);
|
|
14380
|
+
__d(function(g,r,i,a,m,e,d){'use strict';const t=r(d[0]),{hasOwnProperty:n}=Object.prototype,{propertyIsEnumerable:o}=Object,c=(t,n,o)=>Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0}),s=this,f={concatArrays:!1,ignoreUndefined:!1},l=t=>{const c=[];for(const o in t)n.call(t,o)&&c.push(o);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(t);for(const s of n)o.call(t,s)&&c.push(s)}return c};function u(n){return Array.isArray(n)?y(n):t(n)?p(n):n}function y(t){const n=t.slice(0,0);return l(t).forEach(o=>{c(n,o,u(t[o]))}),n}function p(t){const n=null===Object.getPrototypeOf(t)?Object.create(null):{};return l(t).forEach(o=>{c(n,o,u(t[o]))}),n}const b=(t,n,o,s)=>(o.forEach(o=>{void 0===n[o]&&s.ignoreUndefined||(o in t&&t[o]!==Object.getPrototypeOf(t)?c(t,o,h(t[o],n[o],s)):c(t,o,u(n[o])))}),t),O=(t,o,s)=>{let f=t.slice(0,0),y=0;return[t,o].forEach(o=>{const p=[];for(let s=0;s<o.length;s++)n.call(o,s)&&(p.push(String(s)),c(f,y++,o===t?o[s]:u(o[s])));f=b(f,o,l(o).filter(t=>!p.includes(t)),s)}),f};function h(n,o,c){return c.concatArrays&&Array.isArray(n)&&Array.isArray(o)?O(n,o,c):t(o)&&t(n)?b(n,o,l(o),c):u(o)}m.exports=function(...n){const o=h(u(f),this!==s&&this||{},f);let c={_:{}};for(const s of n)if(void 0!==s){if(!t(s))throw new TypeError('`'+s+'` is not an Option Object');c=h(c,{_:s},o)}return c._}},2557,[2558]);
|
|
14381
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=t=>{if('[object Object]'!==Object.prototype.toString.call(t))return!1;const o=Object.getPrototypeOf(t);return null===o||o===Object.prototype}},2558,[]);
|
|
14382
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useAsyncStorage=function(e){return{getItem:(...t)=>u.default.getItem(e,...t),setItem:(...t)=>u.default.setItem(e,...t),mergeItem:(...t)=>u.default.mergeItem(e,...t),removeItem:(...t)=>u.default.removeItem(e,...t)}};var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2559,[2555]);
|
|
14383
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return/ECONNREFUSED|Failed to fetch|Network request failed|Load failed/i.test(t)}Object.defineProperty(e,'__esModule',{value:!0}),e.getProjectServiceEndpoint=function(t){return t?.serviceAlive?t.serviceEndpoint:null},e.formatProjectEndpointLabel=function(t,n){return t?"relay"===n?"via relay":`${t.host}:${t.port}`:"host offline"},e.projectStateErrorCopy=function(n){if(t(n))return{title:"Project host not running.",detail:"Start the host to see worktrees, agents, and services for this project."};if(/pending security approval/i.test(n))return{title:"Remote client pending approval.",detail:"Open Inbox and approve this device, then refresh project state."};if(/relay not connected/i.test(n))return{title:"Relay not connected.",detail:"Reconnect the remote session, then refresh project state."};return{title:"Could not load project state.",detail:n}},e.isProjectHostOfflineError=t},2560,[]);
|
|
14384
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"relayStatusAtom",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"relayConfiguredAtom",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=(0,t.atom)("disconnected"),o=(0,t.atom)(!1)},2561,[691]);
|
|
14385
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultSettings",{enumerable:!0,get:function(){return s}}),e.normalizeAppSettings=u,Object.defineProperty(e,"settingsAtom",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"themePreferenceAtom",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"chatTerminalSplitAtom",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"notificationSettingsAtom",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"activeSharedSessionAtom",{enumerable:!0,get:function(){return I}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);const s=Object.freeze({theme:"dark",chatTerminalSplit:!1,notifications:c.defaultNotificationSettings,activeShare:null});function u(t){return Object.assign({},s,t,{notifications:(0,c.normalizeNotificationSettings)(t.notifications),activeShare:j(t.activeShare)})}const f=(0,o.createSsrSafeMergingJsonStorage)(s),p=(0,t.atomWithStorage)("aimux-settings",s,Object.assign({},f,{getItem:async(t,n)=>u(await f.getItem(t,n))}),{getOnInit:!0}),l=(0,t.unwrap)(p,t=>t??s),S=(0,n.focusAtom)(l,t=>t.prop("theme")),b=(0,n.focusAtom)(l,t=>t.prop("chatTerminalSplit")),h=(0,n.focusAtom)(l,t=>t.prop("notifications")),I=(0,n.focusAtom)(l,t=>t.prop("activeShare"));function j(t){if(!(t?.shareId&&t.ownerUserId&&t.projectRoot&&t.sessionId))return null;const n=t.serviceEndpoint?.host?.trim(),o=Number(t.serviceEndpoint?.port);return!n||!Number.isInteger(o)||o<=0||o>65535?null:{shareId:t.shareId,ownerUserId:t.ownerUserId,projectRoot:t.projectRoot,sessionId:t.sessionId,serviceEndpoint:{host:n,port:o},acceptedAt:t.acceptedAt||new Date(0).toISOString()}}},2562,[2547,2563,2553,2568]);
|
|
14386
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"focusAtom",{enumerable:!0,get:function(){return t.focusAtom}});var t=r(d[0])},2563,[2564]);
|
|
14387
|
+
__d(function(g,r,i,a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.focusAtom=function(n,o){return c(()=>{const c=o(t.optic());return(0,e.atom)(e=>{const t=e(n);return t instanceof Promise?t.then(e=>s(c,e)):s(c,t)},(e,o,s)=>{const f=u(s)?t.modify(c)(s):t.set(c)(s),p=e(n);return o(n,p instanceof Promise?p.then(f):f(p))})},n,o)};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1]));const n=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),o=new WeakMap,c=(e,t,c)=>{const u=n(()=>new WeakMap,o,t);return n(e,u,c)},u=e=>'function'==typeof e;const s=(e,n)=>{if('Traversal'===e._tag){return t.collect(e)(n)}if('Prism'===e._tag){return t.preview(e)(n)}return t.get(e)(n)}},2564,[692,2565]);
|
|
14388
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"pipe",{enumerable:!0,get:function(){return t.pipe}}),_e.compose=function(e,t){return e.compose(t)},_e.optic=function(){return e.optic},_e.optic_=function(){return e.optic},_e.get=function(t){return n=>e.get(t._ref,n)},_e.preview=function(t){return n=>e.preview(t._ref,n)},_e.collect=function(t){return n=>e.collect(t._ref,n)},_e.modify=function(t){return n=>o=>e.modify(t._ref,n,o)},_e.set=function(t){return n=>o=>e.set(t._ref,n,o)},_e.remove=function(t){return n=>e.remove(t._ref,n)};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1])},2565,[2566,2567]);
|
|
14389
|
+
__d(function(_g2,r,_i,_a2,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"id",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"compositionType",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"eq",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"iso",{enumerable:!0,get:function(){return g}}),Object.defineProperty(_e,"lens",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"elems",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"to",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"modify",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"set",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"remove",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"get",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"preview",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"collect",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"indexed",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"prop",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"pick",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"nth",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"when",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"at",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"atKey",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"optional",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"guard",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"find",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"filter",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"valueOr",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"partsOf",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"reread",{enumerable:!0,get:function(){return J}}),Object.defineProperty(_e,"rewrite",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"prependTo",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"appendTo",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"chars",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"words",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"Optic",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"optic",{enumerable:!0,get:function(){return Y}});var e=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const t=e=>e,n=e=>({_tag:'Left',value:e}),o=e=>({_tag:'Right',value:e}),i={dimap:(e,t,n)=>o=>t(n(e(o))),first:e=>([t,n])=>[e(t),n],right:e=>t=>'Left'===t._tag?t:o(e(t.value)),wander:e=>t=>t.map(e)},u={empty:()=>{},foldMap:(e,t)=>{for(let n=0;n<t.length;n++){const o=e(t[n]);if(null!=o)return o}}},f={empty:()=>[],foldMap:(e,t)=>{let n=[];return t.forEach(t=>{n=n.concat(e(t))}),n}},s=e=>({dimap:(e,t,n)=>t=>n(e(t)),first:e=>([t,n])=>e(t),right:t=>n=>'Left'===n._tag?e.empty():t(n.value),wander:t=>n=>e.foldMap(t,n)}),l={Equivalence:{Equivalence:'Equivalence',Iso:'Iso',Lens:'Lens',Prism:'Prism',Traversal:'Traversal',Getter:'Getter',AffineFold:'AffineFold',Fold:'Fold',Setter:'Setter'},Iso:{Equivalence:'Iso',Iso:'Iso',Lens:'Lens',Prism:'Prism',Traversal:'Traversal',Getter:'Getter',AffineFold:'AffineFold',Fold:'Fold',Setter:'Setter'},Lens:{Equivalence:'Lens',Iso:'Lens',Lens:'Lens',Prism:'Prism',Traversal:'Traversal',Getter:'Getter',AffineFold:'AffineFold',Fold:'Fold',Setter:'Setter'},Prism:{Equivalence:'Prism',Iso:'Prism',Lens:'Prism',Prism:'Prism',Traversal:'Traversal',Getter:'AffineFold',AffineFold:'AffineFold',Fold:'Fold',Setter:'Setter'},Traversal:{Equivalence:'Traversal',Iso:'Traversal',Lens:'Traversal',Prism:'Traversal',Traversal:'Traversal',Getter:'Fold',AffineFold:'Fold',Fold:'Fold',Setter:'Setter'},Getter:{Equivalence:'Getter',Iso:'Getter',Lens:'Getter',Prism:'AffineFold',Traversal:'Fold',Getter:'Getter',AffineFold:'AffineFold',Fold:'Fold',Setter:void 0},AffineFold:{Equivalence:'AffineFold',Iso:'AffineFold',Lens:'AffineFold',Prism:'AffineFold',Traversal:'Fold',Getter:'AffineFold',AffineFold:'AffineFold',Fold:'Fold',Setter:void 0},Fold:{Equivalence:'Fold',Iso:'Fold',Lens:'Fold',Prism:'Fold',Traversal:'Fold',Getter:'Fold',AffineFold:'Fold',Fold:'Fold',Setter:void 0},Setter:{Equivalence:void 0,Iso:void 0,Lens:void 0,Prism:void 0,Traversal:void 0,Getter:void 0,AffineFold:void 0,Fold:void 0,Setter:void 0}},a=(e,t)=>{const n=t;return n._tag=e,n},c=e=>(e._removable=!0,e);function b(e,t,n){if(2===arguments.length){const n=(n,o)=>e(n,t(n,o));return n._tag=l[e._tag][t._tag],n._removable=t._removable||!1,n}{const o=l[e._tag][t._tag],i=(o,i)=>e(o,t(o,n(o,i)));return i._tag=l[o][n._tag],i._removable=n._removable||!1,i}}const p=a('Equivalence',(e,t)=>t),g=(e,t)=>a('Iso',(n,o)=>n.dimap(e,t,o)),v=(e,t)=>a('Lens',(n,o)=>n.dimap(t=>[e(t),t],t,n.first(o))),_=(e,n)=>a('Prism',(o,i)=>o.dimap(e,e=>{return o=t,i=n,'Left'===(u=e)._tag?o(u.value):i(u.value);var o,i,u},o.right(i))),h=a('Traversal',(e,n)=>e.dimap(t,t,e.wander(n))),y=e=>a('Getter',(n,o)=>n.dimap(e,t,o)),O=(e,t,n)=>e(i,t)(n),P=(e,t,n)=>e(i,()=>t)(n),F=(e,t)=>P(e,M,t),j=(e,n)=>e(s({}),t)(n),w=(e,n)=>e(s(u),t)(n),T=(e,t)=>e(s(f),e=>[e])(t),A=g(e=>e.map((e,t)=>[t,e]),e=>{const t=[...e].sort((e,t)=>e[0]-t[0]),n=[];for(let e=0;e<t.length;++e)e!==t.length-1&&t[e][0]===t[e+1][0]||n.push(t[e][1]);return n}),L=e=>v(t=>t[e],([t,n])=>Object.assign(Object.assign({},n),{[e]:t})),S=e=>v(t=>{const n={};for(const o of e)n[o]=t[o];return n},([t,n])=>{const o=Object.assign({},n);for(const t of e)delete o[t];return Object.assign(o,t)}),G=e=>v(t=>t[e],([t,n])=>{const o=n.slice();return o[e]=t,o}),I=G(0),E=e=>_(t=>e(t)?o(t):n(t),t),q=Symbol('__no_match__'),x=E(e=>e!==q),M=Symbol('__remove_me__'),k=e=>c(b(v(t=>0<=e&&e<t.length?t[e]:q,([t,n])=>{if(t===q)return n;if(t===M)return'string'==typeof n?n.substring(0,e)+n.substring(e+1):[...n.slice(0,e),...n.slice(e+1)];if('string'==typeof n)return 0===e?t+n.substring(1):e===n.length?n.substring(0,e-1)+t:n.substring(0,e)+t+n.substring(e+1);{const o=n.slice();return o[e]=t,o}}),x)),K=t=>c(b(v(e=>{const n=e[t];return void 0!==n?n:q},([n,o])=>{if(n===q)return o;if(n===M){const n=o,i=t;n[i];return e(n,["symbol"==typeof i?i:i+""])}return Object.assign(Object.assign({},o),{[t]:n})}),x)),R=_(e=>void 0===e?n(void 0):o(e),t),z=e=>_(t=>e(t)?o(t):n(t),t),B=e=>c(b(v(t=>{const n=t.findIndex(e);return-1===n?[q,-1]:[t[n],n]},([[e,t],n])=>{if(e===q)return n;if(e===M)return[...n.slice(0,t),...n.slice(t+1)];const o=n.slice();return o[t]=e,o}),I,x)),C=e=>b(v(t=>{const n=t.map((t,n)=>e(t)?n:null).filter(e=>null!=e);return[n.map(e=>t[e]),n]},([[e,t],n])=>{const o=n.length,i=e.length;let u=0,f=0,s=0;const l=[];for(;u<o;)t[f]===u?(++f,s<i&&(l.push(e[s]),++s)):l.push(n[u]),++u;for(;s<i;)l.push(e[s++]);return l}),I),D=e=>v(t=>void 0===t?e:t,([e,t])=>e),H=e=>b(v(t=>{const n=T(e,t);return[n,n.length]},([[t,n],o])=>{if(t.length!==n)throw new Error('cannot add/remove elements through partsOf');let i=0;return O(e,()=>t[i++],o)}),I),J=e=>v(t=>e(t),([e,t])=>e),N=e=>v(e=>e,([t,n])=>e(t)),Q=v(e=>{},([e,t])=>void 0===e?t:[e,...t]),U=v(e=>{},([e,t])=>void 0===e?t:[...t,e]),V=b(g(e=>e.split(''),e=>e.join('')),h),W=b(g(e=>e.split(/\b/),e=>e.join('')),h,E(e=>!/\s+/.test(e)));class X{constructor(e){this._ref=e}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(e){return new X(b(this._ref,e._ref))}iso(e,t){return new X(b(this._ref,g(e,t)))}lens(e,t){return new X(b(this._ref,v(e,([e,n])=>t(n,e))))}indexed(){return new X(b(this._ref,A))}prop(e){return new X(b(this._ref,L(e)))}path(...e){return 1===e.length&&(e=e[0].split('.')),new X(e.reduce((e,t)=>b(e,L(t)),this._ref))}pick(e){return new X(b(this._ref,S(e)))}nth(e){return new X(b(this._ref,G(e)))}filter(e){return new X(b(this._ref,C(e)))}valueOr(e){return new X(b(this._ref,D(e)))}partsOf(e){const t='function'==typeof e?e(Y):e;return new X(b(this._ref,H(t._ref)))}reread(e){return new X(b(this._ref,J(e)))}rewrite(e){return new X(b(this._ref,N(e)))}optional(){return new X(b(this._ref,R))}guard_(){return e=>this.guard(e)}guard(e){return new X(b(this._ref,z(e)))}at(e){return new X(b(this._ref,k(e)))}head(){return new X(b(this._ref,k(0)))}index(e){return new X(b(this._ref,k(e)))}find(e){return new X(b(this._ref,B(e)))}elems(){return new X(b(this._ref,h))}to(e){return new X(b(this._ref,y(e)))}when(e){return new X(b(this._ref,E(e)))}chars(){return new X(b(this._ref,V))}words(){return new X(b(this._ref,W))}prependTo(){return new X(b(this._ref,Q))}appendTo(){return new X(b(this._ref,U))}}const Y=new X(p)},2566,[]);
|
|
14390
|
+
__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.pipe=function(t,n,u,c,s,a,o,_,f,l){switch(arguments.length){case 1:return t;case 2:return n(t);case 3:return u(n(t));case 4:return c(u(n(t)));case 5:return s(c(u(n(t))));case 6:return a(s(c(u(n(t)))));case 7:return o(a(s(c(u(n(t))))));case 8:return _(o(a(s(c(u(n(t)))))));case 9:return f(_(o(a(s(c(u(n(t))))))));case 10:return l(f(_(o(a(s(c(u(n(t)))))))))}return}},2567,[]);
|
|
14391
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultNotificationSettings",{enumerable:!0,get:function(){return t}}),e.normalizeNotificationSettings=function(n){const s=t;return{enabled:n?.enabled??s.enabled,channels:{browser:n?.channels?.browser??s.channels.browser,push:n?.channels?.push??s.channels.push},categories:{agent:{enabled:n?.categories?.agent?.enabled??s.categories.agent.enabled,needsInput:n?.categories?.agent?.needsInput??s.categories.agent.needsInput,blocked:n?.categories?.agent?.blocked??s.categories.agent.blocked,errors:n?.categories?.agent?.errors??s.categories.agent.errors,completed:n?.categories?.agent?.completed??s.categories.agent.completed,activity:n?.categories?.agent?.activity??s.categories.agent.activity},system:{enabled:n?.categories?.system?.enabled??s.categories.system.enabled,relayStatus:n?.categories?.system?.relayStatus??s.categories.system.relayStatus,projectHealth:n?.categories?.system?.projectHealth??s.categories.system.projectHealth}}}},e.isAgentNotificationEnabled=function(t,n){if(!t.enabled||!t.categories.agent.enabled)return!1;switch(n){case"needs_input":return t.categories.agent.needsInput;case"blocked":return t.categories.agent.blocked;case"error":return t.categories.agent.errors;case"completed":return t.categories.agent.completed;case"activity":return t.categories.agent.activity}};const t=Object.freeze({enabled:!1,channels:{browser:!0,push:!1},categories:{agent:{enabled:!0,needsInput:!0,blocked:!0,errors:!0,completed:!1,activity:!1},system:{enabled:!1,relayStatus:!1,projectHealth:!1}}})},2568,[]);
|
|
14392
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return j}});var e,t=r(d[0]),s=r(d[1]),n=(e=s)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]),c=r(d[4]),u=r(d[5]),f=r(d[6]),h=r(d[7]),x=r(d[8]),p=r(d[9]),b=r(d[10]),y=r(d[11]);function j(){const e=(0,o.useAtomValue)(b.selectedProjectAtom),{getToken:s}=(0,h.useAuth)(),[j,w]=(0,t.useState)({endpointKey:null,entries:[],worktrees:[],error:null}),[k,N]=(0,t.useState)(null),v=(0,o.useSetAtom)(p.kickDesktopStateRefreshAtom),A=e?.serviceEndpoint??null,K=A?.host,P=A?.port,$=K&&P?`${K}:${P}`:null,S=j.endpointKey===$?j.entries:[],O=j.endpointKey===$?j.worktrees:[],T=j.endpointKey===$?j.error:null;async function z(e){if(A&&$&&!k){N(e.id),w(e=>e.endpointKey===$?Object.assign({},e,{error:null}):e);try{const t=await s();await(0,x.resurrectGraveyardAgent)(A,e.id,{token:t}),w(t=>t.endpointKey===$?Object.assign({},t,{entries:t.entries.filter(t=>t.id!==e.id)}):t),v()}catch(e){w(t=>t.endpointKey===$?Object.assign({},t,{error:e instanceof Error?e.message:String(e)}):t)}finally{N(null)}}}async function C(e){if(A&&$&&!k){N(`worktree:${e.path}`),w(e=>e.endpointKey===$?Object.assign({},e,{error:null}):e);try{const t=await s();await(0,x.resurrectGraveyardWorktree)(A,e.path,{token:t}),w(t=>t.endpointKey===$?Object.assign({},t,{worktrees:t.worktrees.filter(t=>t.path!==e.path)}):t),v()}catch(e){w(t=>t.endpointKey===$?Object.assign({},t,{error:e instanceof Error?e.message:String(e)}):t)}finally{N(null)}}}async function E(e){if(A&&$&&!k){N(`delete-worktree:${e.path}`),w(e=>e.endpointKey===$?Object.assign({},e,{error:null}):e);try{const t=await s();await(0,x.deleteGraveyardWorktree)(A,e.path,{token:t}),w(t=>t.endpointKey===$?Object.assign({},t,{worktrees:t.worktrees.filter(t=>t.path!==e.path)}):t),v()}catch(e){w(t=>t.endpointKey===$?Object.assign({},t,{error:e instanceof Error?e.message:String(e)}):t)}finally{N(null)}}}return(0,t.useEffect)(()=>{if(!K||!P||!$)return;const e={host:K,port:P};let t=!1;return(async()=>{try{const n=await s(),o=await(0,x.listGraveyard)(e,{token:n});if(t)return;w({endpointKey:$,entries:Array.isArray(o.entries)?o.entries:[],worktrees:Array.isArray(o.worktrees)?o.worktrees:[],error:null})}catch(e){t||w({endpointKey:$,entries:[],worktrees:[],error:e instanceof Error?e.message:String(e)})}})(),()=>{t=!0}},[K,$,P,s]),(0,y.jsxs)(c.Page,{children:[(0,y.jsx)(c.PageHeader,{eyebrow:"Project",title:"Graveyard",subtitle:e?`${e.name}${e.path?` \xb7 ${e.path}`:""}`:"No project selected"}),e?A?T?(0,y.jsx)(c.PageStateCard,{title:"Unable to load graveyard",body:T,tone:"danger"}):0===S.length&&0===O.length?(0,y.jsx)(c.PageStateCard,{title:"No dead agents or worktrees",body:"Stopped resources will appear here when available."}):(0,y.jsxs)(y.Fragment,{children:[O.length>0?(0,y.jsxs)(n.default,{className:"mb-3",children:[(0,y.jsx)(u.Text,{className:"mb-2 text-xs font-semibold uppercase text-muted-foreground",children:"Worktrees"}),O.map(e=>{const t=k===`worktree:${e.path}`||k===`delete-worktree:${e.path}`;return(0,y.jsx)(n.default,{className:"mb-2 rounded-lg border border-border bg-card p-3",children:(0,y.jsxs)(n.default,{className:"flex-row items-center justify-between gap-3",children:[(0,y.jsxs)(n.default,{className:"min-w-0 flex-1",children:[(0,y.jsxs)(n.default,{className:"flex-row items-center gap-2",children:[(0,y.jsx)(l.GitBranch,{size:14,color:"#a1a1aa"}),(0,y.jsx)(u.Text,{className:"min-w-0 flex-1 text-base font-medium text-foreground",children:e.name||e.path})]}),(0,y.jsxs)(u.Text,{className:"text-xs text-muted-foreground",numberOfLines:2,children:[e.branch?`${e.branch} \xb7 `:"",e.graveyardedAt?`graveyarded ${e.graveyardedAt}`:e.path]})]}),(0,y.jsxs)(n.default,{className:"flex-row gap-2",children:[(0,y.jsx)(f.Button,{accessibilityLabel:`Resurrect ${e.name||e.path}`,size:"icon",variant:"outline",disabled:!A||null!==k,onPress:()=>C(e),children:(0,y.jsx)(l.RotateCcw,{size:16,color:"#a1a1aa"})}),(0,y.jsx)(f.Button,{accessibilityLabel:`Delete ${e.name||e.path}`,size:"icon",variant:"outline",disabled:!A||null!==k||t,onPress:()=>E(e),children:(0,y.jsx)(l.Trash2,{size:16,color:"#a1a1aa"})})]})]})},e.path)})]}):null,S.length>0?(0,y.jsxs)(n.default,{children:[(0,y.jsx)(u.Text,{className:"mb-2 text-xs font-semibold uppercase text-muted-foreground",children:"Agents"}),S.map(e=>(0,y.jsx)(n.default,{className:"mb-2 rounded-lg border border-border bg-card p-3",children:(0,y.jsxs)(n.default,{className:"flex-row items-center justify-between gap-3",children:[(0,y.jsxs)(n.default,{className:"min-w-0 flex-1",children:[(0,y.jsx)(u.Text,{className:"text-base font-medium text-foreground",children:e.label||e.id}),(0,y.jsxs)(u.Text,{className:"text-xs text-muted-foreground",children:[e.tool??"?",e.diedAt?` \xb7 died ${e.diedAt}`:""]})]}),(0,y.jsx)(f.Button,{accessibilityLabel:`Resurrect ${e.label||e.id}`,size:"icon",variant:"outline",disabled:!A||null!==k,onPress:()=>z(e),children:(0,y.jsx)(l.RotateCcw,{size:16,color:"#a1a1aa"})})]})},e.id))]}):null]}):(0,y.jsx)(c.PageStateCard,{title:"Project host offline",body:"Start the project host to load dead agents and worktrees."}):(0,y.jsx)(c.PageStateCard,{title:"No project selected",body:"Pick a project from the sidebar."})]})}},2569,[8,116,691,695,2570,2388,2392,2400,2538,2550,2552,6]);
|
|
14393
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Page=function({children:e,className:s,contentClassName:l}){return(0,u.jsx)(t.default,{className:(0,c.cn)("flex-1 bg-background",s),contentContainerClassName:(0,c.cn)("px-4 py-5 md:px-8",l),children:(0,u.jsx)(n.default,{className:"w-full",children:e})})},_e.PageHeader=function({eyebrow:e,title:t,subtitle:s,actions:o,className:x}){return(0,u.jsxs)(n.default,{className:(0,c.cn)("mb-5 flex-row items-start justify-between gap-3",x),children:[(0,u.jsxs)(n.default,{className:"min-w-0 flex-1",children:[e?(0,u.jsx)(l.Text,{className:"text-[11px] font-bold uppercase tracking-widest text-muted-foreground",children:e}):null,(0,u.jsx)(l.Text,{className:"mt-1 text-[28px] font-bold leading-tight text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:t}),s?(0,u.jsx)(l.Text,{className:"mt-1 text-sm text-muted-foreground",numberOfLines:1,children:s}):null]}),o?(0,u.jsx)(n.default,{children:o}):null]})},_e.PageStateCard=function({title:e,body:t,tone:n="default",className:o}){return(0,u.jsxs)(s.Card,{className:(0,c.cn)("rounded-lg p-5","warning"===n&&"border-amber-500/40 bg-amber-500/10","danger"===n&&"border-destructive/50 bg-destructive/10",o),children:[(0,u.jsx)(l.Text,{className:"text-base font-semibold text-foreground",children:e}),t?(0,u.jsx)(l.Text,{className:"mt-1 text-sm text-muted-foreground",children:t}):null]})},r(d[0]);var t=e(r(d[1])),n=e(r(d[2])),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6])},2570,[8,140,116,2571,2388,2389,6]);
|
|
14394
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";const e=["className"],t=["className"],n=["className"],s=["className"];function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Card",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"PressableCard",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"CardTitle",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"CardDescription",{enumerable:!0,get:function(){return O}});var d=c(r(_d[0])),o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),l=c(r(_d[2])),u=c(r(_d[3])),f=r(_d[4]),b=r(_d[5]),p=r(_d[6]);const j=o.forwardRef((t,n)=>{let{className:s}=t,c=(0,d.default)(t,e);return(0,p.jsx)(l.default,Object.assign({ref:n,className:(0,f.cn)("rounded-xl border border-border bg-card p-3",s)},c))});j.displayName="Card";const N=o.forwardRef((e,n)=>{let{className:s}=e,c=(0,d.default)(e,t);return(0,p.jsx)(u.default,Object.assign({ref:n,className:(0,f.cn)("rounded-xl border border-border bg-card p-3 active:opacity-80",s)},c))});N.displayName="PressableCard";const y=o.forwardRef((e,t)=>{let{className:s}=e,c=(0,d.default)(e,n);return(0,p.jsx)(b.Text,Object.assign({ref:t,className:(0,f.cn)("text-lg font-semibold text-card-foreground",s)},c))});y.displayName="CardTitle";const O=o.forwardRef((e,t)=>{let{className:n}=e,c=(0,d.default)(e,s);return(0,p.jsx)(b.Text,Object.assign({ref:t,className:(0,f.cn)("text-sm text-muted-foreground",n)},c))});O.displayName="CardDescription"},2571,[283,8,116,249,2389,2388,6]);
|
|
14395
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}}),r(d[0]);var t=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),n=r(d[5]);function f(){const f=(0,o.useAtomValue)(u.selectedProjectPathAtom);return(0,n.jsx)(t.Redirect,{href:(0,c.buildViewHref)("/project",{project:f??void 0})})}},2572,[8,291,691,2552,2545,6]);
|
|
14396
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var t=r(d[0]),s=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),o=e(r(d[4])),c=r(d[5]),u=r(d[6]),x=r(d[7]),f=r(d[8]),h=r(d[9]),b=r(d[10]),j=r(d[11]),p=r(d[12]),N=r(d[13]);function y(){const e=(0,c.useLocalSearchParams)(),y=(0,j.singleRouteParam)(e.sessionId),P=(0,u.useAtomValue)(p.selectedProjectAtom),{getToken:S}=(0,h.useAuth)(),v=(0,c.useRouter)(),[k,w]=(0,t.useState)(""),[T,_]=(0,t.useState)(""),[A,E]=(0,t.useState)(!0),[B,O]=(0,t.useState)(!1),[z,C]=(0,t.useState)(null),L=P?.serviceEndpoint??null;(0,t.useEffect)(()=>{if(!L||!y)return;let e=!1;return E(!0),C(null),(async()=>{try{const t=await S(),s=await(0,b.getPlan)(L,y,{token:t});if(e)return;w(s.content),_(s.content)}catch(t){if(e)return;t instanceof b.ApiError&&404===t.status?(w(""),_("")):C(t instanceof Error?t.message:String(t))}finally{e||E(!1)}})(),()=>{e=!0}},[L?.host,L?.port,y,S]);const M=k!==T;return(0,N.jsxs)(o.default,{className:"flex-1 bg-background",children:[(0,N.jsxs)(o.default,{className:"border-b border-border px-4 py-3 flex-row items-center justify-between",children:[(0,N.jsxs)(o.default,{className:"flex-1",children:[(0,N.jsxs)(x.Text,{className:"text-base font-semibold text-foreground",numberOfLines:1,children:["Plan: ",y??"Unknown session"]}),M?(0,N.jsx)(x.Text,{className:"text-xs text-amber-500",children:"Unsaved changes"}):null]}),(0,N.jsxs)(o.default,{className:"flex-row gap-2",children:[(0,N.jsx)(f.Button,{variant:"ghost",size:"sm",label:"Back",onPress:()=>v.back()}),(0,N.jsx)(f.Button,{size:"sm",label:B?"Saving\u2026":"Save",onPress:async function(){if(L&&y){O(!0),C(null);try{const e=await S();await(0,b.putPlan)(L,y,k,{token:e}),_(k)}catch(e){C(e instanceof Error?e.message:String(e))}finally{O(!1)}}},disabled:B||!M||!L})]})]}),L?A?(0,N.jsx)(o.default,{className:"p-4",children:(0,N.jsx)(s.default,{})}):(0,N.jsxs)(n.default,{className:"flex-1",children:[z?(0,N.jsx)(o.default,{className:"px-4 py-2",children:(0,N.jsx)(x.Text,{className:"text-xs text-destructive",children:z})}):null,(0,N.jsx)(l.default,{className:"m-4 min-h-[400px] rounded-lg border border-border bg-background px-3 py-2 text-foreground font-mono text-sm",value:k,onChangeText:w,multiline:!0,textAlignVertical:"top",placeholder:"# Plan\\n\\nWrite the plan here\u2026",placeholderTextColor:"#9ca3af"})]}):(0,N.jsx)(o.default,{className:"p-4",children:(0,N.jsx)(x.Text,{className:"text-sm text-muted-foreground",children:"Project service not running. Start the project host to edit plans."})})]})}},2573,[8,234,140,259,116,291,691,2388,2392,2400,2538,2542,2552,6]);
|
|
14397
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2574,[2575]);
|
|
14398
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return A}});var t=r(d[0]),s=e(r(d[1])),l=e(r(d[2])),n=e(r(d[3])),o=r(d[4]),c=r(d[5]),u=r(d[6]),x=r(d[7]),f=r(d[8]),h=r(d[9]),b=r(d[10]),j=r(d[11]),v=r(d[12]),p=r(d[13]),N=r(d[14]),k=r(d[15]),w=r(d[16]);function P(e,t){if(!t)return null;for(const s of e){const e=s.services.find(e=>e.id===t);if(e)return{service:e,bucket:s}}return null}function T({label:e,value:t}){return(0,w.jsxs)(n.default,{className:"flex-row mb-1",children:[(0,w.jsx)(f.Text,{className:"text-xs text-muted-foreground w-28",numberOfLines:1,children:e}),(0,w.jsx)(f.Text,{className:"text-sm text-foreground flex-1",selectable:!0,children:t})]})}function A(){const e=(0,o.useLocalSearchParams)(),x=(0,v.singleRouteParam)(e.serviceId),h=(0,c.useAtomValue)(k.selectedProjectAtom),b=(0,c.useAtomValue)(k.selectedProjectEndpointAtom),T=(0,c.useAtomValue)((0,N.worktreeGroupsFamily)(h?.path??"")),A=(0,o.useRouter)(),L=(0,o.usePathname)(),{getToken:S}=(0,j.useAuth)(),[_,C]=(0,t.useState)(null);(0,t.useEffect)(()=>{let e=!1;return(async()=>{try{const t=await S();e||C(t)}catch{e||C(null)}})(),()=>{e=!0}},[S]);const O=(0,t.useMemo)(()=>P(T,x),[T,x]);function R(){A.canGoBack()?A.back():A.replace((0,p.parentViewHrefForPath)(L,h?.path))}return(0,w.jsx)(n.default,{className:"flex-1 bg-background",children:(0,w.jsxs)(l.default,{className:"flex-1 p-6",children:[(0,w.jsxs)(s.default,{onPress:R,className:"flex-row items-center gap-1 mb-4 active:opacity-70",children:[(0,w.jsx)(u.ChevronLeft,{size:16,color:"#9ca3af"}),(0,w.jsx)(f.Text,{className:"text-sm text-muted-foreground",children:"Back"})]}),O?(0,w.jsx)(y,{service:O.service,bucket:O.bucket,endpoint:b,token:_,onRemoved:R}):(0,w.jsx)(f.Text,{className:"text-sm text-muted-foreground",children:"Service not found. It may have been removed."})]})})}function y({service:e,bucket:t,endpoint:s,token:l,onRemoved:o}){const c=e.label||e.id,u=!!e.label&&e.label!==e.id,j=e.args&&e.args.length>0?e.args.join(" "):null,v=[t.name,t.branch,t.path].filter(Boolean).join(" \xb7 ");return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(n.default,{className:"flex-row items-start mb-6",children:[(0,w.jsxs)(n.default,{className:"flex-1 min-w-0",children:[(0,w.jsx)(f.Text,{className:"text-[11px] font-bold uppercase tracking-widest text-muted-foreground mb-1.5",children:"Service"}),(0,w.jsx)(f.Text,{className:"text-[28px] font-bold text-foreground leading-tight",numberOfLines:1,ellipsizeMode:"tail",children:c}),u?(0,w.jsx)(f.Text,{className:"text-[12px] text-muted-foreground mt-1.5",numberOfLines:1,children:e.id}):null]}),(0,w.jsx)(n.default,{className:"ml-3 mt-7",children:(0,w.jsx)(h.ServiceActions,{service:e,endpoint:s,token:l,onRemoved:o})})]}),(0,w.jsxs)(x.Card,{className:"p-5",children:[(0,w.jsxs)(n.default,{className:"flex-row items-center mb-3",children:[(0,w.jsx)(b.StatusDot,{status:e.status,size:"md"}),(0,w.jsx)(f.Text,{className:"text-[14px] font-semibold text-foreground ml-2.5",children:e.status})]}),v?(0,w.jsx)(T,{label:"Worktree",value:v}):null,e.command?(0,w.jsx)(T,{label:"Command",value:e.command}):null,j?(0,w.jsx)(T,{label:"Args",value:j}):null,e.shellCommand?(0,w.jsx)(T,{label:"Shell",value:e.shellCommand}):null,e.previewLine?(0,w.jsx)(T,{label:"Preview",value:e.previewLine}):null]})]})}},2575,[8,249,140,116,291,691,695,2571,2388,2576,2577,2400,2542,2545,2550,2552,6]);
|
|
14399
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.ServiceActions=function({service:e,endpoint:t,token:c,compact:f=!1,onRemoved:h}){const[j,z]=(0,s.useState)(!1),[p,k]=(0,s.useState)(null),P=(0,l.useSetAtom)(v.kickDesktopStateRefreshAtom),y=!!t&&!j;function R(e,s){return async()=>{if(t){z(!0),k(null);try{await e(),P(),s?.isRemove&&h?.()}catch(e){k(e instanceof Error?e.message:String(e))}finally{z(!1)}}}}if(!t)return(0,S.jsx)(u.Text,{className:"text-xs text-muted-foreground",children:"service offline"});const _=f?"h-7 w-7":"h-9 w-9",N=f?13:15,w=f?"ml-1":"ml-1.5";return(0,S.jsxs)(n.default,{children:[(0,S.jsxs)(n.default,{className:"flex-row items-center",children:["running"===e.status?(0,S.jsx)(b,{icon:o.Square,iconSize:N,sizeClass:_,onPress:R(()=>(0,x.stopService)(t,e.id,{token:c})),disabled:!y,label:"Stop"}):(0,S.jsx)(b,{icon:o.Play,iconSize:N,sizeClass:_,onPress:R(()=>(0,x.resumeService)(t,e.id,{token:c})),disabled:!y,label:"Resume"}),"running"!==e.status?(0,S.jsx)(n.default,{className:w,children:(0,S.jsx)(b,{icon:o.Trash2,iconSize:N,sizeClass:_,onPress:R(()=>(0,x.removeService)(t,e.id,{token:c}),{isRemove:!0}),disabled:!y,label:"Remove"})}):null]}),p?(0,S.jsx)(u.Text,{className:"text-[11px] text-destructive mt-1",children:p}):null]})};var e,s=r(d[0]),t=r(d[1]),n=(e=t)&&e.__esModule?e:{default:e},l=r(d[2]),o=r(d[3]),c=r(d[4]),u=r(d[5]),x=r(d[6]),f=r(d[7]),v=r(d[8]),S=r(d[9]);function b({icon:e,iconSize:s,sizeClass:t,onPress:n,disabled:l,label:o}){return(0,S.jsx)(c.Button,{variant:"outline",size:"icon",onPress:n,disabled:l,accessibilityLabel:o,className:(0,f.cn)("p-0",t),children:(0,S.jsx)(e,{size:s,color:"#a1a1aa"})})}},2576,[8,116,691,695,2392,2388,2538,2389,2550,6]);
|
|
14400
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.StatusDot=function({status:e,size:n="sm"}){const s=x[e]??"bg-zinc-500";return(0,l.jsx)(t.default,{className:(0,o.cn)("rounded-full",u[n],s)})},_e.StatusDotMini=function({status:e,hollow:n,shape:s="circle",outline:c}){const u="circle"===s?"rounded-full":"rounded-[1.5px]",x="diamond"===s?"rotate-45":"";if(c){const c="diamond"===s?"h-[7px] w-[7px]":"h-2 w-2",b=n?"border-[#44464e]":"running"===e?"border-[#4ade80]":"waiting"===e?"border-amber-400":"border-[#6b6d75]";return(0,l.jsx)(t.default,{className:(0,o.cn)(c,u,x,"border-2",b)})}const b="diamond"===s?"h-[6px] w-[6px]":"h-[7px] w-[7px]";if(n)return(0,l.jsx)(t.default,{className:(0,o.cn)(b,u,x,"border-[1.5px] border-[#44464e]")});const f="running"===e?"bg-[#4ade80]":"waiting"===e?"bg-amber-400":"bg-[#5b5d66]";return(0,l.jsx)(t.default,{className:(0,o.cn)(b,u,x,f)})},_e.BranchChip=function({branch:e}){return(0,l.jsxs)(t.default,{className:"min-w-0 shrink flex-row items-center rounded border border-[#2a2b31] bg-[#1f2025] px-1.5 py-0.5",children:[(0,l.jsx)(s.GitBranch,{size:10,color:"#787a83"}),(0,l.jsx)(c.Text,{className:"ml-1 min-w-0 shrink font-mono text-[11px] text-[#a6a8b0]",numberOfLines:1,ellipsizeMode:"middle",children:e})]})},_e.TypeTag=function({label:e}){return(0,l.jsx)(c.Text,{className:"shrink-0 rounded border border-[#2a2b31] bg-[#1f2025] px-1 py-px font-mono text-[9px] uppercase tracking-wide text-[#787a83]",children:e})},_e.StatusPill=function({status:e}){const n=b[e]??"bg-zinc-500/10",s=f[e]??"text-zinc-400";return(0,l.jsx)(t.default,{className:(0,o.cn)("px-1.5 py-0.5 rounded",n),children:(0,l.jsx)(c.Text,{className:(0,o.cn)("text-[10px] font-medium uppercase tracking-wide",s),children:e})})},r(d[0]);var e,n=r(d[1]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]);const u={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},x={running:"bg-emerald-500",idle:"bg-zinc-400",waiting:"bg-amber-500",exited:"bg-zinc-600",offline:"bg-zinc-600"},b={running:"bg-emerald-500/15",idle:"bg-zinc-500/15",waiting:"bg-amber-500/15",exited:"bg-zinc-500/10",offline:"bg-zinc-500/10"},f={running:"text-emerald-400",idle:"text-zinc-300",waiting:"text-amber-400",exited:"text-zinc-400",offline:"text-zinc-400"}},2577,[8,116,695,2388,2389,6]);
|
|
14401
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var n=r(d[1]),t=r(d[2]);function c(){return(0,t.jsx)(n.Stack,{screenOptions:{headerShown:!1},children:(0,t.jsx)(n.Stack.Screen,{name:"notifications"})})}},2578,[8,291,6]);
|
|
14402
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var n=r(d[1]),t=r(d[2]);function c(){return(0,t.jsxs)(n.Stack,{screenOptions:{headerShown:!1},children:[(0,t.jsx)(n.Stack.Screen,{name:"index"}),(0,t.jsx)(n.Stack.Screen,{name:"agent/[sessionId]/chat"}),(0,t.jsx)(n.Stack.Screen,{name:"service/[serviceId]"})]})}},2579,[8,291,6]);
|
|
14403
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2580,[690]);
|
|
14404
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var t=r(d[0]),s=e(r(d[1])),o=e(r(d[2])),n=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),f=r(d[7]),x=r(d[8]),h=r(d[9]),b=r(d[10]),p=r(d[11]),j=r(d[12]),N=r(d[13]),v=r(d[14]),A=r(d[15]),y=r(d[16]),w=r(d[17]),k=r(d[18]),S=r(d[19]),P=r(d[20]);const T="__aimux_no_selected_project__",C=[{id:"all",label:"All"},{id:"action-required",label:"Action"},{id:"approval",label:"Approval"},{id:"shipped",label:"Shipped"},{id:"progress",label:"Progress"},{id:"observation",label:"Observe"}];function z(e){const t=Date.parse(e);if(!Number.isFinite(t))return"";const s=Math.max(0,Math.floor((Date.now()-t)/1e3));if(s<60)return"just now";const o=Math.floor(s/60);if(o<60)return`${o}m ago`;const n=Math.floor(o/60);if(n<24)return`${n}h ago`;const l=Math.floor(n/24);return l<7?`${l}d ago`:new Date(t).toLocaleDateString()}function I(e){switch(e){case"action-required":return"Action required";case"approval":return"Approval";case"shipped":return"Shipped";case"progress":return"Progress";case"observation":return"Observation"}}function F(e){switch(e){case"notification":return"notification";case"security":return"security";case"agent":return"agent";case"service":return"service"}}function $(e){switch(e){case"action-required":return"border-amber-500/40 bg-amber-500/10";case"approval":return"border-sky-500/40 bg-sky-500/10";case"shipped":return"border-emerald-500/40 bg-emerald-500/10";case"progress":return"border-violet-500/40 bg-violet-500/10";case"observation":return"border-border bg-card"}}function _({kind:e,source:t}){const s="action-required"===e?"#f59e0b":"approval"===e?"#38bdf8":"shipped"===e?"#22c55e":"progress"===e?"#a78bfa":"#a1a1aa";return"security"===t?(0,P.jsx)(u.ShieldAlert,{size:18,color:"#f87171"}):"approval"===e?(0,P.jsx)(u.GitPullRequest,{size:18,color:s}):"shipped"===e?(0,P.jsx)(u.CheckCircle2,{size:18,color:s}):"progress"===e?(0,P.jsx)(u.Activity,{size:18,color:s}):(0,P.jsx)(u.AlertTriangle,{size:18,color:s})}function R({label:e,count:t,active:o,onPress:n}){return(0,P.jsxs)(s.default,{onPress:n,className:(0,v.cn)("mr-2 mb-2 flex-row items-center rounded-full border px-3 py-1.5 active:opacity-80",o?"border-foreground bg-foreground":"border-border bg-card"),children:[(0,P.jsx)(b.Text,{className:(0,v.cn)("text-[12px] font-semibold",o?"text-background":"text-foreground"),children:e}),(0,P.jsx)(b.Text,{className:(0,v.cn)("ml-1.5 text-[11px] font-bold",o?"text-background/70":"text-muted-foreground"),children:t})]})}function B({card:e,busy:t,onOpen:s,onRead:n,onClear:l}){const{colorScheme:h}=(0,c.useColorScheme)(),p="dark"===h?"#fafafa":"#09090b",j=Boolean(e.sessionId||e.serviceId),N=Boolean(e.notificationId);return(0,P.jsxs)(x.Card,{className:(0,v.cn)("mb-3 rounded-lg p-4",$(e.kind),e.unread&&"bg-secondary"),children:[(0,P.jsxs)(o.default,{className:"flex-row items-start",children:[(0,P.jsx)(o.default,{className:"mr-3 mt-0.5 rounded-full bg-background/60 p-2",children:(0,P.jsx)(_,{kind:e.kind,source:e.source})}),(0,P.jsxs)(o.default,{className:"min-w-0 flex-1",children:[(0,P.jsxs)(o.default,{className:"flex-row items-center",children:[e.unread?(0,P.jsx)(o.default,{className:"mr-2 h-2 w-2 rounded-full bg-emerald-500"}):null,(0,P.jsx)(b.Text,{className:"min-w-0 flex-1 text-[15px] font-semibold text-foreground",numberOfLines:2,children:e.title})]}),e.body?(0,P.jsx)(b.Text,{className:"mt-2 text-[13px] leading-snug text-foreground/90",children:e.body}):null,(0,P.jsxs)(b.Text,{className:"mt-3 text-[11px] uppercase tracking-widest text-muted-foreground",children:[I(e.kind),` \xb7 ${F(e.source)}`,e.subtitle?` \xb7 ${e.subtitle}`:"",z(e.createdAt)?` \xb7 ${z(e.createdAt)}`:""]})]})]}),(0,P.jsxs)(o.default,{className:"mt-4 flex-row flex-wrap gap-2",children:[j?(0,P.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:t,onPress:()=>s(e),className:"gap-1.5",children:[(0,P.jsx)(u.ExternalLink,{size:14,color:p}),(0,P.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Open"})]}):null,N&&e.unread?(0,P.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:t,onPress:()=>n(e),className:"gap-1.5",children:[(0,P.jsx)(u.Check,{size:14,color:p}),(0,P.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Read"})]}):null,N?(0,P.jsxs)(f.Button,{variant:"ghost",size:"sm",disabled:t,onPress:()=>l(e),className:"gap-1.5",children:[(0,P.jsx)(u.Trash2,{size:14,color:"#a1a1aa"}),(0,P.jsx)(b.Text,{className:"text-sm font-medium text-muted-foreground",children:"Clear"})]}):null]})]})}function E(){const e=(0,n.useRouter)(),s=(0,n.usePathname)(),{colorScheme:v}=(0,c.useColorScheme)(),I="dark"===v?"#fafafa":"#09090b",F=(0,l.useAtomValue)(k.selectedProjectAtom),$=(0,l.useAtomValue)(k.selectedProjectPathAtom),_=(0,l.useAtomValue)(k.selectedProjectEndpointAtom),E=$??T,O=(0,l.useAtomValue)((0,w.notificationFeedFamily)(E)),V=(0,l.useAtomValue)((0,w.notificationFeedErrorFamily)(E)),M=(0,l.useAtomValue)((0,y.desktopStateFamily)(E)),q=(0,l.useSetAtom)((0,w.notificationFeedFamily)(E)),D=(0,l.useSetAtom)((0,w.notificationFeedErrorFamily)(E)),L=(0,l.useSetAtom)(k.selectedSessionIdAtom),H=(0,l.useSetAtom)(w.kickNotificationFeedRefreshAtom),G=(0,l.useAtomValue)(S.securityEventsAtom),Y=(0,l.useAtomValue)(S.securityUnreadCountAtom),U=(0,l.useSetAtom)(S.markSecurityEventsReadAtom),J=(0,l.useSetAtom)(S.clearSecurityEventsAtom),{getToken:K}=(0,j.useAuth)(),[Q,W]=(0,t.useState)(null),X=(0,n.useGlobalSearchParams)(),Z=(ee=(0,A.cleanSearchValue)(X.lens),C.some(e=>e.id===ee)?ee:"all");var ee;const te=(0,t.useMemo)(()=>O?.notifications??[],[O?.notifications]),se=(0,t.useMemo)(()=>(0,N.buildForYouFeed)({notifications:te,securityEvents:G,desktopState:M}),[M,te,G]),ae="all"===Z?se.cards:se.cards.filter(e=>e.kind===Z),re=O?.unreadCount??0,oe=O?.fetchedAt?z(O.fetchedAt):"",ne=te.length>0,ie=G.length>0,le=(0,t.useCallback)(async()=>{if(_){W("refresh");try{const e=await K(),t=await(0,p.listNotifications)(_,{token:e});q({notifications:t.notifications,unreadCount:t.unreadCount,fetchedAt:(new Date).toISOString()}),D(null)}catch(e){const t=e instanceof Error?e.message:String(e);D(t)}finally{W(null)}}},[_,K,q,D]),de=(0,t.useCallback)(async(e,t,s={})=>{if(_){W(e);try{const e=await K();"read"===t?await(0,p.markNotificationsRead)(_,s,{token:e}):await(0,p.clearNotifications)(_,s,{token:e});const o=await(0,p.listNotifications)(_,{token:e});q({notifications:o.notifications,unreadCount:o.unreadCount,fetchedAt:(new Date).toISOString()}),D(null),H()}catch(e){const t=e instanceof Error?e.message:String(e);D(t)}finally{W(null)}}},[_,K,H,q,D]);async function ce(t){t.notificationId&&t.unread&&await de(`open:${t.notificationId}`,"read",{id:t.notificationId}),t.sessionId?(L(t.sessionId),e.push((0,A.detailHrefForPath)(s,"agent",t.sessionId,$))):t.serviceId&&e.push((0,A.detailHrefForPath)(s,"service",t.serviceId,$))}return(0,P.jsxs)(h.Page,{children:[(0,P.jsx)(h.PageHeader,{eyebrow:"For You",title:"Attention Feed",subtitle:F?`${F.name}${F.path?` \xb7 ${F.path}`:""}`:"Select a project to view attention items",actions:(0,P.jsx)(f.Button,{variant:"outline",size:"icon",disabled:!_||"refresh"===Q,onPress:le,accessibilityLabel:"Refresh attention feed",children:(0,P.jsx)(u.RotateCw,{size:18,color:I})})}),(0,P.jsx)(o.default,{className:"mb-4 flex-row flex-wrap",children:C.map(t=>(0,P.jsx)(R,{label:t.label,count:"all"===t.id?se.cards.length:se.counts[t.id],active:Z===t.id,onPress:()=>e.replace((0,A.buildViewHref)("/notifications",{project:$,lens:t.id}))},t.id))}),(0,P.jsxs)(o.default,{className:"mb-4 flex-row flex-wrap items-center gap-2",children:[ie?(0,P.jsx)(o.default,{className:"rounded-full border border-red-500/40 bg-red-950/20 px-3 py-1.5",children:(0,P.jsxs)(b.Text,{className:"text-xs font-medium text-foreground",children:[Y," security unread"]})}):null,(0,P.jsx)(o.default,{className:"rounded-full border border-border bg-card px-3 py-1.5",children:(0,P.jsxs)(b.Text,{className:"text-xs font-medium text-foreground",children:[re," notification unread",oe?` \xb7 updated ${oe}`:""]})}),(0,P.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:!_||0===re||null!==Q,onPress:()=>{de("read-all","read")},className:"gap-1.5",children:[(0,P.jsx)(u.Check,{size:14,color:I}),(0,P.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Read notifications"})]}),ie?(0,P.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:0===Y,onPress:()=>U(),className:"gap-1.5",children:[(0,P.jsx)(u.ShieldAlert,{size:14,color:I}),(0,P.jsx)(b.Text,{className:"text-sm font-medium text-foreground",children:"Read security"})]}):null,(0,P.jsxs)(f.Button,{variant:"ghost",size:"sm",disabled:!_||!ne||null!==Q,onPress:()=>{de("clear-all","clear")},className:"gap-1.5",children:[(0,P.jsx)(u.Trash2,{size:14,color:"#a1a1aa"}),(0,P.jsx)(b.Text,{className:"text-sm font-medium text-muted-foreground",children:"Clear notifications"})]}),ie?(0,P.jsxs)(f.Button,{variant:"ghost",size:"sm",onPress:()=>J(),className:"gap-1.5",children:[(0,P.jsx)(u.Trash2,{size:14,color:"#a1a1aa"}),(0,P.jsx)(b.Text,{className:"text-sm font-medium text-muted-foreground",children:"Clear security"})]}):null]}),V?(0,P.jsxs)(x.Card,{className:"mb-4 rounded-lg border-destructive/50 bg-destructive/10",children:[(0,P.jsx)(b.Text,{className:"text-sm font-semibold text-foreground",children:"Attention feed failed"}),(0,P.jsx)(b.Text,{className:"mt-1 text-xs text-muted-foreground",children:V})]}):null,F?ae.length>0?ae.map(e=>(0,P.jsx)(B,{card:e,busy:null!==Q,onOpen:e=>{ce(e)},onRead:e=>e.notificationId?void de(`read:${e.notificationId}`,"read",{id:e.notificationId}):void 0,onClear:e=>e.notificationId?void de(`clear:${e.notificationId}`,"clear",{id:e.notificationId}):void 0},e.id)):_?O?(0,P.jsxs)(x.Card,{className:"rounded-lg p-5",children:[(0,P.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"All caught up"}),(0,P.jsx)(b.Text,{className:"mt-1 text-sm text-muted-foreground",children:"New agent activity, approvals, security alerts, and shipped work will appear here."})]}):(0,P.jsx)(x.Card,{className:"rounded-lg p-5",children:(0,P.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"Loading feed..."})}):(0,P.jsxs)(x.Card,{className:"rounded-lg p-5",children:[(0,P.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"Project host offline"}),(0,P.jsx)(b.Text,{className:"mt-1 text-sm text-muted-foreground",children:"Start the project host to load attention items."})]}):(0,P.jsxs)(x.Card,{className:"rounded-lg p-5",children:[(0,P.jsx)(b.Text,{className:"text-base font-semibold text-foreground",children:"No project selected"}),(0,P.jsx)(b.Text,{className:"mt-1 text-sm text-muted-foreground",children:"Pick a project from the sidebar to see its attention feed."})]})]})}},2581,[8,249,116,291,691,429,695,2392,2571,2570,2388,2538,2400,2582,2389,2545,2550,2583,2552,2584,6]);
|
|
14405
|
+
__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.classifyNotification=o,e.buildForYouFeed=function(n){const o=[...n.securityEvents.map(u),...n.notifications.map(c),...n.desktopState?.sessions.map(s).filter(Boolean)??[],...n.desktopState?.services.map(a).filter(Boolean)??[]].filter(t=>Boolean(t));o.sort((t,n)=>t.unread!==n.unread?t.unread?-1:1:l(n)-l(t));const p=Object.assign({},t);for(const t of o)p[t.kind]+=1;return{cards:o,counts:p}};const t={"action-required":0,approval:0,shipped:0,progress:0,observation:0};function n(t){return t?.trim().toLowerCase().replace(/[_-]+/g," ")??""}function o(t){const o=[t.kind,t.targetKind,t.title,t.subtitle,t.body].map(n).join(" ");return o.includes("approval")||o.includes("approve")||o.includes("review")||o.includes("decision")||o.includes("ratify")?"approval":o.includes("handoff waiting")||o.includes("needs input")||o.includes("blocked")||o.includes("waiting")?"action-required":o.includes("complete")||o.includes("completed")||o.includes("closed")||o.includes("shipped")||o.includes("done")?"shipped":t.unread&&t.sessionId?"action-required":o.includes("progress")||o.includes("activity")?"progress":"observation"}function s(t){return t.pendingAction||"waiting"===t.status?{id:`agent:${t.id}:attention`,kind:"action-required",source:"agent",title:t.label||t.id,body:t.pendingAction||t.previewLine||t.headline||"Agent is waiting",subtitle:[t.worktreeName,t.status].filter(Boolean).join(" \xb7 "),createdAt:new Date(0).toISOString(),unread:!0,sessionId:t.id}:null}function a(t){return t.pendingAction?{id:`service:${t.id}:attention`,kind:"action-required",source:"service",title:t.label||t.id,body:t.pendingAction,subtitle:[t.worktreeName,t.status].filter(Boolean).join(" \xb7 "),createdAt:new Date(0).toISOString(),unread:!0,serviceId:t.id}:null}function c(t){return{id:`notification:${t.id}`,kind:o(t),source:"notification",title:t.title||t.subtitle||"aimux",body:t.body,subtitle:[t.subtitle,t.kind?.replace(/[_-]+/g," "),t.sessionId].filter(Boolean).join(" \xb7 "),createdAt:t.createdAt,unread:t.unread,sessionId:t.sessionId,notificationId:t.id}}function u(t){return{id:`security:${t.id}`,kind:"action-required",source:"security",title:t.title||"Security alert",body:t.body,subtitle:[t.kind.replace(/[_-]+/g," "),t.country].filter(Boolean).join(" \xb7 "),createdAt:t.createdAt,unread:!t.readAt,securityId:t.id}}function l(t){const n=Date.parse(t.createdAt);return Number.isFinite(n)?n:0}},2582,[]);
|
|
14406
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"notificationFeedFamily",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"notificationFeedErrorFamily",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"notificationFeedRefreshNonceAtom",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"kickNotificationFeedRefreshAtom",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"notificationUnreadCountFamily",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]);const o=(0,n.atomFamily)(n=>(0,t.atom)(null)),u=(0,n.atomFamily)(n=>(0,t.atom)(null)),c=(0,t.atom)(0),f=(0,t.atom)(null,(t,n)=>{n(c,t(c)+1)}),l=(0,n.atomFamily)(n=>(0,t.atom)(t=>t(o(n))?.unreadCount??0))},2583,[691,2547]);
|
|
14407
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"securityEventsAtom",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"addSecurityEventAtom",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"markSecurityEventsReadAtom",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"clearSecurityEventsAtom",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"securityUnreadCountAtom",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const u=(0,n.atomWithStorage)("aimux-security-events",[],(0,o.createSsrSafeJsonStorage)(),{getOnInit:!0}),c=(0,n.unwrap)(u,t=>t??[]),s=(0,t.atom)(null,(t,n,o)=>{const u=(new Date).toISOString(),s=t(c),l=s.find(t=>t.id===o.id),f=Object.assign({},o,{receivedAt:l?.receivedAt??u,readAt:l?.readAt});n(c,[f,...s.filter(t=>t.id!==o.id)].slice(0,100))}),l=(0,t.atom)(null,(t,n)=>{const o=(new Date).toISOString();n(c,t(c).map(t=>t.readAt?t:Object.assign({},t,{readAt:o})))}),f=(0,t.atom)(null,(t,n)=>{n(c,[])}),b=(0,t.atom)(t=>t(c).filter(t=>!t.readAt).length)},2584,[691,2547,2553]);
|
|
14408
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2585,[2575]);
|
|
14409
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var n=r(d[1]),t=r(d[2]);function c(){return(0,t.jsx)(n.Stack,{screenOptions:{headerShown:!1},children:(0,t.jsx)(n.Stack.Screen,{name:"settings"})})}},2586,[8,291,6]);
|
|
14410
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return w}});var t=e(r(d[0]));r(d[1]);var n=e(r(d[2])),s=e(r(d[3])),o=r(d[4]),l=r(d[5]),c=r(d[6]),u=r(d[7]),f=r(d[8]),b=r(d[9]),x=r(d[10]),h=r(d[11]);const j=[{value:"system",label:"System"},{value:"light",label:"Light"},{value:"dark",label:"Dark"}],p=[{value:"off",label:"Chat"},{value:"on",label:"Split"}],v=[{value:"off",label:"Off"},{value:"on",label:"On"}];function w(){const[e,n]=(0,o.useAtom)(x.themePreferenceAtom),[w,C]=(0,o.useAtom)(x.chatTerminalSplitAtom),[N,A]=(0,o.useAtom)(x.notificationSettingsAtom),[k,O]=t.default.useState(()=>(0,b.getBrowserNotificationPermission)());function P(e){A(e)}function S(e,t){P(Object.assign({},N,{categories:Object.assign({},N.categories,{agent:Object.assign({},N.categories.agent,{[e]:t})})}))}function T(e){P(Object.assign({},N,{channels:Object.assign({},N.channels,{browser:e})}))}async function _(){O(await(0,b.requestBrowserNotificationPermission)())}return(0,h.jsxs)(l.Page,{children:[(0,h.jsx)(l.PageHeader,{title:"Settings",subtitle:"Preferences for the app and agent alerts."}),(0,h.jsx)(u.Text,{className:"mb-2 text-xs uppercase tracking-wider text-muted-foreground",children:"Appearance"}),(0,h.jsx)(f.SegmentedControl,{options:j,value:e,onChange:n,fullWidth:!0}),(0,h.jsx)(u.Text,{className:"mb-2 mt-6 text-xs uppercase tracking-wider text-muted-foreground",children:"Chat"}),(0,h.jsx)(f.SegmentedControl,{options:[...p],value:w?"on":"off",onChange:e=>C("on"===e),fullWidth:!0}),(0,h.jsx)(u.Text,{className:"mb-2 mt-6 text-xs uppercase tracking-wider text-muted-foreground",children:"Notifications"}),(0,h.jsx)(f.SegmentedControl,{options:[...v],value:N.enabled?"on":"off",onChange:e=>P(Object.assign({},N,{enabled:"on"===e})),fullWidth:!0}),(0,h.jsxs)(s.default,{className:"mt-3 flex-row items-center justify-between gap-3 rounded-lg border border-border bg-secondary/40 px-3 py-3",children:[(0,h.jsxs)(s.default,{className:"min-w-0 flex-1",children:[(0,h.jsx)(u.Text,{className:"text-sm font-medium text-foreground",children:"Browser"}),(0,h.jsx)(u.Text,{className:"mt-1 text-xs text-muted-foreground",children:"granted"===k?"Allowed":"Permission required"})]}),(0,h.jsx)(f.SegmentedControl,{options:[...v],value:N.channels.browser?"on":"off",onChange:e=>T("on"===e)}),"granted"!==k&&(0,h.jsx)(c.Button,{size:"sm",variant:"outline",label:"Allow",onPress:()=>{_()},disabled:"unsupported"===k})]}),(0,h.jsx)(u.Text,{className:"mb-2 mt-6 text-xs uppercase tracking-wider text-muted-foreground",children:"Agent Alerts"}),(0,h.jsxs)(s.default,{className:"overflow-hidden rounded-lg border border-border",children:[(0,h.jsx)(y,{label:"Agent alerts",value:N.categories.agent.enabled,onChange:e=>S("enabled",e)}),(0,h.jsx)(y,{label:"On you",value:N.categories.agent.needsInput,onChange:e=>S("needsInput",e)}),(0,h.jsx)(y,{label:"Blocked",value:N.categories.agent.blocked,onChange:e=>S("blocked",e)}),(0,h.jsx)(y,{label:"Errors",value:N.categories.agent.errors,onChange:e=>S("errors",e)}),(0,h.jsx)(y,{label:"Completed",value:N.categories.agent.completed,onChange:e=>S("completed",e)}),(0,h.jsx)(y,{label:"New activity",value:N.categories.agent.activity,onChange:e=>S("activity",e)})]})]})}function y({label:e,value:t,onChange:o}){return(0,h.jsxs)(n.default,{className:"flex-row items-center justify-between border-b border-border px-3 py-3 last:border-b-0 active:opacity-70",onPress:()=>o(!t),accessibilityRole:"switch",accessibilityState:{checked:t},children:[(0,h.jsx)(u.Text,{className:"text-sm font-medium text-foreground",children:e}),(0,h.jsx)(s.default,{className:["h-6 w-11 justify-center rounded-full px-0.5",t?"items-end bg-primary":"items-start bg-muted"].join(" "),children:(0,h.jsx)(s.default,{className:"h-5 w-5 rounded-full bg-background"})})]})}},2587,[8,111,249,116,691,2570,2392,2388,2588,2589,2562,6]);
|
|
14411
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.SegmentedControl=function({options:e,value:u,onChange:c,fullWidth:f,className:x}){return(0,s.jsx)(t.default,{className:(0,l.cn)("flex-row rounded-lg border border-border overflow-hidden",!f&&"self-start",x),children:e.map(e=>{const t=e.value===u;return(0,s.jsx)(n.default,{className:(0,l.cn)(f?"flex-1 px-3 py-2":"px-3 py-1.5",t&&"bg-primary"),onPress:()=>c(e.value),children:(0,s.jsx)(o.Text,{className:(0,l.cn)("text-sm text-center",t?"text-primary-foreground":"text-foreground"),children:e.label})},e.value)})})},r(d[0]);var t=e(r(d[1])),n=e(r(d[2])),l=r(d[3]),o=r(d[4]),s=r(d[5])},2588,[8,116,249,2389,2388,6]);
|
|
14412
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(){return globalThis.Notification??null}Object.defineProperty(e,'__esModule',{value:!0}),e.getBrowserNotificationPermission=function(){const n=t();return n?.permission??"unsupported"},e.requestBrowserNotificationPermission=async function(){const n=t();return n?n.requestPermission():"unsupported"},e.isBrowserDocumentVisible=function(){const t=globalThis.document;return"visible"===t?.visibilityState},e.showBrowserNotification=function(n){const o=t();if(!o||"granted"!==o.permission)return!1;try{return new o(n.title,{body:n.body,tag:n.dedupeKey,renotify:!1}),!0}catch{return!1}},r(d[0])},2589,[111]);
|
|
14413
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var n=r(d[1]),t=r(d[2]);function c(){return(0,t.jsx)(n.Stack,{screenOptions:{headerShown:!1},children:(0,t.jsx)(n.Stack.Screen,{name:"threads"})})}},2590,[8,291,6]);
|
|
14414
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var e,t=r(d[0]),s=r(d[1]),o=(e=s)&&e.__esModule?e:{default:e},n=r(d[2]),l=r(d[3]),c=r(d[4]),u=r(d[5]),h=r(d[6]),b=r(d[7]),f=r(d[8]),x=r(d[9]),j=r(d[10]),p=r(d[11]);function y(){const e=(0,l.useAtomValue)(x.selectedProjectAtom),{getToken:s}=(0,h.useAuth)(),y=(0,n.useGlobalSearchParams)(),P=(0,f.cleanSearchValue)(y.threadId),[S,N]=(0,t.useState)([]),[T,v]=(0,t.useState)(null),_=e?.serviceEndpoint??null;return(0,t.useEffect)(()=>{if(!_)return N([]),void v(null);let e=!1;return v(null),(async()=>{try{const t=await s(),o=await(0,b.listThreads)(_,void 0,{token:t});if(e)return;N(Array.isArray(o)?o:[]),v(null)}catch(t){e||(N([]),v(t instanceof Error?t.message:String(t)))}})(),()=>{e=!0}},[_?.host,_?.port,s]),(0,p.jsxs)(c.Page,{children:[(0,p.jsx)(c.PageHeader,{eyebrow:"Project",title:"Threads",subtitle:e?`${e.name}${e.path?` \xb7 ${e.path}`:""}`:"No project selected"}),e?_?T?(0,p.jsx)(c.PageStateCard,{title:"Unable to load threads",body:T,tone:"danger"}):0===S.length?(0,p.jsx)(c.PageStateCard,{title:"No threads",body:"Thread conversations will appear here."}):S.map(e=>{const t=e.thread.id===P;return(0,p.jsxs)(o.default,{className:(0,j.cn)("mb-2 rounded-lg border border-border bg-card p-3",t&&"border-ring bg-secondary"),children:[(0,p.jsx)(u.Text,{className:"text-base font-medium text-foreground",children:e.thread.title||e.thread.id}),(0,p.jsxs)(u.Text,{className:"text-xs text-muted-foreground",children:[e.thread.kind??"thread"," \xb7 ",e.thread.status??""]}),e.lastMessage?.body?(0,p.jsx)(u.Text,{className:"mt-1 text-sm text-foreground",numberOfLines:2,children:e.lastMessage.body}):null]},e.thread.id)}):(0,p.jsx)(c.PageStateCard,{title:"Project host offline",body:"Start the project host to load threads."}):(0,p.jsx)(c.PageStateCard,{title:"No project selected",body:"Pick a project from the sidebar."})]})}},2591,[8,116,291,691,2570,2388,2400,2538,2545,2552,2389,6]);
|
|
14415
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"unstable_settings",{enumerable:!0,get:function(){return b}}),r(d[0]),r(d[1]);var n=r(d[2]),s=r(d[3]),t=r(d[4]);const b={initialRouteName:"project"};function c(){return(0,t.jsxs)(n.Tabs,{backBehavior:"history",screenOptions:{headerShown:!1,freezeOnBlur:!1},tabBar:n=>(0,t.jsx)(s.MobileTabBar,Object.assign({},n)),children:[(0,t.jsx)(n.Tabs.Screen,{name:"(dashboard)"}),(0,t.jsx)(n.Tabs.Screen,{name:"topology"}),(0,t.jsx)(n.Tabs.Screen,{name:"project"}),(0,t.jsx)(n.Tabs.Screen,{name:"library"}),(0,t.jsx)(n.Tabs.Screen,{name:"(inbox)"}),(0,t.jsx)(n.Tabs.Screen,{name:"(threads)"}),(0,t.jsx)(n.Tabs.Screen,{name:"(settings)"})]})}},2592,[8,111,291,2593,6]);
|
|
14416
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.MobileTabBar=function({state:e,navigation:u}){const _=(0,l.useRouter)(),{width:I}=(0,n.default)(),N=I<640,k=(0,c.useSafeAreaInsets)(),w=(0,f.resolveChromeBottomInset)(k.bottom),A=(0,b.useKeyboardVisible)(),B=(0,s.useAtomValue)(h.selectedProjectPathAtom);return!N||A?null:(0,v.jsx)(o.default,{className:"flex-row border-t border-border bg-card",style:{height:56+w,paddingBottom:w},children:P.map(({id:n,label:l,Icon:s})=>{const c=n,f=j.MAIN_TAB_ROUTES[c],b=e.routes.find(e=>e.name===f.screen);if(!b)return null;const h=e.routes[e.index]?.key===b.key;return(0,v.jsxs)(t.default,{onPress:()=>{const e=u.emit({type:"tabPress",target:b.key,canPreventDefault:!0});h||e.defaultPrevented||_.navigate((0,p.buildViewHref)(f.href,{project:B}))},className:"flex-1 items-center justify-center active:bg-accent/50",children:[h?(0,v.jsx)(o.default,{className:"absolute top-0 h-0.5 w-full bg-foreground"}):null,(0,v.jsx)(s,{size:20,color:"#a1a1aa"}),(0,v.jsx)(x.Text,{className:(0,y.cn)("mt-0.5 text-[10px]",h?"text-foreground":"text-muted-foreground"),children:l})]},n)})})},r(d[0]);var t=e(r(d[1])),o=e(r(d[2])),n=e(r(d[3])),l=r(d[4]),s=r(d[5]),u=r(d[6]),c=r(d[7]),f=r(d[8]),b=r(d[9]),x=r(d[10]),y=r(d[11]),j=r(d[12]),p=r(d[13]),h=r(d[14]),v=r(d[15]);const P=[{id:"topology",label:"Topology",Icon:u.Network},{id:"project",label:"Project",Icon:u.FolderKanban},{id:"library",label:"Library",Icon:u.BookOpen}]},2593,[8,249,116,274,291,691,695,281,2594,2544,2388,2389,2595,2545,2552,6]);
|
|
14417
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IOS_MIN_TOP_INSET",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"IOS_MIN_BOTTOM_INSET",{enumerable:!0,get:function(){return n}}),e.resolveChromeTopInset=function(t){return 0},e.resolveChromeBottomInset=function(t){return 0},r(d[0]);const t=54,n=24},2594,[111]);
|
|
14418
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAIN_TAB_ROUTES",{enumerable:!0,get:function(){return b}}),e.mainTabForPath=function(t){return t.startsWith("/topology")?"topology":t.startsWith("/project")?"project":t.startsWith("/library")?"library":t.startsWith("/notifications")?"inbox":t.startsWith("/threads")?"threads":t.startsWith("/settings")?"settings":"dashboard"},e.useMainTabNavigation=function(){const h=(0,s.useRouter)(),l=(0,n.useAtomValue)(o.selectedProjectPathAtom);return(0,t.useCallback)(t=>{h.navigate((0,c.buildViewHref)(b[t].href,{project:l}))},[h,l])};var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]);const b={dashboard:{id:"dashboard",href:"/",internalHref:"/(main)/(tabs)/(dashboard)",screen:"(dashboard)"},topology:{id:"topology",href:"/topology",internalHref:"/(main)/(tabs)/topology",screen:"topology"},project:{id:"project",href:"/project",internalHref:"/project",screen:"project"},library:{id:"library",href:"/library",internalHref:"/library",screen:"library"},inbox:{id:"inbox",href:"/notifications",internalHref:"/(main)/(tabs)/(inbox)/notifications",screen:"(inbox)"},threads:{id:"threads",href:"/threads",internalHref:"/(main)/(tabs)/(threads)/threads",screen:"(threads)"},settings:{id:"settings",href:"/settings",internalHref:"/(main)/(tabs)/(settings)/settings",screen:"(settings)"}}},2595,[8,291,691,2552,2545]);
|
|
14419
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var n=r(d[1]),t=r(d[2]);function c(){return(0,t.jsxs)(n.Stack,{screenOptions:{headerShown:!1},children:[(0,t.jsx)(n.Stack.Screen,{name:"index"}),(0,t.jsx)(n.Stack.Screen,{name:"agent/[sessionId]/chat"}),(0,t.jsx)(n.Stack.Screen,{name:"service/[serviceId]"})]})}},2596,[8,291,6]);
|
|
14420
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2597,[690]);
|
|
14421
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return C}});var t=r(d[0]),s=e(r(d[1])),n=e(r(d[2])),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),f=r(d[7]),x=r(d[8]),b=r(d[9]),h=r(d[10]),j=r(d[11]),p=r(d[12]),y=r(d[13]),P=r(d[14]),S=r(d[15]),w=r(d[16]),N=r(d[17]);function k({document:e,selected:t,onPress:o}){return(0,N.jsxs)(s.default,{onPress:o,className:(0,P.cn)("border-b border-border px-4 py-3 active:bg-accent",t&&"bg-secondary"),children:[(0,N.jsxs)(n.default,{className:"flex-row items-center",children:[(0,N.jsx)(c.FileText,{size:15,color:"#a1a1aa"}),(0,N.jsx)(j.Text,{className:"ml-2 flex-1 text-[14px] font-semibold text-foreground",children:e.title})]}),(0,N.jsxs)(j.Text,{className:"mt-1 text-[11px] uppercase tracking-widest text-muted-foreground",children:[e.kind," \xb7 ",(l=e.size,l<1024?`${l} B`:`${Math.round(l/1024)} KB`),e.truncated?" \xb7 truncated":""]})]});var l}function C(){const{colorScheme:e}=(0,u.useColorScheme)(),s="dark"===e?"#fafafa":"#09090b",P=(0,l.useAtomValue)(w.selectedProjectAtom),C=(0,l.useAtomValue)(w.selectedProjectEndpointAtom),{getToken:v}=(0,y.useAuth)(),T=(0,o.useRouter)(),$=(0,o.useGlobalSearchParams)(),R=(0,S.cleanSearchValue)($.document),[_,z]=(0,t.useState)([]),[A,L]=(0,t.useState)(!1),[B,E]=(0,t.useState)(null),M=C?`${C.host}:${C.port}`:null,V=(0,t.useRef)(C),D=(0,t.useRef)(v),O=(0,t.useRef)(0);(0,t.useEffect)(()=>{V.current=C,D.current=v},[C,v]);const H=(0,t.useMemo)(()=>_.find(e=>e.id===R)??_[0]??null,[_,R]),F=(0,t.useCallback)(async()=>{const e=++O.current,t=V.current;if(!t)return z([]),E(null),void L(!1);L(!0);try{const s=await D.current(),n=await(0,p.listProjectLibrary)(t,{token:s});if(e!==O.current)return;z(n.documents),E(null)}catch(t){if(e!==O.current)return;E(t instanceof Error?t.message:String(t))}finally{e===O.current&&L(!1)}},[]);return(0,t.useEffect)(()=>{const e=setTimeout(()=>{F()},0);return()=>clearTimeout(e)},[M,F]),(0,N.jsxs)(x.Page,{children:[(0,N.jsx)(x.PageHeader,{eyebrow:"Library",title:"Project Specs",subtitle:P?`${P.name}${P.path?` \xb7 ${P.path}`:""}`:"No project selected",actions:(0,N.jsx)(b.Button,{variant:"outline",size:"icon",disabled:!C||A,onPress:()=>{F()},accessibilityLabel:"Refresh library",children:(0,N.jsx)(c.RefreshCw,{size:18,color:s})})}),P?C?B?(0,N.jsx)(x.PageStateCard,{title:"Library failed",body:B,tone:"danger"}):0===_.length?(0,N.jsx)(x.PageStateCard,{title:A?"Loading library...":"No library documents",body:"Durable project instruction files will appear here when present."}):(0,N.jsxs)(n.default,{className:"gap-4 lg:flex-row",children:[(0,N.jsx)(h.Card,{className:"overflow-hidden rounded-xl p-0 lg:w-[320px]",children:_.map(e=>(0,N.jsx)(k,{document:e,selected:e.id===H?.id,onPress:()=>T.replace((0,S.buildViewHref)("/library",{project:P?.path,document:e.id}))},e.id))}),(0,N.jsx)(f.DetailPanel,{title:H?.title??"Document",meta:H?.path,icon:(0,N.jsx)(c.BookOpen,{size:17,color:"#a1a1aa"}),children:(0,N.jsx)(n.default,{children:(0,N.jsx)(j.Text,{className:"font-mono text-[12px] leading-5 text-foreground",children:H?.content})})})]}):(0,N.jsx)(x.PageStateCard,{title:"Project host offline",body:"Start the project host to load library documents."}):(0,N.jsx)(x.PageStateCard,{title:"No project selected",body:"Pick a project from the sidebar."})]})}},2598,[8,249,116,291,691,695,429,2599,2570,2392,2571,2388,2538,2400,2389,2545,2552,6]);
|
|
14422
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.DetailPanel=function({title:e,meta:u,icon:f,children:h,onClose:p}){return(0,o.jsxs)(c.Card,{className:"min-h-[420px] flex-1 rounded-xl p-0",children:[(0,o.jsxs)(s.default,{className:"flex-row items-center border-b border-border px-4 py-3",children:[f?(0,o.jsx)(s.default,{className:"mr-2",children:f}):null,(0,o.jsxs)(s.default,{className:"min-w-0 flex-1",children:[(0,o.jsx)(x.Text,{className:"text-[16px] font-bold text-foreground",numberOfLines:1,children:e}),u?(0,o.jsx)(x.Text,{className:"mt-1 text-[11px] uppercase tracking-widest text-muted-foreground",children:u}):null]}),p?(0,o.jsx)(n.Button,{variant:"ghost",size:"icon",onPress:p,accessibilityLabel:"Close detail",children:(0,o.jsx)(l.X,{size:17,color:"#a1a1aa"})}):null]}),(0,o.jsx)(t.default,{className:"max-h-[620px] px-4 py-4",children:h})]})},_e.DetailEmptyState=function({title:e,body:t}){return(0,o.jsxs)(c.Card,{className:"min-h-[220px] flex-1 items-center justify-center rounded-xl p-6",children:[(0,o.jsx)(x.Text,{className:"text-base font-semibold text-foreground",children:e}),t?(0,o.jsx)(x.Text,{className:"mt-1 text-center text-sm text-muted-foreground",children:t}):null]})},r(d[0]);var t=e(r(d[1])),s=e(r(d[2])),l=r(d[3]),n=r(d[4]),c=r(d[5]),x=r(d[6]),o=r(d[7])},2599,[8,140,116,695,2392,2571,2388,6]);
|
|
14423
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2600,[2575]);
|
|
14424
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var n=r(d[1]),t=r(d[2]);function c(){return(0,t.jsxs)(n.Stack,{screenOptions:{headerShown:!1},children:[(0,t.jsx)(n.Stack.Screen,{name:"index"}),(0,t.jsx)(n.Stack.Screen,{name:"agent/[sessionId]/chat"}),(0,t.jsx)(n.Stack.Screen,{name:"service/[serviceId]"})]})}},2601,[8,291,6]);
|
|
14425
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2602,[690]);
|
|
14426
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return q}});var t=r(d[0]),s=e(r(d[1])),l=e(r(d[2])),o=r(d[3]),n=r(d[4]),c=r(d[5]),u=r(d[6]),x=r(d[7]),f=r(d[8]),b=r(d[9]),j=r(d[10]),p=r(d[11]),h=r(d[12]),y=r(d[13]),N=r(d[14]),k=r(d[15]),v=r(d[16]),w=r(d[17]),T=r(d[18]),P=r(d[19]),S=r(d[20]),C=r(d[21]);const A=[{id:"dashboard",label:"Dashboard"},{id:"story",label:"Story"},{id:"progress",label:"Progress"},{id:"artifacts",label:"Artifacts"},{id:"tests",label:"Tests"},{id:"queue",label:"Queue"},{id:"topology",label:"Topology"}];function R({label:e,value:t}){return(0,C.jsxs)(f.Card,{className:"mr-2 mb-2 min-w-[112px] flex-1 rounded-lg p-3",children:[(0,C.jsx)(j.Text,{className:"text-[22px] font-bold leading-tight text-foreground",children:t}),(0,C.jsx)(j.Text,{className:"mt-1 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:e})]})}function O({label:e,active:t,onPress:l}){return(0,C.jsx)(s.default,{onPress:l,className:(0,k.cn)("mr-2 mb-2 rounded-full border px-3 py-1.5 active:opacity-80",t?"border-foreground bg-foreground":"border-border bg-card"),children:(0,C.jsx)(j.Text,{className:(0,k.cn)("text-[12px] font-semibold",t?"text-background":"text-foreground"),children:e})})}function V({title:e,body:t}){return(0,C.jsx)(b.PageStateCard,{title:e,body:t})}function z({items:e}){return 0===e.length?(0,C.jsx)(V,{title:"No story yet",body:"Project activity will appear here."}):(0,C.jsx)(l.default,{children:e.map(e=>(0,C.jsx)(f.Card,{className:"mb-3 rounded-lg p-4",children:(0,C.jsxs)(l.default,{className:"flex-row items-start",children:[(0,C.jsx)(l.default,{className:"mr-3 rounded-full bg-secondary p-2",children:(0,C.jsx)(c.FileText,{size:17,color:"#a1a1aa"})}),(0,C.jsxs)(l.default,{className:"min-w-0 flex-1",children:[(0,C.jsx)(j.Text,{className:"text-[15px] font-semibold text-foreground",numberOfLines:2,children:e.title}),e.body?(0,C.jsx)(j.Text,{className:"mt-2 text-[13px] leading-snug text-foreground/90",children:e.body}):null,e.meta?(0,C.jsx)(j.Text,{className:"mt-3 text-[11px] uppercase tracking-widest text-muted-foreground",children:e.meta}):null]})]})},e.id))})}function F({tasks:e}){return 0===e.length?(0,C.jsx)(V,{title:"No queue items",body:"Open task exchange items will appear here."}):(0,C.jsx)(f.Card,{className:"overflow-hidden rounded-xl p-0",children:e.map((e,t)=>(0,C.jsxs)(l.default,{className:(0,k.cn)("px-4 py-3",t>0&&"border-t border-border"),children:[(0,C.jsxs)(l.default,{className:"flex-row items-center",children:[(0,C.jsx)(c.ClipboardList,{size:15,color:"#a1a1aa"}),(0,C.jsx)(j.Text,{className:"ml-2 flex-1 text-[14px] font-semibold text-foreground",children:e.description||e.id})]}),(0,C.jsx)(j.Text,{className:"mt-2 text-[11px] uppercase tracking-widest text-muted-foreground",children:[e.status,e.assignedTo??e.assignee,e.tool].filter(Boolean).join(" \xb7 ")})]},e.id))})}function _({model:e}){return(0,C.jsxs)(l.default,{children:[(0,C.jsxs)(l.default,{className:"mb-4 flex-row flex-wrap",children:[(0,C.jsx)(R,{label:"Running",value:e.summary.running}),(0,C.jsx)(R,{label:"Waiting",value:e.summary.waiting}),(0,C.jsx)(R,{label:"Offline",value:e.summary.offline}),(0,C.jsx)(R,{label:"Open Tasks",value:e.summary.openTasks})]}),(0,C.jsx)(z,{items:e.story})]})}function q(){const{colorScheme:e}=(0,u.useColorScheme)(),s="dark"===e?"#fafafa":"#09090b",[k,q]=(0,t.useState)([]),[E,H]=(0,t.useState)(null),[M,B]=(0,t.useState)(!1),G=(0,n.useAtomValue)(S.selectedProjectAtom),L=(0,n.useAtomValue)(S.selectedProjectEndpointAtom),W=(0,n.useAtomValue)((0,T.desktopStateFamily)(G?.path??"")),D=(0,n.useAtomValue)((0,T.worktreeGroupsFamily)(G?.path??"")),$=(0,n.useAtomValue)((0,P.notificationFeedFamily)(G?.path??"")),{getToken:Q}=(0,h.useAuth)(),U=(0,o.useRouter)(),I=(0,o.useGlobalSearchParams)(),J=(K=(0,w.cleanSearchValue)(I.section),A.some(e=>e.id===K)?K:"dashboard");var K;const X=L?`${L.host}:${L.port}`:null,Y=(0,t.useRef)(L),Z=(0,t.useRef)(Q),ee=(0,t.useRef)(0);(0,t.useEffect)(()=>{Y.current=L,Z.current=Q},[L,Q]);const te=(0,t.useCallback)(async()=>{const e=++ee.current,t=Y.current;if(!t)return q([]),H(null),void B(!1);B(!0);try{const s=await Z.current(),l=await(0,p.listTasks)(t,void 0,{token:s});if(e!==ee.current)return;q(l.tasks),H(null)}catch(t){if(e!==ee.current)return;H(t instanceof Error?t.message:String(t))}finally{e===ee.current&&B(!1)}},[]);(0,t.useEffect)(()=>{const e=setTimeout(()=>{te()},0);return()=>clearTimeout(e)},[X,te]);const se=(0,t.useMemo)(()=>(0,N.buildProjectObservability)({desktopState:W,notifications:$?.notifications??[],tasks:k}),[W,$?.notifications,k]),re=(0,t.useMemo)(()=>G?(0,y.buildProjectTopology)(G,D,W):null,[W,D,G]);return(0,C.jsxs)(b.Page,{children:[(0,C.jsx)(b.PageHeader,{eyebrow:"Project",title:G?.name??"No project selected",subtitle:G?.path,actions:(0,C.jsx)(x.Button,{variant:"outline",size:"icon",disabled:!L||M,onPress:()=>{te()},accessibilityLabel:"Refresh project tasks",children:(0,C.jsx)(c.RefreshCw,{size:18,color:s})})}),(0,C.jsxs)(l.default,{className:"mb-5 flex-row flex-wrap",children:[(0,C.jsx)(R,{label:"Agents",value:se.summary.agents}),(0,C.jsx)(R,{label:"Services",value:se.summary.services}),(0,C.jsx)(R,{label:"Worktrees",value:se.summary.worktrees}),(0,C.jsx)(R,{label:"Tasks",value:se.summary.tasks}),(0,C.jsx)(R,{label:"Unread",value:se.summary.unreadNotifications})]}),(0,C.jsx)(l.default,{className:"mb-4 flex-row flex-wrap",children:A.map(e=>(0,C.jsx)(O,{label:e.label,active:J===e.id,onPress:()=>U.replace((0,w.buildViewHref)("/project",{project:G?.path,section:e.id}))},e.id))}),G?L?E?(0,C.jsxs)(f.Card,{className:"mb-4 rounded-lg border-destructive/50 bg-destructive/10",children:[(0,C.jsx)(j.Text,{className:"text-sm font-semibold text-foreground",children:"Project queue failed"}),(0,C.jsx)(j.Text,{className:"mt-1 text-xs text-muted-foreground",children:E})]}):null:(0,C.jsx)(V,{title:"Project host offline",body:"Start the project host to load tasks."}):(0,C.jsx)(V,{title:"No project selected",body:"Pick a project from the sidebar."}),G&&L?(0,C.jsxs)(C.Fragment,{children:["dashboard"===J?(0,C.jsx)(v.WorktreeDashboard,{padded:!1}):null,"story"===J?(0,C.jsx)(z,{items:se.story}):null,"progress"===J?(0,C.jsx)(_,{model:se}):null,"artifacts"===J?(0,C.jsx)(z,{items:se.artifactHints}):null,"tests"===J?(0,C.jsx)(z,{items:se.verificationHints}):null,"queue"===J?(0,C.jsx)(F,{tasks:se.openTasks}):null,"topology"===J?(0,C.jsxs)(l.default,{children:[(0,C.jsxs)(f.Card,{className:"mb-3 rounded-lg p-4",children:[(0,C.jsxs)(l.default,{className:"flex-row items-center",children:[(0,C.jsx)(c.Network,{size:17,color:"#a1a1aa"}),(0,C.jsx)(j.Text,{className:"ml-2 text-[15px] font-semibold text-foreground",children:"Runtime topology"})]}),(0,C.jsxs)(j.Text,{className:"mt-2 text-[13px] text-muted-foreground",children:[re?.summary.worktrees??0," worktrees \xb7 ",re?.summary.agents??0," ","agents \xb7 ",re?.summary.services??0," services"]})]}),D.map(e=>(0,C.jsxs)(f.Card,{className:"mb-3 rounded-lg p-4",children:[(0,C.jsxs)(l.default,{className:"flex-row items-center",children:[(0,C.jsx)(c.GitBranch,{size:15,color:"#a1a1aa"}),(0,C.jsx)(j.Text,{className:"ml-2 flex-1 text-[14px] font-semibold text-foreground",children:e.name}),(0,C.jsxs)(j.Text,{className:"text-[11px] text-muted-foreground",children:[e.sessions.length+e.services.length," nodes"]})]}),e.branch?(0,C.jsx)(j.Text,{className:"mt-2 text-[11px] font-mono text-muted-foreground",children:e.branch}):null]},e.key))]}):null]}):null]})}},2603,[8,249,116,291,691,695,429,2392,2571,2570,2388,2538,2400,2604,2606,2389,2607,2545,2550,2583,2552,6]);
|
|
14427
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.healthForStatus=s,e.buildProjectTopology=function(t,n,s){const o=`project:${t.path}`,u=n.map(t=>{const n=`worktree:${t.key}`,s=t.sessions.map(n=>c(n,t.key)),o=t.services.map(n=>h(n,t.key));return{id:n,name:t.name,branch:t.branch,path:t.path,health:l([...s,...o]),agents:s,services:o}}),f={id:o,kind:"project",label:t.name,subtitle:t.path,health:s?l(u.flatMap(t=>[...t.agents,...t.services])):"offline"},p=[f,...u.map(t=>({id:t.id,kind:"worktree",label:t.name,subtitle:t.branch||t.path||void 0,health:t.health})),...u.flatMap(t=>[...t.agents,...t.services])],v=[...u.map(t=>({id:`${o}->${t.id}`,from:o,to:t.id})),...u.flatMap(t=>[...t.agents,...t.services].map(n=>({id:`${t.id}->${n.id}`,from:t.id,to:n.id})))],b=u.reduce((t,n)=>t+n.agents.length,0),k=u.reduce((t,n)=>t+n.services.length,0),w=u.flatMap(t=>[...t.agents,...t.services]);return{project:f,worktrees:u,nodes:p,edges:v,summary:{worktrees:u.length,agents:b,services:k,active:w.filter(t=>"active"===t.health).length,attention:w.filter(t=>"attention"===t.health).length,offline:w.filter(t=>"offline"===t.health).length}}};var t=r(d[0]);function n(t){return t?.trim().toLowerCase()??""}function s(t,s){if(s?.trim())return"attention";const o=n(t);return"running"===o?"active":"waiting"===o?"attention":"idle"===o?"idle":"exited"===o||"offline"===o?"offline":"idle"}function o(t){switch(t){case"attention":return 4;case"active":return 3;case"idle":return 2;case"offline":return 1}}function l(t){return 0===t.length?"idle":t.reduce((t,n)=>o(n.health)>o(t)?n.health:t,"offline")}function c(n,o){const l=(0,t.firstTokenOf)(n.command);return{id:`agent:${n.id}`,kind:"agent",label:n.label||n.id,subtitle:[l,n.headline||n.previewLine].filter(Boolean).join(" \xb7 "),status:n.status,command:n.command,health:s(n.status,n.pendingAction),worktreeKey:o,sourceId:n.id}}function h(t,n){const o=t.shellCommand??t.previewLine??t.command??"";return{id:`service:${t.id}`,kind:"service",label:t.label||t.id,subtitle:o,status:t.status,command:t.command,health:s(t.status,t.pendingAction),worktreeKey:n,sourceId:t.id}}},2604,[2605]);
|
|
14428
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AGENT_STATUS_TONE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"SERVICE_STATUS_TONE",{enumerable:!0,get:function(){return n}}),e.firstTokenOf=function(t){return t?t.trim().split(/\s+/,1)[0]??"":""};const t={running:"text-emerald-500",idle:"text-zinc-400",waiting:"text-amber-500",exited:"text-zinc-500",offline:"text-zinc-500"},n={running:"text-emerald-500",exited:"text-zinc-500",offline:"text-zinc-500"}},2605,[]);
|
|
14429
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t?.trim().toLowerCase()??""}function n(n){const s=t(n.status);return!["done","complete","completed","closed","cancelled","canceled"].includes(s)}function s(t){return t.description||t.id}function o(t,n){return n.some(n=>t.includes(n))}function l(t){return{id:`notification:${t.id}`,title:t.title||t.subtitle||"aimux",body:t.body,meta:[t.kind?.replace(/[_-]+/g," "),t.sessionId].filter(Boolean).join(" \xb7 "),createdAt:t.createdAt}}Object.defineProperty(e,'__esModule',{value:!0}),e.buildProjectObservability=function(c){const f=c.desktopState?.sessions??[],u=c.desktopState?.services??[],p=c.desktopState?.worktrees??[],k=[...f,...u].map(n=>t(n.status)),b=c.tasks.filter(n),h=c.tasks.filter(t=>!n(t)),y=c.notifications.slice(0,8).map(l),v=b.slice(0,6).map(t=>({id:`task:${t.id}`,title:s(t),body:t.status,meta:[t.assignedTo??t.assignee,t.tool,t.threadId].filter(Boolean).join(" \xb7 ")})),j=c.notifications.filter(n=>o(t([n.title,n.subtitle,n.body,n.kind].join(" ")),["artifact","file","commit","diff","patch","screenshot","proof"])).slice(0,8).map(l),w=c.notifications.filter(n=>o(t([n.title,n.subtitle,n.body,n.kind].join(" ")),["test","verify","verification","passed","failed","proof"])).slice(0,8).map(l);return{summary:{agents:f.length,services:u.length,worktrees:p.length,running:k.filter(t=>"running"===t).length,waiting:k.filter(t=>"waiting"===t).length,offline:k.filter(t=>"offline"===t||"exited"===t).length,tasks:c.tasks.length,openTasks:b.length,unreadNotifications:c.notifications.filter(t=>t.unread).length},story:[...v,...y].slice(0,12),openTasks:b,completedTasks:h,artifactHints:j,verificationHints:w}}},2606,[]);
|
|
14430
|
+
__d(function(_g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.WorktreeDashboard=function({padded:e=!0}){const s=(0,o.useAtomValue)(v.selectedProjectAtom),c=(0,o.useAtomValue)(v.selectedProjectEndpointAtom),x=(0,o.useAtomValue)((0,k.desktopStateFamily)(s?.path??"")),h=(0,o.useAtomValue)((0,k.desktopStateErrorFamily)(s?.path??"")),p=(0,o.useAtomValue)((0,k.worktreeGroupsFamily)(s?.path??"")),j=(0,o.useSetAtom)(v.selectedSessionIdAtom),g=(0,l.useRouter)(),N=(0,l.usePathname)(),{getToken:P}=(0,f.useAuth)(),[S,C]=(0,t.useState)(null);(0,t.useEffect)(()=>{let e=!1;return(async()=>{try{const t=await P();e||C(t)}catch{e||C(null)}})(),()=>{e=!0}},[P]);const T=e?"p-6":"py-6";if(!c&&null===x)return(0,y.jsx)(n.default,{className:T,children:(0,y.jsx)(u.PageStateCard,{title:"Project host not running",body:"Start the host to see worktrees, agents, and services for this project."})});if(c&&null===x&&h){const e=(0,w.projectStateErrorCopy)(h);return(0,y.jsx)(n.default,{className:T,children:(0,y.jsx)(u.PageStateCard,{title:e.title,body:e.detail,tone:"warning"})})}if(c&&null===x)return(0,y.jsx)(n.default,{className:T,children:(0,y.jsx)(u.PageStateCard,{title:"Loading project state..."})});if(0===p.length)return(0,y.jsx)(n.default,{className:T,children:(0,y.jsx)(u.PageStateCard,{title:"No worktrees yet",body:"Worktrees will appear here."})});return(0,y.jsx)(O,{groups:p,endpoint:c,token:S,padded:e,onPickSession:function(e){j(e),g.push((0,b.detailHrefForPath)(N,"agent",e,s?.path))},onPickService:function(e){g.push((0,b.detailHrefForPath)(N,"service",e,s?.path))}})};var t=r(d[0]),s=e(r(d[1])),n=e(r(d[2])),l=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),x=r(d[7]),h=r(d[8]),p=r(d[9]),f=r(d[10]),j=r(d[11]),g=r(d[12]),b=r(d[13]),k=r(d[14]),v=r(d[15]),w=r(d[16]),y=r(d[17]);const N="hover:bg-[#232429] active:bg-[#26272d]";function P(e){return e.sessions.length>0||e.services.length>0}function S({status:e}){const t="running"===e?"text-[#4ade80]":"waiting"===e?"text-amber-400":"text-[#787a83]";return(0,y.jsx)(x.Text,{className:(0,g.cn)("min-w-[62px] text-right font-mono text-[13px]",t),numberOfLines:1,children:e})}function C({session:e,onPress:t}){const l=(0,j.firstTokenOf)(e.command);return(0,y.jsxs)(s.default,{onPress:t,className:(0,g.cn)("flex-row items-center rounded-md py-3 pl-4 pr-4",N),children:[(0,y.jsxs)(n.default,{className:"min-w-0 flex-1 flex-row items-center gap-3",children:[(0,y.jsx)(p.StatusDotMini,{status:e.status}),(0,y.jsx)(x.Text,{className:"min-w-0 shrink text-[15px] font-medium text-[#edeef0]",numberOfLines:1,ellipsizeMode:"tail",children:e.label||e.id}),l?(0,y.jsx)(x.Text,{className:"min-w-0 shrink font-mono text-[13px] text-[#787a83]",numberOfLines:1,ellipsizeMode:"tail",children:l}):null]}),(0,y.jsx)(n.default,{className:"flex-row items-center gap-5 pl-4",children:(0,y.jsx)(S,{status:e.status})})]})}function T({service:e,endpoint:t,token:l,onPress:o}){const c=e.shellCommand??e.previewLine??e.command??"";return(0,y.jsxs)(n.default,{className:"flex-row items-center rounded-md py-3 pl-4 pr-4 hover:bg-[#232429]",children:[(0,y.jsxs)(s.default,{onPress:o,className:"min-w-0 flex-1 flex-row items-center gap-3 active:opacity-70",children:[(0,y.jsx)(p.StatusDotMini,{status:e.status,shape:"diamond"}),(0,y.jsx)(x.Text,{className:"min-w-0 shrink text-[15px] font-medium text-[#edeef0]",numberOfLines:1,ellipsizeMode:"tail",children:e.label||e.id}),(0,y.jsx)(p.TypeTag,{label:"service"}),c?(0,y.jsx)(x.Text,{className:"min-w-0 shrink font-mono text-[13px] text-[#787a83]",numberOfLines:1,ellipsizeMode:"tail",children:c}):null]}),(0,y.jsxs)(n.default,{className:"flex-row items-center gap-5 pl-4",children:[(0,y.jsx)(S,{status:e.status}),(0,y.jsx)(h.ServiceActions,{service:e,endpoint:t,token:l,compact:!0})]})]})}function M({bucket:e,endpoint:l,token:o,onPickSession:u,onPickService:h}){const f=P(e),j=!f,[b,k]=(0,t.useState)(!1),v=[...e.sessions,...e.services].some(e=>"running"===e.status),w=[];e.sessions.length>0&&w.push(`${e.sessions.length} agent${e.sessions.length>1?"s":""}`),e.services.length>0&&w.push(`${e.services.length} service${e.services.length>1?"s":""}`);const S=j?"empty":w.join(" \xb7 "),M=(0,y.jsxs)(y.Fragment,{children:[f?b?(0,y.jsx)(c.ChevronRight,{size:14,color:"#5b5d66"}):(0,y.jsx)(c.ChevronDown,{size:14,color:"#5b5d66"}):(0,y.jsx)(n.default,{className:"w-[14px]"}),(0,y.jsx)(p.StatusDotMini,{status:v?"running":void 0,hollow:j,shape:"square",outline:!0}),(0,y.jsx)(x.Text,{className:(0,g.cn)("shrink-0 text-[15px]",j?"font-semibold text-[#a6a8b0]":"font-bold text-[#edeef0]"),numberOfLines:1,ellipsizeMode:"tail",children:e.name}),e.branch?(0,y.jsx)(p.BranchChip,{branch:e.branch}):null,(0,y.jsx)(x.Text,{className:"ml-auto pl-4 text-[13px] text-[#787a83]",numberOfLines:1,children:S})]}),O="flex-row items-center gap-3 rounded-md px-3 py-3";return(0,y.jsxs)(n.default,{children:[f?(0,y.jsx)(s.default,{onPress:()=>k(e=>!e),className:(0,g.cn)(O,N),children:M}):(0,y.jsx)(n.default,{className:O,children:M}),f&&!b?(0,y.jsxs)(n.default,{className:"ml-[22px] border-l-2 border-[#3a3c44]",children:[e.sessions.map(e=>(0,y.jsx)(C,{session:e,onPress:()=>u(e.id)},e.id)),e.services.map(e=>(0,y.jsx)(T,{service:e,endpoint:l,token:o,onPress:()=>h(e.id)},e.id))]}):null]})}function O({groups:e,endpoint:l,token:o,padded:u,onPickSession:h,onPickService:p}){const[f,j]=(0,t.useState)(!1),b=e.find(e=>e.isMainCheckout),k=e.filter(e=>!e.isMainCheckout),v=k.filter(P),w=k.filter(e=>!P(e)),S={endpoint:l,token:o,onPickSession:h,onPickService:p};return(0,y.jsxs)(n.default,{className:(0,g.cn)("py-3",u&&"px-4"),children:[b?(0,y.jsx)(M,Object.assign({bucket:b},S)):null,v.map(e=>(0,y.jsx)(M,Object.assign({bucket:e},S),e.key)),w.length>0?(0,y.jsxs)(n.default,{className:"mt-1",children:[(0,y.jsxs)(s.default,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:f},accessibilityLabel:`${f?"Hide":"Show"} ${w.length} empty worktree${w.length>1?"s":""}`,className:(0,g.cn)("flex-row items-center gap-3 rounded-md px-3 py-3",N),children:[f?(0,y.jsx)(c.ChevronDown,{size:14,color:"#5b5d66"}):(0,y.jsx)(c.ChevronRight,{size:14,color:"#5b5d66"}),(0,y.jsxs)(x.Text,{className:"text-[14px] text-[#787a83]",children:[(0,y.jsx)(x.Text,{className:"font-bold text-[#a6a8b0]",children:w.length})," empty worktree",w.length>1?"s":""]})]}),f?w.map(e=>(0,y.jsx)(M,Object.assign({bucket:e},S),e.key)):null]}):null]})}},2607,[8,249,116,291,691,695,2570,2388,2576,2577,2400,2605,2389,2545,2550,2552,2560,6]);
|
|
14431
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2608,[2575]);
|
|
14432
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}}),r(d[0]);var n=r(d[1]),t=r(d[2]);function c(){return(0,t.jsxs)(n.Stack,{screenOptions:{headerShown:!1},children:[(0,t.jsx)(n.Stack.Screen,{name:"index"}),(0,t.jsx)(n.Stack.Screen,{name:"agent/[sessionId]/chat"}),(0,t.jsx)(n.Stack.Screen,{name:"service/[serviceId]"})]})}},2609,[8,291,6]);
|
|
14433
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2610,[690]);
|
|
14434
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return B}});var t=r(d[0]),s=e(t),l=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),c=e(r(d[4])),x=r(d[5]),u=e(x),f=r(d[6]),h=r(d[7]),j=r(d[8]),p=r(d[9]),b=r(d[10]),k=r(d[11]),y=r(d[12]),w=r(d[13]),v=r(d[14]),N=r(d[15]),P=r(d[16]),T=r(d[17]),S=r(d[18]),A=r(d[19]),z=r(d[20]),C=r(d[21]);const I=[{value:"map",label:"Map"},{value:"tree",label:"Tree"},{value:"table",label:"Table"}];function W(e){switch(e){case"active":return"#22c55e";case"attention":return"#f59e0b";case"offline":return"#71717a";case"idle":return"#38bdf8"}}function L(e){switch(e){case"active":return"active";case"attention":return"attention";case"offline":return"offline";case"idle":return"idle"}}function M(e,t){return e.length<=t?e:t<=3?e.slice(0,t):`${e.slice(0,t-3)}...`}function F({label:e,value:t,tone:s}){return(0,C.jsxs)(p.Card,{className:"mr-2 mb-2 min-w-[112px] flex-1 rounded-lg p-3",children:[(0,C.jsx)(w.Text,{className:"text-[22px] font-bold text-foreground leading-tight",children:t}),(0,C.jsxs)(o.default,{className:"mt-1 flex-row items-center",children:[s?(0,C.jsx)(o.default,{className:"mr-1.5 h-2 w-2 rounded-full",style:{backgroundColor:W(s)}}):null,(0,C.jsx)(w.Text,{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:e})]})]})}function O({node:e,onPress:t}){const s=(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(o.default,{className:"flex-row items-center",children:[(0,C.jsx)(o.default,{className:"mr-2.5 h-2.5 w-2.5 rounded-full",style:{backgroundColor:W(e.health)}}),(0,C.jsx)(w.Text,{className:"flex-1 text-[14px] font-semibold text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.label}),e.status?(0,C.jsxs)(o.default,{className:"ml-2 flex-row items-center gap-2",children:["agent"===e.kind||"service"===e.kind?(0,C.jsx)(k.RuntimeBadge,{brand:(0,S.runtimeBrandForKind)(e.kind,e.command),compact:!0}):null,(0,C.jsx)(v.StatusPill,{status:e.status})]}):null]}),e.subtitle?(0,C.jsx)(w.Text,{className:"mt-1.5 text-[11px] text-muted-foreground",numberOfLines:2,ellipsizeMode:"tail",children:e.subtitle}):null]});return t?(0,C.jsx)(p.PressableCard,{onPress:t,className:"mb-2 rounded-lg bg-secondary p-3",children:s}):(0,C.jsx)(p.Card,{className:"mb-2 rounded-lg bg-secondary p-3",children:s})}function R({topology:e,width:t,onPickAgent:l,onPickService:c}){const f=Math.max(680,t-64),h=Math.max(240,92+112*e.worktrees.length),j=h/2;return(0,C.jsx)(n.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,C.jsx)(o.default,{className:"rounded-xl border border-border bg-card",children:(0,C.jsxs)(u.default,{width:f,height:h,children:[(0,C.jsx)(x.Line,{x1:130,y1:j,x2:214,y2:j,stroke:"#3f3f46",strokeWidth:2}),(0,C.jsx)(x.Rect,{x:24,y:j-36,width:124,height:72,rx:10,fill:"#18181b",stroke:W(e.project.health),strokeWidth:2}),(0,C.jsx)(x.Circle,{cx:44,cy:j-15,r:5,fill:W(e.project.health)}),(0,C.jsx)(x.Text,{x:62,y:j-9,fill:"#fafafa",fontSize:"13",fontWeight:"700",children:M(e.project.label,12)}),(0,C.jsx)(x.Text,{x:44,y:j+15,fill:"#a1a1aa",fontSize:"10",children:"project"}),e.worktrees.map((e,t)=>{const n=56+112*t,o=[...e.agents,...e.services],u=o.length>1?48:0,f=n-(o.length-1)*u/2;return(0,C.jsxs)(s.default.Fragment,{children:[(0,C.jsx)(x.Line,{x1:216,y1:j,x2:216,y2:n,stroke:"#3f3f46",strokeWidth:1.5}),(0,C.jsx)(x.Line,{x1:216,y1:n,x2:274,y2:n,stroke:"#3f3f46",strokeWidth:1.5}),(0,C.jsx)(x.Rect,{x:276,y:n-28,width:156,height:56,rx:9,fill:"#27272a",stroke:W(e.health),strokeWidth:1.5}),(0,C.jsx)(x.Circle,{cx:296,cy:n-10,r:4,fill:W(e.health)}),(0,C.jsx)(x.Text,{x:310,y:n-5,fill:"#fafafa",fontSize:"12",fontWeight:"700",children:M(e.name,16)}),(0,C.jsx)(x.Text,{x:296,y:n+15,fill:"#a1a1aa",fontSize:"9",children:e.branch?M(e.branch,22):"worktree"}),o.map((e,t)=>{const s=f+t*u,o=Boolean(e.sourceId);return(0,C.jsxs)(x.G,{onPress:o?()=>{"agent"===e.kind&&e.sourceId&&l(e.sourceId),"service"===e.kind&&e.sourceId&&c(e.sourceId)}:void 0,accessibilityLabel:o?`Open ${e.label}`:void 0,style:o?{cursor:"pointer"}:void 0,children:[(0,C.jsx)(x.Line,{x1:432,y1:n,x2:506,y2:s,stroke:"#3f3f46",strokeWidth:1.5}),(0,C.jsx)(x.Rect,{x:520,y:s-20,width:132,height:40,rx:8,fill:"#18181b",stroke:W(e.health),strokeWidth:1.25}),(0,C.jsx)(x.Circle,{cx:535,cy:s-5,r:3.5,fill:W(e.health)}),(0,C.jsx)(x.Text,{x:546,y:s,fill:"#fafafa",fontSize:"11",fontWeight:"700",children:M(e.label,12)}),(0,C.jsx)(x.Text,{x:535,y:s+13,fill:"#a1a1aa",fontSize:"8",children:e.kind}),o?(0,C.jsx)(x.Text,{x:624,y:s+13,fill:"#a1a1aa",fontSize:"8",fontWeight:"700",children:"open"}):null]},e.id)})]},e.id)})]})})})}function V({worktree:e,onPickAgent:t,onPickService:s}){return(0,C.jsxs)(p.Card,{className:"mb-4 overflow-hidden rounded-xl p-0",children:[(0,C.jsxs)(o.default,{className:"flex-row items-stretch border-b border-border bg-card",children:[(0,C.jsx)(o.default,{className:"w-1.5",style:{backgroundColor:W(e.health)}}),(0,C.jsxs)(o.default,{className:"flex-1 px-4 py-3.5",children:[(0,C.jsxs)(o.default,{className:"flex-row items-center",children:[(0,C.jsx)(w.Text,{className:"flex-1 text-[17px] font-bold text-foreground",numberOfLines:1,ellipsizeMode:"tail",children:e.name}),(0,C.jsx)(w.Text,{className:"ml-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:L(e.health)})]}),e.branch?(0,C.jsxs)(o.default,{className:"mt-2 flex-row items-center self-start rounded border border-border bg-background px-2 py-1",children:[(0,C.jsx)(j.GitBranch,{size:11,color:"#a1a1aa"}),(0,C.jsx)(w.Text,{className:"ml-1.5 text-[11px] font-mono text-muted-foreground",children:e.branch})]}):null]})]}),(0,C.jsxs)(o.default,{className:"p-3",children:[e.agents.length>0?(0,C.jsxs)(o.default,{className:(0,A.cn)(e.services.length>0&&"mb-4"),children:[(0,C.jsxs)(w.Text,{className:"mb-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:["Agents \xb7 ",e.agents.length]}),e.agents.map(e=>(0,C.jsx)(O,{node:e,onPress:()=>e.sourceId&&t(e.sourceId)},e.id))]}):null,e.services.length>0?(0,C.jsxs)(o.default,{children:[(0,C.jsxs)(w.Text,{className:"mb-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:["Services \xb7 ",e.services.length]}),e.services.map(e=>(0,C.jsx)(O,{node:e,onPress:()=>e.sourceId&&s(e.sourceId)},e.id))]}):null,0===e.agents.length&&0===e.services.length?(0,C.jsx)(w.Text,{className:"py-2 text-[12px] italic text-muted-foreground",children:"empty worktree"}):null]})]})}function _({topology:e,onPickAgent:t,onPickService:s}){const n=e.worktrees.flatMap(e=>[...e.agents,...e.services].map(t=>({worktree:e,node:t})));return 0===n.length?(0,C.jsx)(w.Text,{className:"text-sm text-muted-foreground",children:"No agents or services yet."}):(0,C.jsx)(p.Card,{className:"overflow-hidden rounded-xl p-0",children:n.map(({worktree:e,node:n},c)=>(0,C.jsxs)(l.default,{onPress:()=>{"agent"===n.kind&&n.sourceId&&t(n.sourceId),"service"===n.kind&&n.sourceId&&s(n.sourceId)},className:(0,A.cn)("flex-row items-center px-3 py-3 active:bg-accent",c>0&&"border-t border-border"),children:[(0,C.jsx)(o.default,{className:"mr-3",children:(0,C.jsx)(v.StatusDot,{status:n.status??n.health,size:"sm"})}),(0,C.jsxs)(o.default,{className:"min-w-0 flex-1",children:[(0,C.jsxs)(o.default,{className:"flex-row items-center",children:[(0,C.jsx)(w.Text,{className:"flex-1 text-[13px] font-semibold text-foreground",numberOfLines:1,children:n.label}),(0,C.jsx)(w.Text,{className:"ml-2 text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:n.kind})]}),(0,C.jsxs)(w.Text,{className:"mt-1 text-[11px] text-muted-foreground",numberOfLines:1,children:[e.name,n.subtitle?` \xb7 ${n.subtitle}`:""]})]})]},n.id))})}function B(){const{width:e}=(0,c.default)(),s=(0,h.useAtomValue)(P.projectsAtom),l=(0,h.useAtomValue)(P.selectedProjectAtom),n=(0,h.useAtomValue)(P.selectedProjectEndpointAtom),x=(0,f.useGlobalSearchParams)(),u=(0,z.projectPathFromSearchOrLocation)(x.project),k=u?s.find(e=>e.path===u):l,v=k?.serviceEndpoint??(k?.path===l?.path?n:void 0),S=(0,h.useAtomValue)((0,N.desktopStateFamily)(k?.path??"")),A=(0,h.useAtomValue)((0,N.worktreeGroupsFamily)(k?.path??"")),W=(0,h.useSetAtom)(P.selectedSessionIdAtom),L=(0,f.useRouter)(),M=(0,f.usePathname)(),O="tree"===(B=(0,z.cleanSearchValue)(x.mode))||"table"===B?B:"map";var B;const H=(0,t.useMemo)(()=>k?(0,T.buildProjectTopology)(k,A,S):null,[S,A,k]);function G(e){W(e),L.push((0,z.detailHrefForPath)(M,"agent",e,k?.path))}function $(e){L.push((0,z.detailHrefForPath)(M,"service",e,k?.path))}return(0,C.jsx)(b.Page,{contentClassName:"px-4 py-5 md:px-8 md:py-7",children:k&&H?v&&null===S?(0,C.jsx)(b.PageStateCard,{title:"Loading topology...",body:"Fetching project runtime state."}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(b.PageHeader,{eyebrow:"Topology",title:k.name,subtitle:k.path}),v||null!==S?null:(0,C.jsx)(b.PageStateCard,{title:"Project host not running",body:"Start the host to see worktree and agent topology.",className:"mb-5"}),(0,C.jsxs)(o.default,{className:"mb-5 flex-row flex-wrap",children:[(0,C.jsx)(F,{label:"Worktrees",value:H.summary.worktrees}),(0,C.jsx)(F,{label:"Agents",value:H.summary.agents}),(0,C.jsx)(F,{label:"Services",value:H.summary.services}),(0,C.jsx)(F,{label:"Active",value:H.summary.active,tone:"active"}),(0,C.jsx)(F,{label:"Attention",value:H.summary.attention,tone:"attention"}),(0,C.jsx)(F,{label:"Offline",value:H.summary.offline,tone:"offline"})]}),(0,C.jsxs)(o.default,{className:"mb-4 flex-row items-center justify-between",children:[(0,C.jsxs)(o.default,{className:"flex-row items-center",children:["map"===O?(0,C.jsx)(j.Network,{size:16,color:"#a1a1aa"}):null,"tree"===O?(0,C.jsx)(j.Rows3,{size:16,color:"#a1a1aa"}):null,"table"===O?(0,C.jsx)(j.Table2,{size:16,color:"#a1a1aa"}):null,(0,C.jsx)(w.Text,{className:"ml-2 text-[13px] font-semibold text-foreground",children:"map"===O?"Relationship Map":"tree"===O?"Worktree Tree":"Node Table"})]}),(0,C.jsx)(y.SegmentedControl,{options:I,value:O,onChange:e=>L.replace((0,z.buildViewHref)("/topology",{project:k.path,mode:e})),className:"ml-3"})]}),"map"===O?(0,C.jsx)(R,{topology:H,width:e,onPickAgent:G,onPickService:$}):null,"tree"===O?(0,C.jsx)(o.default,{children:H.worktrees.map(e=>(0,C.jsx)(V,{worktree:e,onPickAgent:G,onPickService:$},e.id))}):null,"table"===O?(0,C.jsx)(_,{topology:H,onPickAgent:G,onPickService:$}):null,0===H.worktrees.length?(0,C.jsxs)(p.Card,{className:"mt-4 items-center rounded-xl p-6",children:[(0,C.jsx)(j.Box,{size:22,color:"#a1a1aa"}),(0,C.jsx)(w.Text,{className:"mt-2 text-sm text-muted-foreground",children:"No worktrees yet"})]}):null]}):(0,C.jsx)(b.PageStateCard,{title:"No project selected",body:"Pick a project from the sidebar to view topology."})})}},2611,[8,249,140,116,274,698,291,691,695,2571,2570,2612,2588,2388,2577,2550,2552,2604,2613,2389,2545,6]);
|
|
14435
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.RuntimeBadge=function({brand:e,compact:o=!1}){return(0,n.jsx)(l.default,{className:"flex-row items-center rounded-full border px-2 py-0.5",style:{borderColor:e.color,backgroundColor:e.background},children:(0,n.jsx)(t.Text,{className:"font-mono text-[10px] font-bold",style:{color:e.color},children:o?e.shortLabel:e.label})})},r(d[0]);var e,o=r(d[1]),l=(e=o)&&e.__esModule?e:{default:e},t=r(d[2]),n=r(d[3])},2612,[8,116,2388,6]);
|
|
14436
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.runtimeBrandForCommand=n,e.runtimeBrandForKind=function(l,o){return n(o,"service"===l?"service":"unknown")};const l={claude:{id:"claude",label:"Claude",shortLabel:"CL",color:"#f97316",background:"rgba(249, 115, 22, 0.14)"},codex:{id:"codex",label:"Codex",shortLabel:"CX",color:"#22c55e",background:"rgba(34, 197, 94, 0.14)"},shell:{id:"shell",label:"Shell",shortLabel:"SH",color:"#38bdf8",background:"rgba(56, 189, 248, 0.14)"},service:{id:"service",label:"Service",shortLabel:"SV",color:"#a78bfa",background:"rgba(167, 139, 250, 0.14)"},unknown:{id:"unknown",label:"Unknown",shortLabel:"??",color:"#a1a1aa",background:"rgba(161, 161, 170, 0.14)"}};function n(n,o){const c=n?.trim().toLowerCase()??"";return c.includes("claude")?l.claude:c.includes("codex")?l.codex:c.includes("bash")||c.includes("zsh")||c.includes("shell")?l.shell:o?l[o]:l.unknown}},2613,[]);
|
|
14437
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},2614,[2575]);
|
|
14438
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return T}});var t=r(d[0]);r(d[1]);var o=r(d[2]),n=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),l=r(d[7]),f=r(d[8]),h=r(d[9]),S=r(d[10]),y=r(d[11]),p=r(d[12]),A=r(d[13]),j=r(d[14]),E=r(d[15]),v=r(d[16]),k=r(d[17]),w=r(d[18]),F=r(d[19]),P=r(d[20]),I=r(d[21]);const b=2e3,R=t.useLayoutEffect;function T(){const T=(0,n.useSetAtom)(k.reconcileProjectsAtom),N=(0,n.useAtomValue)(k.projectsAtom),V=(0,n.useAtomValue)(k.selectedProjectPathAtom),$=(0,n.useAtomValue)(F.activeSharedSessionAtom),_=(0,n.useAtomValue)(k.selectedProjectEndpointAtom),C=(0,n.useAtomValue)(E.desktopStateRefreshNonceAtom),O=(0,n.useAtomValue)(v.notificationFeedRefreshNonceAtom),U=(0,n.useAtomValue)(w.relayStatusAtom),L=(0,n.useStore)(),{getToken:B}=(0,f.useAuth)(),D=(0,t.useRef)(B),M=(0,o.useGlobalSearchParams)(),G=(0,j.projectPathFromSearchOrLocation)(M.project),K=G??V,X=N.find(t=>t.path===K),Y=X?(0,y.getProjectServiceEndpoint)(X):G&&G!==V?null:_,q=S.env.AIMUX_RELAY_URL,z=!q||"connected"===U,H=$?.ownerUserId,J=$?.shareId,Q=$?`${$.ownerUserId}:${$.shareId}`:"";(0,t.useEffect)(()=>{D.current=B},[B]),R(()=>{!$&&G&&G!==V&&(L.set(k.selectedProjectPathAtom,G),L.set(k.selectedSessionIdAtom,null))},[$,V,L,G]),(0,t.useEffect)(()=>{if(!q)return L.set(w.relayConfiguredAtom,!1),void L.set(w.relayStatusAtom,"disconnected");L.set(w.relayConfiguredAtom,!0);const t=H&&J?{ownerUserId:H,shareId:J}:{},o=new A.RelayTransport(q,()=>D.current(),void 0,t),n=o.onStatusChange(t=>L.set(w.relayStatusAtom,t)),s=o.onSecurityEvent(t=>{L.set(P.addSecurityEventAtom,t),(0,h.isBrowserDocumentVisible)()||(0,h.showBrowserNotification)({id:t.id,category:"system",kind:t.kind,title:t.title,body:t.body,dedupeKey:`security:${t.id}`})});return(0,l.setApiRelay)(o),o.connect(),(0,p.registerSecurityPushToken)(q,()=>D.current(),t).catch(t=>{console.warn("security push registration failed:",t)}),()=>{n(),s(),(0,l.setApiRelay)(null),o.disconnect(),L.set(w.relayStatusAtom,"disconnected")}},[H,Q,J,q,L]),(0,t.useEffect)(()=>{let t=!1,o=null;return(async function n(){if(!t){if($)return T([x($)]),L.set(k.selectedProjectPathAtom,$.projectRoot),L.set(k.selectedSessionIdAtom,$.sessionId),void(o=setTimeout(n,b));if(z){try{const o=await D.current(),n=await(0,l.listProjects)({token:o});t||T(n)}catch(o){t||console.warn("project list refresh failed:",o)}t||(o=setTimeout(n,b))}}})(),()=>{t=!0,o&&clearTimeout(o)}},[$,T,z,L]);const W=Y?`${Y.host}:${Y.port}`:null;return(0,t.useEffect)(()=>{if($)return;if(!K)return;if(!z)return;if(!Y)return L.set((0,E.desktopStateFamily)(K),null),void L.set((0,E.desktopStateErrorFamily)(K),null);let t=!1,o=null;return(async function n(){if(!t){try{const o=await D.current(),n=await(0,l.getDesktopState)(Y,{token:o});if(t)return;L.set((0,E.desktopStateFamily)(K),n),L.set((0,E.desktopStateErrorFamily)(K),null)}catch(o){if(!t){const t=o instanceof Error?o.message:String(o);L.set((0,E.desktopStateErrorFamily)(K),t),console.warn("desktop-state fetch failed:",o)}}t||(o=setTimeout(n,b))}})(),()=>{t=!0,o&&clearTimeout(o)}},[$,K,W,C,z,L]),(0,t.useEffect)(()=>{if($)return;if(!K)return;if(!z)return;if(!Y)return L.set((0,v.notificationFeedFamily)(K),null),void L.set((0,v.notificationFeedErrorFamily)(K),null);let t=!1,o=null;return(async function n(){if(!t){try{const o=await D.current(),n=await(0,l.listNotifications)(Y,{token:o});if(t)return;L.set((0,v.notificationFeedFamily)(K),{notifications:n.notifications,unreadCount:n.unreadCount,fetchedAt:(new Date).toISOString()}),L.set((0,v.notificationFeedErrorFamily)(K),null)}catch(o){if(!t){const t=o instanceof Error?o.message:String(o);L.set((0,v.notificationFeedErrorFamily)(K),t),console.warn("notification fetch failed:",o)}}t||(o=setTimeout(n,b))}})(),()=>{t=!0,o&&clearTimeout(o)}},[$,K,W,O,z,L]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(c.NotificationProvider,{}),(0,I.jsx)(u.NativeNotificationRouter,{}),(0,I.jsx)(s.AppShell,{children:(0,I.jsxs)(o.Stack,{screenOptions:{headerShown:!1},children:[(0,I.jsx)(o.Stack.Screen,{name:"(tabs)"}),(0,I.jsx)(o.Stack.Screen,{name:"global-notifications"}),(0,I.jsx)(o.Stack.Screen,{name:"global-threads"})]})})]})}function x(t){const o=t.projectRoot.split("/").filter(Boolean).pop()||"shared project";return{id:`shared:${t.shareId}`,name:o,path:t.projectRoot,lastSeen:t.acceptedAt,dashboardSessionName:`shared:${t.shareId}`,sessions:[{id:t.sessionId,tool:"shared",status:"running",label:"Shared session"}],service:null,serviceAlive:!0,serviceEndpoint:t.serviceEndpoint}}},2615,[8,111,291,691,2616,2625,2627,2538,2400,2589,2397,2560,2763,2766,2545,2550,2583,2552,2561,2562,2584,6]);
|
|
14439
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.AppShell=function({children:e}){const{width:P}=(0,n.default)(),w=P>=1024,_=P>=640&&P<1024,y=P<640,[N,S]=(0,c.useAtom)(h.sidebarOpenAtom),z=(0,u.usePathname)(),[E]=(0,t.useState)(()=>new s.default.Value(-320));(0,t.useEffect)(()=>{y&&S(!1)},[y,S]),(0,t.useEffect)(()=>{y&&S(!1)},[z,y,S]),(0,t.useEffect)(()=>{s.default.timing(E,{toValue:N?0:-320,duration:250,useNativeDriver:!0}).start()},[N,E]);const A=_||y?(0,p.jsx)(b.Button,{variant:"ghost",size:"icon",accessibilityLabel:"Toggle sidebar",onPress:()=>S(e=>!e),children:(0,p.jsx)(f.Menu,{size:20,color:"#a1a1aa"})}):void 0;return(0,p.jsxs)(o.default,{className:"flex-1 bg-background",children:[(0,p.jsx)(j.TopBar,{left:A}),(0,p.jsxs)(o.default,{className:"flex-1 flex-row",children:[w?(0,p.jsx)(x.ProjectSidebar,{}):null,_&&N?(0,p.jsx)(x.ProjectSidebar,{}):null,(0,p.jsx)(o.default,{className:"flex-1",children:e}),y&&N?(0,p.jsx)(l.default,{onPress:()=>S(!1),style:[{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:40},{position:"fixed"}]}):null,y?(0,p.jsx)(s.default.View,{pointerEvents:N?"auto":"none",style:{position:"absolute",top:0,left:0,bottom:0,width:v,zIndex:50,transform:[{translateX:E}]},children:(0,p.jsx)(x.ProjectSidebar,{showPrimaryNav:!1})}):null]})]})};var t=r(d[0]),s=e(r(d[1]));r(d[2]);var l=e(r(d[3])),o=e(r(d[4])),n=e(r(d[5])),u=r(d[6]),c=r(d[7]),f=r(d[8]),x=r(d[9]),j=r(d[10]),b=r(d[11]),h=r(d[12]),p=r(d[13]);const v=320},2616,[8,109,111,249,116,274,291,691,695,2617,2619,2392,2618,6]);
|
|
14440
|
+
__d(function(_g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.ProjectSidebar=function({showPrimaryNav:e=!0}){const s=(0,c.useAtomValue)(N.projectsAtom),x=(0,c.useAtomValue)(N.selectedProjectAtom),u=(0,c.useAtomValue)(N.selectedProjectPathAtom),p=(0,c.useAtomValue)(N.selectedProjectEndpointAtom),h=(0,c.useAtomValue)(N.selectedSessionIdAtom),g=(0,c.useSetAtom)(N.selectProjectAtom),P=(0,c.useSetAtom)(N.selectedSessionIdAtom),M=(0,c.useAtomValue)(k.sidebarShowProjectPickerAtom),I=(0,c.useSetAtom)(k.sidebarShowProjectPickerAtom),z=(0,l.useRouter)(),_=(0,l.usePathname)(),C=(0,j.mainTabForPath)(_),[V,R]=(0,c.useAtom)(k.sidebarModeAtom),H=(0,l.useGlobalSearchParams)(),B=(0,b.projectPathFromSearchOrLocation)(H.project)??u,$=s.find(e=>e.path===B)??x,q=$?(0,v.getProjectServiceEndpoint)($):p,{getToken:G}=(0,f.useAuth)(),[K,J]=(0,t.useState)(null);(0,t.useEffect)(()=>{let e=!1;return(async()=>{try{const t=await G();e||J(t)}catch{e||J(null)}})(),()=>{e=!0}},[G]);const Q=(0,t.useRef)({effectiveProjectPath:B,selectedProjectPath:u});A(()=>{const e=Q.current;Q.current={effectiveProjectPath:B,selectedProjectPath:u},!M||e.effectiveProjectPath===B&&e.selectedProjectPath===u||I(!1)},[B,u,I,M]),A(()=>{var t;e&&(("project"===(t=C)||"topology"===t||"library"===t||"inbox"===t||"threads"===t)&&R("views"))},[C,R,e]);const U=(0,c.useAtomValue)((0,S.desktopStateFamily)(B??T)),W=(0,c.useAtomValue)((0,S.desktopStateErrorFamily)(B??T)),X=!$||M;function Y(e){P(e),z.push((0,b.detailHrefForPath)(_,"agent",e,B))}function Z(e){z.push((0,b.detailHrefForPath)(_,"service",e,B))}return(0,w.jsx)(o.default,{className:"border-r border-[#2a2b31] bg-[#161719]",style:{width:y,height:"100%"},children:(0,w.jsx)(n.default,{className:"flex-1",children:X?(0,w.jsx)(L,{projects:s,selectedPath:B,onSelect:function(e){g(e),I(!1),z.replace((0,b.buildViewHref)("/project",{project:e}))}}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(O,{project:$,onSwitchProject:()=>I(!0)}),e?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(E,{mode:V,onChange:R}),"views"===V?(0,w.jsx)(D,{}):(0,w.jsx)(F,{projectPath:$.path,endpoint:q,token:K,desktopState:U,desktopStateError:W,selectedSessionId:h,onPickSession:Y,onPickService:Z})]}):(0,w.jsx)(F,{projectPath:$.path,endpoint:q,token:K,desktopState:U,desktopStateError:W,selectedSessionId:h,onPickSession:Y,onPickService:Z})]})})})};var t=r(d[0]);r(d[1]);var s=e(r(d[2])),n=e(r(d[3])),o=e(r(d[4])),l=r(d[5]),c=r(d[6]),x=r(d[7]),u=r(d[8]),p=r(d[9]),h=r(d[10]),f=r(d[11]),j=r(d[12]),b=r(d[13]),g=r(d[14]),P=r(d[15]),S=r(d[16]),N=r(d[17]),k=r(d[18]),v=r(d[19]),w=r(d[20]);const y=320,T="__aimux_no_selected_project__",A=t.useLayoutEffect;function M(e){return e.sessions.length>0||e.services.length>0}function L({projects:e,selectedPath:t,onSelect:n}){return(0,w.jsxs)(o.default,{className:"pt-4 pb-2",children:[(0,w.jsx)(o.default,{className:"px-3.5 pb-2",children:(0,w.jsx)(u.Text,{className:"text-[10px] font-bold uppercase tracking-widest text-[#787a83]",children:"Projects"})}),0===e.length?(0,w.jsx)(o.default,{className:"px-3.5 py-3",children:(0,w.jsx)(u.Text,{className:"text-[13px] text-[#787a83]",children:"No projects detected"})}):e.map(e=>{const l=e.path===t,c=e.serviceAlive;return(0,w.jsxs)(s.default,{onPress:()=>n(e.path),className:(0,P.cn)("px-4 py-3",l?"bg-[#26272d]":"hover:bg-[#232429] active:bg-[#26272d]"),children:[(0,w.jsxs)(o.default,{className:"flex-row items-center gap-2.5",children:[(0,w.jsx)(o.default,{className:(0,P.cn)("h-[7px] w-[7px] rounded-full",c?"bg-[#4ade80]":"bg-[#5b5d66]")}),(0,w.jsx)(u.Text,{className:"min-w-0 flex-1 text-[14px] font-medium text-[#edeef0]",numberOfLines:1,ellipsizeMode:"tail",children:e.name}),(0,w.jsx)(u.Text,{className:(0,P.cn)("font-mono text-[11px]",c?"text-[#4ade80]":"text-[#787a83]"),children:c?"online":"offline"})]}),(0,w.jsx)(u.Text,{className:"ml-4 mt-0.5 font-mono text-[12px] text-[#787a83]",numberOfLines:1,ellipsizeMode:"middle",children:e.path})]},e.path)})]})}function O({project:e,onSwitchProject:t}){return(0,w.jsxs)(s.default,{onPress:t,accessibilityLabel:"Switch project",className:"border-b border-[#2a2b31] px-4 pb-3.5 pt-4 hover:bg-[#232429] active:bg-[#26272d]",children:[(0,w.jsxs)(o.default,{className:"flex-row items-center gap-1.5",children:[(0,w.jsx)(x.ChevronLeft,{size:14,color:"#787a83"}),(0,w.jsx)(u.Text,{className:"text-[12.5px] font-medium text-[#787a83]",children:"All projects"})]}),(0,w.jsx)(u.Text,{className:"mt-2 text-[16px] font-semibold text-[#edeef0]",numberOfLines:1,ellipsizeMode:"tail",children:e.name}),(0,w.jsx)(u.Text,{className:"mt-0.5 font-mono text-[12px] text-[#787a83]",numberOfLines:1,ellipsizeMode:"middle",children:e.path})]})}function I({session:e,isSelected:t,onPress:n}){const o=(0,g.firstTokenOf)(e.command);return(0,w.jsxs)(s.default,{onPress:n,className:(0,P.cn)("min-h-[40px] flex-row items-center gap-2.5 rounded-md pl-3 pr-2.5",t?"bg-[#26272d]":"hover:bg-[#232429] active:bg-[#26272d]"),children:[(0,w.jsx)(h.StatusDotMini,{status:e.status}),(0,w.jsx)(u.Text,{className:"min-w-0 shrink text-[14px] font-medium text-[#edeef0]",numberOfLines:1,ellipsizeMode:"tail",children:e.label||e.id}),o?(0,w.jsx)(u.Text,{className:"shrink-0 font-mono text-[12.5px] text-[#787a83]",numberOfLines:1,children:o}):null]})}function z({service:e,endpoint:t,token:n,onPress:l}){return(0,w.jsxs)(o.default,{className:"min-h-[40px] flex-row items-center gap-2 rounded-md pl-3 pr-2 hover:bg-[#232429]",children:[(0,w.jsxs)(s.default,{onPress:l,className:"min-w-0 flex-1 flex-row items-center gap-2.5 active:opacity-70",children:[(0,w.jsx)(h.StatusDotMini,{status:e.status,shape:"diamond"}),(0,w.jsx)(u.Text,{className:"min-w-0 shrink text-[14px] font-medium text-[#edeef0]",numberOfLines:1,ellipsizeMode:"tail",children:e.label||e.id}),(0,w.jsx)(h.TypeTag,{label:"service"})]}),(0,w.jsx)(p.ServiceActions,{service:e,endpoint:t,token:n,compact:!0})]})}function _({bucket:e,endpoint:n,token:l,selectedSessionId:c,onPickSession:p,onPickService:f}){const j=M(e),[b,g]=(0,t.useState)(!1),S=[...e.sessions,...e.services].some(e=>"running"===e.status),N=j||e.isMainCheckout,k=(0,w.jsxs)(w.Fragment,{children:[j?b?(0,w.jsx)(x.ChevronRight,{size:13,color:"#5b5d66"}):(0,w.jsx)(x.ChevronDown,{size:13,color:"#5b5d66"}):(0,w.jsx)(o.default,{className:"w-[13px]"}),(0,w.jsx)(h.StatusDotMini,{status:S?"running":void 0,hollow:!j,shape:"square",outline:!0}),(0,w.jsx)(u.Text,{className:(0,P.cn)("shrink-0 text-[14px] font-semibold",N?"text-[#edeef0]":"font-medium text-[#a6a8b0]"),numberOfLines:1,ellipsizeMode:"tail",children:e.name}),e.branch?(0,w.jsx)(h.BranchChip,{branch:e.branch}):null]}),v="flex-row items-center gap-2.5 rounded-md px-2.5 py-2.5";return(0,w.jsxs)(o.default,{children:[j?(0,w.jsx)(s.default,{onPress:()=>g(e=>!e),className:(0,P.cn)(v,"hover:bg-[#232429] active:bg-[#26272d]"),children:k}):(0,w.jsx)(o.default,{className:v,children:k}),j&&!b?(0,w.jsxs)(o.default,{className:"ml-[20px] border-l-2 border-[#3a3c44]",children:[e.sessions.map(e=>(0,w.jsx)(I,{session:e,isSelected:e.id===c,onPress:()=>p(e.id)},e.id)),e.services.map(e=>(0,w.jsx)(z,{service:e,endpoint:n,token:l,onPress:()=>f(e.id)},e.id))]}):null]})}function C({title:e,detail:t,tone:s="default"}){return(0,w.jsxs)(o.default,{className:(0,P.cn)("mx-2 mt-3 mb-2 rounded-lg border px-3 py-3","warning"===s?"border-amber-500/30 bg-amber-500/10":"border-[#2a2b31] bg-[#1f2025]"),children:[(0,w.jsx)(u.Text,{className:"text-[12px] font-medium leading-snug text-[#edeef0]",children:e}),t?(0,w.jsx)(u.Text,{className:"mt-1 text-[11px] leading-snug text-[#787a83]",children:t}):null]})}function F({projectPath:e,endpoint:n,token:l,desktopState:p,desktopStateError:h,selectedSessionId:f,onPickSession:j,onPickService:b}){const g=(0,c.useAtomValue)((0,S.worktreeGroupsFamily)(e)),[P,N]=(0,t.useState)(!1);if(!n&&null===p)return(0,w.jsx)(C,{title:"Project host not running.",detail:"Start the host to see worktrees, agents, and services."});if(n&&null===p&&h){const e=(0,v.projectStateErrorCopy)(h);return(0,w.jsx)(C,{title:e.title,detail:e.detail,tone:"warning"})}if(n&&null===p)return(0,w.jsx)(o.default,{className:"px-4 py-4",children:(0,w.jsx)(u.Text,{className:"text-xs text-[#787a83]",children:"Loading project state..."})});if(0===g.length)return(0,w.jsx)(o.default,{className:"px-4 py-4",children:(0,w.jsx)(u.Text,{className:"text-xs text-[#787a83]",children:"No worktrees yet"})});const k=g.find(e=>e.isMainCheckout),y=g.filter(e=>!e.isMainCheckout),T=y.filter(M),A=y.filter(e=>!M(e)),L={endpoint:n,token:l,selectedSessionId:f,onPickSession:j,onPickService:b};return(0,w.jsxs)(o.default,{className:"p-2",children:[k?(0,w.jsx)(_,Object.assign({bucket:k},L)):null,T.map(e=>(0,w.jsx)(_,Object.assign({bucket:e},L),e.key)),A.length>0?(0,w.jsxs)(o.default,{className:"mt-0.5",children:[(0,w.jsxs)(s.default,{onPress:()=>N(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:P},accessibilityLabel:`${P?"Hide":"Show"} ${A.length} empty worktree${A.length>1?"s":""}`,className:"flex-row items-center gap-2.5 rounded-md px-2.5 py-2.5 hover:bg-[#232429] active:bg-[#26272d]",children:[P?(0,w.jsx)(x.ChevronDown,{size:13,color:"#5b5d66"}):(0,w.jsx)(x.ChevronRight,{size:13,color:"#5b5d66"}),(0,w.jsxs)(u.Text,{className:"text-[13px] text-[#787a83]",children:[(0,w.jsx)(u.Text,{className:"font-bold text-[#a6a8b0]",children:A.length})," empty worktree",A.length>1?"s":""]})]}),P?A.map(e=>(0,w.jsx)(_,Object.assign({bucket:e},L),e.key)):null]}):null]})}const V=[{id:"project",label:"Project",Icon:x.FolderKanban},{id:"topology",label:"Topology",Icon:x.Network},{id:"library",label:"Library",Icon:x.BookOpen},{id:"inbox",label:"Inbox",Icon:x.Bell},{id:"threads",label:"Threads",Icon:x.MessageSquare}];function E({mode:e,onChange:t}){return(0,w.jsx)(o.default,{className:"flex-row gap-5 border-b border-[#2a2b31] px-4",children:["dashboard","views"].map(n=>{const o=e===n,l="dashboard"===n?"Dashboard":"Views";return(0,w.jsx)(s.default,{onPress:()=>t(n),className:(0,P.cn)("border-b-[1.5px] py-3",o?"border-[#edeef0]":"border-transparent"),children:(0,w.jsx)(u.Text,{className:(0,P.cn)("text-[13.5px] font-medium",o?"text-[#edeef0]":"text-[#787a83]"),children:l})},n)})})}function D(){const e=(0,l.usePathname)(),t=(0,j.useMainTabNavigation)(),n=(0,j.mainTabForPath)(e);return(0,w.jsx)(o.default,{className:"p-1.5",children:V.map(({id:e,label:o,Icon:l})=>{const c=e,x=n===c;return(0,w.jsxs)(s.default,{onPress:()=>t(c),className:(0,P.cn)("mb-0.5 flex-row items-center gap-2 rounded-md px-2 py-2",x?"bg-[#26272d]":"hover:bg-[#232429] active:bg-[#26272d]"),children:[(0,w.jsx)(l,{size:15,color:x?"#edeef0":"#787a83"}),(0,w.jsx)(u.Text,{className:(0,P.cn)("text-[13px] font-medium",x?"text-[#edeef0]":"text-[#787a83]"),children:o})]},e)})})}},2617,[8,111,249,140,116,291,691,695,2388,2576,2577,2400,2595,2545,2605,2389,2550,2552,2618,2560,6]);
|
|
14441
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sidebarOpenAtom",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"sidebarModeAtom",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"sidebarShowProjectPickerAtom",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=(0,t.atom)(!0),o=(0,t.atom)("dashboard"),u=(0,t.atom)(!1)},2618,[691]);
|
|
14442
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TopBar=function({left:e}){const s=(0,o.useAtomValue)(p.relayConfiguredAtom),n=(0,u.useSafeAreaInsets)(),h=(0,x.resolveChromeTopInset)(n.top);return(0,y.jsxs)(l.default,{className:"z-30 flex-row items-center justify-between border-b border-border bg-card px-4",style:{height:56+h,paddingTop:h},children:[e?(0,y.jsx)(l.default,{className:"-ml-1 mr-2",children:e}):null,(0,y.jsxs)(l.default,{className:"flex-row items-center",children:[(0,y.jsx)(t.default,{source:r(d[15]),style:{width:24,height:24,borderRadius:6,marginRight:8},resizeMode:"contain",accessibilityLabel:"aimux logo"}),(0,y.jsx)(j.Text,{className:"font-mono text-[17px] font-bold text-foreground",children:"aimux"})]}),(0,y.jsx)(l.default,{className:"flex-1"}),s?(0,y.jsx)(l.default,{className:"mr-3",children:(0,y.jsx)(b.RelayIndicator,{})}):null,(0,y.jsx)(l.default,{className:"mr-2",children:(0,y.jsx)(N,{href:"/global-threads",activePrefix:"/global-threads",label:"Global threads",icon:c.MessageSquare})}),(0,y.jsx)(l.default,{className:"mr-3",children:(0,y.jsx)(N,{href:"/global-notifications",activePrefix:"/global-notifications",label:"Global inbox",icon:c.Bell})}),(0,y.jsx)(f.AuthMenu,{})]})},r(d[0]);var t=e(r(d[1])),s=e(r(d[2])),l=e(r(d[3])),n=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),f=r(d[8]),b=r(d[9]),x=r(d[10]),h=r(d[11]),j=r(d[12]),p=r(d[13]),y=r(d[14]);function N({href:e,activePrefix:t,label:l,icon:o}){const c=(0,n.usePathname)(),u=(0,n.useRouter)(),f=c.startsWith(t);return(0,y.jsx)(s.default,{accessibilityLabel:l,onPress:()=>{f||u.navigate(e)},className:(0,h.cn)("h-9 w-9 items-center justify-center rounded-lg border border-border active:bg-accent",f?"bg-accent":"bg-transparent"),children:(0,y.jsx)(o,{size:17,color:f?"#fafafa":"#a1a1aa"})})}},2619,[8,185,249,116,291,691,695,281,2620,2623,2594,2389,2388,2561,6,2624]);
|
|
14443
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.AuthMenu=function(){const e=(0,l.useRouter)(),b=(0,h.useMainTabNavigation)(),{isSignedIn:v,signOut:P}=(0,f.useAuth)(),{user:y}=(0,f.useUser)(),[_,A]=(0,t.useState)(!1);if(!v)return(0,N.jsx)(o.Button,{variant:"outline",size:"sm",label:"Sign in",onPress:()=>e.push("/auth")});const O=()=>A(!1),S=`Version ${(0,j.getVersionString)()}`,T=`Build ${j.APP_VERSION.buildNumber} \xb7 OTA ${j.APP_VERSION.otaVersion}`,M=(0,N.jsxs)(c.Card,{className:"w-56 p-1",children:[(0,N.jsx)(s.default,{className:"flex-row items-center rounded-md px-3 py-2 active:bg-accent",onPress:()=>{O(),b("settings")},children:(0,N.jsx)(x.Text,{className:"text-sm text-foreground",children:"Settings"})}),f.LOCAL_MODE?null:(0,N.jsx)(s.default,{className:"flex-row items-center rounded-md px-3 py-2 active:bg-accent",onPress:()=>{O(),P().then(()=>e.replace("/auth"))},children:(0,N.jsx)(x.Text,{className:"text-sm text-destructive",children:"Sign out"})}),(0,N.jsxs)(n.default,{className:"mt-1 border-t border-border px-3 py-2",children:[(0,N.jsx)(x.Text,{className:"text-xs text-muted-foreground",children:S}),(0,N.jsx)(x.Text,{className:"mt-0.5 text-xs text-muted-foreground",children:T})]})]});return(0,N.jsxs)(n.default,{className:"relative",children:[f.LOCAL_MODE?(0,N.jsx)(s.default,{onPress:()=>A(e=>!e),className:"active:opacity-80",children:(0,N.jsx)(u.Badge,{variant:"secondary",label:"Local"})}):(0,N.jsx)(s.default,{className:"h-8 w-8 items-center justify-center rounded-full bg-secondary",onPress:()=>A(e=>!e),children:(0,N.jsx)(x.Text,{className:"text-xs font-semibold text-secondary-foreground",children:p(y)})}),_?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(s.default,{onPress:O,style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:40}}),(0,N.jsx)(n.default,{className:"absolute right-0 top-full z-50 mt-2",children:M})]}):null]})};var t=r(d[0]);e(r(d[1]));r(d[2]);var s=e(r(d[3])),n=(e(r(d[4])),e(r(d[5]))),l=r(d[6]),u=r(d[7]),o=r(d[8]),c=r(d[9]),x=r(d[10]),f=r(d[11]),h=r(d[12]),j=r(d[13]),N=r(d[14]);function p(e){if(!e)return"?";const t=e.firstName?.[0]??"",s=e.lastName?.[0]??"";if(t||s)return`${t}${s}`.toUpperCase();const n=e.emailAddresses?.[0]?.emailAddress;return(n?.[0]??"?").toUpperCase()}},2620,[8,242,111,249,34,116,291,2621,2392,2571,2388,2400,2595,2622,6]);
|
|
14444
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["className","variant","label"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Badge",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"badgeVariants",{enumerable:!0,get:function(){return f}});var n=t(r(d[0]));r(d[1]);var o=t(r(d[2])),u=r(d[3]),s=r(d[4]),c=r(d[5]),l=r(d[6]);const f=(0,u.cva)("items-center rounded-full px-2.5 py-0.5",{variants:{variant:{default:"bg-primary",secondary:"bg-secondary",outline:"border border-border bg-transparent",common:"bg-green-100 dark:bg-green-900"}},defaultVariants:{variant:"default"}}),b=(0,u.cva)("text-xs font-medium",{variants:{variant:{default:"text-primary-foreground",secondary:"text-secondary-foreground",outline:"text-foreground",common:"text-green-800 dark:text-green-200"}},defaultVariants:{variant:"default"}});function v(t){let{className:u,variant:v,label:x}=t,y=(0,n.default)(t,e);return(0,l.jsx)(o.default,Object.assign({className:(0,s.cn)(f({variant:v}),u)},y,{children:(0,l.jsx)(c.Text,{className:(0,s.cn)(b({variant:v})),children:x})}))}},2621,[283,8,116,2393,2389,2388,6]);
|
|
14445
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"APP_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getVersionString",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getVersionCode",{enumerable:!0,get:function(){return o}});const t={version:"1.0.0",buildNumber:4,otaVersion:3,timestamp:"2026-06-06T14:51:54Z",channel:"testflight"},n=()=>{const{buildNumber:n,otaVersion:o}=t;return`${t.version} (${n}.${o})`},o=()=>`${t.buildNumber}.${t.otaVersion}`},2622,[]);
|
|
14446
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.RelayIndicator=function(){const e=(0,n.useAtomValue)(s.relayConfiguredAtom),t=(0,n.useAtomValue)(s.relayStatusAtom);if(!e)return null;const x=b[t];return(0,u.jsxs)(l.default,{className:"flex-row items-center px-2 py-1 rounded-md bg-secondary border border-border",children:[(0,u.jsx)(l.default,{className:(0,c.cn)("w-1.5 h-1.5 rounded-full mr-1.5",x.dot)}),(0,u.jsx)(o.Text,{className:(0,c.cn)("text-[11px] font-medium",x.text),children:x.label})]})},r(d[0]);var e,t=r(d[1]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),u=r(d[6]);const b={connected:{label:"Remote",dot:"bg-emerald-500",text:"text-emerald-400"},connecting:{label:"Connecting",dot:"bg-amber-500",text:"text-amber-400"},daemon_offline:{label:"Host offline",dot:"bg-zinc-500",text:"text-zinc-400"},auth_failed:{label:"Auth blocked",dot:"bg-red-500",text:"text-red-400"},disconnected:{label:"Offline",dot:"bg-zinc-600",text:"text-zinc-500"}}},2623,[8,116,691,2388,2389,2561,6]);
|
|
14447
|
+
__d(function(g,r,i,a,m,e,d){m.exports={uri:"/assets/assets/images/icon.a5413dcd2e811c9f2317d01a28118d8a.png",width:1024,height:1024}},2624,[]);
|
|
14448
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.NotificationProvider=function(){const p=(0,o.useAtomValue)(l.selectedProjectPathAtom),_=(0,o.useAtomValue)(l.selectedProjectAtom),h=(0,o.useAtomValue)((0,c.desktopStateFamily)(p??w)),A=(0,o.useAtomValue)((0,u.notificationFeedFamily)(p??w)),j=(0,o.useAtomValue)(f.notificationSettingsAtom),v=(0,t.useRef)(new Map),N=(0,t.useRef)(new Set),P=(0,t.useRef)(new Map);return(0,t.useEffect)(()=>{if(!A)return;const t=p??w,o=new Set(A.notifications.map(t=>t.id)),c=P.current.get(t)??new Set;if(!N.current.has(t))return P.current.set(t,o),void N.current.add(t);for(const t of A.notifications){if(c.has(t.id))continue;c.add(t.id);const o=(0,s.evaluateNotificationRecord)(t,j,{projectName:_?.name,projectPath:p??void 0});o&&(j.channels.browser&&!(0,n.isBrowserDocumentVisible)()&&(0,n.showBrowserNotification)(o))}P.current.set(t,c)},[A,j,_?.name,p]),(0,t.useEffect)(()=>{if(A)return;const t=new Map,o=v.current,c=p??w;for(const u of h?.sessions??[]){const f=(0,s.snapshotSessionForNotifications)(u),l=`${c}:${u.id}`;t.set(l,f);const w=(0,s.evaluateAgentNotification)(u,o.get(l),j,{projectName:_?.name,projectPath:p??void 0});w&&(j.channels.browser&&!(0,n.isBrowserDocumentVisible)()&&(0,n.showBrowserNotification)(w))}v.current=t},[h,A,j,_?.name,p]),null};var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),f=r(d[6]),l=r(d[7]);const w="__aimux_no_selected_project__"},2625,[8,691,2589,2626,2550,2583,2562,2552]);
|
|
14449
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.snapshotSessionForNotifications=s,e.evaluateAgentNotification=function(o,c,u,p={}){const b=s(o);if(!c)return null;const y=l(b,c,u,p);if(y)return y;if((0,t.isAgentNotificationEnabled)(u,"completed")&&"done"===b.activity&&"done"!==c.activity)return f("completed",b,p,"completed","Agent completed");if((0,t.isAgentNotificationEnabled)(u,"activity")&&b.unseenCount>c.unseenCount&&!n.has(b.attention))return f("activity",b,p,`activity:${b.unseenCount}`,"New agent activity");return null},e.evaluateNotificationRecord=function(n,o,c={}){if(!n.unread||n.cleared)return null;const u=b(n.kind);if(!u||!(0,t.isAgentNotificationEnabled)(o,u))return null;const s=c.projectName?`${c.projectName}: `:"";return{id:n.id,dedupeKey:n.dedupeKey||`notification:${n.id}`,category:"agent",kind:u,title:`${s}${n.title}`,body:n.body||n.subtitle||n.title,target:{projectPath:c.projectPath,sessionId:n.sessionId}}};var t=r(d[0]);const n=new Set(["needs_input","blocked","error"]),o=new Set(["error","task_failed"]),c=new Set(["completed","task_done"]),u=new Set(["activity","notification","notify"]);function s(t){return{id:t.id,status:t.status,attention:p(t.attention),activity:p(t.activity),label:t.label?.trim()||t.command?.trim()||t.id,headline:t.headline?.trim()||t.previewLine?.trim()||"",unseenCount:t.unseenCount??0}}function l(n,o,c,u){return n.attention===o.attention?null:"needs_input"===n.attention&&(0,t.isAgentNotificationEnabled)(c,"needs_input")?f("needs_input",n,u,"attention:needs_input","Agent needs input"):"blocked"===n.attention&&(0,t.isAgentNotificationEnabled)(c,"blocked")?f("blocked",n,u,"attention:blocked","Agent is blocked"):"error"===n.attention&&(0,t.isAgentNotificationEnabled)(c,"error")?f("error",n,u,"attention:error","Agent hit an error"):null}function f(t,n,o,c,u){const s=o.projectName?`${o.projectName}: `:"";return{id:`${n.id}:${c}`,dedupeKey:`agent:${n.id}:${c}`,category:"agent",kind:t,title:`${s}${u}`,body:n.headline||n.label,target:{projectPath:o.projectPath,sessionId:n.id}}}function p(t){return t?.trim()||"none"}function b(t){const n=t?.trim();return"needs_input"===n?"needs_input":"blocked"===n?"blocked":n&&o.has(n)?"error":n&&c.has(n)?"completed":n&&u.has(n)?"activity":null}},2626,[2568]);
|
|
14450
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.NativeNotificationRouter=function(){const u=(0,t.useRouter)(),c=(0,o.useSetAtom)(n.selectedProjectPathAtom),s=(0,o.useSetAtom)(n.selectedSessionIdAtom);return(0,e.useEffect)(()=>{},[u,c,s]),null};var e=r(_d[0]);r(_d[1]);var t=r(_d[2]),o=r(_d[3]),n=((function(e){if(e&&e.__esModule)return e;var t={};e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e})(r(_d[4])),r(_d[5]),r(_d[6]))},2627,[8,111,291,691,2628,2545,2552]);
|
|
14451
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"getDevicePushTokenAsync",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"unregisterForNotificationsAsync",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"getExpoPushTokenAsync",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"getPresentedNotificationsAsync",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"dismissNotificationAsync",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"dismissAllNotificationsAsync",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"getNotificationChannelsAsync",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(_e,"getNotificationChannelAsync",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(_e,"setNotificationChannelAsync",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"deleteNotificationChannelAsync",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"getNotificationChannelGroupsAsync",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(_e,"getNotificationChannelGroupAsync",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(_e,"setNotificationChannelGroupAsync",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(_e,"deleteNotificationChannelGroupAsync",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_e,"getBadgeCountAsync",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(_e,"setBadgeCountAsync",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"getAllScheduledNotificationsAsync",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(_e,"scheduleNotificationAsync",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(_e,"cancelScheduledNotificationAsync",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(_e,"cancelAllScheduledNotificationsAsync",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(_e,"getNotificationCategoriesAsync",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(_e,"setNotificationCategoryAsync",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(_e,"deleteNotificationCategoryAsync",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(_e,"getNextTriggerDateAsync",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(_e,"useLastNotificationResponse",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(_e,"setAutoServerRegistrationEnabledAsync",{enumerable:!0,get:function(){return S.setAutoServerRegistrationEnabledAsync}}),Object.defineProperty(_e,"registerTaskAsync",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(_e,"unregisterTaskAsync",{enumerable:!0,get:function(){return D.default}});var t=r(d[0]),n=e(r(d[1])),o=e(r(d[2])),u=e(r(d[3])),c=e(r(d[4])),f=e(r(d[5])),l=e(r(d[6])),s=e(r(d[7])),y=e(r(d[8])),b=e(r(d[9])),p=e(r(d[10])),O=e(r(d[11])),j=e(r(d[12])),P=e(r(d[13])),h=e(r(d[14])),A=e(r(d[15])),N=e(r(d[16])),v=e(r(d[17])),E=e(r(d[18])),C=e(r(d[19])),k=e(r(d[20])),w=e(r(d[21])),_=e(r(d[22])),x=e(r(d[23])),G=e(r(d[24])),R=e(r(d[25])),S=r(d[26]),T=e(r(d[27])),D=e(r(d[28])),L=r(d[29]);Object.keys(L).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return L[e]}})});var B=r(d[30]);Object.keys(B).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return B[e]}})});var I=r(d[31]);Object.keys(I).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return I[e]}})});var M=r(d[32]);Object.keys(M).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return M[e]}})});var W=r(d[33]);Object.keys(W).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return W[e]}})});var F=r(d[34]);Object.keys(F).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return F[e]}})});var J=r(d[35]);Object.keys(J).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return J[e]}})});var K=r(d[36]);Object.keys(K).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return K[e]}})});var q=r(d[37]);if(Object.keys(q).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return q[e]}})}),(0,t.isRunningInExpoGo)()&&void 0===process.env.JEST_WORKER_ID&&'test'!=="production"?.toLowerCase()){const e="`expo-notifications` functionality is not fully supported in Expo Go:\nWe recommend you instead use a development build to avoid limitations. Learn more: https://expo.fyi/dev-client.";console.warn(e)}},2628,[534,2629,2630,2632,2720,2723,2724,2725,2726,2727,2728,2729,2730,2731,2732,2733,2736,2737,2739,2742,2743,2744,2746,2747,2748,2749,2636,2752,2754,2641,2750,2755,2757,2759,2760,2761,2740,2762]);
|
|
14452
|
+
__d(function(g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t=e(r(d[0])),o=r(d[1]),i=e(r(d[2]));async function n(){const e=await c();return i.default.emit('onDevicePushToken',{devicePushToken:e}),{type:"web",data:e}}function s(){if(!('Notification'in window))throw new o.CodedError('ERR_UNAVAILABLE','The Web Notifications API is not available on this device.');if(!navigator.serviceWorker)throw new o.CodedError('ERR_UNAVAILABLE','Notifications cannot be used because the service worker API is not supported on this device. This might also happen because your web page does not support HTTPS.');if('granted'!==Notification.permission)throw new o.CodedError('ERR_NOTIFICATIONS_PERMISSION_DENIED',"Cannot use web notifications without permissions granted. Request permissions with \"expo-permissions\".")}async function c(){const e=t.default.expoConfig?.notification?.vapidPublicKey;if(!e)throw new o.CodedError('ERR_NOTIFICATIONS_PUSH_WEB_MISSING_CONFIG','You must provide `notification.vapidPublicKey` in `app.json` to use push notifications on web. Learn more: https://docs.expo.dev/versions/latest/guides/using-vapid/.');const i=t.default.expoConfig?.notification?.serviceWorkerPath;if(!i)throw new o.CodedError('ERR_NOTIFICATIONS_PUSH_MISSING_CONFIGURATION','You must specify `notification.serviceWorkerPath` in `app.json` to use push notifications on the web. Provide the path to the service worker that will handle notifications.');s();let n=null;try{n=await navigator.serviceWorker.register(i)}catch(e){throw new o.CodedError('ERR_NOTIFICATIONS_PUSH_REGISTRATION_FAILED',`Could not register this device for push notifications because the service worker (${i}) could not be registered: ${e}`)}if(await navigator.serviceWorker.ready,!n.active)throw new o.CodedError('ERR_NOTIFICATIONS_PUSH_REGISTRATION_FAILED','Could not register this device for push notifications because the service worker is not active.');const c={userVisibleOnly:!0,applicationServerKey:u(e)};let h=null;try{h=await n.pushManager.subscribe(c)}catch(e){throw new o.CodedError('ERR_NOTIFICATIONS_PUSH_REGISTRATION_FAILED','The device was unable to register for remote notifications with the browser endpoint. ('+e+')')}const f=h.toJSON(),p={endpoint:f.endpoint,keys:{p256dh:f.keys.p256dh,auth:f.keys.auth}},I=(t.default.expoConfig?.notification??{}).icon;return await n.active.postMessage(JSON.stringify({fromExpoWebClient:{notificationIcon:I}})),p}function u(e){const t=(e+'='.repeat((4-e.length%4)%4)).replace(/-/g,'+').replace(/_/g,'/'),o=window.atob(t),i=new Uint8Array(o.length);for(let e=0;e<o.length;++e)i[e]=o.charCodeAt(e);return i}},2629,[596,554,271]);
|
|
14453
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e};async function u(){if(!o.default.unregisterForNotificationsAsync)throw new t.UnavailabilityError('ExpoNotifications','unregisterForNotificationsAsync');return o.default.unregisterForNotificationsAsync()}},2630,[554,2631]);
|
|
14454
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),r(d[0]);let t=!1;var n={addListener:()=>(t||(console.warn("[expo-notifications] Listening to push token changes is not yet fully supported on web. Adding a listener will have no effect."),t=!0),{remove:()=>{}}),removeListener:()=>{},removeAllListeners:()=>{},emit:()=>{},listenerCount:()=>0}},2631,[554]);
|
|
14455
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[0])),o=e(r(_d[1])),n=r(_d[2]),c=r(_d[3]),s=e(r(_d[4])),d=e(r(_d[5]));const p='https://exp.host/--/api/v2/';async function u(e={}){const s=e.devicePushToken||await(0,d.default)(),u=e.deviceId||await h(),R=e.projectId||o.default.easConfig?.projectId||o.default.expoConfig?.extra?.eas?.projectId;if(!R)throw new n.CodedError('ERR_NOTIFICATIONS_NO_EXPERIENCE_ID',"No \"projectId\" found. If \"projectId\" can't be inferred from the manifest (for instance, in bare workflow), you have to pass it in yourself.");const w=e.applicationId||t.applicationId;if(!w)throw new n.CodedError('ERR_NOTIFICATIONS_NO_APPLICATION_ID',"No \"applicationId\" found. If it can't be inferred from native configuration by expo-application, you have to pass it in yourself.");const O=e.type||y(s),_=e.development||await I(),v=e.baseUrl??p,N=e.url??`${v}push/getExpoPushToken`,x={type:O,deviceId:u.toLowerCase(),development:_,appId:w,deviceToken:E(s),projectId:R},T=await fetch(N,{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify(x)}).catch(e=>{throw new n.CodedError('ERR_NOTIFICATIONS_NETWORK_ERROR',`Error encountered while fetching Expo token: ${e}.`)});if(!T.ok){const e=T.statusText||T.status;let t;try{t=await T.text()}catch{}throw new n.CodedError('ERR_NOTIFICATIONS_SERVER_ERROR',`Error encountered while fetching Expo token, expected an OK response, received: ${e} (body: "${t}").`)}const b=l(await f(T));try{e.url||e.baseUrl?console.debug("[expo-notifications] Since the URL endpoint to register in has been customized in the options, expo-notifications won't try to auto-update the device push token on the server."):await(0,c.setAutoServerRegistrationEnabledAsync)(!0)}catch(e){console.warn('[expo-notifications] Could not enable automatically registering new device tokens with the Expo notification service',e)}return{type:'expo',data:b}}async function f(e){try{return await e.json()}catch{try{throw new n.CodedError('ERR_NOTIFICATIONS_SERVER_ERROR',`Expected a JSON response from server when fetching Expo token, received body: ${JSON.stringify(await e.text())}.`)}catch{throw new n.CodedError('ERR_NOTIFICATIONS_SERVER_ERROR',`Expected a JSON response from server when fetching Expo token, received response: ${JSON.stringify(e)}.`)}}}function l(e){if(!e||'object'!=typeof e||!e.data||'object'!=typeof e.data||!e.data.expoPushToken||'string'!=typeof e.data.expoPushToken)throw new n.CodedError('ERR_NOTIFICATIONS_SERVER_ERROR',`Malformed response from server, expected "{ data: { expoPushToken: string } }", received: ${JSON.stringify(e,null,2)}.`);return e.data.expoPushToken}async function h(){try{if(!s.default.getInstallationIdAsync)throw new n.UnavailabilityError('ExpoServerRegistrationModule','getInstallationIdAsync');return await s.default.getInstallationIdAsync()}catch(e){throw new n.CodedError('ERR_NOTIF_DEVICE_ID',`Could not have fetched installation ID of the application: ${e}.`)}}function E(e){return'string'==typeof e.data?e.data:JSON.stringify(e.data)}async function I(){return!1}function y(e){switch(e.type){case'ios':return'apns';case'android':return'fcm';default:return e.type}}},2632,[2633,596,554,2636,2640,2629]);
|
|
14456
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"nativeApplicationVersion",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"nativeBuildVersion",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"applicationName",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"applicationId",{enumerable:!0,get:function(){return p}}),_e.getAndroidId=function(){throw new t.UnavailabilityError('expo-application','androidId')},_e.getInstallReferrerAsync=async function(){if(!l.default.getInstallReferrerAsync)throw new t.UnavailabilityError('expo-application','getInstallReferrerAsync');return await l.default.getInstallReferrerAsync()},_e.getIosIdForVendorAsync=async function(){if(!l.default.getIosIdForVendorAsync)throw new t.UnavailabilityError('expo-application','getIosIdForVendorAsync');return await l.default.getIosIdForVendorAsync()},_e.getIosApplicationReleaseTypeAsync=async function(){if(!l.default.getApplicationReleaseTypeAsync)throw new t.UnavailabilityError('expo-application','getApplicationReleaseTypeAsync');return await l.default.getApplicationReleaseTypeAsync()},_e.getIosPushNotificationServiceEnvironmentAsync=async function(){if(!l.default.getPushNotificationServiceEnvironmentAsync)throw new t.UnavailabilityError('expo-application','getPushNotificationServiceEnvironmentAsync');return await l.default.getPushNotificationServiceEnvironmentAsync()},_e.getInstallationTimeAsync=async function(){if(!l.default.getInstallationTimeAsync)throw new t.UnavailabilityError('expo-application','getInstallationTimeAsync');const e=await l.default.getInstallationTimeAsync();return new Date(e)},_e.getLastUpdateTimeAsync=async function(){if(!l.default.getLastUpdateTimeAsync)throw new t.UnavailabilityError('expo-application','getLastUpdateTimeAsync');const e=await l.default.getLastUpdateTimeAsync();return new Date(e)},Object.defineProperty(_e,"ApplicationReleaseType",{enumerable:!0,get:function(){return n.ApplicationReleaseType}});var e,t=r(d[0]),n=r(d[1]),o=r(d[2]),l=(e=o)&&e.__esModule?e:{default:e};const c=l.default&&l.default.nativeApplicationVersion||null,s=l.default&&l.default.nativeBuildVersion||null,u=l.default&&l.default.applicationName||null,p=l.default&&l.default.applicationId||null},2633,[554,2634,2635]);
|
|
14457
|
+
__d(function(g,r,i,a,m,e,d){"use strict";var E;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ApplicationReleaseType",{enumerable:!0,get:function(){return E}}),(function(E){E[E.UNKNOWN=0]="UNKNOWN",E[E.SIMULATOR=1]="SIMULATOR",E[E.ENTERPRISE=2]="ENTERPRISE",E[E.DEVELOPMENT=3]="DEVELOPMENT",E[E.AD_HOC=4]="AD_HOC",E[E.APP_STORE=5]="APP_STORE"})(E||(E={}))},2634,[]);
|
|
14458
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={get applicationName(){return null},get bundleId(){return null},get nativeApplicationVersion(){return null},get nativeBuildVersion(){return null},get androidId(){return null},getInstallationTimeAsync:async()=>null}},2635,[]);
|
|
14459
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.setAutoServerRegistrationEnabledAsync=async function(e){if(l?.abort(),!n.default.setRegistrationInfoAsync)throw new t.UnavailabilityError('ServerRegistrationModule','setRegistrationInfoAsync');if(e){let e={};try{const t=await(n.default.getRegistrationInfoAsync?.());t&&(e=JSON.parse(t))}catch{}e.isEnabled=!0,await n.default.setRegistrationInfoAsync(JSON.stringify(e))}else await n.default.setRegistrationInfoAsync(null)},_e.__handlePersistedRegistrationInfoAsync=f,r(d[0]);var t=r(d[1]),n=e(r(d[2])),o=r(d[3]),s=e(r(d[4])),c=r(d[5]);let l=null;async function u(e){if(await(0,c.hasDeviceTokenChangedAsync)(e))return l?.abort(),l=new AbortController,await(0,c.updateDevicePushTokenAsync)(l.signal,e)}async function f(e){if(!e)return;let t=null;try{t=JSON.parse(e)}catch(e){console.warn('[expo-notifications] Error encountered while fetching registration information for auto token updates.',e)}if(t?.isEnabled)try{const e=await(0,s.default)();await u(e)}catch(e){console.warn('[expo-notifications] Error encountered while updating server registration with latest device push token.',e)}}n.default.getRegistrationInfoAsync?((0,o.addPushTokenListener)(async e=>{try{const t=await n.default.getRegistrationInfoAsync();if(!t)return;const o=JSON.parse(t);o?.isEnabled&&await u(e)}catch(e){console.warn('[expo-notifications] Error encountered while updating server registration with latest device push token.',e)}}),n.default.getRegistrationInfoAsync().then(f,e=>{console.error('[expo-notifications] Error reading persisted server registration info: ',e)})):console.warn("[expo-notifications] Error encountered while fetching auto-registration state, new tokens will not be automatically registered on server.",new t.UnavailabilityError('ServerRegistrationModule','getRegistrationInfoAsync'))},2636,[2637,554,2640,2641,2629,2643]);
|
|
14460
|
+
__d(function(_g,r,i,a,m,_e,_d){"use strict";var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[0]));const t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==_g?_g:void 0;t&&(void 0===t.AbortController&&(t.AbortController=e.AbortController),void 0===t.AbortSignal&&(t.AbortSignal=e.AbortSignal))},2637,[2638]);
|
|
14461
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"AbortController",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"AbortSignal",{enumerable:!0,get:function(){return o}});var t=r(d[0]);class o extends t.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const t=l.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}function n(){const n=Object.create(o.prototype);return t.EventTarget.call(n),l.set(n,!1),n}(0,t.defineEventAttribute)(o.prototype,"abort");const l=new WeakMap;Object.defineProperties(o.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(o.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class b{constructor(){c.set(this,n())}get signal(){return u(this)}abort(){var t;t=u(this),!1===l.get(t)&&(l.set(t,!0),t.dispatchEvent({type:"abort"}))}}const c=new WeakMap;function u(t){const o=c.get(t);if(null==o)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return o}Object.defineProperties(b.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(b.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});var p=b},2638,[2639]);
|
|
14457
14462
|
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"defineEventAttribute",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"EventTarget",{enumerable:!0,get:function(){return B}});
|
|
14458
14463
|
/**
|
|
14459
14464
|
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
14460
14465
|
* @copyright 2015 Toru Nagashima. All rights reserved.
|
|
14461
14466
|
* See LICENSE file in root directory for full license.
|
|
14462
14467
|
*/
|
|
14463
|
-
const t=new WeakMap,n=new WeakMap;function o(n){const o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function l(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function i(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const l=Object.keys(o);for(let t=0;t<l.length;++t){const n=l[t];n in this||Object.defineProperty(this,n,u(n))}}function u(t){return{get(){return o(this).event[t]},set(n){o(this).event[t]=n},configurable:!0,enumerable:!0}}function s(t){return{value(){const n=o(this).event;return n[t].apply(n,arguments)},configurable:!0,enumerable:!0}}function c(t,n){const o=Object.keys(n);if(0===o.length)return t;function l(n,o){t.call(this,n,o)}l.prototype=Object.create(t.prototype,{constructor:{value:l,configurable:!0,writable:!0}});for(let i=0;i<o.length;++i){const c=o[i];if(!(c in t.prototype)){const t="function"==typeof Object.getOwnPropertyDescriptor(n,c).value;Object.defineProperty(l.prototype,c,t?s(c):u(c))}}return l}function p(t){if(null==t||t===Object.prototype)return i;let o=n.get(t);return null==o&&(o=c(p(Object.getPrototypeOf(t)),t),n.set(t,o)),o}function f(t,n){return new(p(Object.getPrototypeOf(n)))(t,n)}function v(t){return o(t).immediateStopped}function y(t,n){o(t).eventPhase=n}function b(t,n){o(t).currentTarget=n}function h(t,n){o(t).passiveListener=n}i.prototype={get type(){return o(this).event.type},get target(){return o(this).eventTarget},get currentTarget(){return o(this).currentTarget},composedPath(){const t=o(this).currentTarget;return null==t?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return o(this).eventPhase},stopPropagation(){const t=o(this);t.stopped=!0,"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation(){const t=o(this);t.stopped=!0,t.immediateStopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(o(this).event.bubbles)},get cancelable(){return Boolean(o(this).event.cancelable)},preventDefault(){l(o(this))},get defaultPrevented(){return o(this).canceled},get composed(){return Boolean(o(this).event.composed)},get timeStamp(){return o(this).timeStamp},get srcElement(){return o(this).eventTarget},get cancelBubble(){return o(this).stopped},set cancelBubble(t){if(!t)return;const n=o(this);n.stopped=!0,"boolean"==typeof n.event.cancelBubble&&(n.event.cancelBubble=!0)},get returnValue(){return!o(this).canceled},set returnValue(t){t||l(o(this))},initEvent(){}},Object.defineProperty(i.prototype,"constructor",{value:i,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(i.prototype,window.Event.prototype),n.set(window.Event.prototype,i));const w=new WeakMap,P=3;function T(t){return null!==t&&"object"==typeof t}function O(t){const n=w.get(t);if(null==n)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return n}function j(t){return{get(){let n=O(this).get(t);for(;null!=n;){if(n.listenerType===P)return n.listener;n=n.next}return null},set(n){"function"==typeof n||T(n)||(n=null);const o=O(this);let l=null,i=o.get(t);for(;null!=i;)i.listenerType===P?null!==l?l.next=i.next:null!==i.next?o.set(t,i.next):o.delete(t):l=i,i=i.next;if(null!==n){const i={listener:n,listenerType:P,passive:!1,once:!1,next:null};null===l?o.set(t,i):l.next=i}},configurable:!0,enumerable:!0}}function E(t,n){Object.defineProperty(t,`on${n}`,j(n))}function x(t){function n(){B.call(this)}n.prototype=Object.create(B.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let o=0;o<t.length;++o)E(n.prototype,t[o]);return n}function B(){if(!(this instanceof B)){if(1===arguments.length&&Array.isArray(arguments[0]))return x(arguments[0]);if(arguments.length>0){const t=new Array(arguments.length);for(let n=0;n<arguments.length;++n)t[n]=arguments[n];return x(t)}throw new TypeError("Cannot call a class as a function")}w.set(this,new Map)}B.prototype={addEventListener(t,n,o){if(null==n)return;if("function"!=typeof n&&!T(n))throw new TypeError("'listener' should be a function or an object.");const l=O(this),i=T(o),u=(i?Boolean(o.capture):Boolean(o))?1:2,s={listener:n,listenerType:u,passive:i&&Boolean(o.passive),once:i&&Boolean(o.once),next:null};let c=l.get(t);if(void 0===c)return void l.set(t,s);let p=null;for(;null!=c;){if(c.listener===n&&c.listenerType===u)return;p=c,c=c.next}p.next=s},removeEventListener(t,n,o){if(null==n)return;const l=O(this),i=(T(o)?Boolean(o.capture):Boolean(o))?1:2;let u=null,s=l.get(t);for(;null!=s;){if(s.listener===n&&s.listenerType===i)return void(null!==u?u.next=s.next:null!==s.next?l.set(t,s.next):l.delete(t));u=s,s=s.next}},dispatchEvent(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');const n=O(this),o=t.type;let l=n.get(o);if(null==l)return!0;const i=f(this,t);let u=null;for(;null!=l;){if(l.once?null!==u?u.next=l.next:null!==l.next?n.set(o,l.next):n.delete(o):u=l,h(i,l.passive?l.listener:null),"function"==typeof l.listener)try{l.listener.call(this,i)}catch(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t)}else l.listenerType!==P&&"function"==typeof l.listener.handleEvent&&l.listener.handleEvent(i);if(v(i))break;l=l.next}return h(i,null),y(i,0),b(i,null),!i.defaultPrevented}},Object.defineProperty(B.prototype,"constructor",{value:B,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(B.prototype,window.EventTarget.prototype);var A=B},
|
|
14464
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const o='EXPO_NOTIFICATIONS_INSTALLATION_ID',n='EXPO_NOTIFICATIONS_REGISTRATION_INFO';let l=()=>{const o=t.uuid.v4();l=()=>o};var c={getInstallationIdAsync:async()=>{let n;try{n=localStorage.getItem(o),n&&'string'==typeof n||(n=t.uuid.v4(),localStorage.setItem(o,n))}catch{n=l()}return n},getRegistrationInfoAsync:async()=>'undefined'==typeof localStorage?null:localStorage.getItem(n),setRegistrationInfoAsync:async o=>{if('undefined'!=typeof localStorage)try{o?localStorage.setItem(n,o):localStorage.removeItem(n)}catch(o){throw new t.CodedError('ERR_NOTIFICATIONS_STORAGE_ERROR',`Could not modify localStorage to persist auto-registration information: ${o}`)}},addListener:()=>{},removeListeners:()=>{}}},
|
|
14465
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.addPushTokenListener=function(e){return(0,u.warnOfExpoGoPushUsage)(),t.default.addListener(o,({devicePushToken:n})=>e({data:n,type:"web"}))},r(d[0]);var e,n=r(d[1]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]);const o='onDevicePushToken'},
|
|
14466
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"warnOfExpoGoPushUsage",{enumerable:!0,get:function(){return t}});r(d[0]);r(d[1]);const t=()=>{}},
|
|
14467
|
-
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.hasDeviceTokenChangedAsync=async function(t){try{const e=await w(),o=await f();if(null==o)return!0;const c=Date.now()-(o.registeredAt??0);return c<0||c>=l||(t.data!==o.deviceToken||n.applicationId!==o.appId||e!==o.development||h(t)!==o.type)}catch{return!0}},_e.updateDevicePushTokenAsync=async function(t,o){const c=async e=>{const[c,s]=await Promise.all([w(),y()]),d={deviceId:s.toLowerCase(),development:c,deviceToken:o.data,appId:n.applicationId,type:h(o)};try{const s=await fetch(u,{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify(d),signal:t});s.ok||console.debug('[expo-notifications] Error encountered while updating the device push token with the server:',await s.text()),s.ok&&await p({deviceToken:o.data,appId:n.applicationId,development:c,type:h(o),registeredAt:Date.now()}),s.ok||e()}catch(t){if('object'==typeof t&&'AbortError'===t?.name)return;console.warn('[expo-notifications] Error thrown while updating the device push token with the server:',t),e()}};let s=!0;const d=()=>{s=!0};let l=0;const f={maxBackoff:12e4};let I=(0,e.computeNextBackoffInterval)(500,l,f);for(;s&&!t.aborted;)s=!1,await c(d),s&&!t.aborted&&(I=(0,e.computeNextBackoffInterval)(500,l,f),l+=1,await new Promise(t=>setTimeout(t,I)))};var t,e=r(_d[0]),n=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(r(_d[1])),o=r(_d[2]),c=r(_d[3]),s=(t=c)&&t.__esModule?t:{default:t};const u='https://exp.host/--/api/v2/push/updateDeviceToken',d='lastRegisteredDeviceToken',l=6048e5;async function f(){try{if(!s.default.getRegistrationInfoAsync)return null;const t=await s.default.getRegistrationInfoAsync();if(!t)return null;const e=JSON.parse(t);return e?.[d]??null}catch{return null}}async function p(t){try{if(!s.default.getRegistrationInfoAsync||!s.default.setRegistrationInfoAsync)return;const e=await s.default.getRegistrationInfoAsync(),n=e?JSON.parse(e):{};n[d]=t,await s.default.setRegistrationInfoAsync(JSON.stringify(n))}catch{}}async function y(){try{if(!s.default.getInstallationIdAsync)throw new o.UnavailabilityError('ExpoServerRegistrationModule','getInstallationIdAsync');return await s.default.getInstallationIdAsync()}catch(t){throw new o.CodedError('ERR_NOTIFICATIONS_DEVICE_ID',`Could not fetch the installation ID of the application: ${t}.`)}}function h(t){switch(t.type){case'ios':return'apns';case'android':return'fcm';default:return t.type}}async function w(){return!1}},
|
|
14468
|
-
__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const n=t(r(d[0]));e.computeNextBackoffInterval=function(t,o,{multiplier:u=1.5,randomizationFactor:f=.25,minBackoff:l=t,maxBackoff:c=1/0}={}){n.default(t>0,"The initial backoff interval must be positive"),n.default(o>=0,"The previous retry count must not be negative"),n.default(u>=1,"The backoff multiplier must be greater than or equal to 1"),n.default(0<=f&&f<=1,"The randomization factor must be between 0 and 1, inclusive"),n.default(l>=0,"The minimum backoff interval must be positive");let s=t*u**o,h=1-f+2*f*Math.random();return Math.min(Math.max(s*h,l),c)}},
|
|
14469
|
-
__d(function(g,r,_i,_a,m,_e,d){'use strict';function e(t){return e="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(t)}function t(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,o(a.key),a)}}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(t){var n=a(t,"string");return"symbol"===e(n)?n:String(n)}function a(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var a=o.call(t,n||"default");if("object"!==e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i,s,u=r(d[0]).codes,f=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,p=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,w=u.ERR_MISSING_ARGS,v=r(d[1]),y=r(d[2]).inspect,E=r(d[2]).types,x=E.isPromise,S=E.isRegExp,b=r(d[3])(),q=r(d[4])(),k=r(d[5])('RegExp.prototype.test');new Map;function F(){var e=r(d[6]);i=e.isDeepEqual,s=e.isDeepStrictEqual}var R=!1,j=m.exports=N,A={};function _(e){if(e.message instanceof Error)throw e.message;throw new v(e)}function D(e,t,n,o){if(!n){var a=!1;if(0===t)a=!0,o='No value argument passed to `assert.ok()`';else if(o instanceof Error)throw o;var c=new v({actual:n,expected:!0,message:o,operator:'==',stackStartFn:e});throw c.generatedMessage=a,c}}function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];D.apply(void 0,[N,t.length].concat(t))}j.fail=function e(t,n,o,a,c){var i,s=arguments.length;if(0===s)i='Failed';else if(1===s)o=t,t=void 0;else{if(!1===R)R=!0,(process.emitWarning?process.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.",'DeprecationWarning','DEP0094');2===s&&(a='!=')}if(o instanceof Error)throw o;var u={actual:t,expected:n,operator:void 0===a?'fail':a,stackStartFn:c||e};void 0!==o&&(u.message=o);var f=new v(u);throw i&&(f.message=i,f.generatedMessage=!0),f},j.AssertionError=v,j.ok=N,j.equal=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');t!=n&&_({actual:t,expected:n,message:o,operator:'==',stackStartFn:e})},j.notEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');t==n&&_({actual:t,expected:n,message:o,operator:'!=',stackStartFn:e})},j.deepEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F(),i(t,n)||_({actual:t,expected:n,message:o,operator:'deepEqual',stackStartFn:e})},j.notDeepEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F(),i(t,n)&&_({actual:t,expected:n,message:o,operator:'notDeepEqual',stackStartFn:e})},j.deepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F(),s(t,n)||_({actual:t,expected:n,message:o,operator:'deepStrictEqual',stackStartFn:e})},j.notDeepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F();s(t,n)&&_({actual:t,expected:n,message:o,operator:'notDeepStrictEqual',stackStartFn:e})},j.strictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');q(t,n)||_({actual:t,expected:n,message:o,operator:'strictEqual',stackStartFn:e})},j.notStrictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');q(t,n)&&_({actual:t,expected:n,message:o,operator:'notStrictEqual',stackStartFn:e})};var P=n(function e(t,n,o){var a=this;c(this,e),n.forEach(function(e){e in t&&(void 0!==o&&'string'==typeof o[e]&&S(t[e])&&k(t[e],o[e])?a[e]=o[e]:a[e]=t[e])})});function T(e,t,n,o,a,c){if(!(n in e)||!s(e[n],t[n])){if(!o){var i=new P(e,a),u=new P(t,a,e),f=new v({actual:i,expected:u,operator:'deepStrictEqual',stackStartFn:c});throw f.actual=e,f.expected=t,f.operator=c.name,f}_({actual:e,expected:t,message:o,operator:c.name,stackStartFn:c})}}function I(t,n,o,a){if('function'!=typeof n){if(S(n))return k(n,t);if(2===arguments.length)throw new l('expected',['Function','RegExp'],n);if('object'!==e(t)||null===t){var c=new v({actual:t,expected:n,message:o,operator:'deepStrictEqual',stackStartFn:a});throw c.operator=a.name,c}var s=Object.keys(n);if(n instanceof Error)s.push('name','message');else if(0===s.length)throw new p('error',n,'may not be an empty object');return void 0===i&&F(),s.forEach(function(e){'string'==typeof t[e]&&S(n[e])&&k(n[e],t[e])||T(t,n,e,o,s,a)}),!0}return void 0!==n.prototype&&t instanceof n||!Error.isPrototypeOf(n)&&!0===n.call({},t)}function M(e){if('function'!=typeof e)throw new l('fn','Function',e);try{e()}catch(e){return e}return A}function O(t){return x(t)||null!==t&&'object'===e(t)&&'function'==typeof t.then&&'function'==typeof t.catch}function G(e){return Promise.resolve().then(function(){var t;if('function'==typeof e){if(!O(t=e()))throw new h('instance of Promise','promiseFn',t)}else{if(!O(e))throw new l('promiseFn',['Function','Promise'],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return A}).catch(function(e){return e})})}function U(t,n,o,a){if('string'==typeof o){if(4===arguments.length)throw new l('error',['Object','Error','Function','RegExp'],o);if('object'===e(n)&&null!==n){if(n.message===o)throw new f('error/message',"The error message \"".concat(n.message,"\" is identical to the message."))}else if(n===o)throw new f('error/message',"The error \"".concat(n,"\" is identical to the message."));a=o,o=void 0}else if(null!=o&&'object'!==e(o)&&'function'!=typeof o)throw new l('error',['Object','Error','Function','RegExp'],o);if(n===A){var c='';o&&o.name&&(c+=" (".concat(o.name,")")),c+=a?": ".concat(a):'.';var i='rejects'===t.name?'rejection':'exception';_({actual:void 0,expected:o,operator:t.name,message:"Missing expected ".concat(i).concat(c),stackStartFn:t})}if(o&&!I(n,o,a,t))throw n}function L(e,t,n,o){if(t!==A){if('string'==typeof n&&(o=n,n=void 0),!n||I(t,n)){var a=o?": ".concat(o):'.',c='doesNotReject'===e.name?'rejection':'exception';_({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(c).concat(a,"\n")+"Actual message: \"".concat(t&&t.message,"\""),stackStartFn:e})}throw t}}function V(t,n,o,a,c){if(!S(n))throw new l('regexp','RegExp',n);var i='match'===c;if('string'!=typeof t||k(n,t)!==i){if(o instanceof Error)throw o;var s=!o;o=o||('string'!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(e(t)," (").concat(y(t),")"):(i?'The input did not match the regular expression ':'The input was expected to not match the regular expression ')+"".concat(y(n),". Input:\n\n").concat(y(t),"\n"));var u=new v({actual:t,expected:n,message:o,operator:c,stackStartFn:a});throw u.generatedMessage=s,u}}function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];D.apply(void 0,[W,t.length].concat(t))}j.throws=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];U.apply(void 0,[e,M(t)].concat(o))},j.rejects=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return G(t).then(function(t){return U.apply(void 0,[e,t].concat(o))})},j.doesNotThrow=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];L.apply(void 0,[e,M(t)].concat(o))},j.doesNotReject=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return G(t).then(function(t){return L.apply(void 0,[e,t].concat(o))})},j.ifError=function t(n){if(null!=n){var o='ifError got unwanted exception: ';'object'===e(n)&&'string'==typeof n.message?0===n.message.length&&n.constructor?o+=n.constructor.name:o+=n.message:o+=y(n);var a=new v({actual:n,expected:null,operator:'ifError',message:o,stackStartFn:t}),c=n.stack;if('string'==typeof c){var i=c.split('\n');i.shift();for(var s=a.stack.split('\n'),u=0;u<i.length;u++){var f=s.indexOf(i[u]);if(-1!==f){s=s.slice(0,f);break}}a.stack="".concat(s.join('\n'),"\n").concat(i.join('\n'))}throw a}},j.match=function e(t,n,o){V(t,n,o,e,'match')},j.doesNotMatch=function e(t,n,o){V(t,n,o,e,'doesNotMatch')},j.strict=b(W,j,{equal:j.strictEqual,deepEqual:j.deepStrictEqual,notEqual:j.notStrictEqual,notDeepEqual:j.notDeepStrictEqual}),j.strict.strict=j.strict},
|
|
14470
|
-
__d(function(g,r,_i,_a,m,_e,d){'use strict';function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var o=0;o<e.length;o++){var c=e[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,n(c.key),c)}}function n(e){var n=o(e,"string");return"symbol"===t(n)?n:String(n)}function o(e,n){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var c=o.call(e,n||"default");if("object"!==t(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function a(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var p,y,b={};function v(t,n,o){function u(t,e,o){return'string'==typeof n?n:n(t,e,o)}o||(o=Error);var f=(function(n){i(h,n);var o,f,p,y,b,v=(o=h,f=s(),function(){var t,e=l(o);if(f){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function h(e,n,o){var i;return c(this,h),(i=v.call(this,u(e,n,o))).code=t,i}return p=h,y&&e(p.prototype,y),b&&e(p,b),Object.defineProperty(p,"prototype",{writable:!1}),p})(o);b[t]=f}function h(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(t){return String(t)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(', '),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function R(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function E(t,e,n){return'number'!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}v('ERR_AMBIGUOUS_ARGUMENT','The "%s" argument is ambiguous. %s',TypeError),v('ERR_INVALID_ARG_TYPE',function(e,n,o){var c,i,u,a;if(void 0===p&&(p=r(d[0])),p('string'==typeof e,"'name' must be a string"),'string'==typeof n&&(i='not ',n.substr(!u||u<0?0:+u,i.length)===i)?(c='must not be',n=n.replace(/^not /,'')):c='must be',R(e,' argument'))a="The ".concat(e," ").concat(c," ").concat(h(n,'type'));else{var f=E(e,'.')?'property':'argument';a="The \"".concat(e,"\" ").concat(f," ").concat(c," ").concat(h(n,'type'))}return a+=". Received type ".concat(t(o))},TypeError),v('ERR_INVALID_ARG_VALUE',function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'is invalid';void 0===y&&(y=r(d[1]));var o=y.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),v('ERR_INVALID_RETURN_VALUE',function(e,n,o){var c;return c=o&&o.constructor&&o.constructor.name?"instance of ".concat(o.constructor.name):"type ".concat(t(o)),"Expected ".concat(e," to be returned from the \"").concat(n,"\"")+" function but got ".concat(c,".")},TypeError),v('ERR_MISSING_ARGS',function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===p&&(p=r(d[0])),p(e.length>0,'At least one arg needs to be specified');var o='The ',c=e.length;switch(e=e.map(function(t){return"\"".concat(t,"\"")}),c){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,c-1).join(', '),o+=", and ".concat(e[c-1]," arguments")}return"".concat(o," must be specified")},TypeError),m.exports.codes=b},
|
|
14471
|
-
__d(function(g,r,_i,a,m,_e,_d){var e=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++)n[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return n},t=/%[sdj%]/g;_e.format=function(e){if(!E(e)){for(var n=[],o=0;o<arguments.length;o++)n.push(u(arguments[o]));return n.join(' ')}o=1;for(var i=arguments,c=i.length,s=String(e).replace(t,function(e){if('%%'===e)return'%';if(o>=c)return e;switch(e){case'%s':return String(i[o++]);case'%d':return Number(i[o++]);case'%j':try{return JSON.stringify(i[o++])}catch(e){return'[Circular]'}default:return e}}),l=i[o];o<c;l=i[++o])j(l)||!x(l)?s+=' '+l:s+=' '+u(l);return s},_e.deprecate=function(e,t){if('undefined'!=typeof process&&!0===process.noDeprecation)return e;if('undefined'==typeof process)return function(){return _e.deprecate(e,t).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(t);process.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,'\\$&').replace(/\*/g,'.*').replace(/,/g,'$|^').toUpperCase(),o=new RegExp('^'+i+'$','i')}function u(e,t){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),O(t)?n.showHidden=t:t&&_e._extend(n,t),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),p(n,e,n.depth)}function c(e,t){var n=u.styles[t];return n?'\x1b['+u.colors[n][0]+'m'+e+'\x1b['+u.colors[n][1]+'m':e}function s(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function p(e,t,n){if(e.customInspect&&t&&N(t.inspect)&&t.inspect!==_e.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return E(o)||(o=p(e,o,n)),o}var i=f(e,t);if(i)return i;var u=Object.keys(t),c=l(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(t)),P(t)&&(u.indexOf('message')>=0||u.indexOf('description')>=0))return y(t);if(0===u.length){if(N(t)){var s=t.name?': '+t.name:'';return e.stylize('[Function'+s+']','special')}if(z(t))return e.stylize(RegExp.prototype.toString.call(t),'regexp');if(D(t))return e.stylize(Date.prototype.toString.call(t),'date');if(P(t))return y(t)}var O,j='',w=!1,S=['{','}'];(v(t)&&(w=!0,S=['[',']']),N(t))&&(j=' [Function'+(t.name?': '+t.name:'')+']');return z(t)&&(j=' '+RegExp.prototype.toString.call(t)),D(t)&&(j=' '+Date.prototype.toUTCString.call(t)),P(t)&&(j=' '+y(t)),0!==u.length||w&&0!=t.length?n<0?z(t)?e.stylize(RegExp.prototype.toString.call(t),'regexp'):e.stylize('[Object]','special'):(e.seen.push(t),O=w?d(e,t,n,c,u):u.map(function(o){return b(e,t,n,c,o,w)}),e.seen.pop(),h(O,j,S)):S[0]+j+S[1]}function f(e,t){if(S(t))return e.stylize('undefined','undefined');if(E(t)){var n='\''+JSON.stringify(t).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+'\'';return e.stylize(n,'string')}return w(t)?e.stylize(''+t,'number'):O(t)?e.stylize(''+t,'boolean'):j(t)?e.stylize('null','null'):void 0}function y(e){return'['+Error.prototype.toString.call(e)+']'}function d(e,t,n,o,i){for(var u=[],c=0,s=t.length;c<s;++c)_(t,String(c))?u.push(b(e,t,n,o,String(c),!0)):u.push('');return i.forEach(function(i){i.match(/^\d+$/)||u.push(b(e,t,n,o,i,!0))}),u}function b(e,t,n,o,i,u){var c,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize('[Getter/Setter]','special'):e.stylize('[Getter]','special'):l.set&&(s=e.stylize('[Setter]','special')),_(o,i)||(c='['+i+']'),s||(e.seen.indexOf(l.value)<0?(s=j(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf('\n')>-1&&(s=u?s.split('\n').map(function(e){return' '+e}).join('\n').slice(2):'\n'+s.split('\n').map(function(e){return' '+e}).join('\n')):s=e.stylize('[Circular]','special')),S(c)){if(u&&i.match(/^\d+$/))return s;(c=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.slice(1,-1),c=e.stylize(c,'name')):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=e.stylize(c,'string'))}return c+': '+s}function h(e,t,n){return e.reduce(function(e,t){return t.indexOf('\n')>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?n[0]+(''===t?'':t+'\n ')+' '+e.join(',\n ')+' '+n[1]:n[0]+t+' '+e.join(', ')+' '+n[1]}function v(e){return Array.isArray(e)}function O(e){return'boolean'==typeof e}function j(e){return null===e}function w(e){return'number'==typeof e}function E(e){return'string'==typeof e}function S(e){return void 0===e}function z(e){return x(e)&&'[object RegExp]'===T(e)}function x(e){return'object'==typeof e&&null!==e}function D(e){return x(e)&&'[object Date]'===T(e)}function P(e){return x(e)&&('[object Error]'===T(e)||e instanceof Error)}function N(e){return'function'==typeof e}function T(e){return Object.prototype.toString.call(e)}function $(e){return e<10?'0'+e.toString(10):e.toString(10)}_e.debuglog=function(e){if(e=e.toUpperCase(),!n[e])if(o.test(e)){var t=process.pid;n[e]=function(){var n=_e.format.apply(_e,arguments);console.error('%s %d: %s',e,t,n)}}else n[e]=function(){};return n[e]},_e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:'cyan',number:'yellow',boolean:'yellow',undefined:'grey',null:'bold',string:'green',date:'magenta',regexp:'red'},_e.types=r(_d[0]),_e.isArray=v,_e.isBoolean=O,_e.isNull=j,_e.isNullOrUndefined=function(e){return null==e},_e.isNumber=w,_e.isString=E,_e.isSymbol=function(e){return'symbol'==typeof e},_e.isUndefined=S,_e.isRegExp=z,_e.types.isRegExp=z,_e.isObject=x,_e.isDate=D,_e.types.isDate=D,_e.isError=P,_e.types.isNativeError=P,_e.isFunction=N,_e.isPrimitive=function(e){return null===e||'boolean'==typeof e||'number'==typeof e||'string'==typeof e||'symbol'==typeof e||void 0===e},_e.isBuffer=r(_d[1]);var F=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}_e.log=function(){var e,t;console.log('%s - %s',(e=new Date,t=[$(e.getHours()),$(e.getMinutes()),$(e.getSeconds())].join(':'),[e.getDate(),F[e.getMonth()],t].join(' ')),_e.format.apply(_e,arguments))},_e.inherits=r(_d[2]),_e._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e};var k='undefined'!=typeof Symbol?Symbol('util.promisify.custom'):void 0;function A(e,t){if(!e){var n=new Error('Promise was rejected with a falsy value');n.reason=e,e=n}return t(e)}_e.promisify=function(t){if('function'!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var n;if('function'!=typeof(n=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,k,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var e,n,o=new Promise(function(t,o){e=t,n=o}),i=[],u=0;u<arguments.length;u++)i.push(arguments[u]);i.push(function(t,o){t?n(t):e(o)});try{t.apply(this,i)}catch(e){n(e)}return o}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),k&&Object.defineProperty(n,k,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,e(t))},_e.promisify.custom=k,_e.callbackify=function(t){if('function'!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var o=e.pop();if('function'!=typeof o)throw new TypeError('The last argument must be of type Function');var i=this,u=function(){return o.apply(i,arguments)};t.apply(this,e).then(function(e){process.nextTick(u.bind(null,null,e))},function(e){process.nextTick(A.bind(null,e,u))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,e(t)),n}},
|
|
14472
|
-
__d(function(g,r,i,a,m,_e,d){'use strict';var n=r(d[0]),e=r(d[1]),t=r(d[2]),o=r(d[3]);function u(n){return n.call.bind(n)}var f='undefined'!=typeof BigInt,c='undefined'!=typeof Symbol,y=u(Object.prototype.toString),s=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),A=u(Boolean.prototype.valueOf);if(f)var b=u(BigInt.prototype.valueOf);if(c)var w=u(Symbol.prototype.valueOf);function l(n,e){if('object'!=typeof n)return!1;try{return e(n),!0}catch(n){return!1}}function B(n){return'[object Map]'===y(n)}function j(n){return'[object Set]'===y(n)}function k(n){return'[object WeakMap]'===y(n)}function S(n){return'[object WeakSet]'===y(n)}function M(n){return'[object ArrayBuffer]'===y(n)}function v(n){return'undefined'!=typeof ArrayBuffer&&(M.working?M(n):n instanceof ArrayBuffer)}function I(n){return'[object DataView]'===y(n)}function O(n){return'undefined'!=typeof DataView&&(I.working?I(n):n instanceof DataView)}_e.isArgumentsObject=n,_e.isGeneratorFunction=e,_e.isTypedArray=o,_e.isPromise=function(n){return'undefined'!=typeof Promise&&n instanceof Promise||null!==n&&'object'==typeof n&&'function'==typeof n.then&&'function'==typeof n.catch},_e.isArrayBufferView=function(n){return'undefined'!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):o(n)||O(n)},_e.isUint8Array=function(n){return'Uint8Array'===t(n)},_e.isUint8ClampedArray=function(n){return'Uint8ClampedArray'===t(n)},_e.isUint16Array=function(n){return'Uint16Array'===t(n)},_e.isUint32Array=function(n){return'Uint32Array'===t(n)},_e.isInt8Array=function(n){return'Int8Array'===t(n)},_e.isInt16Array=function(n){return'Int16Array'===t(n)},_e.isInt32Array=function(n){return'Int32Array'===t(n)},_e.isFloat32Array=function(n){return'Float32Array'===t(n)},_e.isFloat64Array=function(n){return'Float64Array'===t(n)},_e.isBigInt64Array=function(n){return'BigInt64Array'===t(n)},_e.isBigUint64Array=function(n){return'BigUint64Array'===t(n)},B.working='undefined'!=typeof Map&&B(new Map),_e.isMap=function(n){return'undefined'!=typeof Map&&(B.working?B(n):n instanceof Map)},j.working='undefined'!=typeof Set&&j(new Set),_e.isSet=function(n){return'undefined'!=typeof Set&&(j.working?j(n):n instanceof Set)},k.working='undefined'!=typeof WeakMap&&k(new WeakMap),_e.isWeakMap=function(n){return'undefined'!=typeof WeakMap&&(k.working?k(n):n instanceof WeakMap)},S.working='undefined'!=typeof WeakSet&&S(new WeakSet),_e.isWeakSet=function(n){return S(n)},M.working='undefined'!=typeof ArrayBuffer&&M(new ArrayBuffer),_e.isArrayBuffer=v,I.working='undefined'!=typeof ArrayBuffer&&'undefined'!=typeof DataView&&I(new DataView(new ArrayBuffer(1),0,1)),_e.isDataView=O;var W='undefined'!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function U(n){return'[object SharedArrayBuffer]'===y(n)}function h(n){return void 0!==W&&(void 0===U.working&&(U.working=U(new W)),U.working?U(n):n instanceof W)}function V(n){return l(n,s)}function F(n){return l(n,p)}function D(n){return l(n,A)}function P(n){return f&&l(n,b)}function x(n){return c&&l(n,w)}_e.isSharedArrayBuffer=h,_e.isAsyncFunction=function(n){return'[object AsyncFunction]'===y(n)},_e.isMapIterator=function(n){return'[object Map Iterator]'===y(n)},_e.isSetIterator=function(n){return'[object Set Iterator]'===y(n)},_e.isGeneratorObject=function(n){return'[object Generator]'===y(n)},_e.isWebAssemblyCompiledModule=function(n){return'[object WebAssembly.Module]'===y(n)},_e.isNumberObject=V,_e.isStringObject=F,_e.isBooleanObject=D,_e.isBigIntObject=P,_e.isSymbolObject=x,_e.isBoxedPrimitive=function(n){return V(n)||F(n)||D(n)||P(n)||x(n)},_e.isAnyArrayBuffer=function(n){return'undefined'!=typeof Uint8Array&&(v(n)||h(n))},['isProxy','isExternal','isModuleNamespaceObject'].forEach(function(n){Object.defineProperty(_e,n,{enumerable:!1,value:function(){throw new Error(n+' is not supported in userland')}})})},
|
|
14473
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(),n=r(d[1])('Object.prototype.toString'),o=function(o){return!(t&&o&&'object'==typeof o&&Symbol.toStringTag in o)&&'[object Arguments]'===n(o)},c=function(t){return!!o(t)||null!==t&&'object'==typeof t&&'length'in t&&'number'==typeof t.length&&t.length>=0&&'[object Array]'!==n(t)&&'callee'in t&&'[object Function]'===n(t.callee)},u=(function(){return o(arguments)})();o.isLegacyArguments=c,m.exports=u?o:c},
|
|
14474
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(){return t()&&!!Symbol.toStringTag}},
|
|
14475
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){if('function'!=typeof Symbol||'function'!=typeof Object.getOwnPropertySymbols)return!1;if('symbol'==typeof Symbol.iterator)return!0;var t={},o=Symbol('test'),n=Object(o);if('string'==typeof o)return!1;if('[object Symbol]'!==Object.prototype.toString.call(o))return!1;if('[object Symbol]'!==Object.prototype.toString.call(n))return!1;for(var c in t[o]=42,t)return!1;if('function'==typeof Object.keys&&0!==Object.keys(t).length)return!1;if('function'==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var y=Object.getOwnPropertySymbols(t);if(1!==y.length||y[0]!==o)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if('function'==typeof Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(t,o);if(42!==f.value||!0!==f.enumerable)return!1}return!0}},
|
|
14476
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=n([t('%String.prototype.indexOf%')]);m.exports=function(p,f){var u=t(p,!!f);return'function'==typeof u&&o(p,'.prototype.')>-1?n([u]):u}},
|
|
14477
|
-
__d(function(g,r,_i,a,m,_e,d){'use strict';var t,e=r(d[0]),o=r(d[1]),n=r(d[2]),y=r(d[3]),p=r(d[4]),i=r(d[5]),f=r(d[6]),c=r(d[7]),l=r(d[8]),u=r(d[9]),s=r(d[10]),A=r(d[11]),P=r(d[12]),S=r(d[13]),h=r(d[14]),I=Function,F=function(t){try{return I('"use strict"; return ('+t+').constructor;')()}catch(t){}},b=r(d[15]),E=r(d[16]),U=function(){throw new f},v=b?(function(){try{return U}catch(t){try{return b(arguments,'callee').get}catch(t){return U}}})():U,w=r(d[17])(),R=r(d[18]),B=r(d[19]),M=r(d[20]),O=r(d[21]),x=r(d[22]),_={},G='undefined'!=typeof Uint8Array&&R?R(Uint8Array):t,k={__proto__:null,'%AggregateError%':'undefined'==typeof AggregateError?t:AggregateError,'%Array%':Array,'%ArrayBuffer%':'undefined'==typeof ArrayBuffer?t:ArrayBuffer,'%ArrayIteratorPrototype%':w&&R?R([][Symbol.iterator]()):t,'%AsyncFromSyncIteratorPrototype%':t,'%AsyncFunction%':_,'%AsyncGenerator%':_,'%AsyncGeneratorFunction%':_,'%AsyncIteratorPrototype%':_,'%Atomics%':'undefined'==typeof Atomics?t:Atomics,'%BigInt%':'undefined'==typeof BigInt?t:BigInt,'%BigInt64Array%':'undefined'==typeof BigInt64Array?t:BigInt64Array,'%BigUint64Array%':'undefined'==typeof BigUint64Array?t:BigUint64Array,'%Boolean%':Boolean,'%DataView%':'undefined'==typeof DataView?t:DataView,'%Date%':Date,'%decodeURI%':decodeURI,'%decodeURIComponent%':decodeURIComponent,'%encodeURI%':encodeURI,'%encodeURIComponent%':encodeURIComponent,'%Error%':o,'%eval%':eval,'%EvalError%':n,'%Float16Array%':'undefined'==typeof Float16Array?t:Float16Array,'%Float32Array%':'undefined'==typeof Float32Array?t:Float32Array,'%Float64Array%':'undefined'==typeof Float64Array?t:Float64Array,'%FinalizationRegistry%':'undefined'==typeof FinalizationRegistry?t:FinalizationRegistry,'%Function%':I,'%GeneratorFunction%':_,'%Int8Array%':'undefined'==typeof Int8Array?t:Int8Array,'%Int16Array%':'undefined'==typeof Int16Array?t:Int16Array,'%Int32Array%':'undefined'==typeof Int32Array?t:Int32Array,'%isFinite%':isFinite,'%isNaN%':isNaN,'%IteratorPrototype%':w&&R?R(R([][Symbol.iterator]())):t,'%JSON%':'object'==typeof JSON?JSON:t,'%Map%':'undefined'==typeof Map?t:Map,'%MapIteratorPrototype%':'undefined'!=typeof Map&&w&&R?R((new Map)[Symbol.iterator]()):t,'%Math%':Math,'%Number%':Number,'%Object%':e,'%Object.getOwnPropertyDescriptor%':b,'%parseFloat%':parseFloat,'%parseInt%':parseInt,'%Promise%':'undefined'==typeof Promise?t:Promise,'%Proxy%':'undefined'==typeof Proxy?t:Proxy,'%RangeError%':y,'%ReferenceError%':p,'%Reflect%':'undefined'==typeof Reflect?t:Reflect,'%RegExp%':RegExp,'%Set%':'undefined'==typeof Set?t:Set,'%SetIteratorPrototype%':'undefined'!=typeof Set&&w&&R?R((new Set)[Symbol.iterator]()):t,'%SharedArrayBuffer%':'undefined'==typeof SharedArrayBuffer?t:SharedArrayBuffer,'%String%':String,'%StringIteratorPrototype%':w&&R?R(''[Symbol.iterator]()):t,'%Symbol%':w?Symbol:t,'%SyntaxError%':i,'%ThrowTypeError%':v,'%TypedArray%':G,'%TypeError%':f,'%Uint8Array%':'undefined'==typeof Uint8Array?t:Uint8Array,'%Uint8ClampedArray%':'undefined'==typeof Uint8ClampedArray?t:Uint8ClampedArray,'%Uint16Array%':'undefined'==typeof Uint16Array?t:Uint16Array,'%Uint32Array%':'undefined'==typeof Uint32Array?t:Uint32Array,'%URIError%':c,'%WeakMap%':'undefined'==typeof WeakMap?t:WeakMap,'%WeakRef%':'undefined'==typeof WeakRef?t:WeakRef,'%WeakSet%':'undefined'==typeof WeakSet?t:WeakSet,'%Function.prototype.call%':x,'%Function.prototype.apply%':O,'%Object.defineProperty%':E,'%Object.getPrototypeOf%':B,'%Math.abs%':l,'%Math.floor%':u,'%Math.max%':s,'%Math.min%':A,'%Math.pow%':P,'%Math.round%':S,'%Math.sign%':h,'%Reflect.getPrototypeOf%':M};if(R)try{null.error}catch(t){var N=R(R(t));k['%Error.prototype%']=N}var j=function t(e){var o;if('%AsyncFunction%'===e)o=F('async function () {}');else if('%GeneratorFunction%'===e)o=F('function* () {}');else if('%AsyncGeneratorFunction%'===e)o=F('async function* () {}');else if('%AsyncGenerator%'===e){var n=t('%AsyncGeneratorFunction%');n&&(o=n.prototype)}else if('%AsyncIteratorPrototype%'===e){var y=t('%AsyncGenerator%');y&&R&&(o=R(y.prototype))}return k[e]=o,o},W={__proto__:null,'%ArrayBufferPrototype%':['ArrayBuffer','prototype'],'%ArrayPrototype%':['Array','prototype'],'%ArrayProto_entries%':['Array','prototype','entries'],'%ArrayProto_forEach%':['Array','prototype','forEach'],'%ArrayProto_keys%':['Array','prototype','keys'],'%ArrayProto_values%':['Array','prototype','values'],'%AsyncFunctionPrototype%':['AsyncFunction','prototype'],'%AsyncGenerator%':['AsyncGeneratorFunction','prototype'],'%AsyncGeneratorPrototype%':['AsyncGeneratorFunction','prototype','prototype'],'%BooleanPrototype%':['Boolean','prototype'],'%DataViewPrototype%':['DataView','prototype'],'%DatePrototype%':['Date','prototype'],'%ErrorPrototype%':['Error','prototype'],'%EvalErrorPrototype%':['EvalError','prototype'],'%Float32ArrayPrototype%':['Float32Array','prototype'],'%Float64ArrayPrototype%':['Float64Array','prototype'],'%FunctionPrototype%':['Function','prototype'],'%Generator%':['GeneratorFunction','prototype'],'%GeneratorPrototype%':['GeneratorFunction','prototype','prototype'],'%Int8ArrayPrototype%':['Int8Array','prototype'],'%Int16ArrayPrototype%':['Int16Array','prototype'],'%Int32ArrayPrototype%':['Int32Array','prototype'],'%JSONParse%':['JSON','parse'],'%JSONStringify%':['JSON','stringify'],'%MapPrototype%':['Map','prototype'],'%NumberPrototype%':['Number','prototype'],'%ObjectPrototype%':['Object','prototype'],'%ObjProto_toString%':['Object','prototype','toString'],'%ObjProto_valueOf%':['Object','prototype','valueOf'],'%PromisePrototype%':['Promise','prototype'],'%PromiseProto_then%':['Promise','prototype','then'],'%Promise_all%':['Promise','all'],'%Promise_reject%':['Promise','reject'],'%Promise_resolve%':['Promise','resolve'],'%RangeErrorPrototype%':['RangeError','prototype'],'%ReferenceErrorPrototype%':['ReferenceError','prototype'],'%RegExpPrototype%':['RegExp','prototype'],'%SetPrototype%':['Set','prototype'],'%SharedArrayBufferPrototype%':['SharedArrayBuffer','prototype'],'%StringPrototype%':['String','prototype'],'%SymbolPrototype%':['Symbol','prototype'],'%SyntaxErrorPrototype%':['SyntaxError','prototype'],'%TypedArrayPrototype%':['TypedArray','prototype'],'%TypeErrorPrototype%':['TypeError','prototype'],'%Uint8ArrayPrototype%':['Uint8Array','prototype'],'%Uint8ClampedArrayPrototype%':['Uint8ClampedArray','prototype'],'%Uint16ArrayPrototype%':['Uint16Array','prototype'],'%Uint32ArrayPrototype%':['Uint32Array','prototype'],'%URIErrorPrototype%':['URIError','prototype'],'%WeakMapPrototype%':['WeakMap','prototype'],'%WeakSetPrototype%':['WeakSet','prototype']},D=r(d[23]),C=r(d[24]),T=D.call(x,Array.prototype.concat),J=D.call(O,Array.prototype.splice),V=D.call(x,String.prototype.replace),z=D.call(x,String.prototype.slice),$=D.call(x,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,K=function(t){var e=z(t,0,1),o=z(t,-1);if('%'===e&&'%'!==o)throw new i('invalid intrinsic syntax, expected closing `%`');if('%'===o&&'%'!==e)throw new i('invalid intrinsic syntax, expected opening `%`');var n=[];return V(t,q,function(t,e,o,y){n[n.length]=o?V(y,H,'$1'):e||t}),n},L=function(t,e){var o,n=t;if(C(W,n)&&(n='%'+(o=W[n])[0]+'%'),C(k,n)){var y=k[n];if(y===_&&(y=j(n)),void 0===y&&!e)throw new f('intrinsic '+t+' exists, but is not available. Please file an issue!');return{alias:o,name:n,value:y}}throw new i('intrinsic '+t+' does not exist!')};m.exports=function(t,e){if('string'!=typeof t||0===t.length)throw new f('intrinsic name must be a non-empty string');if(arguments.length>1&&'boolean'!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,t))throw new i('`%` may not be present anywhere but at the beginning and end of the intrinsic name');var o=K(t),n=o.length>0?o[0]:'',y=L('%'+n+'%',e),p=y.name,c=y.value,l=!1,u=y.alias;u&&(n=u[0],J(o,T([0,1],u)));for(var s=1,A=!0;s<o.length;s+=1){var P=o[s],S=z(P,0,1),h=z(P,-1);if(('"'===S||"'"===S||'`'===S||'"'===h||"'"===h||'`'===h)&&S!==h)throw new i('property names with quotes must have matching quotes');if('constructor'!==P&&A||(l=!0),C(k,p='%'+(n+='.'+P)+'%'))c=k[p];else if(null!=c){if(!(P in c)){if(!e)throw new f('base intrinsic for '+t+' exists, but the property is not available.');return}if(b&&s+1>=o.length){var I=b(c,P);c=(A=!!I)&&'get'in I&&!('originalValue'in I.get)?I.get:c[P]}else A=C(c,P),c=c[P];A&&!l&&(k[p]=c)}}return c}},
|
|
14478
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Object},
|
|
14479
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Error},
|
|
14480
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=EvalError},
|
|
14481
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=RangeError},
|
|
14482
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=ReferenceError},
|
|
14483
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=SyntaxError},
|
|
14484
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=TypeError},
|
|
14485
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=URIError},
|
|
14486
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.abs},
|
|
14487
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.floor},
|
|
14488
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.max},
|
|
14489
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.min},
|
|
14490
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.pow},
|
|
14491
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.round},
|
|
14492
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(n){return t(n)||0===n?n:n<0?-1:1}},
|
|
14493
|
-
__d(function(g,r,i,_a,m,e,d){'use strict';m.exports=Number.isNaN||function(t){return t!=t}},
|
|
14494
|
-
__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);if(t)try{t([],'length')}catch(c){t=null}m.exports=t},
|
|
14495
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Object.getOwnPropertyDescriptor},
|
|
14496
|
-
__d(function(g,r,i,a,m,_e,d){'use strict';var t=Object.defineProperty||!1;if(t)try{t({},'a',{value:1})}catch(e){t=!1}m.exports=t},
|
|
14497
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var o='undefined'!=typeof Symbol&&Symbol,t=r(d[0]);m.exports=function(){return'function'==typeof o&&('function'==typeof Symbol&&('symbol'==typeof o('foo')&&('symbol'==typeof Symbol('bar')&&t())))}},
|
|
14498
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=r(d[2]);m.exports=t?function(n){return t(n)}:n?function(t){if(!t||'object'!=typeof t&&'function'!=typeof t)throw new TypeError('getProto: not an object');return n(t)}:o?function(t){return o(t)}:null},
|
|
14499
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports='undefined'!=typeof Reflect&&Reflect.getPrototypeOf||null},
|
|
14500
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t.getPrototypeOf||null},
|
|
14501
|
-
__d(function(g,r,i,a,m,_e,d){'use strict';var t,o=r(d[0]),e=r(d[1]);try{t=[].__proto__===Array.prototype}catch(t){if(!t||'object'!=typeof t||!('code'in t)||'ERR_PROTO_ACCESS'!==t.code)throw t}var c=!!t&&e&&e(Object.prototype,'__proto__'),_=Object,n=_.getPrototypeOf;m.exports=c&&'function'==typeof c.get?o([c.get]):'function'==typeof n&&function(t){return n(null==t?t:_(t))}},
|
|
14502
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(f){if(f.length<1||'function'!=typeof f[0])throw new t('a function is required');return u(n,o,f)}},
|
|
14503
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=Function.prototype.bind||t},
|
|
14504
|
-
__d(function(g,r,_i,_a,m,e,d){'use strict';var t=Object.prototype.toString,n=Math.max,o=function(t,n){for(var o=[],i=0;i<t.length;i+=1)o[i]=t[i];for(var p=0;p<n.length;p+=1)o[p+t.length]=n[p];return o},i=function(t,n){for(var o=[],i=n||0,p=0;i<t.length;i+=1,p+=1)o[p]=t[i];return o},p=function(t,n){for(var o='',i=0;i<t.length;i+=1)o+=t[i],i+1<t.length&&(o+=n);return o};m.exports=function(u){var a=this;if('function'!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var c,f=i(arguments,1),l=n(0,a.length-f.length),h=[],y=0;y<l;y++)h[y]='$'+y;if(c=Function('binder','return function ('+p(h,',')+'){ return binder.apply(this,arguments); }')(function(){if(this instanceof c){var t=a.apply(this,o(f,arguments));return Object(t)===t?t:this}return a.apply(u,o(f,arguments))}),a.prototype){var s=function(){};s.prototype=a.prototype,c.prototype=new s,s.prototype=null}return c}},
|
|
14505
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Function.prototype.call},
|
|
14506
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),c=r(d[1]),s=r(d[2]),l=r(d[3]);m.exports=l||t.call(s,c)},
|
|
14507
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Function.prototype.apply},
|
|
14508
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports='undefined'!=typeof Reflect&&Reflect&&Reflect.apply},
|
|
14509
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=Function.prototype.call,o=Object.prototype.hasOwnProperty,c=r(d[0]);m.exports=c.call(t,o)},
|
|
14510
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1])(/^\s*(?:function)?\*/),o=r(d[2])(),u=r(d[3]),c=t('Object.prototype.toString'),f=t('Function.prototype.toString'),p=r(d[4]);m.exports=function(t){if('function'!=typeof t)return!1;if(n(f(t)))return!0;if(!o)return'[object GeneratorFunction]'===c(t);if(!u)return!1;var s=p();return s&&u(t)===s.prototype}},
|
|
14511
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),u=t('RegExp.prototype.exec'),o=r(d[2]);m.exports=function(t){if(!n(t))throw new o('`regex` must be a RegExp');return function(n){return null!==u(t,n)}}},
|
|
14512
|
-
__d(function(g,r,i,a,m,_e,d){'use strict';var t,e=r(d[0]),o=r(d[1])(),n=r(d[2]),c=r(d[3]);if(o){var f=e('RegExp.prototype.exec'),u={},p=function(){throw u},y={toString:p,valueOf:p};'symbol'==typeof Symbol.toPrimitive&&(y[Symbol.toPrimitive]=p),t=function(t){if(!t||'object'!=typeof t)return!1;var e=c(t,'lastIndex');if(!(e&&n(e,'value')))return!1;try{f(t,y)}catch(t){return t===u}}}else{var v=e('Object.prototype.toString');t=function(t){return!(!t||'object'!=typeof t&&'function'!=typeof t)&&"[object RegExp]"===v(t)}}m.exports=t},
|
|
14513
|
-
__d(function(g,r,i,a,m,e,d){'use strict';const t=function*(){}.constructor;m.exports=()=>t},
|
|
14514
|
-
__d(function(_g,r,_i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]),e=r(d[4]),f=r(d[5]),u=o('Object.prototype.toString'),c=r(d[6])(),l='undefined'==typeof globalThis?_g:globalThis,g=n(),v=o('String.prototype.slice'),y=o('Array.prototype.indexOf',!0)||function(t,n){for(var i=0;i<t.length;i+=1)if(t[i]===n)return i;return-1},p={__proto__:null};t(g,c&&e&&f?function(t){var n=new l[t];if(Symbol.toStringTag in n&&f){var o=f(n),u=e(o,Symbol.toStringTag);if(!u&&o){var c=f(o);u=e(c,Symbol.toStringTag)}if(u&&u.get){var g=i(u.get);p['$'+t]=g}}}:function(t){var n=new l[t],o=n.slice||n.set;if(o){var e=i(o);p['$'+t]=e}});var b=function(n){var i=!1;return t(p,function(t,o){if(!i)try{'$'+t(n)===o&&(i=v(o,1))}catch(t){}}),i},s=function(n){var i=!1;return t(p,function(t,o){if(!i)try{t(n),i=v(o,1)}catch(t){}}),i};m.exports=function(t){if(!t||'object'!=typeof t)return!1;if(!c){var n=v(u(t),8,-1);return y(g,n)>-1?n:'Object'===n&&s(t)}return e?b(t):null}},
|
|
14515
|
-
__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),n=Object.prototype.toString,l=Object.prototype.hasOwnProperty,o=function(t,n,o){for(var c=0,i=t.length;c<i;c++)l.call(t,c)&&(null==o?n(t[c],c,t):n.call(o,t[c],c,t))},c=function(t,n,l){for(var o=0,c=t.length;o<c;o++)null==l?n(t.charAt(o),o,t):n.call(l,t.charAt(o),o,t)},i=function(t,n,o){for(var c in t)l.call(t,c)&&(null==o?n(t[c],c,t):n.call(o,t[c],c,t))};m.exports=function(l,f,u){if(!t(f))throw new TypeError('iterator must be a function');var p,h;arguments.length>=3&&(p=u),h=l,'[object Array]'===n.call(h)?o(l,f,p):'string'==typeof l?c(l,f,p):i(l,f,p)}},
|
|
14516
|
-
__d(function(g,r,i,a,m,_e,d){'use strict';var t,e,n=Function.prototype.toString,o='object'==typeof Reflect&&null!==Reflect&&Reflect.apply;if('function'==typeof o&&'function'==typeof Object.defineProperty)try{t=Object.defineProperty({},'length',{get:function(){throw e}}),e={},o(function(){throw 42},null,t)}catch(t){t!==e&&(o=null)}else o=null;var c=/^\s*class\b/,l=function(t){try{var e=n.call(t);return c.test(e)}catch(t){return!1}},u=function(t){try{return!l(t)&&(n.call(t),!0)}catch(t){return!1}},f=Object.prototype.toString,y='function'==typeof Symbol&&!!Symbol.toStringTag,b=!(0 in[,]),p=function(){return!1};if('object'==typeof document){var j=document.all;f.call(j)===f.call(document.all)&&(p=function(t){if((b||!t)&&(void 0===t||'object'==typeof t))try{var e=f.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t('')}catch(t){}return!1})}m.exports=o?function(n){if(p(n))return!0;if(!n)return!1;if('function'!=typeof n&&'object'!=typeof n)return!1;try{o(n,null,t)}catch(t){if(t!==e)return!1}return!l(n)&&u(n)}:function(t){if(p(t))return!0;if(!t)return!1;if('function'!=typeof t&&'object'!=typeof t)return!1;if(y)return u(t);if(l(t))return!1;var e=f.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&u(t)}},
|
|
14517
|
-
__d(function(_g,r,_i,a,m,e,d){'use strict';var n=r(d[0]),t='undefined'==typeof globalThis?_g:globalThis;m.exports=function(){for(var o=[],f=0;f<n.length;f++)'function'==typeof t[n[f]]&&(o[o.length]=n[f]);return o}},
|
|
14518
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=['Float16Array','Float32Array','Float64Array','Int8Array','Int16Array','Int32Array','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','BigInt64Array','BigUint64Array']},
|
|
14519
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),p=r(d[2]),l=r(d[3]);m.exports=function(n){var l=p(arguments),o=1+n.length-(arguments.length-1);return t(l,o>0?o:0,!0)},n?n(m.exports,'apply',{value:l}):m.exports.apply=l},
|
|
14520
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=r(d[2])(),f=r(d[3]),h=r(d[4]),l=t('%Math.floor%');m.exports=function(t,u){if('function'!=typeof t)throw new h('`fn` is not a function');if('number'!=typeof u||u<0||u>4294967295||l(u)!==u)throw new h('`length` must be a positive 32-bit integer');var c=arguments.length>2&&!!arguments[2],s=!0,b=!0;if('length'in t&&f){var w=f(t,'length');w&&!w.configurable&&(s=!1),w&&!w.writable&&(b=!1)}return(s||b||!c)&&(o?n(t,'length',u,!0,!0):n(t,'length',u)),t}},
|
|
14521
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),o=r(d[1]),l=r(d[2]),t=r(d[3]);m.exports=function(u,b,f){if(!u||'object'!=typeof u&&'function'!=typeof u)throw new l('`obj` must be an object or a function`');if('string'!=typeof b&&'symbol'!=typeof b)throw new l('`property` must be a string or a symbol`');if(arguments.length>3&&'boolean'!=typeof arguments[3]&&null!==arguments[3])throw new l('`nonEnumerable`, if provided, must be a boolean or null');if(arguments.length>4&&'boolean'!=typeof arguments[4]&&null!==arguments[4])throw new l('`nonWritable`, if provided, must be a boolean or null');if(arguments.length>5&&'boolean'!=typeof arguments[5]&&null!==arguments[5])throw new l('`nonConfigurable`, if provided, must be a boolean or null');if(arguments.length>6&&'boolean'!=typeof arguments[6])throw new l('`loose`, if provided, must be a boolean');var p=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,w=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],y=!!t&&t(u,b);if(n)n(u,b,{configurable:null===w&&y?y.configurable:!w,enumerable:null===p&&y?y.enumerable:!p,value:f,writable:null===s&&y?y.writable:!s});else{if(!h&&(p||s||w))throw new o('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');u[b]=f}}},
|
|
14522
|
-
__d(function(g,r,i,a,m,_e,d){'use strict';var n=r(d[0]),t=function(){return!!n};t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],'length',{value:1}).length}catch(n){return!0}},m.exports=t},
|
|
14523
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),u=r(d[2]);m.exports=function(){return u(t,n,arguments)}},
|
|
14524
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(n){return!!t(n)}},
|
|
14525
|
-
__d(function(g,r,i,a,m,e,d){m.exports=function(t){return t&&'object'==typeof t&&'function'==typeof t.copy&&'function'==typeof t.fill&&'function'==typeof t.readUInt8}},
|
|
14526
|
-
__d(function(g,r,i,a,m,e,d){'function'==typeof Object.create?m.exports=function(t,o){o&&(t.super_=o,t.prototype=Object.create(o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:m.exports=function(t,o){if(o){t.super_=o;var p=function(){};p.prototype=o.prototype,t.prototype=new p,t.prototype.constructor=t}}},
|
|
14527
|
-
__d(function(g,_r,_i,_a,m,_e,d){'use strict';function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,c)}return n}function e(e){for(var c=1;c<arguments.length;c++){var o=null!=arguments[c]?arguments[c]:{};c%2?t(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function n(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var c=e[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,r(c.key),c)}}function r(t){var e=a(t,"string");return"symbol"===h(e)?e:String(e)}function a(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var c=n.call(t,e||"default");if("object"!==h(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}function i(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,c)}function c(){return p(t,arguments,y(this).constructor)}return c.prototype=Object.create(t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),b(c,t)},s(t)}function p(t,e,n){return p=f()?Reflect.construct.bind():function(t,e,n){var c=[null];c.push.apply(c,e);var o=new(Function.bind.apply(t,c));return n&&b(o,n.prototype),o},p.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var v=_r(d[0]).inspect,E=_r(d[1]).codes.ERR_INVALID_ARG_TYPE;function O(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function j(t,e){if(e=Math.floor(e),0==t.length||0==e)return'';var n=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+=t.substring(0,n-t.length)}var q='',w='',S='',P='',x={deepStrictEqual:'Expected values to be strictly deep-equal:',strictEqual:'Expected values to be strictly equal:',strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:'Expected values to be loosely deep-equal:',equal:'Expected values to be loosely equal:',notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:'Values identical but not reference-equal:'};function T(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){n[e]=t[e]}),Object.defineProperty(n,'message',{value:t.message}),n}function k(t){return v(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function R(t,e,n){var c='',o='',r=0,a='',l=!1,i=k(t),u=i.split('\n'),s=k(e).split('\n'),p=0,f='';if('strictEqual'===n&&'object'===h(t)&&'object'===h(e)&&null!==t&&null!==e&&(n='strictEqualObject'),1===u.length&&1===s.length&&u[0]!==s[0]){var b=u[0].length+s[0].length;if(b<=10){if(!('object'===h(t)&&null!==t||'object'===h(e)&&null!==e||0===t&&0===e))return"".concat(x[n],"\n\n")+"".concat(u[0]," !== ").concat(s[0],"\n")}else if('strictEqualObject'!==n){if(b<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][p]===s[0][p];)p++;p>2&&(f="\n ".concat(j(' ',p),"^"),p=0)}}}for(var y=u[u.length-1],v=s[s.length-1];y===v&&(p++<2?a="\n ".concat(y).concat(a):c=y,u.pop(),s.pop(),0!==u.length&&0!==s.length);)y=u[u.length-1],v=s[s.length-1];var E=Math.max(u.length,s.length);if(0===E){var T=i.split('\n');if(T.length>30)for(T[26]="".concat(q,"...").concat(P);T.length>27;)T.pop();return"".concat(x.notIdentical,"\n\n").concat(T.join('\n'),"\n")}p>3&&(a="\n".concat(q,"...").concat(P).concat(a),l=!0),''!==c&&(a="\n ".concat(c).concat(a),c='');var R=0,_=x[n]+"\n".concat(w,"+ actual").concat(P," ").concat(S,"- expected").concat(P),D=" ".concat(q,"...").concat(P," Lines skipped");for(p=0;p<E;p++){var I=p-r;if(u.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(q,"...").concat(P),l=!0):I>3&&(o+="\n ".concat(s[p-2]),R++),o+="\n ".concat(s[p-1]),R++),r=p,c+="\n".concat(S,"-").concat(P," ").concat(s[p]),R++;else if(s.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(q,"...").concat(P),l=!0):I>3&&(o+="\n ".concat(u[p-2]),R++),o+="\n ".concat(u[p-1]),R++),r=p,o+="\n".concat(w,"+").concat(P," ").concat(u[p]),R++;else{var M=s[p],A=u[p],L=A!==M&&(!O(A,',')||A.slice(0,-1)!==M);L&&O(M,',')&&M.slice(0,-1)===A&&(L=!1,A+=','),L?(I>1&&p>2&&(I>4?(o+="\n".concat(q,"...").concat(P),l=!0):I>3&&(o+="\n ".concat(u[p-2]),R++),o+="\n ".concat(u[p-1]),R++),r=p,o+="\n".concat(w,"+").concat(P," ").concat(A),c+="\n".concat(S,"-").concat(P," ").concat(M),R+=2):(o+=c,c='',1!==I&&0!==p||(o+="\n ".concat(A),R++))}if(R>20&&p<E-2)return"".concat(_).concat(D,"\n").concat(o,"\n").concat(q,"...").concat(P).concat(c,"\n")+"".concat(q,"...").concat(P)}return"".concat(_).concat(l?D:'',"\n").concat(o).concat(c).concat(a).concat(f)}var _=(function(t,n){l(j,t);var r,a,s,p,b,O=(r=j,a=f(),function(){var t,e=y(r);if(a){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return i(this,t)});function j(t){var e;if(c(this,j),'object'!==h(t)||null===t)throw new E('options','Object',t);var n=t.message,o=t.operator,r=t.stackStartFn,a=t.actual,l=t.expected,s=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)e=O.call(this,String(n));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(q="\x1b[34m",w="\x1b[32m",P="\x1b[39m",S="\x1b[31m"):(q='',w='',P='',S='')),'object'===h(a)&&null!==a&&'object'===h(l)&&null!==l&&'stack'in a&&a instanceof Error&&'stack'in l&&l instanceof Error&&(a=T(a),l=T(l)),'deepStrictEqual'===o||'strictEqual'===o)e=O.call(this,R(a,l,o));else if('notDeepStrictEqual'===o||'notStrictEqual'===o){var p=x[o],f=k(a).split('\n');if('notStrictEqual'===o&&'object'===h(a)&&null!==a&&(p=x.notStrictEqualObject),f.length>30)for(f[26]="".concat(q,"...").concat(P);f.length>27;)f.pop();e=1===f.length?O.call(this,"".concat(p," ").concat(f[0])):O.call(this,"".concat(p,"\n\n").concat(f.join('\n'),"\n"))}else{var b=k(a),y='',v=x[o];'notDeepEqual'===o||'notEqual'===o?(b="".concat(x[o],"\n\n").concat(b)).length>1024&&(b="".concat(b.slice(0,1021),"...")):(y="".concat(k(l)),b.length>512&&(b="".concat(b.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),'deepEqual'===o||'equal'===o?b="".concat(v,"\n\n").concat(b,"\n\nshould equal\n\n"):y=" ".concat(o," ").concat(y)),e=O.call(this,"".concat(b).concat(y))}return Error.stackTraceLimit=s,e.generatedMessage=!n,Object.defineProperty(u(e),'name',{value:'AssertionError [ERR_ASSERTION]',enumerable:!1,writable:!0,configurable:!0}),e.code='ERR_ASSERTION',e.actual=a,e.expected=l,e.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(e),r),e.stack,e.name='AssertionError',i(e)}return s=j,(p=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:n,value:function(t,n){return v(this,e(e({},n),{},{customInspect:!1,depth:0}))}}])&&o(s.prototype,p),b&&o(s,b),Object.defineProperty(s,"prototype",{writable:!1}),j})(s(Error),v.custom);m.exports=_},
|
|
14528
|
-
__d(function(g,r,_i,a,m,_e,d){'use strict';var t=r(d[0]),n=function(){if(!Object.assign)return!1;for(var t='abcdefghijklmnopqrst',n=t.split(''),e={},s=0;s<n.length;++s)e[n[s]]=n[s];var i=Object.assign({},e),c='';for(var u in i)c+=u;return t!==c},e=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,'xy')}catch(n){return'y'===t[1]}return!1};m.exports=function(){return Object.assign?n()||e()?t:Object.assign:t}},
|
|
14529
|
-
__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),o=r(d[1])(),n=r(d[2]),l=r(d[3]),p=n('Array.prototype.push'),u=n('Object.prototype.propertyIsEnumerable'),f=o?l.getOwnPropertySymbols:null;m.exports=function(n,v){if(null==n)throw new TypeError('target must be an object');var y=l(n);if(1===arguments.length)return y;for(var s=1;s<arguments.length;++s){var i=l(arguments[s]),b=t(i),h=o&&(l.getOwnPropertySymbols||f);if(h)for(var c=h(i),w=0;w<c.length;++w){var O=c[w];u(i,O)&&p(b,O)}for(var j=0;j<b.length;++j){var E=b[j];if(u(i,E)){var P=i[E];y[E]=P}}}return y}},
|
|
14530
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=Array.prototype.slice,n=r(d[0]),c=Object.keys,s=c?function(t){return c(t)}:r(d[1]),u=Object.keys;s.shim=function(){if(Object.keys){var c=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);c||(Object.keys=function(c){return n(c)?u(t.call(c)):u(c)})}else Object.keys=s;return Object.keys||s},m.exports=s},
|
|
14531
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.prototype.toString;m.exports=function(n){var o=t.call(n),c='[object Arguments]'===o;return c||(c='[object Array]'!==o&&null!==n&&'object'==typeof n&&'number'==typeof n.length&&n.length>=0&&'[object Function]'===t.call(n.callee)),c}},
|
|
14532
|
-
__d(function(g,r,_i,a,m,_e,d){'use strict';var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=r(d[0]),l=Object.prototype.propertyIsEnumerable,c=!l.call({toString:null},'toString'),i=l.call(function(){},'prototype'),f=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'],u=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},s=(function(){if('undefined'==typeof window)return!1;for(var t in window)try{if(!p['$'+t]&&e.call(window,t)&&null!==window[t]&&'object'==typeof window[t])try{u(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),$=function(t){if('undefined'==typeof window||!s)return u(t);try{return u(t)}catch(t){return!1}};t=function(t){var l=null!==t&&'object'==typeof t,u='[object Function]'===n.call(t),p=o(t),s=l&&'[object String]'===n.call(t),w=[];if(!l&&!u&&!p)throw new TypeError('Object.keys called on a non-object');var h=i&&u;if(s&&t.length>0&&!e.call(t,0))for(var y=0;y<t.length;++y)w.push(String(y));if(p&&t.length>0)for(var b=0;b<t.length;++b)w.push(String(b));else for(var v in t)h&&'prototype'===v||!e.call(t,v)||w.push(String(v));if(c)for(var O=$(t),j=0;j<f.length;++j)O&&'constructor'===f[j]||!e.call(t,f[j])||w.push(f[j]);return w}}m.exports=t},
|
|
14533
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(){return'function'==typeof Object.is?Object.is:t}},
|
|
14534
|
-
__d(function(g,r,i,_a,m,e,d){'use strict';var n=function(n){return n!=n};m.exports=function(t,u){return 0===t&&0===u?1/t==1/u:t===u||!(!n(t)||!n(u))}},
|
|
14535
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=n(t('String.prototype.indexOf'));m.exports=function(p,f){var u=t(p,!!f);return'function'==typeof u&&o(p,'.prototype.')>-1?n(u):u}},
|
|
14468
|
+
const t=new WeakMap,n=new WeakMap;function o(n){const o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function l(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function i(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const l=Object.keys(o);for(let t=0;t<l.length;++t){const n=l[t];n in this||Object.defineProperty(this,n,u(n))}}function u(t){return{get(){return o(this).event[t]},set(n){o(this).event[t]=n},configurable:!0,enumerable:!0}}function s(t){return{value(){const n=o(this).event;return n[t].apply(n,arguments)},configurable:!0,enumerable:!0}}function c(t,n){const o=Object.keys(n);if(0===o.length)return t;function l(n,o){t.call(this,n,o)}l.prototype=Object.create(t.prototype,{constructor:{value:l,configurable:!0,writable:!0}});for(let i=0;i<o.length;++i){const c=o[i];if(!(c in t.prototype)){const t="function"==typeof Object.getOwnPropertyDescriptor(n,c).value;Object.defineProperty(l.prototype,c,t?s(c):u(c))}}return l}function p(t){if(null==t||t===Object.prototype)return i;let o=n.get(t);return null==o&&(o=c(p(Object.getPrototypeOf(t)),t),n.set(t,o)),o}function f(t,n){return new(p(Object.getPrototypeOf(n)))(t,n)}function v(t){return o(t).immediateStopped}function y(t,n){o(t).eventPhase=n}function b(t,n){o(t).currentTarget=n}function h(t,n){o(t).passiveListener=n}i.prototype={get type(){return o(this).event.type},get target(){return o(this).eventTarget},get currentTarget(){return o(this).currentTarget},composedPath(){const t=o(this).currentTarget;return null==t?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return o(this).eventPhase},stopPropagation(){const t=o(this);t.stopped=!0,"function"==typeof t.event.stopPropagation&&t.event.stopPropagation()},stopImmediatePropagation(){const t=o(this);t.stopped=!0,t.immediateStopped=!0,"function"==typeof t.event.stopImmediatePropagation&&t.event.stopImmediatePropagation()},get bubbles(){return Boolean(o(this).event.bubbles)},get cancelable(){return Boolean(o(this).event.cancelable)},preventDefault(){l(o(this))},get defaultPrevented(){return o(this).canceled},get composed(){return Boolean(o(this).event.composed)},get timeStamp(){return o(this).timeStamp},get srcElement(){return o(this).eventTarget},get cancelBubble(){return o(this).stopped},set cancelBubble(t){if(!t)return;const n=o(this);n.stopped=!0,"boolean"==typeof n.event.cancelBubble&&(n.event.cancelBubble=!0)},get returnValue(){return!o(this).canceled},set returnValue(t){t||l(o(this))},initEvent(){}},Object.defineProperty(i.prototype,"constructor",{value:i,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(i.prototype,window.Event.prototype),n.set(window.Event.prototype,i));const w=new WeakMap,P=3;function T(t){return null!==t&&"object"==typeof t}function O(t){const n=w.get(t);if(null==n)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return n}function j(t){return{get(){let n=O(this).get(t);for(;null!=n;){if(n.listenerType===P)return n.listener;n=n.next}return null},set(n){"function"==typeof n||T(n)||(n=null);const o=O(this);let l=null,i=o.get(t);for(;null!=i;)i.listenerType===P?null!==l?l.next=i.next:null!==i.next?o.set(t,i.next):o.delete(t):l=i,i=i.next;if(null!==n){const i={listener:n,listenerType:P,passive:!1,once:!1,next:null};null===l?o.set(t,i):l.next=i}},configurable:!0,enumerable:!0}}function E(t,n){Object.defineProperty(t,`on${n}`,j(n))}function x(t){function n(){B.call(this)}n.prototype=Object.create(B.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let o=0;o<t.length;++o)E(n.prototype,t[o]);return n}function B(){if(!(this instanceof B)){if(1===arguments.length&&Array.isArray(arguments[0]))return x(arguments[0]);if(arguments.length>0){const t=new Array(arguments.length);for(let n=0;n<arguments.length;++n)t[n]=arguments[n];return x(t)}throw new TypeError("Cannot call a class as a function")}w.set(this,new Map)}B.prototype={addEventListener(t,n,o){if(null==n)return;if("function"!=typeof n&&!T(n))throw new TypeError("'listener' should be a function or an object.");const l=O(this),i=T(o),u=(i?Boolean(o.capture):Boolean(o))?1:2,s={listener:n,listenerType:u,passive:i&&Boolean(o.passive),once:i&&Boolean(o.once),next:null};let c=l.get(t);if(void 0===c)return void l.set(t,s);let p=null;for(;null!=c;){if(c.listener===n&&c.listenerType===u)return;p=c,c=c.next}p.next=s},removeEventListener(t,n,o){if(null==n)return;const l=O(this),i=(T(o)?Boolean(o.capture):Boolean(o))?1:2;let u=null,s=l.get(t);for(;null!=s;){if(s.listener===n&&s.listenerType===i)return void(null!==u?u.next=s.next:null!==s.next?l.set(t,s.next):l.delete(t));u=s,s=s.next}},dispatchEvent(t){if(null==t||"string"!=typeof t.type)throw new TypeError('"event.type" should be a string.');const n=O(this),o=t.type;let l=n.get(o);if(null==l)return!0;const i=f(this,t);let u=null;for(;null!=l;){if(l.once?null!==u?u.next=l.next:null!==l.next?n.set(o,l.next):n.delete(o):u=l,h(i,l.passive?l.listener:null),"function"==typeof l.listener)try{l.listener.call(this,i)}catch(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t)}else l.listenerType!==P&&"function"==typeof l.listener.handleEvent&&l.listener.handleEvent(i);if(v(i))break;l=l.next}return h(i,null),y(i,0),b(i,null),!i.defaultPrevented}},Object.defineProperty(B.prototype,"constructor",{value:B,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(B.prototype,window.EventTarget.prototype);var A=B},2639,[]);
|
|
14469
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const o='EXPO_NOTIFICATIONS_INSTALLATION_ID',n='EXPO_NOTIFICATIONS_REGISTRATION_INFO';let l=()=>{const o=t.uuid.v4();l=()=>o};var c={getInstallationIdAsync:async()=>{let n;try{n=localStorage.getItem(o),n&&'string'==typeof n||(n=t.uuid.v4(),localStorage.setItem(o,n))}catch{n=l()}return n},getRegistrationInfoAsync:async()=>'undefined'==typeof localStorage?null:localStorage.getItem(n),setRegistrationInfoAsync:async o=>{if('undefined'!=typeof localStorage)try{o?localStorage.setItem(n,o):localStorage.removeItem(n)}catch(o){throw new t.CodedError('ERR_NOTIFICATIONS_STORAGE_ERROR',`Could not modify localStorage to persist auto-registration information: ${o}`)}},addListener:()=>{},removeListeners:()=>{}}},2640,[554]);
|
|
14470
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.addPushTokenListener=function(e){return(0,u.warnOfExpoGoPushUsage)(),t.default.addListener(o,({devicePushToken:n})=>e({data:n,type:"web"}))},r(d[0]);var e,n=r(d[1]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]);const o='onDevicePushToken'},2641,[554,2631,2642]);
|
|
14471
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"warnOfExpoGoPushUsage",{enumerable:!0,get:function(){return t}});r(d[0]);r(d[1]);const t=()=>{}},2642,[534,554]);
|
|
14472
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.hasDeviceTokenChangedAsync=async function(t){try{const e=await w(),o=await f();if(null==o)return!0;const c=Date.now()-(o.registeredAt??0);return c<0||c>=l||(t.data!==o.deviceToken||n.applicationId!==o.appId||e!==o.development||h(t)!==o.type)}catch{return!0}},_e.updateDevicePushTokenAsync=async function(t,o){const c=async e=>{const[c,s]=await Promise.all([w(),y()]),d={deviceId:s.toLowerCase(),development:c,deviceToken:o.data,appId:n.applicationId,type:h(o)};try{const s=await fetch(u,{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify(d),signal:t});s.ok||console.debug('[expo-notifications] Error encountered while updating the device push token with the server:',await s.text()),s.ok&&await p({deviceToken:o.data,appId:n.applicationId,development:c,type:h(o),registeredAt:Date.now()}),s.ok||e()}catch(t){if('object'==typeof t&&'AbortError'===t?.name)return;console.warn('[expo-notifications] Error thrown while updating the device push token with the server:',t),e()}};let s=!0;const d=()=>{s=!0};let l=0;const f={maxBackoff:12e4};let I=(0,e.computeNextBackoffInterval)(500,l,f);for(;s&&!t.aborted;)s=!1,await c(d),s&&!t.aborted&&(I=(0,e.computeNextBackoffInterval)(500,l,f),l+=1,await new Promise(t=>setTimeout(t,I)))};var t,e=r(_d[0]),n=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(r(_d[1])),o=r(_d[2]),c=r(_d[3]),s=(t=c)&&t.__esModule?t:{default:t};const u='https://exp.host/--/api/v2/push/updateDeviceToken',d='lastRegisteredDeviceToken',l=6048e5;async function f(){try{if(!s.default.getRegistrationInfoAsync)return null;const t=await s.default.getRegistrationInfoAsync();if(!t)return null;const e=JSON.parse(t);return e?.[d]??null}catch{return null}}async function p(t){try{if(!s.default.getRegistrationInfoAsync||!s.default.setRegistrationInfoAsync)return;const e=await s.default.getRegistrationInfoAsync(),n=e?JSON.parse(e):{};n[d]=t,await s.default.setRegistrationInfoAsync(JSON.stringify(n))}catch{}}async function y(){try{if(!s.default.getInstallationIdAsync)throw new o.UnavailabilityError('ExpoServerRegistrationModule','getInstallationIdAsync');return await s.default.getInstallationIdAsync()}catch(t){throw new o.CodedError('ERR_NOTIFICATIONS_DEVICE_ID',`Could not fetch the installation ID of the application: ${t}.`)}}function h(t){switch(t.type){case'ios':return'apns';case'android':return'fcm';default:return t.type}}async function w(){return!1}},2643,[2644,2633,554,2640]);
|
|
14473
|
+
__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const n=t(r(d[0]));e.computeNextBackoffInterval=function(t,o,{multiplier:u=1.5,randomizationFactor:f=.25,minBackoff:l=t,maxBackoff:c=1/0}={}){n.default(t>0,"The initial backoff interval must be positive"),n.default(o>=0,"The previous retry count must not be negative"),n.default(u>=1,"The backoff multiplier must be greater than or equal to 1"),n.default(0<=f&&f<=1,"The randomization factor must be between 0 and 1, inclusive"),n.default(l>=0,"The minimum backoff interval must be positive");let s=t*u**o,h=1-f+2*f*Math.random();return Math.min(Math.max(s*h,l),c)}},2644,[2645]);
|
|
14474
|
+
__d(function(g,r,_i,_a,m,_e,d){'use strict';function e(t){return e="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(t)}function t(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,o(a.key),a)}}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(t){var n=a(t,"string");return"symbol"===e(n)?n:String(n)}function a(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var a=o.call(t,n||"default");if("object"!==e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i,s,u=r(d[0]).codes,f=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,p=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,w=u.ERR_MISSING_ARGS,v=r(d[1]),y=r(d[2]).inspect,E=r(d[2]).types,x=E.isPromise,S=E.isRegExp,b=r(d[3])(),q=r(d[4])(),k=r(d[5])('RegExp.prototype.test');new Map;function F(){var e=r(d[6]);i=e.isDeepEqual,s=e.isDeepStrictEqual}var R=!1,j=m.exports=N,A={};function _(e){if(e.message instanceof Error)throw e.message;throw new v(e)}function D(e,t,n,o){if(!n){var a=!1;if(0===t)a=!0,o='No value argument passed to `assert.ok()`';else if(o instanceof Error)throw o;var c=new v({actual:n,expected:!0,message:o,operator:'==',stackStartFn:e});throw c.generatedMessage=a,c}}function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];D.apply(void 0,[N,t.length].concat(t))}j.fail=function e(t,n,o,a,c){var i,s=arguments.length;if(0===s)i='Failed';else if(1===s)o=t,t=void 0;else{if(!1===R)R=!0,(process.emitWarning?process.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.",'DeprecationWarning','DEP0094');2===s&&(a='!=')}if(o instanceof Error)throw o;var u={actual:t,expected:n,operator:void 0===a?'fail':a,stackStartFn:c||e};void 0!==o&&(u.message=o);var f=new v(u);throw i&&(f.message=i,f.generatedMessage=!0),f},j.AssertionError=v,j.ok=N,j.equal=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');t!=n&&_({actual:t,expected:n,message:o,operator:'==',stackStartFn:e})},j.notEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');t==n&&_({actual:t,expected:n,message:o,operator:'!=',stackStartFn:e})},j.deepEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F(),i(t,n)||_({actual:t,expected:n,message:o,operator:'deepEqual',stackStartFn:e})},j.notDeepEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F(),i(t,n)&&_({actual:t,expected:n,message:o,operator:'notDeepEqual',stackStartFn:e})},j.deepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F(),s(t,n)||_({actual:t,expected:n,message:o,operator:'deepStrictEqual',stackStartFn:e})},j.notDeepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');void 0===i&&F();s(t,n)&&_({actual:t,expected:n,message:o,operator:'notDeepStrictEqual',stackStartFn:e})},j.strictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');q(t,n)||_({actual:t,expected:n,message:o,operator:'strictEqual',stackStartFn:e})},j.notStrictEqual=function e(t,n,o){if(arguments.length<2)throw new w('actual','expected');q(t,n)&&_({actual:t,expected:n,message:o,operator:'notStrictEqual',stackStartFn:e})};var P=n(function e(t,n,o){var a=this;c(this,e),n.forEach(function(e){e in t&&(void 0!==o&&'string'==typeof o[e]&&S(t[e])&&k(t[e],o[e])?a[e]=o[e]:a[e]=t[e])})});function T(e,t,n,o,a,c){if(!(n in e)||!s(e[n],t[n])){if(!o){var i=new P(e,a),u=new P(t,a,e),f=new v({actual:i,expected:u,operator:'deepStrictEqual',stackStartFn:c});throw f.actual=e,f.expected=t,f.operator=c.name,f}_({actual:e,expected:t,message:o,operator:c.name,stackStartFn:c})}}function I(t,n,o,a){if('function'!=typeof n){if(S(n))return k(n,t);if(2===arguments.length)throw new l('expected',['Function','RegExp'],n);if('object'!==e(t)||null===t){var c=new v({actual:t,expected:n,message:o,operator:'deepStrictEqual',stackStartFn:a});throw c.operator=a.name,c}var s=Object.keys(n);if(n instanceof Error)s.push('name','message');else if(0===s.length)throw new p('error',n,'may not be an empty object');return void 0===i&&F(),s.forEach(function(e){'string'==typeof t[e]&&S(n[e])&&k(n[e],t[e])||T(t,n,e,o,s,a)}),!0}return void 0!==n.prototype&&t instanceof n||!Error.isPrototypeOf(n)&&!0===n.call({},t)}function M(e){if('function'!=typeof e)throw new l('fn','Function',e);try{e()}catch(e){return e}return A}function O(t){return x(t)||null!==t&&'object'===e(t)&&'function'==typeof t.then&&'function'==typeof t.catch}function G(e){return Promise.resolve().then(function(){var t;if('function'==typeof e){if(!O(t=e()))throw new h('instance of Promise','promiseFn',t)}else{if(!O(e))throw new l('promiseFn',['Function','Promise'],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return A}).catch(function(e){return e})})}function U(t,n,o,a){if('string'==typeof o){if(4===arguments.length)throw new l('error',['Object','Error','Function','RegExp'],o);if('object'===e(n)&&null!==n){if(n.message===o)throw new f('error/message',"The error message \"".concat(n.message,"\" is identical to the message."))}else if(n===o)throw new f('error/message',"The error \"".concat(n,"\" is identical to the message."));a=o,o=void 0}else if(null!=o&&'object'!==e(o)&&'function'!=typeof o)throw new l('error',['Object','Error','Function','RegExp'],o);if(n===A){var c='';o&&o.name&&(c+=" (".concat(o.name,")")),c+=a?": ".concat(a):'.';var i='rejects'===t.name?'rejection':'exception';_({actual:void 0,expected:o,operator:t.name,message:"Missing expected ".concat(i).concat(c),stackStartFn:t})}if(o&&!I(n,o,a,t))throw n}function L(e,t,n,o){if(t!==A){if('string'==typeof n&&(o=n,n=void 0),!n||I(t,n)){var a=o?": ".concat(o):'.',c='doesNotReject'===e.name?'rejection':'exception';_({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(c).concat(a,"\n")+"Actual message: \"".concat(t&&t.message,"\""),stackStartFn:e})}throw t}}function V(t,n,o,a,c){if(!S(n))throw new l('regexp','RegExp',n);var i='match'===c;if('string'!=typeof t||k(n,t)!==i){if(o instanceof Error)throw o;var s=!o;o=o||('string'!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(e(t)," (").concat(y(t),")"):(i?'The input did not match the regular expression ':'The input was expected to not match the regular expression ')+"".concat(y(n),". Input:\n\n").concat(y(t),"\n"));var u=new v({actual:t,expected:n,message:o,operator:c,stackStartFn:a});throw u.generatedMessage=s,u}}function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];D.apply(void 0,[W,t.length].concat(t))}j.throws=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];U.apply(void 0,[e,M(t)].concat(o))},j.rejects=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return G(t).then(function(t){return U.apply(void 0,[e,t].concat(o))})},j.doesNotThrow=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];L.apply(void 0,[e,M(t)].concat(o))},j.doesNotReject=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return G(t).then(function(t){return L.apply(void 0,[e,t].concat(o))})},j.ifError=function t(n){if(null!=n){var o='ifError got unwanted exception: ';'object'===e(n)&&'string'==typeof n.message?0===n.message.length&&n.constructor?o+=n.constructor.name:o+=n.message:o+=y(n);var a=new v({actual:n,expected:null,operator:'ifError',message:o,stackStartFn:t}),c=n.stack;if('string'==typeof c){var i=c.split('\n');i.shift();for(var s=a.stack.split('\n'),u=0;u<i.length;u++){var f=s.indexOf(i[u]);if(-1!==f){s=s.slice(0,f);break}}a.stack="".concat(s.join('\n'),"\n").concat(i.join('\n'))}throw a}},j.match=function e(t,n,o){V(t,n,o,e,'match')},j.doesNotMatch=function e(t,n,o){V(t,n,o,e,'doesNotMatch')},j.strict=b(W,j,{equal:j.strictEqual,deepEqual:j.deepStrictEqual,notEqual:j.notStrictEqual,notDeepEqual:j.notDeepStrictEqual}),j.strict.strict=j.strict},2645,[2646,2703,2647,2704,2709,2711,2712]);
|
|
14475
|
+
__d(function(g,r,_i,_a,m,_e,d){'use strict';function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var o=0;o<e.length;o++){var c=e[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,n(c.key),c)}}function n(e){var n=o(e,"string");return"symbol"===t(n)?n:String(n)}function o(e,n){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var c=o.call(e,n||"default");if("object"!==t(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function a(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var p,y,b={};function v(t,n,o){function u(t,e,o){return'string'==typeof n?n:n(t,e,o)}o||(o=Error);var f=(function(n){i(h,n);var o,f,p,y,b,v=(o=h,f=s(),function(){var t,e=l(o);if(f){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function h(e,n,o){var i;return c(this,h),(i=v.call(this,u(e,n,o))).code=t,i}return p=h,y&&e(p.prototype,y),b&&e(p,b),Object.defineProperty(p,"prototype",{writable:!1}),p})(o);b[t]=f}function h(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(t){return String(t)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(', '),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function R(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function E(t,e,n){return'number'!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}v('ERR_AMBIGUOUS_ARGUMENT','The "%s" argument is ambiguous. %s',TypeError),v('ERR_INVALID_ARG_TYPE',function(e,n,o){var c,i,u,a;if(void 0===p&&(p=r(d[0])),p('string'==typeof e,"'name' must be a string"),'string'==typeof n&&(i='not ',n.substr(!u||u<0?0:+u,i.length)===i)?(c='must not be',n=n.replace(/^not /,'')):c='must be',R(e,' argument'))a="The ".concat(e," ").concat(c," ").concat(h(n,'type'));else{var f=E(e,'.')?'property':'argument';a="The \"".concat(e,"\" ").concat(f," ").concat(c," ").concat(h(n,'type'))}return a+=". Received type ".concat(t(o))},TypeError),v('ERR_INVALID_ARG_VALUE',function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'is invalid';void 0===y&&(y=r(d[1]));var o=y.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),v('ERR_INVALID_RETURN_VALUE',function(e,n,o){var c;return c=o&&o.constructor&&o.constructor.name?"instance of ".concat(o.constructor.name):"type ".concat(t(o)),"Expected ".concat(e," to be returned from the \"").concat(n,"\"")+" function but got ".concat(c,".")},TypeError),v('ERR_MISSING_ARGS',function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===p&&(p=r(d[0])),p(e.length>0,'At least one arg needs to be specified');var o='The ',c=e.length;switch(e=e.map(function(t){return"\"".concat(t,"\"")}),c){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,c-1).join(', '),o+=", and ".concat(e[c-1]," arguments")}return"".concat(o," must be specified")},TypeError),m.exports.codes=b},2646,[2645,2647]);
|
|
14476
|
+
__d(function(g,r,_i,a,m,_e,_d){var e=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++)n[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return n},t=/%[sdj%]/g;_e.format=function(e){if(!E(e)){for(var n=[],o=0;o<arguments.length;o++)n.push(u(arguments[o]));return n.join(' ')}o=1;for(var i=arguments,c=i.length,s=String(e).replace(t,function(e){if('%%'===e)return'%';if(o>=c)return e;switch(e){case'%s':return String(i[o++]);case'%d':return Number(i[o++]);case'%j':try{return JSON.stringify(i[o++])}catch(e){return'[Circular]'}default:return e}}),l=i[o];o<c;l=i[++o])j(l)||!x(l)?s+=' '+l:s+=' '+u(l);return s},_e.deprecate=function(e,t){if('undefined'!=typeof process&&!0===process.noDeprecation)return e;if('undefined'==typeof process)return function(){return _e.deprecate(e,t).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(t);process.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,'\\$&').replace(/\*/g,'.*').replace(/,/g,'$|^').toUpperCase(),o=new RegExp('^'+i+'$','i')}function u(e,t){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),O(t)?n.showHidden=t:t&&_e._extend(n,t),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),p(n,e,n.depth)}function c(e,t){var n=u.styles[t];return n?'\x1b['+u.colors[n][0]+'m'+e+'\x1b['+u.colors[n][1]+'m':e}function s(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function p(e,t,n){if(e.customInspect&&t&&N(t.inspect)&&t.inspect!==_e.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return E(o)||(o=p(e,o,n)),o}var i=f(e,t);if(i)return i;var u=Object.keys(t),c=l(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(t)),P(t)&&(u.indexOf('message')>=0||u.indexOf('description')>=0))return y(t);if(0===u.length){if(N(t)){var s=t.name?': '+t.name:'';return e.stylize('[Function'+s+']','special')}if(z(t))return e.stylize(RegExp.prototype.toString.call(t),'regexp');if(D(t))return e.stylize(Date.prototype.toString.call(t),'date');if(P(t))return y(t)}var O,j='',w=!1,S=['{','}'];(v(t)&&(w=!0,S=['[',']']),N(t))&&(j=' [Function'+(t.name?': '+t.name:'')+']');return z(t)&&(j=' '+RegExp.prototype.toString.call(t)),D(t)&&(j=' '+Date.prototype.toUTCString.call(t)),P(t)&&(j=' '+y(t)),0!==u.length||w&&0!=t.length?n<0?z(t)?e.stylize(RegExp.prototype.toString.call(t),'regexp'):e.stylize('[Object]','special'):(e.seen.push(t),O=w?d(e,t,n,c,u):u.map(function(o){return b(e,t,n,c,o,w)}),e.seen.pop(),h(O,j,S)):S[0]+j+S[1]}function f(e,t){if(S(t))return e.stylize('undefined','undefined');if(E(t)){var n='\''+JSON.stringify(t).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+'\'';return e.stylize(n,'string')}return w(t)?e.stylize(''+t,'number'):O(t)?e.stylize(''+t,'boolean'):j(t)?e.stylize('null','null'):void 0}function y(e){return'['+Error.prototype.toString.call(e)+']'}function d(e,t,n,o,i){for(var u=[],c=0,s=t.length;c<s;++c)_(t,String(c))?u.push(b(e,t,n,o,String(c),!0)):u.push('');return i.forEach(function(i){i.match(/^\d+$/)||u.push(b(e,t,n,o,i,!0))}),u}function b(e,t,n,o,i,u){var c,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize('[Getter/Setter]','special'):e.stylize('[Getter]','special'):l.set&&(s=e.stylize('[Setter]','special')),_(o,i)||(c='['+i+']'),s||(e.seen.indexOf(l.value)<0?(s=j(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf('\n')>-1&&(s=u?s.split('\n').map(function(e){return' '+e}).join('\n').slice(2):'\n'+s.split('\n').map(function(e){return' '+e}).join('\n')):s=e.stylize('[Circular]','special')),S(c)){if(u&&i.match(/^\d+$/))return s;(c=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.slice(1,-1),c=e.stylize(c,'name')):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=e.stylize(c,'string'))}return c+': '+s}function h(e,t,n){return e.reduce(function(e,t){return t.indexOf('\n')>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?n[0]+(''===t?'':t+'\n ')+' '+e.join(',\n ')+' '+n[1]:n[0]+t+' '+e.join(', ')+' '+n[1]}function v(e){return Array.isArray(e)}function O(e){return'boolean'==typeof e}function j(e){return null===e}function w(e){return'number'==typeof e}function E(e){return'string'==typeof e}function S(e){return void 0===e}function z(e){return x(e)&&'[object RegExp]'===T(e)}function x(e){return'object'==typeof e&&null!==e}function D(e){return x(e)&&'[object Date]'===T(e)}function P(e){return x(e)&&('[object Error]'===T(e)||e instanceof Error)}function N(e){return'function'==typeof e}function T(e){return Object.prototype.toString.call(e)}function $(e){return e<10?'0'+e.toString(10):e.toString(10)}_e.debuglog=function(e){if(e=e.toUpperCase(),!n[e])if(o.test(e)){var t=process.pid;n[e]=function(){var n=_e.format.apply(_e,arguments);console.error('%s %d: %s',e,t,n)}}else n[e]=function(){};return n[e]},_e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:'cyan',number:'yellow',boolean:'yellow',undefined:'grey',null:'bold',string:'green',date:'magenta',regexp:'red'},_e.types=r(_d[0]),_e.isArray=v,_e.isBoolean=O,_e.isNull=j,_e.isNullOrUndefined=function(e){return null==e},_e.isNumber=w,_e.isString=E,_e.isSymbol=function(e){return'symbol'==typeof e},_e.isUndefined=S,_e.isRegExp=z,_e.types.isRegExp=z,_e.isObject=x,_e.isDate=D,_e.types.isDate=D,_e.isError=P,_e.types.isNativeError=P,_e.isFunction=N,_e.isPrimitive=function(e){return null===e||'boolean'==typeof e||'number'==typeof e||'string'==typeof e||'symbol'==typeof e||void 0===e},_e.isBuffer=r(_d[1]);var F=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}_e.log=function(){var e,t;console.log('%s - %s',(e=new Date,t=[$(e.getHours()),$(e.getMinutes()),$(e.getSeconds())].join(':'),[e.getDate(),F[e.getMonth()],t].join(' ')),_e.format.apply(_e,arguments))},_e.inherits=r(_d[2]),_e._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e};var k='undefined'!=typeof Symbol?Symbol('util.promisify.custom'):void 0;function A(e,t){if(!e){var n=new Error('Promise was rejected with a falsy value');n.reason=e,e=n}return t(e)}_e.promisify=function(t){if('function'!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var n;if('function'!=typeof(n=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,k,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var e,n,o=new Promise(function(t,o){e=t,n=o}),i=[],u=0;u<arguments.length;u++)i.push(arguments[u]);i.push(function(t,o){t?n(t):e(o)});try{t.apply(this,i)}catch(e){n(e)}return o}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),k&&Object.defineProperty(n,k,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,e(t))},_e.promisify.custom=k,_e.callbackify=function(t){if('function'!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var o=e.pop();if('function'!=typeof o)throw new TypeError('The last argument must be of type Function');var i=this,u=function(){return o.apply(i,arguments)};t.apply(this,e).then(function(e){process.nextTick(u.bind(null,null,e))},function(e){process.nextTick(A.bind(null,e,u))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,e(t)),n}},2647,[2648,2701,2702]);
|
|
14477
|
+
__d(function(g,r,i,a,m,_e,d){'use strict';var n=r(d[0]),e=r(d[1]),t=r(d[2]),o=r(d[3]);function u(n){return n.call.bind(n)}var f='undefined'!=typeof BigInt,c='undefined'!=typeof Symbol,y=u(Object.prototype.toString),s=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),A=u(Boolean.prototype.valueOf);if(f)var b=u(BigInt.prototype.valueOf);if(c)var w=u(Symbol.prototype.valueOf);function l(n,e){if('object'!=typeof n)return!1;try{return e(n),!0}catch(n){return!1}}function B(n){return'[object Map]'===y(n)}function j(n){return'[object Set]'===y(n)}function k(n){return'[object WeakMap]'===y(n)}function S(n){return'[object WeakSet]'===y(n)}function M(n){return'[object ArrayBuffer]'===y(n)}function v(n){return'undefined'!=typeof ArrayBuffer&&(M.working?M(n):n instanceof ArrayBuffer)}function I(n){return'[object DataView]'===y(n)}function O(n){return'undefined'!=typeof DataView&&(I.working?I(n):n instanceof DataView)}_e.isArgumentsObject=n,_e.isGeneratorFunction=e,_e.isTypedArray=o,_e.isPromise=function(n){return'undefined'!=typeof Promise&&n instanceof Promise||null!==n&&'object'==typeof n&&'function'==typeof n.then&&'function'==typeof n.catch},_e.isArrayBufferView=function(n){return'undefined'!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):o(n)||O(n)},_e.isUint8Array=function(n){return'Uint8Array'===t(n)},_e.isUint8ClampedArray=function(n){return'Uint8ClampedArray'===t(n)},_e.isUint16Array=function(n){return'Uint16Array'===t(n)},_e.isUint32Array=function(n){return'Uint32Array'===t(n)},_e.isInt8Array=function(n){return'Int8Array'===t(n)},_e.isInt16Array=function(n){return'Int16Array'===t(n)},_e.isInt32Array=function(n){return'Int32Array'===t(n)},_e.isFloat32Array=function(n){return'Float32Array'===t(n)},_e.isFloat64Array=function(n){return'Float64Array'===t(n)},_e.isBigInt64Array=function(n){return'BigInt64Array'===t(n)},_e.isBigUint64Array=function(n){return'BigUint64Array'===t(n)},B.working='undefined'!=typeof Map&&B(new Map),_e.isMap=function(n){return'undefined'!=typeof Map&&(B.working?B(n):n instanceof Map)},j.working='undefined'!=typeof Set&&j(new Set),_e.isSet=function(n){return'undefined'!=typeof Set&&(j.working?j(n):n instanceof Set)},k.working='undefined'!=typeof WeakMap&&k(new WeakMap),_e.isWeakMap=function(n){return'undefined'!=typeof WeakMap&&(k.working?k(n):n instanceof WeakMap)},S.working='undefined'!=typeof WeakSet&&S(new WeakSet),_e.isWeakSet=function(n){return S(n)},M.working='undefined'!=typeof ArrayBuffer&&M(new ArrayBuffer),_e.isArrayBuffer=v,I.working='undefined'!=typeof ArrayBuffer&&'undefined'!=typeof DataView&&I(new DataView(new ArrayBuffer(1),0,1)),_e.isDataView=O;var W='undefined'!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function U(n){return'[object SharedArrayBuffer]'===y(n)}function h(n){return void 0!==W&&(void 0===U.working&&(U.working=U(new W)),U.working?U(n):n instanceof W)}function V(n){return l(n,s)}function F(n){return l(n,p)}function D(n){return l(n,A)}function P(n){return f&&l(n,b)}function x(n){return c&&l(n,w)}_e.isSharedArrayBuffer=h,_e.isAsyncFunction=function(n){return'[object AsyncFunction]'===y(n)},_e.isMapIterator=function(n){return'[object Map Iterator]'===y(n)},_e.isSetIterator=function(n){return'[object Set Iterator]'===y(n)},_e.isGeneratorObject=function(n){return'[object Generator]'===y(n)},_e.isWebAssemblyCompiledModule=function(n){return'[object WebAssembly.Module]'===y(n)},_e.isNumberObject=V,_e.isStringObject=F,_e.isBooleanObject=D,_e.isBigIntObject=P,_e.isSymbolObject=x,_e.isBoxedPrimitive=function(n){return V(n)||F(n)||D(n)||P(n)||x(n)},_e.isAnyArrayBuffer=function(n){return'undefined'!=typeof Uint8Array&&(v(n)||h(n))},['isProxy','isExternal','isModuleNamespaceObject'].forEach(function(n){Object.defineProperty(_e,n,{enumerable:!1,value:function(){throw new Error(n+' is not supported in userland')}})})},2648,[2649,2686,2690,2700]);
|
|
14478
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(),n=r(d[1])('Object.prototype.toString'),o=function(o){return!(t&&o&&'object'==typeof o&&Symbol.toStringTag in o)&&'[object Arguments]'===n(o)},c=function(t){return!!o(t)||null!==t&&'object'==typeof t&&'length'in t&&'number'==typeof t.length&&t.length>=0&&'[object Array]'!==n(t)&&'callee'in t&&'[object Function]'===n(t.callee)},u=(function(){return o(arguments)})();o.isLegacyArguments=c,m.exports=u?o:c},2649,[2650,2652]);
|
|
14479
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(){return t()&&!!Symbol.toStringTag}},2650,[2651]);
|
|
14480
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){if('function'!=typeof Symbol||'function'!=typeof Object.getOwnPropertySymbols)return!1;if('symbol'==typeof Symbol.iterator)return!0;var t={},o=Symbol('test'),n=Object(o);if('string'==typeof o)return!1;if('[object Symbol]'!==Object.prototype.toString.call(o))return!1;if('[object Symbol]'!==Object.prototype.toString.call(n))return!1;for(var c in t[o]=42,t)return!1;if('function'==typeof Object.keys&&0!==Object.keys(t).length)return!1;if('function'==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var y=Object.getOwnPropertySymbols(t);if(1!==y.length||y[0]!==o)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if('function'==typeof Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(t,o);if(42!==f.value||!0!==f.enumerable)return!1}return!0}},2651,[]);
|
|
14481
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=n([t('%String.prototype.indexOf%')]);m.exports=function(p,f){var u=t(p,!!f);return'function'==typeof u&&o(p,'.prototype.')>-1?n([u]):u}},2652,[2653,2678]);
|
|
14482
|
+
__d(function(g,r,_i,a,m,_e,d){'use strict';var t,e=r(d[0]),o=r(d[1]),n=r(d[2]),y=r(d[3]),p=r(d[4]),i=r(d[5]),f=r(d[6]),c=r(d[7]),l=r(d[8]),u=r(d[9]),s=r(d[10]),A=r(d[11]),P=r(d[12]),S=r(d[13]),h=r(d[14]),I=Function,F=function(t){try{return I('"use strict"; return ('+t+').constructor;')()}catch(t){}},b=r(d[15]),E=r(d[16]),U=function(){throw new f},v=b?(function(){try{return U}catch(t){try{return b(arguments,'callee').get}catch(t){return U}}})():U,w=r(d[17])(),R=r(d[18]),B=r(d[19]),M=r(d[20]),O=r(d[21]),x=r(d[22]),_={},G='undefined'!=typeof Uint8Array&&R?R(Uint8Array):t,k={__proto__:null,'%AggregateError%':'undefined'==typeof AggregateError?t:AggregateError,'%Array%':Array,'%ArrayBuffer%':'undefined'==typeof ArrayBuffer?t:ArrayBuffer,'%ArrayIteratorPrototype%':w&&R?R([][Symbol.iterator]()):t,'%AsyncFromSyncIteratorPrototype%':t,'%AsyncFunction%':_,'%AsyncGenerator%':_,'%AsyncGeneratorFunction%':_,'%AsyncIteratorPrototype%':_,'%Atomics%':'undefined'==typeof Atomics?t:Atomics,'%BigInt%':'undefined'==typeof BigInt?t:BigInt,'%BigInt64Array%':'undefined'==typeof BigInt64Array?t:BigInt64Array,'%BigUint64Array%':'undefined'==typeof BigUint64Array?t:BigUint64Array,'%Boolean%':Boolean,'%DataView%':'undefined'==typeof DataView?t:DataView,'%Date%':Date,'%decodeURI%':decodeURI,'%decodeURIComponent%':decodeURIComponent,'%encodeURI%':encodeURI,'%encodeURIComponent%':encodeURIComponent,'%Error%':o,'%eval%':eval,'%EvalError%':n,'%Float16Array%':'undefined'==typeof Float16Array?t:Float16Array,'%Float32Array%':'undefined'==typeof Float32Array?t:Float32Array,'%Float64Array%':'undefined'==typeof Float64Array?t:Float64Array,'%FinalizationRegistry%':'undefined'==typeof FinalizationRegistry?t:FinalizationRegistry,'%Function%':I,'%GeneratorFunction%':_,'%Int8Array%':'undefined'==typeof Int8Array?t:Int8Array,'%Int16Array%':'undefined'==typeof Int16Array?t:Int16Array,'%Int32Array%':'undefined'==typeof Int32Array?t:Int32Array,'%isFinite%':isFinite,'%isNaN%':isNaN,'%IteratorPrototype%':w&&R?R(R([][Symbol.iterator]())):t,'%JSON%':'object'==typeof JSON?JSON:t,'%Map%':'undefined'==typeof Map?t:Map,'%MapIteratorPrototype%':'undefined'!=typeof Map&&w&&R?R((new Map)[Symbol.iterator]()):t,'%Math%':Math,'%Number%':Number,'%Object%':e,'%Object.getOwnPropertyDescriptor%':b,'%parseFloat%':parseFloat,'%parseInt%':parseInt,'%Promise%':'undefined'==typeof Promise?t:Promise,'%Proxy%':'undefined'==typeof Proxy?t:Proxy,'%RangeError%':y,'%ReferenceError%':p,'%Reflect%':'undefined'==typeof Reflect?t:Reflect,'%RegExp%':RegExp,'%Set%':'undefined'==typeof Set?t:Set,'%SetIteratorPrototype%':'undefined'!=typeof Set&&w&&R?R((new Set)[Symbol.iterator]()):t,'%SharedArrayBuffer%':'undefined'==typeof SharedArrayBuffer?t:SharedArrayBuffer,'%String%':String,'%StringIteratorPrototype%':w&&R?R(''[Symbol.iterator]()):t,'%Symbol%':w?Symbol:t,'%SyntaxError%':i,'%ThrowTypeError%':v,'%TypedArray%':G,'%TypeError%':f,'%Uint8Array%':'undefined'==typeof Uint8Array?t:Uint8Array,'%Uint8ClampedArray%':'undefined'==typeof Uint8ClampedArray?t:Uint8ClampedArray,'%Uint16Array%':'undefined'==typeof Uint16Array?t:Uint16Array,'%Uint32Array%':'undefined'==typeof Uint32Array?t:Uint32Array,'%URIError%':c,'%WeakMap%':'undefined'==typeof WeakMap?t:WeakMap,'%WeakRef%':'undefined'==typeof WeakRef?t:WeakRef,'%WeakSet%':'undefined'==typeof WeakSet?t:WeakSet,'%Function.prototype.call%':x,'%Function.prototype.apply%':O,'%Object.defineProperty%':E,'%Object.getPrototypeOf%':B,'%Math.abs%':l,'%Math.floor%':u,'%Math.max%':s,'%Math.min%':A,'%Math.pow%':P,'%Math.round%':S,'%Math.sign%':h,'%Reflect.getPrototypeOf%':M};if(R)try{null.error}catch(t){var N=R(R(t));k['%Error.prototype%']=N}var j=function t(e){var o;if('%AsyncFunction%'===e)o=F('async function () {}');else if('%GeneratorFunction%'===e)o=F('function* () {}');else if('%AsyncGeneratorFunction%'===e)o=F('async function* () {}');else if('%AsyncGenerator%'===e){var n=t('%AsyncGeneratorFunction%');n&&(o=n.prototype)}else if('%AsyncIteratorPrototype%'===e){var y=t('%AsyncGenerator%');y&&R&&(o=R(y.prototype))}return k[e]=o,o},W={__proto__:null,'%ArrayBufferPrototype%':['ArrayBuffer','prototype'],'%ArrayPrototype%':['Array','prototype'],'%ArrayProto_entries%':['Array','prototype','entries'],'%ArrayProto_forEach%':['Array','prototype','forEach'],'%ArrayProto_keys%':['Array','prototype','keys'],'%ArrayProto_values%':['Array','prototype','values'],'%AsyncFunctionPrototype%':['AsyncFunction','prototype'],'%AsyncGenerator%':['AsyncGeneratorFunction','prototype'],'%AsyncGeneratorPrototype%':['AsyncGeneratorFunction','prototype','prototype'],'%BooleanPrototype%':['Boolean','prototype'],'%DataViewPrototype%':['DataView','prototype'],'%DatePrototype%':['Date','prototype'],'%ErrorPrototype%':['Error','prototype'],'%EvalErrorPrototype%':['EvalError','prototype'],'%Float32ArrayPrototype%':['Float32Array','prototype'],'%Float64ArrayPrototype%':['Float64Array','prototype'],'%FunctionPrototype%':['Function','prototype'],'%Generator%':['GeneratorFunction','prototype'],'%GeneratorPrototype%':['GeneratorFunction','prototype','prototype'],'%Int8ArrayPrototype%':['Int8Array','prototype'],'%Int16ArrayPrototype%':['Int16Array','prototype'],'%Int32ArrayPrototype%':['Int32Array','prototype'],'%JSONParse%':['JSON','parse'],'%JSONStringify%':['JSON','stringify'],'%MapPrototype%':['Map','prototype'],'%NumberPrototype%':['Number','prototype'],'%ObjectPrototype%':['Object','prototype'],'%ObjProto_toString%':['Object','prototype','toString'],'%ObjProto_valueOf%':['Object','prototype','valueOf'],'%PromisePrototype%':['Promise','prototype'],'%PromiseProto_then%':['Promise','prototype','then'],'%Promise_all%':['Promise','all'],'%Promise_reject%':['Promise','reject'],'%Promise_resolve%':['Promise','resolve'],'%RangeErrorPrototype%':['RangeError','prototype'],'%ReferenceErrorPrototype%':['ReferenceError','prototype'],'%RegExpPrototype%':['RegExp','prototype'],'%SetPrototype%':['Set','prototype'],'%SharedArrayBufferPrototype%':['SharedArrayBuffer','prototype'],'%StringPrototype%':['String','prototype'],'%SymbolPrototype%':['Symbol','prototype'],'%SyntaxErrorPrototype%':['SyntaxError','prototype'],'%TypedArrayPrototype%':['TypedArray','prototype'],'%TypeErrorPrototype%':['TypeError','prototype'],'%Uint8ArrayPrototype%':['Uint8Array','prototype'],'%Uint8ClampedArrayPrototype%':['Uint8ClampedArray','prototype'],'%Uint16ArrayPrototype%':['Uint16Array','prototype'],'%Uint32ArrayPrototype%':['Uint32Array','prototype'],'%URIErrorPrototype%':['URIError','prototype'],'%WeakMapPrototype%':['WeakMap','prototype'],'%WeakSetPrototype%':['WeakSet','prototype']},D=r(d[23]),C=r(d[24]),T=D.call(x,Array.prototype.concat),J=D.call(O,Array.prototype.splice),V=D.call(x,String.prototype.replace),z=D.call(x,String.prototype.slice),$=D.call(x,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,K=function(t){var e=z(t,0,1),o=z(t,-1);if('%'===e&&'%'!==o)throw new i('invalid intrinsic syntax, expected closing `%`');if('%'===o&&'%'!==e)throw new i('invalid intrinsic syntax, expected opening `%`');var n=[];return V(t,q,function(t,e,o,y){n[n.length]=o?V(y,H,'$1'):e||t}),n},L=function(t,e){var o,n=t;if(C(W,n)&&(n='%'+(o=W[n])[0]+'%'),C(k,n)){var y=k[n];if(y===_&&(y=j(n)),void 0===y&&!e)throw new f('intrinsic '+t+' exists, but is not available. Please file an issue!');return{alias:o,name:n,value:y}}throw new i('intrinsic '+t+' does not exist!')};m.exports=function(t,e){if('string'!=typeof t||0===t.length)throw new f('intrinsic name must be a non-empty string');if(arguments.length>1&&'boolean'!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,t))throw new i('`%` may not be present anywhere but at the beginning and end of the intrinsic name');var o=K(t),n=o.length>0?o[0]:'',y=L('%'+n+'%',e),p=y.name,c=y.value,l=!1,u=y.alias;u&&(n=u[0],J(o,T([0,1],u)));for(var s=1,A=!0;s<o.length;s+=1){var P=o[s],S=z(P,0,1),h=z(P,-1);if(('"'===S||"'"===S||'`'===S||'"'===h||"'"===h||'`'===h)&&S!==h)throw new i('property names with quotes must have matching quotes');if('constructor'!==P&&A||(l=!0),C(k,p='%'+(n+='.'+P)+'%'))c=k[p];else if(null!=c){if(!(P in c)){if(!e)throw new f('base intrinsic for '+t+' exists, but the property is not available.');return}if(b&&s+1>=o.length){var I=b(c,P);c=(A=!!I)&&'get'in I&&!('originalValue'in I.get)?I.get:c[P]}else A=C(c,P),c=c[P];A&&!l&&(k[p]=c)}}return c}},2653,[2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2670,2672,2673,2674,2676,2675,2683,2681,2679,2685]);
|
|
14483
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Object},2654,[]);
|
|
14484
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Error},2655,[]);
|
|
14485
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=EvalError},2656,[]);
|
|
14486
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=RangeError},2657,[]);
|
|
14487
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=ReferenceError},2658,[]);
|
|
14488
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=SyntaxError},2659,[]);
|
|
14489
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=TypeError},2660,[]);
|
|
14490
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=URIError},2661,[]);
|
|
14491
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.abs},2662,[]);
|
|
14492
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.floor},2663,[]);
|
|
14493
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.max},2664,[]);
|
|
14494
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.min},2665,[]);
|
|
14495
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.pow},2666,[]);
|
|
14496
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Math.round},2667,[]);
|
|
14497
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(n){return t(n)||0===n?n:n<0?-1:1}},2668,[2669]);
|
|
14498
|
+
__d(function(g,r,i,_a,m,e,d){'use strict';m.exports=Number.isNaN||function(t){return t!=t}},2669,[]);
|
|
14499
|
+
__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);if(t)try{t([],'length')}catch(c){t=null}m.exports=t},2670,[2671]);
|
|
14500
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Object.getOwnPropertyDescriptor},2671,[]);
|
|
14501
|
+
__d(function(g,r,i,a,m,_e,d){'use strict';var t=Object.defineProperty||!1;if(t)try{t({},'a',{value:1})}catch(e){t=!1}m.exports=t},2672,[]);
|
|
14502
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var o='undefined'!=typeof Symbol&&Symbol,t=r(d[0]);m.exports=function(){return'function'==typeof o&&('function'==typeof Symbol&&('symbol'==typeof o('foo')&&('symbol'==typeof Symbol('bar')&&t())))}},2673,[2651]);
|
|
14503
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=r(d[2]);m.exports=t?function(n){return t(n)}:n?function(t){if(!t||'object'!=typeof t&&'function'!=typeof t)throw new TypeError('getProto: not an object');return n(t)}:o?function(t){return o(t)}:null},2674,[2675,2676,2677]);
|
|
14504
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports='undefined'!=typeof Reflect&&Reflect.getPrototypeOf||null},2675,[]);
|
|
14505
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t.getPrototypeOf||null},2676,[2654]);
|
|
14506
|
+
__d(function(g,r,i,a,m,_e,d){'use strict';var t,o=r(d[0]),e=r(d[1]);try{t=[].__proto__===Array.prototype}catch(t){if(!t||'object'!=typeof t||!('code'in t)||'ERR_PROTO_ACCESS'!==t.code)throw t}var c=!!t&&e&&e(Object.prototype,'__proto__'),_=Object,n=_.getPrototypeOf;m.exports=c&&'function'==typeof c.get?o([c.get]):'function'==typeof n&&function(t){return n(null==t?t:_(t))}},2677,[2678,2670]);
|
|
14507
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(f){if(f.length<1||'function'!=typeof f[0])throw new t('a function is required');return u(n,o,f)}},2678,[2679,2660,2681,2682]);
|
|
14508
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=Function.prototype.bind||t},2679,[2680]);
|
|
14509
|
+
__d(function(g,r,_i,_a,m,e,d){'use strict';var t=Object.prototype.toString,n=Math.max,o=function(t,n){for(var o=[],i=0;i<t.length;i+=1)o[i]=t[i];for(var p=0;p<n.length;p+=1)o[p+t.length]=n[p];return o},i=function(t,n){for(var o=[],i=n||0,p=0;i<t.length;i+=1,p+=1)o[p]=t[i];return o},p=function(t,n){for(var o='',i=0;i<t.length;i+=1)o+=t[i],i+1<t.length&&(o+=n);return o};m.exports=function(u){var a=this;if('function'!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var c,f=i(arguments,1),l=n(0,a.length-f.length),h=[],y=0;y<l;y++)h[y]='$'+y;if(c=Function('binder','return function ('+p(h,',')+'){ return binder.apply(this,arguments); }')(function(){if(this instanceof c){var t=a.apply(this,o(f,arguments));return Object(t)===t?t:this}return a.apply(u,o(f,arguments))}),a.prototype){var s=function(){};s.prototype=a.prototype,c.prototype=new s,s.prototype=null}return c}},2680,[]);
|
|
14510
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Function.prototype.call},2681,[]);
|
|
14511
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),c=r(d[1]),s=r(d[2]),l=r(d[3]);m.exports=l||t.call(s,c)},2682,[2679,2683,2681,2684]);
|
|
14512
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=Function.prototype.apply},2683,[]);
|
|
14513
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports='undefined'!=typeof Reflect&&Reflect&&Reflect.apply},2684,[]);
|
|
14514
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=Function.prototype.call,o=Object.prototype.hasOwnProperty,c=r(d[0]);m.exports=c.call(t,o)},2685,[2679]);
|
|
14515
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1])(/^\s*(?:function)?\*/),o=r(d[2])(),u=r(d[3]),c=t('Object.prototype.toString'),f=t('Function.prototype.toString'),p=r(d[4]);m.exports=function(t){if('function'!=typeof t)return!1;if(n(f(t)))return!0;if(!o)return'[object GeneratorFunction]'===c(t);if(!u)return!1;var s=p();return s&&u(t)===s.prototype}},2686,[2652,2687,2650,2674,2689]);
|
|
14516
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),u=t('RegExp.prototype.exec'),o=r(d[2]);m.exports=function(t){if(!n(t))throw new o('`regex` must be a RegExp');return function(n){return null!==u(t,n)}}},2687,[2652,2688,2660]);
|
|
14517
|
+
__d(function(g,r,i,a,m,_e,d){'use strict';var t,e=r(d[0]),o=r(d[1])(),n=r(d[2]),c=r(d[3]);if(o){var f=e('RegExp.prototype.exec'),u={},p=function(){throw u},y={toString:p,valueOf:p};'symbol'==typeof Symbol.toPrimitive&&(y[Symbol.toPrimitive]=p),t=function(t){if(!t||'object'!=typeof t)return!1;var e=c(t,'lastIndex');if(!(e&&n(e,'value')))return!1;try{f(t,y)}catch(t){return t===u}}}else{var v=e('Object.prototype.toString');t=function(t){return!(!t||'object'!=typeof t&&'function'!=typeof t)&&"[object RegExp]"===v(t)}}m.exports=t},2688,[2652,2650,2685,2670]);
|
|
14518
|
+
__d(function(g,r,i,a,m,e,d){'use strict';const t=function*(){}.constructor;m.exports=()=>t},2689,[]);
|
|
14519
|
+
__d(function(_g,r,_i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]),e=r(d[4]),f=r(d[5]),u=o('Object.prototype.toString'),c=r(d[6])(),l='undefined'==typeof globalThis?_g:globalThis,g=n(),v=o('String.prototype.slice'),y=o('Array.prototype.indexOf',!0)||function(t,n){for(var i=0;i<t.length;i+=1)if(t[i]===n)return i;return-1},p={__proto__:null};t(g,c&&e&&f?function(t){var n=new l[t];if(Symbol.toStringTag in n&&f){var o=f(n),u=e(o,Symbol.toStringTag);if(!u&&o){var c=f(o);u=e(c,Symbol.toStringTag)}if(u&&u.get){var g=i(u.get);p['$'+t]=g}}}:function(t){var n=new l[t],o=n.slice||n.set;if(o){var e=i(o);p['$'+t]=e}});var b=function(n){var i=!1;return t(p,function(t,o){if(!i)try{'$'+t(n)===o&&(i=v(o,1))}catch(t){}}),i},s=function(n){var i=!1;return t(p,function(t,o){if(!i)try{t(n),i=v(o,1)}catch(t){}}),i};m.exports=function(t){if(!t||'object'!=typeof t)return!1;if(!c){var n=v(u(t),8,-1);return y(g,n)>-1?n:'Object'===n&&s(t)}return e?b(t):null}},2690,[2691,2693,2695,2652,2670,2674,2650]);
|
|
14520
|
+
__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),n=Object.prototype.toString,l=Object.prototype.hasOwnProperty,o=function(t,n,o){for(var c=0,i=t.length;c<i;c++)l.call(t,c)&&(null==o?n(t[c],c,t):n.call(o,t[c],c,t))},c=function(t,n,l){for(var o=0,c=t.length;o<c;o++)null==l?n(t.charAt(o),o,t):n.call(l,t.charAt(o),o,t)},i=function(t,n,o){for(var c in t)l.call(t,c)&&(null==o?n(t[c],c,t):n.call(o,t[c],c,t))};m.exports=function(l,f,u){if(!t(f))throw new TypeError('iterator must be a function');var p,h;arguments.length>=3&&(p=u),h=l,'[object Array]'===n.call(h)?o(l,f,p):'string'==typeof l?c(l,f,p):i(l,f,p)}},2691,[2692]);
|
|
14521
|
+
__d(function(g,r,i,a,m,_e,d){'use strict';var t,e,n=Function.prototype.toString,o='object'==typeof Reflect&&null!==Reflect&&Reflect.apply;if('function'==typeof o&&'function'==typeof Object.defineProperty)try{t=Object.defineProperty({},'length',{get:function(){throw e}}),e={},o(function(){throw 42},null,t)}catch(t){t!==e&&(o=null)}else o=null;var c=/^\s*class\b/,l=function(t){try{var e=n.call(t);return c.test(e)}catch(t){return!1}},u=function(t){try{return!l(t)&&(n.call(t),!0)}catch(t){return!1}},f=Object.prototype.toString,y='function'==typeof Symbol&&!!Symbol.toStringTag,b=!(0 in[,]),p=function(){return!1};if('object'==typeof document){var j=document.all;f.call(j)===f.call(document.all)&&(p=function(t){if((b||!t)&&(void 0===t||'object'==typeof t))try{var e=f.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t('')}catch(t){}return!1})}m.exports=o?function(n){if(p(n))return!0;if(!n)return!1;if('function'!=typeof n&&'object'!=typeof n)return!1;try{o(n,null,t)}catch(t){if(t!==e)return!1}return!l(n)&&u(n)}:function(t){if(p(t))return!0;if(!t)return!1;if('function'!=typeof t&&'object'!=typeof t)return!1;if(y)return u(t);if(l(t))return!1;var e=f.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&u(t)}},2692,[]);
|
|
14522
|
+
__d(function(_g,r,_i,a,m,e,d){'use strict';var n=r(d[0]),t='undefined'==typeof globalThis?_g:globalThis;m.exports=function(){for(var o=[],f=0;f<n.length;f++)'function'==typeof t[n[f]]&&(o[o.length]=n[f]);return o}},2693,[2694]);
|
|
14523
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=['Float16Array','Float32Array','Float64Array','Int8Array','Int16Array','Int32Array','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','BigInt64Array','BigUint64Array']},2694,[]);
|
|
14524
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),p=r(d[2]),l=r(d[3]);m.exports=function(n){var l=p(arguments),o=1+n.length-(arguments.length-1);return t(l,o>0?o:0,!0)},n?n(m.exports,'apply',{value:l}):m.exports.apply=l},2695,[2696,2672,2678,2699]);
|
|
14525
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=r(d[2])(),f=r(d[3]),h=r(d[4]),l=t('%Math.floor%');m.exports=function(t,u){if('function'!=typeof t)throw new h('`fn` is not a function');if('number'!=typeof u||u<0||u>4294967295||l(u)!==u)throw new h('`length` must be a positive 32-bit integer');var c=arguments.length>2&&!!arguments[2],s=!0,b=!0;if('length'in t&&f){var w=f(t,'length');w&&!w.configurable&&(s=!1),w&&!w.writable&&(b=!1)}return(s||b||!c)&&(o?n(t,'length',u,!0,!0):n(t,'length',u)),t}},2696,[2653,2697,2698,2670,2660]);
|
|
14526
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),o=r(d[1]),l=r(d[2]),t=r(d[3]);m.exports=function(u,b,f){if(!u||'object'!=typeof u&&'function'!=typeof u)throw new l('`obj` must be an object or a function`');if('string'!=typeof b&&'symbol'!=typeof b)throw new l('`property` must be a string or a symbol`');if(arguments.length>3&&'boolean'!=typeof arguments[3]&&null!==arguments[3])throw new l('`nonEnumerable`, if provided, must be a boolean or null');if(arguments.length>4&&'boolean'!=typeof arguments[4]&&null!==arguments[4])throw new l('`nonWritable`, if provided, must be a boolean or null');if(arguments.length>5&&'boolean'!=typeof arguments[5]&&null!==arguments[5])throw new l('`nonConfigurable`, if provided, must be a boolean or null');if(arguments.length>6&&'boolean'!=typeof arguments[6])throw new l('`loose`, if provided, must be a boolean');var p=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,w=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],y=!!t&&t(u,b);if(n)n(u,b,{configurable:null===w&&y?y.configurable:!w,enumerable:null===p&&y?y.enumerable:!p,value:f,writable:null===s&&y?y.writable:!s});else{if(!h&&(p||s||w))throw new o('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');u[b]=f}}},2697,[2672,2659,2660,2670]);
|
|
14527
|
+
__d(function(g,r,i,a,m,_e,d){'use strict';var n=r(d[0]),t=function(){return!!n};t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],'length',{value:1}).length}catch(n){return!0}},m.exports=t},2698,[2672]);
|
|
14528
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),u=r(d[2]);m.exports=function(){return u(t,n,arguments)}},2699,[2679,2683,2682]);
|
|
14529
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(n){return!!t(n)}},2700,[2690]);
|
|
14530
|
+
__d(function(g,r,i,a,m,e,d){m.exports=function(t){return t&&'object'==typeof t&&'function'==typeof t.copy&&'function'==typeof t.fill&&'function'==typeof t.readUInt8}},2701,[]);
|
|
14531
|
+
__d(function(g,r,i,a,m,e,d){'function'==typeof Object.create?m.exports=function(t,o){o&&(t.super_=o,t.prototype=Object.create(o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:m.exports=function(t,o){if(o){t.super_=o;var p=function(){};p.prototype=o.prototype,t.prototype=new p,t.prototype.constructor=t}}},2702,[]);
|
|
14532
|
+
__d(function(g,_r,_i,_a,m,_e,d){'use strict';function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,c)}return n}function e(e){for(var c=1;c<arguments.length;c++){var o=null!=arguments[c]?arguments[c]:{};c%2?t(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function n(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var c=e[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,r(c.key),c)}}function r(t){var e=a(t,"string");return"symbol"===h(e)?e:String(e)}function a(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var c=n.call(t,e||"default");if("object"!==h(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}function i(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,c)}function c(){return p(t,arguments,y(this).constructor)}return c.prototype=Object.create(t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),b(c,t)},s(t)}function p(t,e,n){return p=f()?Reflect.construct.bind():function(t,e,n){var c=[null];c.push.apply(c,e);var o=new(Function.bind.apply(t,c));return n&&b(o,n.prototype),o},p.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var v=_r(d[0]).inspect,E=_r(d[1]).codes.ERR_INVALID_ARG_TYPE;function O(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function j(t,e){if(e=Math.floor(e),0==t.length||0==e)return'';var n=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+=t.substring(0,n-t.length)}var q='',w='',S='',P='',x={deepStrictEqual:'Expected values to be strictly deep-equal:',strictEqual:'Expected values to be strictly equal:',strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:'Expected values to be loosely deep-equal:',equal:'Expected values to be loosely equal:',notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:'Values identical but not reference-equal:'};function T(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){n[e]=t[e]}),Object.defineProperty(n,'message',{value:t.message}),n}function k(t){return v(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function R(t,e,n){var c='',o='',r=0,a='',l=!1,i=k(t),u=i.split('\n'),s=k(e).split('\n'),p=0,f='';if('strictEqual'===n&&'object'===h(t)&&'object'===h(e)&&null!==t&&null!==e&&(n='strictEqualObject'),1===u.length&&1===s.length&&u[0]!==s[0]){var b=u[0].length+s[0].length;if(b<=10){if(!('object'===h(t)&&null!==t||'object'===h(e)&&null!==e||0===t&&0===e))return"".concat(x[n],"\n\n")+"".concat(u[0]," !== ").concat(s[0],"\n")}else if('strictEqualObject'!==n){if(b<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][p]===s[0][p];)p++;p>2&&(f="\n ".concat(j(' ',p),"^"),p=0)}}}for(var y=u[u.length-1],v=s[s.length-1];y===v&&(p++<2?a="\n ".concat(y).concat(a):c=y,u.pop(),s.pop(),0!==u.length&&0!==s.length);)y=u[u.length-1],v=s[s.length-1];var E=Math.max(u.length,s.length);if(0===E){var T=i.split('\n');if(T.length>30)for(T[26]="".concat(q,"...").concat(P);T.length>27;)T.pop();return"".concat(x.notIdentical,"\n\n").concat(T.join('\n'),"\n")}p>3&&(a="\n".concat(q,"...").concat(P).concat(a),l=!0),''!==c&&(a="\n ".concat(c).concat(a),c='');var R=0,_=x[n]+"\n".concat(w,"+ actual").concat(P," ").concat(S,"- expected").concat(P),D=" ".concat(q,"...").concat(P," Lines skipped");for(p=0;p<E;p++){var I=p-r;if(u.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(q,"...").concat(P),l=!0):I>3&&(o+="\n ".concat(s[p-2]),R++),o+="\n ".concat(s[p-1]),R++),r=p,c+="\n".concat(S,"-").concat(P," ").concat(s[p]),R++;else if(s.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(q,"...").concat(P),l=!0):I>3&&(o+="\n ".concat(u[p-2]),R++),o+="\n ".concat(u[p-1]),R++),r=p,o+="\n".concat(w,"+").concat(P," ").concat(u[p]),R++;else{var M=s[p],A=u[p],L=A!==M&&(!O(A,',')||A.slice(0,-1)!==M);L&&O(M,',')&&M.slice(0,-1)===A&&(L=!1,A+=','),L?(I>1&&p>2&&(I>4?(o+="\n".concat(q,"...").concat(P),l=!0):I>3&&(o+="\n ".concat(u[p-2]),R++),o+="\n ".concat(u[p-1]),R++),r=p,o+="\n".concat(w,"+").concat(P," ").concat(A),c+="\n".concat(S,"-").concat(P," ").concat(M),R+=2):(o+=c,c='',1!==I&&0!==p||(o+="\n ".concat(A),R++))}if(R>20&&p<E-2)return"".concat(_).concat(D,"\n").concat(o,"\n").concat(q,"...").concat(P).concat(c,"\n")+"".concat(q,"...").concat(P)}return"".concat(_).concat(l?D:'',"\n").concat(o).concat(c).concat(a).concat(f)}var _=(function(t,n){l(j,t);var r,a,s,p,b,O=(r=j,a=f(),function(){var t,e=y(r);if(a){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return i(this,t)});function j(t){var e;if(c(this,j),'object'!==h(t)||null===t)throw new E('options','Object',t);var n=t.message,o=t.operator,r=t.stackStartFn,a=t.actual,l=t.expected,s=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)e=O.call(this,String(n));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(q="\x1b[34m",w="\x1b[32m",P="\x1b[39m",S="\x1b[31m"):(q='',w='',P='',S='')),'object'===h(a)&&null!==a&&'object'===h(l)&&null!==l&&'stack'in a&&a instanceof Error&&'stack'in l&&l instanceof Error&&(a=T(a),l=T(l)),'deepStrictEqual'===o||'strictEqual'===o)e=O.call(this,R(a,l,o));else if('notDeepStrictEqual'===o||'notStrictEqual'===o){var p=x[o],f=k(a).split('\n');if('notStrictEqual'===o&&'object'===h(a)&&null!==a&&(p=x.notStrictEqualObject),f.length>30)for(f[26]="".concat(q,"...").concat(P);f.length>27;)f.pop();e=1===f.length?O.call(this,"".concat(p," ").concat(f[0])):O.call(this,"".concat(p,"\n\n").concat(f.join('\n'),"\n"))}else{var b=k(a),y='',v=x[o];'notDeepEqual'===o||'notEqual'===o?(b="".concat(x[o],"\n\n").concat(b)).length>1024&&(b="".concat(b.slice(0,1021),"...")):(y="".concat(k(l)),b.length>512&&(b="".concat(b.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),'deepEqual'===o||'equal'===o?b="".concat(v,"\n\n").concat(b,"\n\nshould equal\n\n"):y=" ".concat(o," ").concat(y)),e=O.call(this,"".concat(b).concat(y))}return Error.stackTraceLimit=s,e.generatedMessage=!n,Object.defineProperty(u(e),'name',{value:'AssertionError [ERR_ASSERTION]',enumerable:!1,writable:!0,configurable:!0}),e.code='ERR_ASSERTION',e.actual=a,e.expected=l,e.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(e),r),e.stack,e.name='AssertionError',i(e)}return s=j,(p=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:n,value:function(t,n){return v(this,e(e({},n),{},{customInspect:!1,depth:0}))}}])&&o(s.prototype,p),b&&o(s,b),Object.defineProperty(s,"prototype",{writable:!1}),j})(s(Error),v.custom);m.exports=_},2703,[2647,2646]);
|
|
14533
|
+
__d(function(g,r,_i,a,m,_e,d){'use strict';var t=r(d[0]),n=function(){if(!Object.assign)return!1;for(var t='abcdefghijklmnopqrst',n=t.split(''),e={},s=0;s<n.length;++s)e[n[s]]=n[s];var i=Object.assign({},e),c='';for(var u in i)c+=u;return t!==c},e=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,'xy')}catch(n){return'y'===t[1]}return!1};m.exports=function(){return Object.assign?n()||e()?t:Object.assign:t}},2704,[2705]);
|
|
14534
|
+
__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),o=r(d[1])(),n=r(d[2]),l=r(d[3]),p=n('Array.prototype.push'),u=n('Object.prototype.propertyIsEnumerable'),f=o?l.getOwnPropertySymbols:null;m.exports=function(n,v){if(null==n)throw new TypeError('target must be an object');var y=l(n);if(1===arguments.length)return y;for(var s=1;s<arguments.length;++s){var i=l(arguments[s]),b=t(i),h=o&&(l.getOwnPropertySymbols||f);if(h)for(var c=h(i),w=0;w<c.length;++w){var O=c[w];u(i,O)&&p(b,O)}for(var j=0;j<b.length;++j){var E=b[j];if(u(i,E)){var P=i[E];y[E]=P}}}return y}},2705,[2706,2651,2652,2654]);
|
|
14535
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=Array.prototype.slice,n=r(d[0]),c=Object.keys,s=c?function(t){return c(t)}:r(d[1]),u=Object.keys;s.shim=function(){if(Object.keys){var c=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);c||(Object.keys=function(c){return n(c)?u(t.call(c)):u(c)})}else Object.keys=s;return Object.keys||s},m.exports=s},2706,[2707,2708]);
|
|
14536
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.prototype.toString;m.exports=function(n){var o=t.call(n),c='[object Arguments]'===o;return c||(c='[object Array]'!==o&&null!==n&&'object'==typeof n&&'number'==typeof n.length&&n.length>=0&&'[object Function]'===t.call(n.callee)),c}},2707,[]);
|
|
14537
|
+
__d(function(g,r,_i,a,m,_e,d){'use strict';var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=r(d[0]),l=Object.prototype.propertyIsEnumerable,c=!l.call({toString:null},'toString'),i=l.call(function(){},'prototype'),f=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'],u=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},s=(function(){if('undefined'==typeof window)return!1;for(var t in window)try{if(!p['$'+t]&&e.call(window,t)&&null!==window[t]&&'object'==typeof window[t])try{u(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),$=function(t){if('undefined'==typeof window||!s)return u(t);try{return u(t)}catch(t){return!1}};t=function(t){var l=null!==t&&'object'==typeof t,u='[object Function]'===n.call(t),p=o(t),s=l&&'[object String]'===n.call(t),w=[];if(!l&&!u&&!p)throw new TypeError('Object.keys called on a non-object');var h=i&&u;if(s&&t.length>0&&!e.call(t,0))for(var y=0;y<t.length;++y)w.push(String(y));if(p&&t.length>0)for(var b=0;b<t.length;++b)w.push(String(b));else for(var v in t)h&&'prototype'===v||!e.call(t,v)||w.push(String(v));if(c)for(var O=$(t),j=0;j<f.length;++j)O&&'constructor'===f[j]||!e.call(t,f[j])||w.push(f[j]);return w}}m.exports=t},2708,[2707]);
|
|
14538
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=function(){return'function'==typeof Object.is?Object.is:t}},2709,[2710]);
|
|
14539
|
+
__d(function(g,r,i,_a,m,e,d){'use strict';var n=function(n){return n!=n};m.exports=function(t,u){return 0===t&&0===u?1/t==1/u:t===u||!(!n(t)||!n(u))}},2710,[]);
|
|
14540
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=n(t('String.prototype.indexOf'));m.exports=function(p,f){var u=t(p,!!f);return'function'==typeof u&&o(p,'.prototype.')>-1?n(u):u}},2711,[2653,2695]);
|
|
14536
14541
|
__d(function(g,_r,_i3,_a,m,_e,d){'use strict';function e(e,n){return l(e)||i(e,n)||r(e,n)||t()}function t(){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 r(e,t){if(e){if("string"==typeof e)return n(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)?n(e,t):void 0}}function n(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}function i(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,l,u,o=[],f=!0,a=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=l.call(r)).done)&&(o.push(n.value),o.length!==t);f=!0);}catch(e){a=!0,i=e}finally{try{if(!f&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(a)throw i}}return o}}function l(e){if(Array.isArray(e))return e}function u(e){return u="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},u(e)}var o=void 0!==/a/g.flags,f=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},a=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},c=Object.is?Object.is:_r(d[0]),s=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},y=Number.isNaN?Number.isNaN:_r(d[1]);function b(e){return e.call.bind(e)}var p=b(Object.prototype.hasOwnProperty),v=b(Object.prototype.propertyIsEnumerable),h=b(Object.prototype.toString),O=_r(d[2]).types,j=O.isAnyArrayBuffer,S=O.isArrayBufferView,w=O.isDate,A=O.isMap,E=O.isRegExp,N=O.isSet,B=O.isNativeError,L=O.isBoxedPrimitive,I=O.isNumberObject,z=O.isStringObject,k=O.isBooleanObject,x=O.isBigIntObject,M=O.isSymbolObject,P=O.isFloat32Array,D=O.isFloat64Array;function U(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function R(e){return Object.keys(e).filter(U).concat(s(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
|
|
14537
14542
|
/*!
|
|
14538
14543
|
* The buffer module from node.js, for the browser.
|
|
14539
14544
|
*
|
|
14540
14545
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
14541
14546
|
* @license MIT
|
|
14542
|
-
*/function T(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,l=Math.min(r,n);i<l;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function q(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&0===T(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function F(e,t){return I(e)?I(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):z(e)?z(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):k(e)?k(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):x(e)?x(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):M(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function _(e,t,r,n){if(e===t)return 0!==e||(!r||c(e,t));if(r){if('object'!==u(e))return'number'==typeof e&&y(e)&&y(t);if('object'!==u(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||'object'!==u(e))return(null===t||'object'!==u(t))&&e==t;if(null===t||'object'!==u(t))return!1}var i,l,f,a,s=h(e);if(s!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var b=R(e),p=R(t);return b.length===p.length&&$(e,t,r,n,1,b)}if('[object Object]'===s&&(!A(e)&&A(t)||!N(e)&&N(t)))return!1;if(w(e)){if(!w(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(E(e)){if(!E(t)||(f=e,a=t,!(o?f.source===a.source&&f.flags===a.flags:RegExp.prototype.toString.call(f)===RegExp.prototype.toString.call(a))))return!1}else if(B(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(S(e)){if(r||!P(e)&&!D(e)){if(!C(e,t))return!1}else if(!q(e,t))return!1;var v=R(e),O=R(t);return v.length===O.length&&$(e,t,r,n,0,v)}if(N(e))return!(!N(t)||e.size!==t.size)&&$(e,t,r,n,2);if(A(e))return!(!A(t)||e.size!==t.size)&&$(e,t,r,n,3);if(j(e)){if(l=t,(i=e).byteLength!==l.byteLength||0!==T(new Uint8Array(i),new Uint8Array(l)))return!1}else if(L(e)&&!F(e,t))return!1}return $(e,t,r,n,0)}function V(e,t){return t.filter(function(t){return v(e,t)})}function $(e,t,r,n,i,l){if(5===arguments.length){l=Object.keys(e);var u=Object.keys(t);if(l.length!==u.length)return!1}for(var o=0;o<l.length;o++)if(!p(t,l[o]))return!1;if(r&&5===arguments.length){var f=s(e);if(0!==f.length){var a=0;for(o=0;o<f.length;o++){var c=f[o];if(v(e,c)){if(!v(t,c))return!1;l.push(c),a++}else if(v(t,c))return!1}var y=s(t);if(f.length!==y.length&&V(t,y).length!==a)return!1}else{var b=s(t);if(0!==b.length&&0!==V(t,b).length)return!1}}if(0===l.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var h=n.val1.get(e);if(void 0!==h){var O=n.val2.get(t);if(void 0!==O)return h===O}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var j=Y(e,t,r,l,n,i);return n.val1.delete(e),n.val2.delete(t),j}function G(e,t,r,n){for(var i=f(e),l=0;l<i.length;l++){var u=i[l];if(_(t,u,r,n))return e.delete(u),!0}return!1}function H(e){switch(u(e)){case'undefined':return null;case'object':return;case'symbol':return!1;case'string':e=+e;case'number':if(y(e))return!1}return!0}function J(e,t,r){var n=H(r);return null!=n?n:t.has(n)&&!e.has(n)}function K(e,t,r,n,i){var l=H(r);if(null!=l)return l;var u=t.get(l);return!(void 0===u&&!t.has(l)||!_(n,u,!1,i))&&(!e.has(l)&&_(n,u,!1,i))}function Q(e,t,r,n){for(var i=null,l=f(e),o=0;o<l.length;o++){var a=l[o];if('object'===u(a)&&null!==a)null===i&&(i=new Set),i.add(a);else if(!t.has(a)){if(r)return!1;if(!J(e,t,a))return!1;null===i&&(i=new Set),i.add(a)}}if(null!==i){for(var c=f(t),s=0;s<c.length;s++){var y=c[s];if('object'===u(y)&&null!==y){if(!G(i,y,r,n))return!1}else if(!r&&!e.has(y)&&!G(i,y,r,n))return!1}return 0===i.size}return!0}function W(e,t,r,n,i,l){for(var u=f(e),o=0;o<u.length;o++){var a=u[o];if(_(r,a,i,l)&&_(n,t.get(a),i,l))return e.delete(a),!0}return!1}function X(t,r,n,i){for(var l=null,o=a(t),f=0;f<o.length;f++){var c=e(o[f],2),s=c[0],y=c[1];if('object'===u(s)&&null!==s)null===l&&(l=new Set),l.add(s);else{var b=r.get(s);if(void 0===b&&!r.has(s)||!_(y,b,n,i)){if(n)return!1;if(!K(t,r,s,y,i))return!1;null===l&&(l=new Set),l.add(s)}}}if(null!==l){for(var p=a(r),v=0;v<p.length;v++){var h=e(p[v],2),O=h[0],j=h[1];if('object'===u(O)&&null!==O){if(!W(l,t,O,j,n,i))return!1}else if(!(n||t.has(O)&&_(t.get(O),j,!1,i)||W(l,t,O,j,!1,i)))return!1}return 0===l.size}return!0}function Y(e,t,r,n,i,l){var u=0;if(2===l){if(!Q(e,t,r,i))return!1}else if(3===l){if(!X(e,t,r,i))return!1}else if(1===l)for(;u<e.length;u++){if(!p(e,u)){if(p(t,u))return!1;for(var o=Object.keys(e);u<o.length;u++){var f=o[u];if(!p(t,f)||!_(e[f],t[f],r,i))return!1}return o.length===Object.keys(t).length}if(!p(t,u)||!_(e[u],t[u],r,i))return!1}for(u=0;u<n.length;u++){var a=n[u];if(!_(e[a],t[a],r,i))return!1}return!0}m.exports={isDeepEqual:function(e,t){return _(e,t,false)},isDeepStrictEqual:function(e,t){return _(e,t,true)}}},
|
|
14543
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=l(o(),Object);t(c,{getPolyfill:o,implementation:n,shim:s}),m.exports=c},
|
|
14544
|
-
__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),o='function'==typeof Symbol&&'symbol'==typeof Symbol('foo'),n=Object.prototype.toString,c=Array.prototype.concat,f=r(d[1]),i=r(d[2])(),p=function(t,o,c,p){if(o in t)if(!0===p){if(t[o]===c)return}else if('function'!=typeof(l=p)||'[object Function]'!==n.call(l)||!p())return;var l;i?f(t,o,c,!0):f(t,o,c)},l=function(n,f){var i=arguments.length>2?arguments[2]:{},l=t(f);o&&(l=c.call(l,Object.getOwnPropertySymbols(f)));for(var y=0;y<l.length;y+=1)p(n,l[y],f[l[y]],i[l[y]])};l.supportsDescriptors=!!i,m.exports=l},
|
|
14545
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]);m.exports=function(){var c=t();return n(Object,{is:c},{is:function(){return Object.is!==c}}),c}},
|
|
14546
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=t(o(),Number);l(u,{getPolyfill:o,implementation:n,shim:s}),m.exports=u},
|
|
14547
|
-
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return t!=t}},
|
|
14548
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var N=r(d[0]);m.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN('a')?Number.isNaN:N}},
|
|
14549
|
-
__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]);m.exports=function(){var u=t();return n(Number,{isNaN:u},{isNaN:function(){return Number.isNaN!==u}}),u}},
|
|
14550
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e},c=r(d[2]);async function f(){if(!o.default.getPresentedNotificationsAsync)throw new t.UnavailabilityError('Notifications','getPresentedNotificationsAsync');return(await o.default.getPresentedNotificationsAsync()).map(e=>(0,c.mapNotification)(e))}},
|
|
14551
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={addListener:()=>{},removeListeners:()=>{}}},
|
|
14552
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"mapNotificationResponse",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"mapNotification",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"mapNotificationRequest",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"mapNotificationContent",{enumerable:!0,get:function(){return c}});const e=e=>Object.assign({},e,{notification:t(e.notification)}),t=e=>Object.assign({},e,{request:n(e.request)}),n=e=>Object.assign({},e,{content:c(e.content)});let o=!1;const c=e=>{try{const t=e.dataString;if('string'==typeof t){const n=Object.assign({},e);return n.data=JSON.parse(t),Object.defineProperty(n,'dataString',{get:()=>(o||(o=!0,console.warn('reading dataString is deprecated, use data instead')),t)}),n}}catch(e){console.error(`Error parsing notification: ${e}`)}return e}},
|
|
14553
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t,e=r(d[0]),n=r(d[1]),s=(t=n)&&t.__esModule?t:{default:t};async function o(t){if(!s.default.dismissNotificationAsync)throw new e.UnavailabilityError('Notifications','dismissNotificationAsync');return await s.default.dismissNotificationAsync(t)}},
|
|
14554
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t,e=r(d[0]),n=r(d[1]),s=(t=n)&&t.__esModule?t:{default:t};async function o(){if(!s.default.dismissAllNotificationsAsync)throw new e.UnavailabilityError('Notifications','dismissAllNotificationsAsync');return await s.default.dismissAllNotificationsAsync()}},
|
|
14555
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(){return console.debug('Notification channels feature is only supported on Android.'),[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14556
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14557
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n,t){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14558
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){console.debug('Notification channels feature is only supported on Android.')}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14559
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(){return console.debug('Notification channels feature is only supported on Android.'),[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14560
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14561
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n,t){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14562
|
-
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){console.debug('Notification channels feature is only supported on Android.')}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},
|
|
14563
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};async function o(){if(!u.default.getBadgeCountAsync)throw new t.UnavailabilityError('ExpoNotifications','getBadgeCountAsync');return await u.default.getBadgeCountAsync()}},
|
|
14564
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});let t=0;var n={addListener:()=>{},removeListeners:()=>{},getBadgeCountAsync:async()=>t,setBadgeCountAsync:async(n,s)=>{if('undefined'==typeof window)return!1;const u=r(d[0]);return n>0?u.set(n,s):u.clear(),t=n,!0}}},
|
|
14565
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"clear",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"set",{enumerable:!0,get:function(){return z}});let t=!1;const n=()=>{t||'ExperimentalBadge'in window||'setExperimentalAppBadge'in navigator||(console.warn('Badging API must be enabled. Please check here how you can enable it: https://developers.google.com/web/updates/2018/12/badging-api#use'),t=!0)},i={mediaQuery:null,value:0};function o(){return'ExperimentalBadge'in window&&!!window.ExperimentalBadge}function l(){return'setExperimentalAppBadge'in navigator&&!!navigator.setExperimentalAppBadge&&'clearExperimentalAppBadge'in navigator&&!!navigator.clearExperimentalAppBadge}function c(){return i.mediaQuery||(i.mediaQuery=window.matchMedia('(display-mode: standalone)'),i.mediaQuery.onchange=t=>{s(i.value)}),i.mediaQuery.matches&&(o()||l())}function s(t){return i.value=t,c()?o()?(window.ExperimentalBadge.set(t),!0):!!l()&&(navigator.setExperimentalAppBadge(t),!0):(n(),!1)}function u(t,n){for(const i of Object.keys(n))n[i]instanceof Object&&Object.assign(n[i],u(t[i],n[i]));return Object.assign(t||{},n),t}function f(t){return void 0!==t&&Number.isInteger(t)&&t>=0}const v=0,p={backgroundColor:'#424242',color:'#ffffff',indicator:'!',radius:3,size:7,horizontalMargin:0,verticalMargin:0,horizontalPadding:1,verticalPadding:1},h=navigator.userAgent.indexOf('Firefox')>-1,b=()=>{const t=document.head.getElementsByTagName('link'),n=[];for(let i=0;i<t.length;i++){const o=t[i],l=o.getAttribute('href'),c=o.getAttribute('rel');l&&(c&&-1!==c.split(' ').indexOf('icon')&&n.push(o))}return n},w=()=>{const t=b();let n=null,i=0;for(let o=0;o<t.length;o++){const l=t[o],c=l.getAttribute('href'),s=l.getAttribute('sizes');if(null==c?void 0:c.endsWith('.svg'))return l;if(!s){n||(n=l,i=0);continue}if('any'===s)return l;const u=parseInt(s.split('x')[0],10);Number.isNaN(u)?n||(n=l,i=0):u>i&&(n=l,i=u)}return n},x={favicons:null,bestFavicon:null,bestFaviconImage:null,value:v,options:p},y=window.matchMedia('screen and (min-resolution: 2dppx)'),E=()=>Math.ceil(window.devicePixelRatio)||1,B=()=>{I(x.value,x.options)},A=()=>16*E(),P=t=>{if(!t)return;for(const t of b())t.parentNode&&t.parentNode.removeChild(t);const n=document.createElement('link');n.id='badgin',n.type='image/x-icon',n.rel='icon favicon',n.href=t,document.getElementsByTagName('head')[0].appendChild(n)},F=(t,n,i)=>{const o=A(),l=document.createElement('canvas');l.width=o,l.height=o;const c=l.getContext('2d');c&&(t.width=o,t.height=o,c.drawImage(t,0,0,t.width,t.height),C(c,n,i),P(l.toDataURL()))},C=(t,n,i)=>{const o=E(),l=A();let c='';if(c=f(n)?0===n?'':n<100?String(n):'99+':i.indicator,!c)return;const s=i.size-2,u=i.size*o+"px Arial";t.font=u;const{width:v}=t.measureText(c);t.restore();const p=v+2*i.horizontalPadding,b=l-(s*o+2*i.verticalPadding)-i.verticalMargin,w=l-p-i.horizontalMargin,x=16*o-i.verticalMargin,y=16*o-i.horizontalMargin,B=i.radius;t.globalAlpha=1,t.fillStyle=i.backgroundColor,t.strokeStyle=i.backgroundColor,t.lineWidth=0,t.beginPath(),t.moveTo(w+B,b),t.quadraticCurveTo(w,b,w,b+B),t.lineTo(w,x-B),t.quadraticCurveTo(w,x,w+B,x),t.lineTo(y-B,x),t.quadraticCurveTo(y,x,y,x-B),t.lineTo(y,b+B),t.quadraticCurveTo(y,b,y-B,b),t.closePath(),t.fill(),t.save(),t.font=u,t.fillStyle=i.color,t.textAlign='center',t.textBaseline='hanging',t.fillText(c,w+p/2,b+i.verticalPadding+(h?1:0)),t.save()};function T(){return!!w()}function I(t,n){if(x.value=t,u(x.options,n||{}),!T())return!1;if(!x.bestFavicon){const t=w();if(t){const n=document.createElement('img');t.href.match(/^data/)||(n.crossOrigin='anonymous'),n.src=t.href,x.bestFavicon=t,x.bestFaviconImage=n}y.addEventListener('change',B)}return x.favicons||(x.favicons=b()),!!x.bestFaviconImage&&(x.bestFaviconImage.complete?(F(x.bestFaviconImage,x.value,x.options),!0):(x.bestFaviconImage.addEventListener('load',function(){F(this,x.value,x.options)}),!0))}function N(){if(T()&&(x.value=v,x.options=p,y.removeEventListener('change',B),x.favicons)){for(const t of b())t.parentNode&&t.parentNode.removeChild(t);for(const t of x.favicons)document.head.appendChild(t);x.favicons=null,x.bestFavicon=null,x.bestFaviconImage=null}}const O={title:null,value:0,options:{indicator:'!'}};function k(t,n,i){let o=t;o=f(n)?0===n?t:`(${n}) ${t}`:`(${i.indicator}) ${t}`;const l=document.querySelector('title');l&&(l.childNodes[0].nodeValue=o)}function M(t,n){return null===O.title&&(O.title=document.title,Object.defineProperty(document,'title',{get:()=>O.title,set:t=>{O.title=t,k(O.title,O.value,O.options)}})),O.value=t,u(O.options,n||{}),document.title=document.title,!0}function z(t,n={}){switch(n.method){case void 0:case'Badging':if(s(t)&&'Badging'===n.method)break;case'Favicon':if(I(t,n.favicon))break;default:M(t,n.title)}}function j(){c()&&(o()?window.ExperimentalBadge.clear():l()&&navigator.clearExperimentalAppBadge()),N(),O.value=0,document.title=document.title}},
|
|
14566
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};async function o(e,n){if(!u.default.setBadgeCountAsync)throw new t.UnavailabilityError('ExpoNotifications','setBadgeCountAsync');const o=n?.web;return await u.default.setBadgeCountAsync(e,o)}},
|
|
14567
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),l=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]);async function c(){if(!l.default.getAllScheduledNotificationsAsync)throw new t.UnavailabilityError('Notifications','getAllScheduledNotificationsAsync');return(await l.default.getAllScheduledNotificationsAsync()).map(e=>(0,o.mapNotificationRequest)(e))}},
|
|
14568
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={addListener:()=>{},removeListeners:()=>{}}},
|
|
14569
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["repeats"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.parseTrigger=h;var t=n(r(d[0])),o=r(d[1]),u=n(r(d[2])),c=r(d[3]),s=r(d[4]);async function l(e){if(!u.default.scheduleNotificationAsync)throw new o.UnavailabilityError('Notifications','scheduleNotificationAsync');return await u.default.scheduleNotificationAsync(e.identifier??o.uuid.v4(),e.content,h(e.trigger))}function h(e){if(null===e)return null;if(void 0===e)throw new TypeError('Encountered an `undefined` notification trigger. If you want to trigger the notification immediately, pass in an explicit `null` value.');if(!(0,s.hasValidTriggerObject)(e))throw new TypeError("The `trigger` object you provided is invalid. It needs to contain a `type` or `channelId` entry. Refer to the documentation to update your code: https://docs.expo.dev/versions/latest/sdk/notifications/#notificationtriggerinput");const n=y(e);if(n)return n;const t=p(e);if(t)return t;const o=b(e);if(o)return o;const u=w(e);if(u)return u;const c=T(e);if(c)return c;const l=I(e);if(l)return l;const h=E(e);return h||null}function p(n){if(null!==n&&'object'==typeof n&&'type'in n&&n.type===c.SchedulableTriggerInputTypes.CALENDAR){const{repeats:o}=n,u=(0,t.default)(n,e);return Object.assign({},u,{repeats:!!o,type:'calendar'})}}function y(e){if(e instanceof Date||'number'==typeof e)return console.warn(`You are using a deprecated parameter type (${e}) for the notification trigger. Use "{ type: 'date', date: someValue }" instead.`),{type:'date',timestamp:f(e)};if('object'==typeof e&&null!==e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.DATE&&'date'in e){const n={type:'date',timestamp:f(e.date)};return e.channelId&&(n.channelId=e.channelId),n}}function f(e){return e instanceof Date?e.getTime():e}function b(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.DAILY){j(e,['hour','minute']);const n={type:'daily',hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function w(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.WEEKLY){j(e,['weekday','hour','minute']);const n={type:'weekly',weekday:e.weekday??k,hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function T(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.MONTHLY){j(e,['day','hour','minute']);const n={type:'monthly',day:e.day??k,hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function I(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.YEARLY){j(e,['month','day','hour','minute']);const n={type:'yearly',month:e.month??k,day:e.day??k,hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function E(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.TIME_INTERVAL&&'seconds'in e&&'number'==typeof e.seconds){const n={type:'timeInterval',seconds:e.seconds,repeats:e.repeats??!1};return e.channelId&&(n.channelId=e.channelId),n}}const k=-9999;function j(e,n){const t=e;n.forEach(e=>{if(!(e in t))throw new TypeError(`The ${e} parameter needs to be present`);if('number'!=typeof t[e])throw new TypeError(`The ${e} parameter should be a number`);switch(e){case'month':{const{month:e}=t;if(e<0||e>11)throw new RangeError(`The month parameter needs to be between 0 and 11. Found: ${e}`);break}case'day':{const e=t.day,n=void 0!==t.month?t.month:(new Date).getMonth(),o=v(n);if(e<1||e>o)throw new RangeError(`The day parameter for month ${n} must be between 1 and ${o}. Found: ${e}`);break}case'weekday':{const{weekday:e}=t;if(e<1||e>7)throw new RangeError(`The weekday parameter needs to be between 1 and 7. Found: ${e}`);break}case'hour':{const{hour:e}=t;if(e<0||e>23)throw new RangeError(`The hour parameter needs to be between 0 and 23. Found: ${e}`);break}case'minute':{const{minute:e}=t;if(e<0||e>59)throw new RangeError(`The minute parameter needs to be between 0 and 59. Found: ${e}`);break}}})}function v(e=0,n){return new Date(n??2e3,e+1,0).getDate()}},
|
|
14570
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PermissionStatus",{enumerable:!0,get:function(){return u.PermissionStatus}}),Object.defineProperty(e,"SchedulableTriggerInputTypes",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"AndroidNotificationPriority",{enumerable:!0,get:function(){return n}});var t,n,u=r(d[0]);!(function(t){t.CALENDAR="calendar",t.DAILY="daily",t.WEEKLY="weekly",t.MONTHLY="monthly",t.YEARLY="yearly",t.DATE="date",t.TIME_INTERVAL="timeInterval"})(t||(t={})),(function(t){t.MIN="min",t.LOW="low",t.DEFAULT="default",t.HIGH="high",t.MAX="max"})(n||(n={}))},
|
|
14571
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.hasValidTriggerObject=function(n){return null===n||'object'==typeof n&&('type'in n||'channelId'in n)}},
|
|
14572
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=r(d[1]),c=(e=n)&&e.__esModule?e:{default:e};async function o(e){if(!c.default.cancelScheduledNotificationAsync)throw new t.UnavailabilityError('Notifications','cancelScheduledNotificationAsync');return await c.default.cancelScheduledNotificationAsync(e)}},
|
|
14573
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=r(d[1]),c=(e=n)&&e.__esModule?e:{default:e};async function l(){if(!c.default.cancelAllScheduledNotificationsAsync)throw new t.UnavailabilityError('Notifications','cancelAllScheduledNotificationsAsync');return await c.default.cancelAllScheduledNotificationsAsync()}},
|
|
14574
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e};async function c(){if(!o.default.getNotificationCategoriesAsync)throw new t.UnavailabilityError('Notifications','getNotificationCategoriesAsync');return await o.default.getNotificationCategoriesAsync()}},
|
|
14575
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=r(d[0]);var n={getNotificationCategoriesAsync:async()=>[],async setNotificationCategoryAsync(){throw new t.UnavailabilityError('Notifications','setNotificationCategoryAsync')},deleteNotificationCategoryAsync:async()=>!1,addListener(){},removeListeners(){}}},
|
|
14576
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t,e=r(d[0]),n=r(d[1]),o=(t=n)&&t.__esModule?t:{default:t};async function c(t,n,c){if(!o.default.setNotificationCategoryAsync)throw new e.UnavailabilityError('Notifications','setNotificationCategoryAsync');return await o.default.setNotificationCategoryAsync(t,n,c)}},
|
|
14577
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e};async function c(e){if(!o.default.deleteNotificationCategoryAsync)throw new t.UnavailabilityError('Notifications','deleteNotificationCategoryAsync');return await o.default.deleteNotificationCategoryAsync(e)}},
|
|
14578
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]);async function c(e){if(!u.default.getNextTriggerDateAsync)throw new t.UnavailabilityError('ExpoNotifications','getNextTriggerDateAsync');return await u.default.getNextTriggerDateAsync((0,o.parseTrigger)(e))}},
|
|
14579
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"determineNextResponse",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(){const[o,u]=(0,t.useState)(void 0);return(0,t.useLayoutEffect)(()=>{const t=(0,n.getLastNotificationResponse)();u(n=>s(n,t));const o=(0,n.addNotificationResponseReceivedListener)(t=>u(n=>s(n,t))),c=(0,n.addNotificationResponseClearedListener)(()=>{u(null)});return()=>{o.remove(),c.remove()}},[]),o}const s=(t,n)=>n?t?t.notification.request.identifier!==n.notification.request.identifier?n:t:n:null},
|
|
14580
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DEFAULT_ACTION_IDENTIFIER",{enumerable:!0,get:function(){return l}}),_e.addNotificationReceivedListener=function(e){return c.addListener(f,t=>{const n=(0,s.mapNotification)(t);e(n)})},_e.addNotificationsDroppedListener=function(e){return c.addListener(u,e)},_e.addNotificationResponseReceivedListener=function(e){return c.addListener(p,t=>{const n=(0,s.mapNotificationResponse)(t);e(n)})},_e.getLastNotificationResponseAsync=async function(){return L()},_e.getLastNotificationResponse=L,_e.clearLastNotificationResponseAsync=async function(){R()},_e.clearLastNotificationResponse=R,_e.addNotificationResponseClearedListener=function(e){return c.addListener(N,e)};var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e},s=r(d[2]);const c=new t.LegacyEventEmitter(o.default),f='onDidReceiveNotification',u='onNotificationsDeleted',p='onDidReceiveNotificationResponse',N='onDidClearNotificationResponse',l='expo.modules.notifications.actions.DEFAULT';function L(){if(!o.default.getLastNotificationResponse)throw new t.UnavailabilityError('ExpoNotifications','getLastNotificationResponse');const e=o.default.getLastNotificationResponse();return e?(0,s.mapNotificationResponse)(e):e}function R(){if(!o.default.clearLastNotificationResponse)throw new t.UnavailabilityError('ExpoNotifications','clearLastNotificationResponse');o.default.clearLastNotificationResponse(),c.emit(N,[])}},
|
|
14581
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),r(d[0]);let t=!1;var n={addListener:()=>{t||(console.warn("[expo-notifications] Emitting notifications is not yet fully supported on web. Adding a listener will have no effect."),t=!0)},removeListeners:()=>{}}},
|
|
14582
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e};async function u(e){if(!s.default.registerTaskAsync)throw new t.UnavailabilityError('Notifications','registerTaskAsync');return await s.default.registerTaskAsync(e)}},
|
|
14583
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={registerTaskAsync:async n=>null,unregisterTaskAsync:async n=>null}},
|
|
14584
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};async function s(e){if(!u.default.unregisterTaskAsync)throw new t.UnavailabilityError('Notifications','unregisterTaskAsync');return await u.default.unregisterTaskAsync(e)}},
|
|
14585
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NotificationTimeoutError",{enumerable:!0,get:function(){return c}}),_e.setNotificationHandler=function(t){h&&(h.remove(),h=null);N&&(N.remove(),N=null);t&&(h=s.addListener(f,async({id:o,notification:c})=>{if(e.default.handleNotificationAsync)try{const n=(0,l.mapNotification)(c),s=await t.handleNotification(n);s.shouldShowAlert&&console.warn('[expo-notifications]: `shouldShowAlert` is deprecated. Specify `shouldShowBanner` and / or `shouldShowList` instead.'),await e.default.handleNotificationAsync(o,s),t.handleSuccess?.(o)}catch(n){t.handleError?.(o,n)}else t.handleError?.(o,new n.UnavailabilityError('Notifications','handleNotificationAsync'))}),N=s.addListener(u,({id:n,notification:o})=>t.handleError?.(n,new c(n,(0,l.mapNotification)(o)))))};var t,n=r(d[0]),o=r(d[1]),e=(t=o)&&t.__esModule?t:{default:t},l=r(d[2]);class c extends n.CodedError{constructor(t,n){super('ERR_NOTIFICATION_TIMEOUT',`Notification handling timed out for ID ${t}.`),this.info={id:t,notification:n}}}const s=new n.LegacyEventEmitter(e.default),f='onHandleNotification',u='onHandleNotificationTimeout';let h=null,N=null},
|
|
14586
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}}),r(d[0]);let n=!1;var t={addListener:()=>{n||(console.warn("[expo-notifications] Notifications handling is not yet fully supported on web. Handling notifications will have no effect."),n=!0)},removeListeners:()=>{}}},
|
|
14587
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getPermissionsAsync=async function(){if(!t.default.getPermissionsAsync)throw new e.UnavailabilityError('Notifications','getPermissionsAsync');return await t.default.getPermissionsAsync()},_e.requestPermissionsAsync=async function(s){if(!t.default.requestPermissionsAsync)throw new e.UnavailabilityError('Notifications','requestPermissionsAsync');const n=(s??{ios:{allowAlert:!0,allowBadge:!0,allowSound:!0}}).web;return await t.default.requestPermissionsAsync(n)};var s,e=r(d[0]),n=r(d[1]),t=(s=n)&&s.__esModule?s:{default:s}},
|
|
14588
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var n=r(d[0]);function s(s){switch(s){case'granted':return{status:n.PermissionStatus.GRANTED,expires:'never',canAskAgain:!1,granted:!0};case'denied':return{status:n.PermissionStatus.DENIED,expires:'never',canAskAgain:!1,granted:!1};default:return{status:n.PermissionStatus.UNDETERMINED,expires:'never',canAskAgain:!0,granted:!1}}}async function t({shouldAsk:t}){if(!n.Platform.isDOMAvailable)return s('denied');const{Notification:o={}}=window;if(void 0!==o.requestPermission){let n=o.permission;return t&&(n=await new Promise((n,s)=>{let t=!1;function u(s){t||(t=!0,n(s))}o.requestPermission(u)?.then(u)?.catch(s)})),s(n)}if('undefined'!=typeof navigator&&navigator?.permissions?.query){return s((await navigator.permissions.query({name:'notifications'})).state)}return s('denied')}var o={addListener:()=>{},removeListeners:()=>{},getPermissionsAsync:async()=>t({shouldAsk:!1}),requestPermissionsAsync:async n=>t({shouldAsk:!0})}},
|
|
14589
|
-
__d(function(g,r,i,a,m,e,d){},
|
|
14590
|
-
__d(function(g,r,i,a,m,e,d){"use strict";var I,N,O,A;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AndroidNotificationVisibility",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"AndroidAudioContentType",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"AndroidImportance",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"AndroidAudioUsage",{enumerable:!0,get:function(){return A}}),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.PUBLIC=1]="PUBLIC",I[I.PRIVATE=2]="PRIVATE",I[I.SECRET=3]="SECRET"})(I||(I={})),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.SPEECH=1]="SPEECH",I[I.MUSIC=2]="MUSIC",I[I.MOVIE=3]="MOVIE",I[I.SONIFICATION=4]="SONIFICATION"})(N||(N={})),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.UNSPECIFIED=1]="UNSPECIFIED",I[I.NONE=2]="NONE",I[I.MIN=3]="MIN",I[I.LOW=4]="LOW",I[I.DEFAULT=5]="DEFAULT",I[I.HIGH=6]="HIGH",I[I.MAX=7]="MAX"})(O||(O={})),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.MEDIA=1]="MEDIA",I[I.VOICE_COMMUNICATION=2]="VOICE_COMMUNICATION",I[I.VOICE_COMMUNICATION_SIGNALLING=3]="VOICE_COMMUNICATION_SIGNALLING",I[I.ALARM=4]="ALARM",I[I.NOTIFICATION=5]="NOTIFICATION",I[I.NOTIFICATION_RINGTONE=6]="NOTIFICATION_RINGTONE",I[I.NOTIFICATION_COMMUNICATION_REQUEST=7]="NOTIFICATION_COMMUNICATION_REQUEST",I[I.NOTIFICATION_COMMUNICATION_INSTANT=8]="NOTIFICATION_COMMUNICATION_INSTANT",I[I.NOTIFICATION_COMMUNICATION_DELAYED=9]="NOTIFICATION_COMMUNICATION_DELAYED",I[I.NOTIFICATION_EVENT=10]="NOTIFICATION_EVENT",I[I.ASSISTANCE_ACCESSIBILITY=11]="ASSISTANCE_ACCESSIBILITY",I[I.ASSISTANCE_NAVIGATION_GUIDANCE=12]="ASSISTANCE_NAVIGATION_GUIDANCE",I[I.ASSISTANCE_SONIFICATION=13]="ASSISTANCE_SONIFICATION",I[I.GAME=14]="GAME"})(A||(A={}))},
|
|
14591
|
-
__d(function(g,r,i,a,m,e,d){"use strict";var E,t,n;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IosAlertStyle",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"IosAllowsPreviews",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"IosAuthorizationStatus",{enumerable:!0,get:function(){return n}}),(function(E){E[E.NONE=0]="NONE",E[E.BANNER=1]="BANNER",E[E.ALERT=2]="ALERT"})(E||(E={})),(function(E){E[E.NEVER=0]="NEVER",E[E.ALWAYS=1]="ALWAYS",E[E.WHEN_AUTHENTICATED=2]="WHEN_AUTHENTICATED"})(t||(t={})),(function(E){E[E.NOT_DETERMINED=0]="NOT_DETERMINED",E[E.DENIED=1]="DENIED",E[E.AUTHORIZED=2]="AUTHORIZED",E[E.PROVISIONAL=3]="PROVISIONAL",E[E.EPHEMERAL=4]="EPHEMERAL"})(n||(n={}))},
|
|
14592
|
-
__d(function(g,r,i,a,m,e,d){},
|
|
14593
|
-
__d(function(g,r,i,a,m,_e,_d){"use strict";
|
|
14594
|
-
__d(function(g,r,i,a,m,
|
|
14595
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
14596
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"
|
|
14597
|
-
__d(function(g,r,i,
|
|
14598
|
-
__d(function(g,r,i,
|
|
14599
|
-
__d(function(g,r,i,a,m,e,d){},
|
|
14600
|
-
__d(function(g,r,i,a,m,
|
|
14601
|
-
__d(function(g,r,i,a,m,e,d){},
|
|
14602
|
-
__d(function(g,r,i,a,m,
|
|
14603
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
14604
|
-
__d(function(g,r,i,a,m,
|
|
14605
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e
|
|
14606
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),
|
|
14607
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.
|
|
14608
|
-
__d(function(g,r,i,a,m,
|
|
14609
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"
|
|
14610
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),
|
|
14611
|
-
__d(function(g,r,i,a,
|
|
14612
|
-
__d(function(g,r,i,a,m,
|
|
14613
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";var t=r(d[0]);const s=["children"],n=["children"];var i,o=Object.create,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,y=(t,s,n,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let o of p(s))h.call(t,o)||o===n||c(t,o,{get:()=>s[o],enumerable:!(i=l(s,o))||i.enumerable});return t},b=(t,s,n)=>(n=null!=t?o(u(t)):{},y(!s&&t&&t.__esModule?n:c(n,"default",{value:t,enumerable:!0}),t)),f={};((t,s)=>{for(var n in s)c(t,n,{get:s[n],enumerable:!0})})(f,{Helmet:()=>Oe,HelmetData:()=>ce,HelmetProvider:()=>pe}),m.exports=(i=f,y(c({},"__esModule",{value:!0}),i));var T=b(r(d[1])),O=b(r(d[2])),A=b(r(d[3])),j=b(r(d[1])),C=b(r(d[1])),w=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(w||{}),x={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},$={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},k=Object.values(w),S={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M=Object.entries(S).reduce((t,[s,n])=>(t[n]=s,t),{}),E="data-rh",P="defaultTitle",H="defer",D="encodeSpecialCharacters",L="onChangeClientState",I="titleTemplate",U="prioritizeSeoTags",N=(t,s)=>{for(let n=t.length-1;n>=0;n-=1){const i=t[n];if(Object.prototype.hasOwnProperty.call(i,s))return i[s]}return null},q=t=>{let s=N(t,"title");const n=N(t,I);if(Array.isArray(s)&&(s=s.join("")),n&&s)return n.replace(/%s/g,()=>s);const i=N(t,P);return s||i||void 0},_=t=>N(t,L)||(()=>{}),R=(t,s)=>s.filter(s=>void 0!==s[t]).map(s=>s[t]).reduce((t,s)=>Object.assign({},t,s),{}),z=(t,s)=>s.filter(t=>void 0!==t.base).map(t=>t.base).reverse().reduce((s,n)=>{if(!s.length){const i=Object.keys(n);for(let o=0;o<i.length;o+=1){const c=i[o].toLowerCase();if(-1!==t.indexOf(c)&&n[c])return s.concat(n)}}return s},[]),B=(t,s,n)=>{const i={};return n.filter(s=>{return!!Array.isArray(s[t])||(void 0!==s[t]&&(n=`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`,console&&"function"==typeof console.warn&&console.warn(n)),!1);var n}).map(s=>s[t]).reverse().reduce((t,n)=>{const o={};n.filter(t=>{let n;const c=Object.keys(t);for(let i=0;i<c.length;i+=1){const o=c[i],l=o.toLowerCase();-1===s.indexOf(l)||"rel"===n&&"canonical"===t[n].toLowerCase()||"rel"===l&&"stylesheet"===t[l].toLowerCase()||(n=l),-1===s.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!t[n])return!1;const l=t[n].toLowerCase();return i[n]||(i[n]={}),o[n]||(o[n]={}),!i[n][l]&&(o[n][l]=!0,!0)}).reverse().forEach(s=>t.push(s));const c=Object.keys(o);for(let t=0;t<c.length;t+=1){const s=c[t],n=Object.assign({},i[s],o[s]);i[s]=n}return t},[]).reverse()},F=(t,s)=>{if(Array.isArray(t)&&t.length)for(let n=0;n<t.length;n+=1){if(t[n][s])return!0}return!1},Y=t=>Array.isArray(t)?t.join(""):t,K=(t,s)=>{const n=Object.keys(t);for(let i=0;i<n.length;i+=1)if(s[n[i]]&&s[n[i]].includes(t[n[i]]))return!0;return!1},G=(t,s)=>Array.isArray(t)?t.reduce((t,n)=>(K(n,s)?t.priority.push(n):t.default.push(n),t),{priority:[],default:[]}):{default:t,priority:[]},W=(t,s)=>Object.assign({},t,{[s]:void 0}),J=["noscript","script","style"],Q=(t,s=!0)=>!1===s?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),V=t=>Object.keys(t).reduce((s,n)=>{const i=void 0!==t[n]?`${n}="${t[n]}"`:`${n}`;return s?`${s} ${i}`:i},""),X=(t,s,n,i)=>{const o=V(n),c=Y(s);return o?`<${t} ${E}="true" ${o}>${Q(c,i)}</${t}>`:`<${t} ${E}="true">${Q(c,i)}</${t}>`},Z=(t,s,n=!0)=>s.reduce((s,i)=>{const o=i,c=Object.keys(o).filter(t=>!("innerHTML"===t||"cssText"===t)).reduce((t,s)=>{const i=void 0===o[s]?s:`${s}="${Q(o[s],n)}"`;return t?`${t} ${i}`:i},""),l=o.innerHTML||o.cssText||"",p=-1===J.indexOf(t);return`${s}<${t} ${E}="true" ${c}${p?"/>":`>${l}</${t}>`}`},""),ee=(t,s={})=>Object.keys(t).reduce((s,n)=>(s[S[n]||n]=t[n],s),s),te=(t,s,n)=>{const i=ee(n,{key:s,[E]:!0});return[C.default.createElement("title",i,s)]},re=(t,s)=>s.map((s,n)=>{const i={key:n,[E]:!0};return Object.keys(s).forEach(t=>{const n=S[t]||t;if("innerHTML"===n||"cssText"===n){const t=s.innerHTML||s.cssText;i.dangerouslySetInnerHTML={__html:t}}else i[n]=s[t]}),C.default.createElement(t,i)}),se=(t,s,n=!0)=>{switch(t){case"title":return{toComponent:()=>te(0,s.title,s.titleAttributes),toString:()=>X(t,s.title,s.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ee(s),toString:()=>V(s)};default:return{toComponent:()=>re(t,s),toString:()=>Z(t,s,n)}}},ne=({metaTags:t,linkTags:s,scriptTags:n,encode:i})=>{const o=G(t,$),c=G(s,x),l=G(n,v);return{priorityMethods:{toComponent:()=>[...re("meta",o.priority),...re("link",c.priority),...re("script",l.priority)],toString:()=>`${se("meta",o.priority,i)} ${se("link",c.priority,i)} ${se("script",l.priority,i)}`},metaTags:o.default,linkTags:c.default,scriptTags:l.default}},ie=t=>{const{baseTag:s,bodyAttributes:n,encode:i=!0,htmlAttributes:o,noscriptTags:c,styleTags:l,title:p="",titleAttributes:u,prioritizeSeoTags:h}=t;let{linkTags:y,metaTags:b,scriptTags:f}=t,T={toComponent:()=>{},toString:()=>""};return h&&({priorityMethods:T,linkTags:y,metaTags:b,scriptTags:f}=ne(t)),{priority:T,base:se("base",s,i),bodyAttributes:se("bodyAttributes",n,i),htmlAttributes:se("htmlAttributes",o,i),link:se("link",y,i),meta:se("meta",b,i),noscript:se("noscript",c,i),script:se("script",f,i),style:se("style",l,i),title:se("title",{title:p,titleAttributes:u},i)}},oe=[],ae=!("undefined"==typeof window||!window.document||!window.document.createElement),ce=class{instances=[];canUseDOM=ae;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?oe:this.instances,add:t=>{(this.canUseDOM?oe:this.instances).push(t)},remove:t=>{const s=(this.canUseDOM?oe:this.instances).indexOf(t);(this.canUseDOM?oe:this.instances).splice(s,1)}}};constructor(t,s){this.context=t,this.canUseDOM=s||!1,s||(t.helmet=ie({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},le=j.default.createContext({}),pe=class t extends j.Component{static canUseDOM=ae;constructor(s){super(s),this.helmetData=new ce(this.props.context||{},t.canUseDOM)}render(){return j.default.createElement(le.Provider,{value:this.helmetData.value},this.props.children)}},ue=r(d[1]),de=b(r(d[4])),he=(t,s)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${t}[${E}]`),o=[].slice.call(i),c=[];let l;return s&&s.length&&s.forEach(s=>{const n=document.createElement(t);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))if("innerHTML"===t)n.innerHTML=s.innerHTML;else if("cssText"===t)n.styleSheet?n.styleSheet.cssText=s.cssText:n.appendChild(document.createTextNode(s.cssText));else{const i=t,o=void 0===s[i]?"":s[i];n.setAttribute(t,o)}n.setAttribute(E,"true"),o.some((t,s)=>(l=s,n.isEqualNode(t)))?o.splice(l,1):c.push(n)}),o.forEach(t=>t.parentNode?.removeChild(t)),c.forEach(t=>n.appendChild(t)),{oldTags:o,newTags:c}},me=(t,s)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const i=n.getAttribute(E),o=i?i.split(","):[],c=[...o],l=Object.keys(s);for(const t of l){const i=s[t]||"";n.getAttribute(t)!==i&&n.setAttribute(t,i),-1===o.indexOf(t)&&o.push(t);const l=c.indexOf(t);-1!==l&&c.splice(l,1)}for(let t=c.length-1;t>=0;t-=1)n.removeAttribute(c[t]);o.length===c.length?n.removeAttribute(E):n.getAttribute(E)!==l.join(",")&&n.setAttribute(E,l.join(","))},ge=(t,s)=>{void 0!==t&&document.title!==t&&(document.title=Y(t)),me("title",s)},ye=(t,s)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:o,linkTags:c,metaTags:l,noscriptTags:p,onChangeClientState:u,scriptTags:h,styleTags:y,title:b,titleAttributes:f}=t;me("body",i),me("html",o),ge(b,f);const T={baseTag:he("base",n),linkTags:he("link",c),metaTags:he("meta",l),noscriptTags:he("noscript",p),scriptTags:he("script",h),styleTags:he("style",y)},O={},A={};Object.keys(T).forEach(t=>{const{newTags:s,oldTags:n}=T[t];s.length&&(O[t]=s),n.length&&(A[t]=T[t].oldTags)}),s&&s(),u(t,O,A)},be=null,fe=t=>{be&&cancelAnimationFrame(be),t.defer?be=requestAnimationFrame(()=>{ye(t,()=>{be=null})}):(ye(t),be=null)},Te=class extends ue.Component{rendered=!1;shouldComponentUpdate(t){return!(0,de.default)(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:s}=this.props.context;let n=null;const i=(o=t.get().map(t=>{const s=Object.assign({},t.props);return delete s.context,s}),{baseTag:z(["href"],o),bodyAttributes:R("bodyAttributes",o),defer:N(o,H),encode:N(o,D),htmlAttributes:R("htmlAttributes",o),linkTags:B("link",["rel","href"],o),metaTags:B("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:B("noscript",["innerHTML"],o),onChangeClientState:_(o),scriptTags:B("script",["src","innerHTML"],o),styleTags:B("style",["cssText"],o),title:q(o),titleAttributes:R("titleAttributes",o),prioritizeSeoTags:F(o,U)});var o;pe.canUseDOM?fe(i):ie&&(n=ie(i)),s(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Oe=class extends T.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!(0,O.default)(W(this.props,"helmetData"),W(t,"helmetData"))}mapNestedChildrenToProps(t,s){if(!s)return null;switch(t.type){case"script":case"noscript":return{innerHTML:s};case"style":return{cssText:s};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,s,n,i){return Object.assign({},s,{[t.type]:[...s[t.type]||[],Object.assign({},n,this.mapNestedChildrenToProps(t,i))]})}mapObjectTypeChildren(t,s,n,i){switch(t.type){case"title":return Object.assign({},s,{[t.type]:i,titleAttributes:Object.assign({},n)});case"body":return Object.assign({},s,{bodyAttributes:Object.assign({},n)});case"html":return Object.assign({},s,{htmlAttributes:Object.assign({},n)});default:return Object.assign({},s,{[t.type]:Object.assign({},n)})}}mapArrayTypeChildrenToProps(t,s){let n=Object.assign({},s);return Object.keys(t).forEach(s=>{n=Object.assign({},n,{[s]:t[s]})}),n}warnOnInvalidChildren(t,s){return(0,A.default)(k.some(s=>t.type===s),"function"==typeof t.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${k.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),(0,A.default)(!s||"string"==typeof s||Array.isArray(s)&&!s.some(t=>"string"!=typeof t),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,i){let o={};return T.default.Children.forEach(n,n=>{if(!n||!n.props)return;const c=n.props,{children:l}=c,p=t(c,s),u=Object.keys(p).reduce((t,s)=>(t[M[s]||s]=p[s],t),{});let{type:h}=n;switch("symbol"==typeof h?h=h.toString():this.warnOnInvalidChildren(n,l),h){case"Symbol(react.fragment)":i=this.mapChildrenToProps(l,i);break;case"link":case"meta":case"noscript":case"script":case"style":o=this.flattenArrayTypeChildren(n,o,u,l);break;default:i=this.mapObjectTypeChildren(n,i,u,l)}}),this.mapArrayTypeChildrenToProps(o,i)}render(){const s=this.props,{children:i}=s,o=t(s,n);let c=Object.assign({},o),{helmetData:l}=o;if(i&&(c=this.mapChildrenToProps(i,c)),l&&!(l instanceof ce)){l=new ce(l.context,!0),delete c.helmetData}return l?T.default.createElement(Te,Object.assign({},c,{context:l.value})):T.default.createElement(le.Consumer,null,t=>T.default.createElement(Te,Object.assign({},c,{context:t})))}}},2778,[283,8,2779,588,2780]);
|
|
14614
|
-
__d(function(g,r,
|
|
14615
|
-
__d(function(g,r,i,a,m,e,d){
|
|
14616
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2781,[]);
|
|
14617
|
-
__d(function(g,r,_i,
|
|
14547
|
+
*/function T(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,l=Math.min(r,n);i<l;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function q(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&0===T(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function F(e,t){return I(e)?I(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):z(e)?z(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):k(e)?k(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):x(e)?x(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):M(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function _(e,t,r,n){if(e===t)return 0!==e||(!r||c(e,t));if(r){if('object'!==u(e))return'number'==typeof e&&y(e)&&y(t);if('object'!==u(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||'object'!==u(e))return(null===t||'object'!==u(t))&&e==t;if(null===t||'object'!==u(t))return!1}var i,l,f,a,s=h(e);if(s!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var b=R(e),p=R(t);return b.length===p.length&&$(e,t,r,n,1,b)}if('[object Object]'===s&&(!A(e)&&A(t)||!N(e)&&N(t)))return!1;if(w(e)){if(!w(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(E(e)){if(!E(t)||(f=e,a=t,!(o?f.source===a.source&&f.flags===a.flags:RegExp.prototype.toString.call(f)===RegExp.prototype.toString.call(a))))return!1}else if(B(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(S(e)){if(r||!P(e)&&!D(e)){if(!C(e,t))return!1}else if(!q(e,t))return!1;var v=R(e),O=R(t);return v.length===O.length&&$(e,t,r,n,0,v)}if(N(e))return!(!N(t)||e.size!==t.size)&&$(e,t,r,n,2);if(A(e))return!(!A(t)||e.size!==t.size)&&$(e,t,r,n,3);if(j(e)){if(l=t,(i=e).byteLength!==l.byteLength||0!==T(new Uint8Array(i),new Uint8Array(l)))return!1}else if(L(e)&&!F(e,t))return!1}return $(e,t,r,n,0)}function V(e,t){return t.filter(function(t){return v(e,t)})}function $(e,t,r,n,i,l){if(5===arguments.length){l=Object.keys(e);var u=Object.keys(t);if(l.length!==u.length)return!1}for(var o=0;o<l.length;o++)if(!p(t,l[o]))return!1;if(r&&5===arguments.length){var f=s(e);if(0!==f.length){var a=0;for(o=0;o<f.length;o++){var c=f[o];if(v(e,c)){if(!v(t,c))return!1;l.push(c),a++}else if(v(t,c))return!1}var y=s(t);if(f.length!==y.length&&V(t,y).length!==a)return!1}else{var b=s(t);if(0!==b.length&&0!==V(t,b).length)return!1}}if(0===l.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var h=n.val1.get(e);if(void 0!==h){var O=n.val2.get(t);if(void 0!==O)return h===O}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var j=Y(e,t,r,l,n,i);return n.val1.delete(e),n.val2.delete(t),j}function G(e,t,r,n){for(var i=f(e),l=0;l<i.length;l++){var u=i[l];if(_(t,u,r,n))return e.delete(u),!0}return!1}function H(e){switch(u(e)){case'undefined':return null;case'object':return;case'symbol':return!1;case'string':e=+e;case'number':if(y(e))return!1}return!0}function J(e,t,r){var n=H(r);return null!=n?n:t.has(n)&&!e.has(n)}function K(e,t,r,n,i){var l=H(r);if(null!=l)return l;var u=t.get(l);return!(void 0===u&&!t.has(l)||!_(n,u,!1,i))&&(!e.has(l)&&_(n,u,!1,i))}function Q(e,t,r,n){for(var i=null,l=f(e),o=0;o<l.length;o++){var a=l[o];if('object'===u(a)&&null!==a)null===i&&(i=new Set),i.add(a);else if(!t.has(a)){if(r)return!1;if(!J(e,t,a))return!1;null===i&&(i=new Set),i.add(a)}}if(null!==i){for(var c=f(t),s=0;s<c.length;s++){var y=c[s];if('object'===u(y)&&null!==y){if(!G(i,y,r,n))return!1}else if(!r&&!e.has(y)&&!G(i,y,r,n))return!1}return 0===i.size}return!0}function W(e,t,r,n,i,l){for(var u=f(e),o=0;o<u.length;o++){var a=u[o];if(_(r,a,i,l)&&_(n,t.get(a),i,l))return e.delete(a),!0}return!1}function X(t,r,n,i){for(var l=null,o=a(t),f=0;f<o.length;f++){var c=e(o[f],2),s=c[0],y=c[1];if('object'===u(s)&&null!==s)null===l&&(l=new Set),l.add(s);else{var b=r.get(s);if(void 0===b&&!r.has(s)||!_(y,b,n,i)){if(n)return!1;if(!K(t,r,s,y,i))return!1;null===l&&(l=new Set),l.add(s)}}}if(null!==l){for(var p=a(r),v=0;v<p.length;v++){var h=e(p[v],2),O=h[0],j=h[1];if('object'===u(O)&&null!==O){if(!W(l,t,O,j,n,i))return!1}else if(!(n||t.has(O)&&_(t.get(O),j,!1,i)||W(l,t,O,j,!1,i)))return!1}return 0===l.size}return!0}function Y(e,t,r,n,i,l){var u=0;if(2===l){if(!Q(e,t,r,i))return!1}else if(3===l){if(!X(e,t,r,i))return!1}else if(1===l)for(;u<e.length;u++){if(!p(e,u)){if(p(t,u))return!1;for(var o=Object.keys(e);u<o.length;u++){var f=o[u];if(!p(t,f)||!_(e[f],t[f],r,i))return!1}return o.length===Object.keys(t).length}if(!p(t,u)||!_(e[u],t[u],r,i))return!1}for(u=0;u<n.length;u++){var a=n[u];if(!_(e[a],t[a],r,i))return!1}return!0}m.exports={isDeepEqual:function(e,t){return _(e,t,false)},isDeepStrictEqual:function(e,t){return _(e,t,true)}}},2712,[2713,2716,2647]);
|
|
14548
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=l(o(),Object);t(c,{getPolyfill:o,implementation:n,shim:s}),m.exports=c},2713,[2714,2695,2710,2709,2715]);
|
|
14549
|
+
__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),o='function'==typeof Symbol&&'symbol'==typeof Symbol('foo'),n=Object.prototype.toString,c=Array.prototype.concat,f=r(d[1]),i=r(d[2])(),p=function(t,o,c,p){if(o in t)if(!0===p){if(t[o]===c)return}else if('function'!=typeof(l=p)||'[object Function]'!==n.call(l)||!p())return;var l;i?f(t,o,c,!0):f(t,o,c)},l=function(n,f){var i=arguments.length>2?arguments[2]:{},l=t(f);o&&(l=c.call(l,Object.getOwnPropertySymbols(f)));for(var y=0;y<l.length;y+=1)p(n,l[y],f[l[y]],i[l[y]])};l.supportsDescriptors=!!i,m.exports=l},2714,[2706,2697,2698]);
|
|
14550
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]);m.exports=function(){var c=t();return n(Object,{is:c},{is:function(){return Object.is!==c}}),c}},2715,[2709,2714]);
|
|
14551
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),l=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=t(o(),Number);l(u,{getPolyfill:o,implementation:n,shim:s}),m.exports=u},2716,[2695,2714,2717,2718,2719]);
|
|
14552
|
+
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return t!=t}},2717,[]);
|
|
14553
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var N=r(d[0]);m.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN('a')?Number.isNaN:N}},2718,[2717]);
|
|
14554
|
+
__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]);m.exports=function(){var u=t();return n(Number,{isNaN:u},{isNaN:function(){return Number.isNaN!==u}}),u}},2719,[2714,2718]);
|
|
14555
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e},c=r(d[2]);async function f(){if(!o.default.getPresentedNotificationsAsync)throw new t.UnavailabilityError('Notifications','getPresentedNotificationsAsync');return(await o.default.getPresentedNotificationsAsync()).map(e=>(0,c.mapNotification)(e))}},2720,[554,2721,2722]);
|
|
14556
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={addListener:()=>{},removeListeners:()=>{}}},2721,[]);
|
|
14557
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"mapNotificationResponse",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"mapNotification",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"mapNotificationRequest",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"mapNotificationContent",{enumerable:!0,get:function(){return c}});const e=e=>Object.assign({},e,{notification:t(e.notification)}),t=e=>Object.assign({},e,{request:n(e.request)}),n=e=>Object.assign({},e,{content:c(e.content)});let o=!1;const c=e=>{try{const t=e.dataString;if('string'==typeof t){const n=Object.assign({},e);return n.data=JSON.parse(t),Object.defineProperty(n,'dataString',{get:()=>(o||(o=!0,console.warn('reading dataString is deprecated, use data instead')),t)}),n}}catch(e){console.error(`Error parsing notification: ${e}`)}return e}},2722,[]);
|
|
14558
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t,e=r(d[0]),n=r(d[1]),s=(t=n)&&t.__esModule?t:{default:t};async function o(t){if(!s.default.dismissNotificationAsync)throw new e.UnavailabilityError('Notifications','dismissNotificationAsync');return await s.default.dismissNotificationAsync(t)}},2723,[554,2721]);
|
|
14559
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t,e=r(d[0]),n=r(d[1]),s=(t=n)&&t.__esModule?t:{default:t};async function o(){if(!s.default.dismissAllNotificationsAsync)throw new e.UnavailabilityError('Notifications','dismissAllNotificationsAsync');return await s.default.dismissAllNotificationsAsync()}},2724,[554,2721]);
|
|
14560
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(){return console.debug('Notification channels feature is only supported on Android.'),[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2725,[]);
|
|
14561
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2726,[]);
|
|
14562
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n,t){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2727,[]);
|
|
14563
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){console.debug('Notification channels feature is only supported on Android.')}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2728,[]);
|
|
14564
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(){return console.debug('Notification channels feature is only supported on Android.'),[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2729,[]);
|
|
14565
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2730,[]);
|
|
14566
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n,t){return console.debug('Notification channels feature is only supported on Android.'),null}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2731,[]);
|
|
14567
|
+
__d(function(g,r,i,a,m,e,d){"use strict";async function n(n){console.debug('Notification channels feature is only supported on Android.')}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}})},2732,[]);
|
|
14568
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};async function o(){if(!u.default.getBadgeCountAsync)throw new t.UnavailabilityError('ExpoNotifications','getBadgeCountAsync');return await u.default.getBadgeCountAsync()}},2733,[554,2734]);
|
|
14569
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});let t=0;var n={addListener:()=>{},removeListeners:()=>{},getBadgeCountAsync:async()=>t,setBadgeCountAsync:async(n,s)=>{if('undefined'==typeof window)return!1;const u=r(d[0]);return n>0?u.set(n,s):u.clear(),t=n,!0}}},2734,[2735]);
|
|
14570
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"clear",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"set",{enumerable:!0,get:function(){return z}});let t=!1;const n=()=>{t||'ExperimentalBadge'in window||'setExperimentalAppBadge'in navigator||(console.warn('Badging API must be enabled. Please check here how you can enable it: https://developers.google.com/web/updates/2018/12/badging-api#use'),t=!0)},i={mediaQuery:null,value:0};function o(){return'ExperimentalBadge'in window&&!!window.ExperimentalBadge}function l(){return'setExperimentalAppBadge'in navigator&&!!navigator.setExperimentalAppBadge&&'clearExperimentalAppBadge'in navigator&&!!navigator.clearExperimentalAppBadge}function c(){return i.mediaQuery||(i.mediaQuery=window.matchMedia('(display-mode: standalone)'),i.mediaQuery.onchange=t=>{s(i.value)}),i.mediaQuery.matches&&(o()||l())}function s(t){return i.value=t,c()?o()?(window.ExperimentalBadge.set(t),!0):!!l()&&(navigator.setExperimentalAppBadge(t),!0):(n(),!1)}function u(t,n){for(const i of Object.keys(n))n[i]instanceof Object&&Object.assign(n[i],u(t[i],n[i]));return Object.assign(t||{},n),t}function f(t){return void 0!==t&&Number.isInteger(t)&&t>=0}const v=0,p={backgroundColor:'#424242',color:'#ffffff',indicator:'!',radius:3,size:7,horizontalMargin:0,verticalMargin:0,horizontalPadding:1,verticalPadding:1},h=navigator.userAgent.indexOf('Firefox')>-1,b=()=>{const t=document.head.getElementsByTagName('link'),n=[];for(let i=0;i<t.length;i++){const o=t[i],l=o.getAttribute('href'),c=o.getAttribute('rel');l&&(c&&-1!==c.split(' ').indexOf('icon')&&n.push(o))}return n},w=()=>{const t=b();let n=null,i=0;for(let o=0;o<t.length;o++){const l=t[o],c=l.getAttribute('href'),s=l.getAttribute('sizes');if(null==c?void 0:c.endsWith('.svg'))return l;if(!s){n||(n=l,i=0);continue}if('any'===s)return l;const u=parseInt(s.split('x')[0],10);Number.isNaN(u)?n||(n=l,i=0):u>i&&(n=l,i=u)}return n},x={favicons:null,bestFavicon:null,bestFaviconImage:null,value:v,options:p},y=window.matchMedia('screen and (min-resolution: 2dppx)'),E=()=>Math.ceil(window.devicePixelRatio)||1,B=()=>{I(x.value,x.options)},A=()=>16*E(),P=t=>{if(!t)return;for(const t of b())t.parentNode&&t.parentNode.removeChild(t);const n=document.createElement('link');n.id='badgin',n.type='image/x-icon',n.rel='icon favicon',n.href=t,document.getElementsByTagName('head')[0].appendChild(n)},F=(t,n,i)=>{const o=A(),l=document.createElement('canvas');l.width=o,l.height=o;const c=l.getContext('2d');c&&(t.width=o,t.height=o,c.drawImage(t,0,0,t.width,t.height),C(c,n,i),P(l.toDataURL()))},C=(t,n,i)=>{const o=E(),l=A();let c='';if(c=f(n)?0===n?'':n<100?String(n):'99+':i.indicator,!c)return;const s=i.size-2,u=i.size*o+"px Arial";t.font=u;const{width:v}=t.measureText(c);t.restore();const p=v+2*i.horizontalPadding,b=l-(s*o+2*i.verticalPadding)-i.verticalMargin,w=l-p-i.horizontalMargin,x=16*o-i.verticalMargin,y=16*o-i.horizontalMargin,B=i.radius;t.globalAlpha=1,t.fillStyle=i.backgroundColor,t.strokeStyle=i.backgroundColor,t.lineWidth=0,t.beginPath(),t.moveTo(w+B,b),t.quadraticCurveTo(w,b,w,b+B),t.lineTo(w,x-B),t.quadraticCurveTo(w,x,w+B,x),t.lineTo(y-B,x),t.quadraticCurveTo(y,x,y,x-B),t.lineTo(y,b+B),t.quadraticCurveTo(y,b,y-B,b),t.closePath(),t.fill(),t.save(),t.font=u,t.fillStyle=i.color,t.textAlign='center',t.textBaseline='hanging',t.fillText(c,w+p/2,b+i.verticalPadding+(h?1:0)),t.save()};function T(){return!!w()}function I(t,n){if(x.value=t,u(x.options,n||{}),!T())return!1;if(!x.bestFavicon){const t=w();if(t){const n=document.createElement('img');t.href.match(/^data/)||(n.crossOrigin='anonymous'),n.src=t.href,x.bestFavicon=t,x.bestFaviconImage=n}y.addEventListener('change',B)}return x.favicons||(x.favicons=b()),!!x.bestFaviconImage&&(x.bestFaviconImage.complete?(F(x.bestFaviconImage,x.value,x.options),!0):(x.bestFaviconImage.addEventListener('load',function(){F(this,x.value,x.options)}),!0))}function N(){if(T()&&(x.value=v,x.options=p,y.removeEventListener('change',B),x.favicons)){for(const t of b())t.parentNode&&t.parentNode.removeChild(t);for(const t of x.favicons)document.head.appendChild(t);x.favicons=null,x.bestFavicon=null,x.bestFaviconImage=null}}const O={title:null,value:0,options:{indicator:'!'}};function k(t,n,i){let o=t;o=f(n)?0===n?t:`(${n}) ${t}`:`(${i.indicator}) ${t}`;const l=document.querySelector('title');l&&(l.childNodes[0].nodeValue=o)}function M(t,n){return null===O.title&&(O.title=document.title,Object.defineProperty(document,'title',{get:()=>O.title,set:t=>{O.title=t,k(O.title,O.value,O.options)}})),O.value=t,u(O.options,n||{}),document.title=document.title,!0}function z(t,n={}){switch(n.method){case void 0:case'Badging':if(s(t)&&'Badging'===n.method)break;case'Favicon':if(I(t,n.favicon))break;default:M(t,n.title)}}function j(){c()&&(o()?window.ExperimentalBadge.clear():l()&&navigator.clearExperimentalAppBadge()),N(),O.value=0,document.title=document.title}},2735,[]);
|
|
14571
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};async function o(e,n){if(!u.default.setBadgeCountAsync)throw new t.UnavailabilityError('ExpoNotifications','setBadgeCountAsync');const o=n?.web;return await u.default.setBadgeCountAsync(e,o)}},2736,[554,2734]);
|
|
14572
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),l=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]);async function c(){if(!l.default.getAllScheduledNotificationsAsync)throw new t.UnavailabilityError('Notifications','getAllScheduledNotificationsAsync');return(await l.default.getAllScheduledNotificationsAsync()).map(e=>(0,o.mapNotificationRequest)(e))}},2737,[554,2738,2722]);
|
|
14573
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={addListener:()=>{},removeListeners:()=>{}}},2738,[]);
|
|
14574
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["repeats"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.parseTrigger=h;var t=n(r(d[0])),o=r(d[1]),u=n(r(d[2])),c=r(d[3]),s=r(d[4]);async function l(e){if(!u.default.scheduleNotificationAsync)throw new o.UnavailabilityError('Notifications','scheduleNotificationAsync');return await u.default.scheduleNotificationAsync(e.identifier??o.uuid.v4(),e.content,h(e.trigger))}function h(e){if(null===e)return null;if(void 0===e)throw new TypeError('Encountered an `undefined` notification trigger. If you want to trigger the notification immediately, pass in an explicit `null` value.');if(!(0,s.hasValidTriggerObject)(e))throw new TypeError("The `trigger` object you provided is invalid. It needs to contain a `type` or `channelId` entry. Refer to the documentation to update your code: https://docs.expo.dev/versions/latest/sdk/notifications/#notificationtriggerinput");const n=y(e);if(n)return n;const t=p(e);if(t)return t;const o=b(e);if(o)return o;const u=w(e);if(u)return u;const c=T(e);if(c)return c;const l=I(e);if(l)return l;const h=E(e);return h||null}function p(n){if(null!==n&&'object'==typeof n&&'type'in n&&n.type===c.SchedulableTriggerInputTypes.CALENDAR){const{repeats:o}=n,u=(0,t.default)(n,e);return Object.assign({},u,{repeats:!!o,type:'calendar'})}}function y(e){if(e instanceof Date||'number'==typeof e)return console.warn(`You are using a deprecated parameter type (${e}) for the notification trigger. Use "{ type: 'date', date: someValue }" instead.`),{type:'date',timestamp:f(e)};if('object'==typeof e&&null!==e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.DATE&&'date'in e){const n={type:'date',timestamp:f(e.date)};return e.channelId&&(n.channelId=e.channelId),n}}function f(e){return e instanceof Date?e.getTime():e}function b(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.DAILY){j(e,['hour','minute']);const n={type:'daily',hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function w(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.WEEKLY){j(e,['weekday','hour','minute']);const n={type:'weekly',weekday:e.weekday??k,hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function T(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.MONTHLY){j(e,['day','hour','minute']);const n={type:'monthly',day:e.day??k,hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function I(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.YEARLY){j(e,['month','day','hour','minute']);const n={type:'yearly',month:e.month??k,day:e.day??k,hour:e.hour??k,minute:e.minute??k};return e.channelId&&(n.channelId=e.channelId),n}}function E(e){if(null!==e&&'object'==typeof e&&'type'in e&&e.type===c.SchedulableTriggerInputTypes.TIME_INTERVAL&&'seconds'in e&&'number'==typeof e.seconds){const n={type:'timeInterval',seconds:e.seconds,repeats:e.repeats??!1};return e.channelId&&(n.channelId=e.channelId),n}}const k=-9999;function j(e,n){const t=e;n.forEach(e=>{if(!(e in t))throw new TypeError(`The ${e} parameter needs to be present`);if('number'!=typeof t[e])throw new TypeError(`The ${e} parameter should be a number`);switch(e){case'month':{const{month:e}=t;if(e<0||e>11)throw new RangeError(`The month parameter needs to be between 0 and 11. Found: ${e}`);break}case'day':{const e=t.day,n=void 0!==t.month?t.month:(new Date).getMonth(),o=v(n);if(e<1||e>o)throw new RangeError(`The day parameter for month ${n} must be between 1 and ${o}. Found: ${e}`);break}case'weekday':{const{weekday:e}=t;if(e<1||e>7)throw new RangeError(`The weekday parameter needs to be between 1 and 7. Found: ${e}`);break}case'hour':{const{hour:e}=t;if(e<0||e>23)throw new RangeError(`The hour parameter needs to be between 0 and 23. Found: ${e}`);break}case'minute':{const{minute:e}=t;if(e<0||e>59)throw new RangeError(`The minute parameter needs to be between 0 and 59. Found: ${e}`);break}}})}function v(e=0,n){return new Date(n??2e3,e+1,0).getDate()}},2739,[283,554,2738,2740,2741]);
|
|
14575
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PermissionStatus",{enumerable:!0,get:function(){return u.PermissionStatus}}),Object.defineProperty(e,"SchedulableTriggerInputTypes",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"AndroidNotificationPriority",{enumerable:!0,get:function(){return n}});var t,n,u=r(d[0]);!(function(t){t.CALENDAR="calendar",t.DAILY="daily",t.WEEKLY="weekly",t.MONTHLY="monthly",t.YEARLY="yearly",t.DATE="date",t.TIME_INTERVAL="timeInterval"})(t||(t={})),(function(t){t.MIN="min",t.LOW="low",t.DEFAULT="default",t.HIGH="high",t.MAX="max"})(n||(n={}))},2740,[554]);
|
|
14576
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.hasValidTriggerObject=function(n){return null===n||'object'==typeof n&&('type'in n||'channelId'in n)}},2741,[]);
|
|
14577
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=r(d[1]),c=(e=n)&&e.__esModule?e:{default:e};async function o(e){if(!c.default.cancelScheduledNotificationAsync)throw new t.UnavailabilityError('Notifications','cancelScheduledNotificationAsync');return await c.default.cancelScheduledNotificationAsync(e)}},2742,[554,2738]);
|
|
14578
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=r(d[1]),c=(e=n)&&e.__esModule?e:{default:e};async function l(){if(!c.default.cancelAllScheduledNotificationsAsync)throw new t.UnavailabilityError('Notifications','cancelAllScheduledNotificationsAsync');return await c.default.cancelAllScheduledNotificationsAsync()}},2743,[554,2738]);
|
|
14579
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e};async function c(){if(!o.default.getNotificationCategoriesAsync)throw new t.UnavailabilityError('Notifications','getNotificationCategoriesAsync');return await o.default.getNotificationCategoriesAsync()}},2744,[554,2745]);
|
|
14580
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=r(d[0]);var n={getNotificationCategoriesAsync:async()=>[],async setNotificationCategoryAsync(){throw new t.UnavailabilityError('Notifications','setNotificationCategoryAsync')},deleteNotificationCategoryAsync:async()=>!1,addListener(){},removeListeners(){}}},2745,[554]);
|
|
14581
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t,e=r(d[0]),n=r(d[1]),o=(t=n)&&t.__esModule?t:{default:t};async function c(t,n,c){if(!o.default.setNotificationCategoryAsync)throw new e.UnavailabilityError('Notifications','setNotificationCategoryAsync');return await o.default.setNotificationCategoryAsync(t,n,c)}},2746,[554,2745]);
|
|
14582
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e};async function c(e){if(!o.default.deleteNotificationCategoryAsync)throw new t.UnavailabilityError('Notifications','deleteNotificationCategoryAsync');return await o.default.deleteNotificationCategoryAsync(e)}},2747,[554,2745]);
|
|
14583
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]);async function c(e){if(!u.default.getNextTriggerDateAsync)throw new t.UnavailabilityError('ExpoNotifications','getNextTriggerDateAsync');return await u.default.getNextTriggerDateAsync((0,o.parseTrigger)(e))}},2748,[554,2738,2739]);
|
|
14584
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"determineNextResponse",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(){const[o,u]=(0,t.useState)(void 0);return(0,t.useLayoutEffect)(()=>{const t=(0,n.getLastNotificationResponse)();u(n=>s(n,t));const o=(0,n.addNotificationResponseReceivedListener)(t=>u(n=>s(n,t))),c=(0,n.addNotificationResponseClearedListener)(()=>{u(null)});return()=>{o.remove(),c.remove()}},[]),o}const s=(t,n)=>n?t?t.notification.request.identifier!==n.notification.request.identifier?n:t:n:null},2749,[8,2750]);
|
|
14585
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DEFAULT_ACTION_IDENTIFIER",{enumerable:!0,get:function(){return l}}),_e.addNotificationReceivedListener=function(e){return c.addListener(f,t=>{const n=(0,s.mapNotification)(t);e(n)})},_e.addNotificationsDroppedListener=function(e){return c.addListener(u,e)},_e.addNotificationResponseReceivedListener=function(e){return c.addListener(p,t=>{const n=(0,s.mapNotificationResponse)(t);e(n)})},_e.getLastNotificationResponseAsync=async function(){return L()},_e.getLastNotificationResponse=L,_e.clearLastNotificationResponseAsync=async function(){R()},_e.clearLastNotificationResponse=R,_e.addNotificationResponseClearedListener=function(e){return c.addListener(N,e)};var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e},s=r(d[2]);const c=new t.LegacyEventEmitter(o.default),f='onDidReceiveNotification',u='onNotificationsDeleted',p='onDidReceiveNotificationResponse',N='onDidClearNotificationResponse',l='expo.modules.notifications.actions.DEFAULT';function L(){if(!o.default.getLastNotificationResponse)throw new t.UnavailabilityError('ExpoNotifications','getLastNotificationResponse');const e=o.default.getLastNotificationResponse();return e?(0,s.mapNotificationResponse)(e):e}function R(){if(!o.default.clearLastNotificationResponse)throw new t.UnavailabilityError('ExpoNotifications','clearLastNotificationResponse');o.default.clearLastNotificationResponse(),c.emit(N,[])}},2750,[554,2751,2722]);
|
|
14586
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),r(d[0]);let t=!1;var n={addListener:()=>{t||(console.warn("[expo-notifications] Emitting notifications is not yet fully supported on web. Adding a listener will have no effect."),t=!0)},removeListeners:()=>{}}},2751,[554]);
|
|
14587
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e};async function u(e){if(!s.default.registerTaskAsync)throw new t.UnavailabilityError('Notifications','registerTaskAsync');return await s.default.registerTaskAsync(e)}},2752,[554,2753]);
|
|
14588
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={registerTaskAsync:async n=>null,unregisterTaskAsync:async n=>null}},2753,[]);
|
|
14589
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=r(d[1]),u=(e=n)&&e.__esModule?e:{default:e};async function s(e){if(!u.default.unregisterTaskAsync)throw new t.UnavailabilityError('Notifications','unregisterTaskAsync');return await u.default.unregisterTaskAsync(e)}},2754,[554,2753]);
|
|
14590
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NotificationTimeoutError",{enumerable:!0,get:function(){return c}}),_e.setNotificationHandler=function(t){h&&(h.remove(),h=null);N&&(N.remove(),N=null);t&&(h=s.addListener(f,async({id:o,notification:c})=>{if(e.default.handleNotificationAsync)try{const n=(0,l.mapNotification)(c),s=await t.handleNotification(n);s.shouldShowAlert&&console.warn('[expo-notifications]: `shouldShowAlert` is deprecated. Specify `shouldShowBanner` and / or `shouldShowList` instead.'),await e.default.handleNotificationAsync(o,s),t.handleSuccess?.(o)}catch(n){t.handleError?.(o,n)}else t.handleError?.(o,new n.UnavailabilityError('Notifications','handleNotificationAsync'))}),N=s.addListener(u,({id:n,notification:o})=>t.handleError?.(n,new c(n,(0,l.mapNotification)(o)))))};var t,n=r(d[0]),o=r(d[1]),e=(t=o)&&t.__esModule?t:{default:t},l=r(d[2]);class c extends n.CodedError{constructor(t,n){super('ERR_NOTIFICATION_TIMEOUT',`Notification handling timed out for ID ${t}.`),this.info={id:t,notification:n}}}const s=new n.LegacyEventEmitter(e.default),f='onHandleNotification',u='onHandleNotificationTimeout';let h=null,N=null},2755,[554,2756,2722]);
|
|
14591
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}}),r(d[0]);let n=!1;var t={addListener:()=>{n||(console.warn("[expo-notifications] Notifications handling is not yet fully supported on web. Handling notifications will have no effect."),n=!0)},removeListeners:()=>{}}},2756,[554]);
|
|
14592
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getPermissionsAsync=async function(){if(!t.default.getPermissionsAsync)throw new e.UnavailabilityError('Notifications','getPermissionsAsync');return await t.default.getPermissionsAsync()},_e.requestPermissionsAsync=async function(s){if(!t.default.requestPermissionsAsync)throw new e.UnavailabilityError('Notifications','requestPermissionsAsync');const n=(s??{ios:{allowAlert:!0,allowBadge:!0,allowSound:!0}}).web;return await t.default.requestPermissionsAsync(n)};var s,e=r(d[0]),n=r(d[1]),t=(s=n)&&s.__esModule?s:{default:s}},2757,[554,2758]);
|
|
14593
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var n=r(d[0]);function s(s){switch(s){case'granted':return{status:n.PermissionStatus.GRANTED,expires:'never',canAskAgain:!1,granted:!0};case'denied':return{status:n.PermissionStatus.DENIED,expires:'never',canAskAgain:!1,granted:!1};default:return{status:n.PermissionStatus.UNDETERMINED,expires:'never',canAskAgain:!0,granted:!1}}}async function t({shouldAsk:t}){if(!n.Platform.isDOMAvailable)return s('denied');const{Notification:o={}}=window;if(void 0!==o.requestPermission){let n=o.permission;return t&&(n=await new Promise((n,s)=>{let t=!1;function u(s){t||(t=!0,n(s))}o.requestPermission(u)?.then(u)?.catch(s)})),s(n)}if('undefined'!=typeof navigator&&navigator?.permissions?.query){return s((await navigator.permissions.query({name:'notifications'})).state)}return s('denied')}var o={addListener:()=>{},removeListeners:()=>{},getPermissionsAsync:async()=>t({shouldAsk:!1}),requestPermissionsAsync:async n=>t({shouldAsk:!0})}},2758,[554]);
|
|
14594
|
+
__d(function(g,r,i,a,m,e,d){},2759,[]);
|
|
14595
|
+
__d(function(g,r,i,a,m,e,d){"use strict";var I,N,O,A;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AndroidNotificationVisibility",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"AndroidAudioContentType",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"AndroidImportance",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"AndroidAudioUsage",{enumerable:!0,get:function(){return A}}),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.PUBLIC=1]="PUBLIC",I[I.PRIVATE=2]="PRIVATE",I[I.SECRET=3]="SECRET"})(I||(I={})),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.SPEECH=1]="SPEECH",I[I.MUSIC=2]="MUSIC",I[I.MOVIE=3]="MOVIE",I[I.SONIFICATION=4]="SONIFICATION"})(N||(N={})),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.UNSPECIFIED=1]="UNSPECIFIED",I[I.NONE=2]="NONE",I[I.MIN=3]="MIN",I[I.LOW=4]="LOW",I[I.DEFAULT=5]="DEFAULT",I[I.HIGH=6]="HIGH",I[I.MAX=7]="MAX"})(O||(O={})),(function(I){I[I.UNKNOWN=0]="UNKNOWN",I[I.MEDIA=1]="MEDIA",I[I.VOICE_COMMUNICATION=2]="VOICE_COMMUNICATION",I[I.VOICE_COMMUNICATION_SIGNALLING=3]="VOICE_COMMUNICATION_SIGNALLING",I[I.ALARM=4]="ALARM",I[I.NOTIFICATION=5]="NOTIFICATION",I[I.NOTIFICATION_RINGTONE=6]="NOTIFICATION_RINGTONE",I[I.NOTIFICATION_COMMUNICATION_REQUEST=7]="NOTIFICATION_COMMUNICATION_REQUEST",I[I.NOTIFICATION_COMMUNICATION_INSTANT=8]="NOTIFICATION_COMMUNICATION_INSTANT",I[I.NOTIFICATION_COMMUNICATION_DELAYED=9]="NOTIFICATION_COMMUNICATION_DELAYED",I[I.NOTIFICATION_EVENT=10]="NOTIFICATION_EVENT",I[I.ASSISTANCE_ACCESSIBILITY=11]="ASSISTANCE_ACCESSIBILITY",I[I.ASSISTANCE_NAVIGATION_GUIDANCE=12]="ASSISTANCE_NAVIGATION_GUIDANCE",I[I.ASSISTANCE_SONIFICATION=13]="ASSISTANCE_SONIFICATION",I[I.GAME=14]="GAME"})(A||(A={}))},2760,[]);
|
|
14596
|
+
__d(function(g,r,i,a,m,e,d){"use strict";var E,t,n;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IosAlertStyle",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"IosAllowsPreviews",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"IosAuthorizationStatus",{enumerable:!0,get:function(){return n}}),(function(E){E[E.NONE=0]="NONE",E[E.BANNER=1]="BANNER",E[E.ALERT=2]="ALERT"})(E||(E={})),(function(E){E[E.NEVER=0]="NEVER",E[E.ALWAYS=1]="ALWAYS",E[E.WHEN_AUTHENTICATED=2]="WHEN_AUTHENTICATED"})(t||(t={})),(function(E){E[E.NOT_DETERMINED=0]="NOT_DETERMINED",E[E.DENIED=1]="DENIED",E[E.AUTHORIZED=2]="AUTHORIZED",E[E.PROVISIONAL=3]="PROVISIONAL",E[E.EPHEMERAL=4]="EPHEMERAL"})(n||(n={}))},2761,[]);
|
|
14597
|
+
__d(function(g,r,i,a,m,e,d){},2762,[]);
|
|
14598
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.registerSecurityPushToken=async function(e,t,n={}){return},r(_d[0]);var e,t=r(_d[1]);(e=t)&&e.__esModule,(function(e){if(e&&e.__esModule)return e;var t={};e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e})(r(_d[2])),r(_d[3]),r(_d[4])},2763,[111,596,2628,2764,2765]);
|
|
14599
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.getClientDeviceInfo=async function(){const e=await l();return{deviceId:e,kind:"web",name:d("web"),platform:"web",appVersion:n.default.expoConfig?.version}},r(_d[0]);var t=e(r(_d[1])),n=e(r(_d[2]));!(function(e){if(e&&e.__esModule)return e;var t={};e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e})(r(_d[3]));const o="aimux.clientDeviceId.v1";let c=null,u=null;async function l(){return c||(u||(u=(async()=>{const e=await f();if(e)return c=e,e;const t=`client_${p()}`;return await s(t),c=t,t})().finally(()=>{u=null})),u)}async function f(){try{return t.default.getItem(o)}catch{return null}}async function s(e){try{return void await t.default.setItem(o,e)}catch{}}function d(e){return"ios"===e?"iOS app":"android"===e?"Android app":"web"===e?"Web browser":"aimux client"}function p(){const e=globalThis.crypto?.randomUUID?.();return e||`${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}},2764,[111,2554,596,2533]);
|
|
14600
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildSecurityPushRegistrationUrl=function(t,s={}){const o=new URL(`${t.replace(/^ws/,"http").replace(/\/+$/,"")}/security/push-token`),n=s.ownerUserId?.trim(),u=s.shareId?.trim();if(Boolean(n)!==Boolean(u))throw new Error("ownerUserId and shareId must be provided together");n&&u&&(o.searchParams.set("ownerUserId",n),o.searchParams.set("shareId",u));return o}},2765,[]);
|
|
14601
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RelayTransport",{enumerable:!0,get:function(){return n}});var t=r(d[0]);let s=0;class n{ws=null;pending=new Map;retryMs=1e3;retryTimer=null;stopped=!1;daemonOnline=!1;consecutiveHandshakeFailures=0;_status="disconnected";listeners=new Set;securityEventListeners=new Set;constructor(s,n,o=t.getClientDeviceInfo,c={}){this.getToken=n,this.getDeviceInfo=o,this.options=c,this.relayUrl=s.replace(/\/+$/,"")}get status(){return this._status}onStatusChange(t){return this.listeners.add(t),()=>this.listeners.delete(t)}onSecurityEvent(t){return this.securityEventListeners.add(t),()=>this.securityEventListeners.delete(t)}setStatus(t){if(this._status!==t){this._status=t;for(const s of this.listeners)s(t)}}async connect(){if(this.stopped)return;this.setStatus("connecting");const t=await this.getToken();if(!t)return this.setStatus("disconnected"),void this.scheduleRetry();try{const s=await this.getDeviceInfo(),n=this.clientConnectUrl(s);this.ws=new WebSocket(n,["aimux",`aimux-token.${t}`])}catch{return this.setStatus("disconnected"),void this.scheduleRetry()}let s=!1;this.ws.onopen=()=>{s=!0,this.consecutiveHandshakeFailures=0,this.retryMs=1e3},this.ws.onmessage=t=>{this.handleMessage(String(t.data))},this.ws.onclose=t=>{this.ws=null,this.rejectAllPending("Connection lost");const n=t.code;return 1008===n||4001===n||4003===n||!s&&(this.consecutiveHandshakeFailures+=1,this.consecutiveHandshakeFailures>=3)?(this.stopped=!0,void this.setStatus("auth_failed")):void(this.stopped||(this.setStatus("disconnected"),this.scheduleRetry()))},this.ws.onerror=()=>{try{this.ws?.close()}catch{}}}disconnect(){if(this.stopped=!0,this.retryTimer&&clearTimeout(this.retryTimer),this.rejectAllPending("Disconnected"),this.ws){try{this.ws.close(1e3)}catch{}this.ws=null}this.setStatus("disconnected")}async request(t,n,o){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("Relay not connected");if(!this.daemonOnline)throw new Error("Daemon not connected to relay");const c="r"+ ++s;return new Promise((s,h)=>{const l=setTimeout(()=>{this.pending.delete(c),h(new Error("Relay request timed out"))},3e4);this.pending.set(c,{resolve:s,reject:h,timer:l});try{this.ws.send(JSON.stringify({id:c,type:"request",method:t,path:n,body:o}))}catch(t){clearTimeout(l),this.pending.delete(c),h(t instanceof Error?t:new Error("Relay send failed"))}})}get isConnected(){return"connected"===this._status&&this.daemonOnline}get wsConnected(){return"connected"===this._status||"daemon_offline"===this._status}handleMessage(t){let s;try{s=JSON.parse(t)}catch{return}if("ping"!==s.type){if("connected"!==s.type){if("daemon_status"===s.type)return this.daemonOnline=s.online??!1,void this.setStatus(this.daemonOnline?"connected":"daemon_offline");if("error"!==s.type)if("security_event"!==s.type){if("response"===s.type){const t=this.pending.get(s.id);t&&(clearTimeout(t.timer),this.pending.delete(s.id),t.resolve({status:s.status,body:s.body}))}}else if(o(s.event))for(const t of this.securityEventListeners)t(s.event)}}else this.ws?.send(JSON.stringify({type:"pong"}))}clientConnectUrl(t){const s=new URL(`${this.relayUrl}/client/connect`);return s.searchParams.set("deviceId",t.deviceId),s.searchParams.set("deviceKind",t.kind),s.searchParams.set("deviceName",t.name),s.searchParams.set("devicePlatform",t.platform),t.appVersion&&s.searchParams.set("appVersion",t.appVersion),this.options.ownerUserId&&s.searchParams.set("ownerUserId",this.options.ownerUserId),this.options.shareId&&s.searchParams.set("shareId",this.options.shareId),s.toString()}rejectAllPending(t){for(const[s,n]of this.pending)clearTimeout(n.timer),n.reject(new Error(t)),this.pending.delete(s)}scheduleRetry(){this.stopped||(this.retryTimer=setTimeout(()=>{this.retryTimer=null,this.connect()},this.retryMs),this.retryMs=Math.min(2*this.retryMs,3e4))}}function o(t){if(!t||"object"!=typeof t)return!1;const s=t;return"string"==typeof s.id&&"string"==typeof s.kind&&"string"==typeof s.title&&"string"==typeof s.body&&"string"==typeof s.createdAt}},2766,[2764]);
|
|
14602
|
+
__d(function(g,r,i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=e(r(d[1])),o=e(r(d[2])),a=r(d[3]),s=r(d[4]),c=r(d[5]),l=r(d[6]),u=r(d[7]),f=r(d[8]),x=r(d[9]),h=r(d[10]),j=r(d[11]),b=r(d[12]),p=r(d[13]),N=r(d[14]),P=r(d[15]);function w(e){const t=Date.parse(e);if(!Number.isFinite(t))return"";const n=Math.max(0,Math.floor((Date.now()-t)/1e3));if(n<60)return"just now";const o=Math.floor(n/60);if(o<60)return`${o}m ago`;const a=Math.floor(o/60);if(a<24)return`${a}h ago`;const s=Math.floor(a/24);return s<7?`${s}d ago`:new Date(t).toLocaleDateString()}function $(e,t){if(e.notification.unread!==t.notification.unread)return e.notification.unread?-1:1;const n=Date.parse(e.notification.createdAt),o=Date.parse(t.notification.createdAt);return(Number.isFinite(o)?o:0)-(Number.isFinite(n)?n:0)}function S(){const e=(0,a.useRouter)(),S=(0,s.useSetAtom)(N.selectedSessionIdAtom),y=(0,s.useAtomValue)(N.projectsAtom),{getToken:A}=(0,j.useAuth)(),[v,M]=(0,t.useState)([]),[C,E]=(0,t.useState)([]),[R,T]=(0,t.useState)(!1),k=(0,t.useRef)(A),D=(0,t.useMemo)(()=>y.filter(e=>(0,p.getProjectServiceEndpoint)(e)),[y]),_=(0,t.useMemo)(()=>D.map(e=>{const t=(0,p.getProjectServiceEndpoint)(e);return`${e.path}:${t?.host??""}:${t?.port??""}`}).join("|"),[D]),L=(0,t.useRef)(D),z=(0,t.useRef)(0),F=v.filter(e=>e.notification.unread).length;(0,t.useEffect)(()=>{L.current=D,k.current=A},[A,D]);const I=C.length>0,O=(0,t.useCallback)(async()=>{const e=++z.current,t=L.current;T(!0),E([]);try{const n=await k.current(),o=await Promise.allSettled(t.map(async e=>{const t=(0,p.getProjectServiceEndpoint)(e);if(!t)return[];return(await(0,h.listNotifications)(t,{token:n})).notifications.filter(e=>!e.cleared).map(t=>({projectName:e.name,projectPath:e.path,notification:t}))})),a=[],s=[];if(o.forEach((e,n)=>{"fulfilled"===e.status?a.push(...e.value):s.push(`${t[n]?.name??"Project"}: ${String(e.reason)}`)}),z.current!==e)return;a.sort($),M(a),E(s)}catch(t){if(z.current!==e)return;E([`Unable to refresh inbox: ${t instanceof Error?t.message:String(t)}`])}finally{z.current===e&&T(!1)}},[]);function H(t){const n=t.notification.sessionId;if(n)return S(n),void e.navigate((0,b.buildViewHref)(`/notifications/agent/${encodeURIComponent(n)}/chat`,{project:t.projectPath}));e.navigate((0,b.buildViewHref)("/notifications",{project:t.projectPath}))}return(0,t.useEffect)(()=>{O()},[_,O]),(0,P.jsxs)(f.Page,{children:[(0,P.jsx)(f.PageHeader,{eyebrow:"All Projects",title:"Inbox",subtitle:`${F} unread across ${D.length} online project${1===D.length?"":"s"}`,actions:(0,P.jsx)(l.Button,{variant:"outline",size:"icon",disabled:R,onPress:()=>{O()},accessibilityLabel:"Refresh global inbox",children:(0,P.jsx)(c.RotateCw,{size:18,color:"#fafafa"})})}),I?(0,P.jsxs)(u.Card,{className:"mb-4 rounded-lg border-amber-500/40 bg-amber-500/10",children:[(0,P.jsx)(x.Text,{className:"text-sm font-semibold text-foreground",children:"Some projects failed"}),(0,P.jsx)(x.Text,{className:"mt-1 text-xs text-muted-foreground",children:C.join("\n")})]}):null,0===v.length&&I&&!R?(0,P.jsx)(f.PageStateCard,{title:"Unable to load inbox",body:"Fix the failed project connection or refresh to try again.",tone:"warning"}):0===v.length?(0,P.jsx)(f.PageStateCard,{title:R?"Loading inbox...":"All caught up",body:"Project-scoped notifications will appear here as a flattened feed."}):v.map(e=>{const t=e.notification.unread?"#f59e0b":"#a1a1aa";return(0,P.jsx)(n.default,{onPress:()=>H(e),className:"mb-2",children:(0,P.jsx)(u.Card,{className:"rounded-lg p-3 active:bg-accent/60",children:(0,P.jsxs)(o.default,{className:"flex-row items-start gap-3",children:[(0,P.jsx)(o.default,{className:"mt-0.5 rounded-md border border-border bg-background p-2",children:e.notification.unread?(0,P.jsx)(c.AlertTriangle,{size:16,color:t}):(0,P.jsx)(c.Bell,{size:16,color:t})}),(0,P.jsxs)(o.default,{className:"min-w-0 flex-1",children:[(0,P.jsxs)(o.default,{className:"flex-row items-center",children:[e.notification.unread?(0,P.jsx)(o.default,{className:"mr-2 h-2 w-2 rounded-full bg-emerald-500"}):null,(0,P.jsx)(x.Text,{className:"min-w-0 flex-1 text-base font-medium text-foreground",children:e.notification.title})]}),(0,P.jsxs)(x.Text,{className:"mt-1 text-xs text-muted-foreground",numberOfLines:1,children:[e.projectName,e.notification.kind?` \xb7 ${e.notification.kind}`:"",w(e.notification.createdAt)?` \xb7 ${w(e.notification.createdAt)}`:""]}),(0,P.jsx)(x.Text,{className:"mt-2 text-sm text-foreground/90",numberOfLines:3,children:e.notification.body})]})]})})},`${e.projectPath}:${e.notification.id}`)})]})}},2767,[8,249,116,291,691,695,2392,2571,2570,2388,2538,2400,2545,2560,2552,6]);
|
|
14603
|
+
__d(function(g,r,i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return S}});var t=r(d[0]),a=e(r(d[1])),s=e(r(d[2])),n=r(d[3]),o=r(d[4]),c=r(d[5]),l=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),j=r(d[10]),x=r(d[11]),b=r(d[12]),p=r(d[13]),N=r(d[14]),P=r(d[15]);function y(e,t){const a=Date.parse(e.thread.lastMessage?.createdAt??""),s=Date.parse(t.thread.lastMessage?.createdAt??"");return Number.isFinite(a)&&Number.isFinite(s)?s-a:Number.isFinite(a)?-1:Number.isFinite(s)?1:e.projectName.localeCompare(t.projectName)}function S(){const e=(0,n.useRouter)(),S=(0,o.useAtomValue)(N.projectsAtom),{getToken:$}=(0,x.useAuth)(),[v,w]=(0,t.useState)([]),[M,E]=(0,t.useState)([]),[T,C]=(0,t.useState)(!1),A=(0,t.useRef)($),R=(0,t.useMemo)(()=>S.filter(e=>(0,p.getProjectServiceEndpoint)(e)),[S]),_=(0,t.useMemo)(()=>R.map(e=>{const t=(0,p.getProjectServiceEndpoint)(e);return`${e.path}:${t?.host??""}:${t?.port??""}`}).join("|"),[R]),k=(0,t.useRef)(R),F=(0,t.useRef)(0);(0,t.useEffect)(()=>{k.current=R,A.current=$},[$,R]),(0,t.useEffect)(()=>{A.current=$},[$]);const L=M.length>0,O=(0,t.useCallback)(async()=>{const e=++F.current,t=k.current;C(!0),E([]);try{const a=await A.current(),s=await Promise.allSettled(t.map(async e=>{const t=(0,p.getProjectServiceEndpoint)(e);if(!t)return[];return(await(0,j.listThreads)(t,void 0,{token:a})).map(t=>({projectName:e.name,projectPath:e.path,thread:t}))})),n=[],o=[];if(s.forEach((e,a)=>{"fulfilled"===e.status?n.push(...e.value):o.push(`${t[a]?.name??"Project"}: ${String(e.reason)}`)}),F.current!==e)return;n.sort(y),w(n),E(o)}catch(t){if(F.current!==e)return;E([`Unable to refresh threads: ${t instanceof Error?t.message:String(t)}`])}finally{F.current===e&&C(!1)}},[]);return(0,t.useEffect)(()=>{O()},[_,O]),(0,P.jsxs)(h.Page,{children:[(0,P.jsx)(h.PageHeader,{eyebrow:"All Projects",title:"Threads",subtitle:`${v.length} thread${1===v.length?"":"s"} across ${R.length} online project${1===R.length?"":"s"}`,actions:(0,P.jsx)(l.Button,{variant:"outline",size:"icon",disabled:T,onPress:()=>{O()},accessibilityLabel:"Refresh global threads",children:(0,P.jsx)(c.RotateCw,{size:18,color:"#fafafa"})})}),L?(0,P.jsxs)(u.Card,{className:"mb-4 rounded-lg border-amber-500/40 bg-amber-500/10",children:[(0,P.jsx)(f.Text,{className:"text-sm font-semibold text-foreground",children:"Some projects failed"}),(0,P.jsx)(f.Text,{className:"mt-1 text-xs text-muted-foreground",children:M.join("\n")})]}):null,0===v.length&&L&&!T?(0,P.jsx)(h.PageStateCard,{title:"Unable to load threads",body:"Fix the failed project connection or refresh to try again.",tone:"warning"}):0===v.length?(0,P.jsx)(h.PageStateCard,{title:T?"Loading threads...":"No threads",body:"Project-scoped thread conversations will appear here once they exist."}):v.map(t=>(0,P.jsx)(a.default,{onPress:()=>e.navigate((0,b.buildViewHref)("/threads",{project:t.projectPath,threadId:t.thread.thread.id})),className:"mb-2",children:(0,P.jsx)(u.Card,{className:"rounded-lg p-3 active:bg-accent/60",children:(0,P.jsxs)(s.default,{className:"flex-row items-start gap-3",children:[(0,P.jsx)(s.default,{className:"mt-0.5 rounded-md border border-border bg-background p-2",children:(0,P.jsx)(c.MessageSquare,{size:16,color:"#a1a1aa"})}),(0,P.jsxs)(s.default,{className:"min-w-0 flex-1",children:[(0,P.jsx)(f.Text,{className:"text-base font-medium text-foreground",numberOfLines:2,children:t.thread.thread.title||t.thread.thread.id}),(0,P.jsxs)(f.Text,{className:"mt-1 text-xs text-muted-foreground",numberOfLines:1,children:[t.projectName," \xb7 ",t.thread.thread.kind??"thread"," \xb7"," ",t.thread.thread.status??"open"]}),t.thread.lastMessage?.body?(0,P.jsx)(f.Text,{className:"mt-2 text-sm text-foreground/90",numberOfLines:2,children:t.thread.lastMessage.body}):null]})]})})},`${t.projectPath}:${t.thread.thread.id}`))]})}},2768,[8,249,116,291,691,695,2392,2571,2570,2388,2538,2400,2545,2560,2552,6]);
|
|
14604
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return j}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),c=r(d[3]),o=r(d[4]),h=r(d[5]),u=r(d[6]),l=r(d[7]);r(d[8]);var S=r(d[9]);function f({children:s}){const{isSignedIn:c,isLoaded:o}=(0,u.useAuth)(),h=(0,n.useSegments)(),l=(0,n.useRouter)(),f="auth"===h[0],j=f||"shares"===h[0],x="cli-auth"===h[0];return(0,t.useEffect)(()=>{o&&!x&&(c&&f?l.replace("/"):c||u.LOCAL_MODE||j||l.replace("/auth"))},[c,o,f,j,x,l]),o?(0,S.jsx)(S.Fragment,{children:s}):null}function j(){(0,l.useThemeEffect)();const{colorScheme:t}=(0,s.useColorScheme)(),j="dark"===t?c.DarkTheme:c.DefaultTheme;return(0,S.jsx)(h.SafeAreaProvider,{children:(0,S.jsx)(c.ThemeProvider,{value:j,children:(0,S.jsx)(u.AuthProvider,{children:(0,S.jsxs)(f,{children:[(0,S.jsx)(o.StatusBar,{style:"dark"===t?"light":"dark"}),(0,S.jsxs)(n.Stack,{children:[(0,S.jsx)(n.Stack.Screen,{name:"(main)",options:{headerShown:!1}}),(0,S.jsx)(n.Stack.Screen,{name:"auth",options:{headerShown:!1}}),(0,S.jsx)(n.Stack.Screen,{name:"shares/invite/[ownerUserId]/[token]/accept",options:{headerShown:!1}}),(0,S.jsx)(n.Stack.Screen,{name:"cli-auth",options:{headerShown:!1}})]})]})})})})}},2769,[291,8,429,296,2770,281,2400,2773,2774,6]);
|
|
14605
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StatusBar",{enumerable:!0,get:function(){return t.StatusBar}}),Object.defineProperty(e,"setStatusBarStyle",{enumerable:!0,get:function(){return t.setStatusBarStyle}}),Object.defineProperty(e,"setStatusBarHidden",{enumerable:!0,get:function(){return t.setStatusBarHidden}}),Object.defineProperty(e,"setStatusBarBackgroundColor",{enumerable:!0,get:function(){return t.setStatusBarBackgroundColor}}),Object.defineProperty(e,"setStatusBarNetworkActivityIndicatorVisible",{enumerable:!0,get:function(){return t.setStatusBarNetworkActivityIndicatorVisible}}),Object.defineProperty(e,"setStatusBarTranslucent",{enumerable:!0,get:function(){return t.setStatusBarTranslucent}}),Object.defineProperty(e,"StatusBarStyle",{enumerable:!0,get:function(){return n.StatusBarStyle}}),Object.defineProperty(e,"StatusBarAnimation",{enumerable:!0,get:function(){return n.StatusBarAnimation}}),Object.defineProperty(e,"StatusBarProps",{enumerable:!0,get:function(){return n.StatusBarProps}});var t=r(d[0]),n=r(d[1])},2770,[2771,2772]);
|
|
14606
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const t=["style","hideTransitionAnimation","translucent","backgroundColor"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.StatusBar=function(e){let{style:u,hideTransitionAnimation:h,translucent:k=!0,backgroundColor:S}=e,B=(0,n.default)(e,t);const b=(0,s.default)(),y=o.default.useMemo(()=>f(u,b),[u,b]);let v=S;k&&!v&&(v='transparent');return(0,c.jsx)(l.default,Object.assign({},B,{translucent:k,barStyle:y,backgroundColor:v,showHideTransition:'none'===h?void 0:h}))},_e.setStatusBarStyle=function(t,e){l.default.setBarStyle(f(t),e)},_e.setStatusBarHidden=function(t,e){l.default.setHidden(t,e)},_e.setStatusBarBackgroundColor=function(t,e){l.default.setBackgroundColor(t,e)},_e.setStatusBarNetworkActivityIndicatorVisible=function(t){l.default.setNetworkActivityIndicatorVisible(t)},_e.setStatusBarTranslucent=function(t){l.default.setTranslucent(t)};var n=e(r(d[0])),o=e(r(d[1])),u=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=r(d[5]);function f(t="auto",e=u.default?.getColorScheme()??'light'){e||(e='light');let n=t;return'auto'===t?n='light'===e?'dark':'light':'inverted'===t&&(n='light'===e?'light':'dark'),'light'===n?'light-content':'dark-content'}},2771,[283,8,216,256,272,6]);
|
|
14607
|
+
__d(function(g,r,i,a,m,e,d){},2772,[]);
|
|
14608
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useThemeEffect=function(){const e=(0,s.useAtomValue)(l.themePreferenceAtom);(0,t.useEffect)(()=>{if("system"===e){const e=c.default.getColorScheme()??"light";n.colorScheme.set(e),u(e);const t=c.default.addChangeListener(({colorScheme:e})=>{const t=e??"light";n.colorScheme.set(t),u(t)});return()=>t.remove()}n.colorScheme.set(e),u(e)},[e])};var e,t=r(d[0]),o=r(d[1]),c=(e=o)&&e.__esModule?e:{default:e};r(d[2]);var s=r(d[3]),n=r(d[4]),l=r(d[5]);function u(e){document.documentElement.classList.toggle("dark","dark"===e)}},2773,[8,216,111,691,429,2562]);
|
|
14609
|
+
__d(function(g,r,i,a,m,e,d){},2774,[]);
|
|
14610
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return k}});var t=r(d[0]),s=e(r(d[1]));r(d[2]);var n=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]),p=r(d[9]),x=r(d[10]),y=r(d[11]),w=r(d[12]),h=r(d[13]),b=r(d[14]),S=r(d[15]),j=r(d[16]),_=r(d[17]),v=r(d[18]);const N=880;function k(){const e=(0,u.useRouter)(),k=(0,u.useLocalSearchParams)(),{width:E}=(0,l.default)(),P="sign-up"===F(k.mode)?"sign-up":"sign-in",A=(0,_.sanitizeRedirect)(F(k.redirect)),[V,C]=(0,t.useState)(P),[M,T]=(0,t.useState)("form"),[B,I]=(0,t.useState)(""),[R,L]=(0,t.useState)(""),[$,O]=(0,t.useState)(""),[U,q]=(0,t.useState)(!1),z=E>=N,{signIn:D,setActive:H,isLoaded:W}=(0,c.useSignIn)(),{signUp:G,setActive:J,isLoaded:K}=(0,c.useSignUp)(),Q=W&&K;function X(){O(""),L("")}function Y(e){U||(C(e),T("form"),X())}async function Z({email:t,password:s}){if(Q){O(""),q(!0);try{const n=await D.create({identifier:t,password:s});"complete"===n.status?(await H({session:n.createdSessionId}),e.replace(A??"/")):"needs_second_factor"===n.status||"needs_client_trust"===n.status?(await D.prepareSecondFactor({strategy:"email_code"}),I(t),T("verify")):O(`Sign in requires additional steps: ${n.status}`)}catch(e){O((0,_.clerkErrorMessage)(e,"Sign in failed"))}finally{q(!1)}}}async function ee({email:e,password:t}){if(Q){O(""),q(!0);try{await G.create({emailAddress:e,password:t}),await G.prepareEmailAddressVerification({strategy:"email_code"}),I(e),T("verify")}catch(e){O((0,_.clerkErrorMessage)(e,"Sign up failed"))}finally{q(!1)}}}async function ae(t){if(Q){O(""),q(!0);try{if("sign-in"===V){const s=await D.attemptSecondFactor({strategy:"email_code",code:t});"complete"===s.status?(await H({session:s.createdSessionId}),e.replace(A??"/")):O(`Verification incomplete: ${s.status}`)}else{const s=await G.attemptEmailAddressVerification({code:t});"complete"===s.status?(await J({session:s.createdSessionId}),e.replace(A??"/")):O(`Verification incomplete: ${s.status}`)}}catch(e){O((0,_.clerkErrorMessage)(e,"Verification failed"))}finally{q(!1)}}}async function te(){if(Q){O(""),q(!0);try{"sign-in"===V?await D.prepareSecondFactor({strategy:"email_code"}):await G.prepareEmailAddressVerification({strategy:"email_code"})}catch(e){O((0,_.clerkErrorMessage)(e,"Failed to resend code"))}finally{q(!1)}}}async function se(e){if(Q){O(""),q(!0);try{await D.create({strategy:"reset_password_email_code",identifier:e}),I(e),T("forgot-verify")}catch(e){O((0,_.clerkErrorMessage)(e,"Could not start password reset"))}finally{q(!1)}}}async function re(t){if(Q)if(O(""),!R||R.length<8)O("New password must be at least 8 characters.");else{q(!0);try{const s=await D.attemptFirstFactor({strategy:"reset_password_email_code",code:t,password:R});"complete"===s.status?(await H({session:s.createdSessionId}),e.replace(A??"/")):O(`Reset incomplete: ${s.status}`)}catch(e){O((0,_.clerkErrorMessage)(e,"Password reset failed"))}finally{q(!1)}}}async function ie(){if(Q&&B){O(""),q(!0);try{await D.create({strategy:"reset_password_email_code",identifier:B})}catch(e){O((0,_.clerkErrorMessage)(e,"Failed to resend code"))}finally{q(!1)}}}const ne="verify"===M?(0,v.jsx)(w.VerificationForm,{email:B,loading:U,error:$,submitLabel:"sign-up"===V?"Verify email":"Verify",onSubmit:ae,onResend:te,onBack:()=>{T("form"),X()}}):"forgot"===M?(0,v.jsx)(x.ForgotPasswordForm,{loading:U,error:$,onSubmit:se,onBack:()=>{T("form"),X()}}):"forgot-verify"===M?(0,v.jsx)(w.VerificationForm,{email:B,loading:U,error:$,submitLabel:"Reset password",onSubmit:re,onResend:ie,onBack:()=>{T("forgot"),X()},extra:(0,v.jsxs)(o.default,{children:[(0,v.jsx)(j.Text,{className:"text-[12px] font-medium text-muted-foreground mb-1.5",children:"New password"}),(0,v.jsx)(b.Input,{placeholder:"At least 8 characters",placeholderTextColor:"hsl(var(--muted-foreground))",value:R,onChangeText:L,secureTextEntry:!0,autoComplete:"new-password",textContentType:"newPassword"})]})}):(0,v.jsxs)(o.default,{children:[(0,v.jsx)(S.SegmentedControl,{fullWidth:!0,options:[{value:"sign-in",label:"Sign in"},{value:"sign-up",label:"Sign up"}],value:V,onChange:Y}),(0,v.jsx)(o.default,{className:"mt-6",children:(0,v.jsx)(y.OAuthRow,{})}),(0,v.jsxs)(o.default,{className:"flex-row items-center my-5",children:[(0,v.jsx)(o.default,{className:"flex-1 h-px bg-border"}),(0,v.jsx)(j.Text,{className:"mx-3 text-[11px] uppercase tracking-wider text-muted-foreground",children:"or email"}),(0,v.jsx)(o.default,{className:"flex-1 h-px bg-border"})]}),(0,v.jsx)(p.EmailPasswordForm,{mode:V,loading:U,error:$,onSubmit:"sign-in"===V?Z:ee,onForgotPassword:()=>{T("forgot"),X()}}),"sign-up"===V?(0,v.jsx)(j.Text,{className:"text-[11px] text-muted-foreground text-center mt-5 leading-snug",children:"By creating an account you agree to receive transactional email related to your aimux sessions."}):null]});return(0,v.jsx)(s.default,{className:"flex-1 bg-background",behavior:void 0,children:(0,v.jsxs)(o.default,{className:"flex-1 flex-row",children:[z?(0,v.jsx)(f.BrandPanel,{variant:"side"}):null,(0,v.jsx)(n.default,{className:"flex-1",contentContainerClassName:"flex-grow justify-center items-center px-6 py-12",keyboardShouldPersistTaps:"handled",children:(0,v.jsxs)(o.default,{className:"w-full max-w-[400px]",children:[z?null:(0,v.jsx)(f.BrandPanel,{variant:"compact"}),(0,v.jsx)(o.default,{className:"rounded-2xl border border-border bg-card p-6",children:ne}),"form"===M?(0,v.jsx)(h.Button,{className:"mt-4",variant:"ghost",label:"sign-in"===V?"Don\u2019t have an account? Sign up":"Have an account? Sign in",onPress:()=>Y("sign-in"===V?"sign-up":"sign-in"),disabled:U}):null]})})]})})}function F(e){return Array.isArray(e)?e[0]:e}},2775,[8,241,111,140,116,274,2401,291,2776,2777,2778,2779,2780,2392,2394,2588,2388,2781,6]);
|
|
14611
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.BrandPanel=function({variant:e}){if("compact"===e)return(0,o.jsxs)(s.default,{className:"items-center mb-8",children:[(0,o.jsx)(t.default,{source:r(d[6]),style:{width:56,height:56,borderRadius:16,marginBottom:12},resizeMode:"contain",accessibilityLabel:"aimux logo"}),(0,o.jsx)(n.Text,{className:"font-mono text-[32px] font-bold text-foreground tracking-tight",children:"aimux"}),(0,o.jsx)(n.Text,{className:"text-[14px] text-muted-foreground mt-2 text-center",children:"Manage your AI agents from anywhere."})]});return(0,o.jsxs)(s.default,{className:"flex-1 bg-secondary px-12 py-16 justify-between",children:[(0,o.jsxs)(s.default,{children:[(0,o.jsxs)(s.default,{className:"flex-row items-center",children:[(0,o.jsx)(t.default,{source:r(d[6]),style:{width:48,height:48,borderRadius:12,marginRight:12},resizeMode:"contain",accessibilityLabel:"aimux logo"}),(0,o.jsx)(n.Text,{className:"font-mono text-[44px] font-bold text-foreground tracking-tight",children:"aimux"})]}),(0,o.jsx)(n.Text,{className:"text-[18px] text-muted-foreground mt-5 leading-relaxed max-w-[360px]",children:"Manage your AI agents from anywhere. One dashboard for Claude, Codex, and shell sessions."}),(0,o.jsx)(s.default,{className:"mt-12",children:l.map(e=>(0,o.jsxs)(s.default,{className:"flex-row items-start mb-5 max-w-[380px]",children:[(0,o.jsx)(s.default,{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 mt-2 mr-3"}),(0,o.jsxs)(s.default,{className:"flex-1",children:[(0,o.jsx)(n.Text,{className:"text-[14px] font-semibold text-foreground",children:e.title}),(0,o.jsx)(n.Text,{className:"text-[13px] text-muted-foreground mt-0.5 leading-snug",children:e.description})]})]},e.title))})]}),(0,o.jsxs)(s.default,{className:"rounded-md border border-border bg-background/60 px-4 py-3 max-w-[360px]",children:[(0,o.jsx)(n.Text,{className:"font-mono text-[12px] text-muted-foreground",children:"$ aimux serve"}),(0,o.jsx)(n.Text,{className:"text-[11px] text-muted-foreground/70 mt-1",children:"Run locally to connect your agents."})]})]})},r(d[0]);var t=e(r(d[1]));r(d[2]);var s=e(r(d[3])),n=r(d[4]),o=r(d[5]);const l=[{title:"Remote visibility",description:"Monitor agent sessions from your phone or another machine."},{title:"Multi-project",description:"Switch between projects. Each with its own worktrees, agents, and services."},{title:"Real-time",description:"Live status updates via SSE. See what your agents are doing right now."}]},2776,[8,185,111,116,2388,6,2624]);
|
|
14612
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.EmailPasswordForm=function({mode:e,loading:s,error:p,onSubmit:f,onForgotPassword:h}){const[y,b]=(0,t.useState)(""),[j,w]=(0,t.useState)(""),[T,C]=(0,t.useState)(!1),v=(0,t.useRef)(null),N=()=>f({email:y,password:j}),S="sign-in"===e?"Sign in":"Create account",P="sign-in"===e?"Signing in\u2026":"Creating account\u2026";return(0,x.jsxs)(o.default,{children:[(0,x.jsx)(c.Text,{className:"text-[12px] font-medium text-muted-foreground mb-1.5",children:"Email"}),(0,x.jsx)(u.Input,{placeholder:"you@example.com",placeholderTextColor:"hsl(var(--muted-foreground))",value:y,onChangeText:b,autoCapitalize:"none",autoComplete:"email",keyboardType:"email-address",textContentType:"emailAddress",returnKeyType:"next",onSubmitEditing:()=>v.current?.focus(),blurOnSubmit:!1}),(0,x.jsxs)(o.default,{className:"mt-3 flex-row items-center justify-between mb-1.5",children:[(0,x.jsx)(c.Text,{className:"text-[12px] font-medium text-muted-foreground",children:"Password"}),"sign-in"===e&&h?(0,x.jsx)(c.Text,{onPress:h,className:"text-[12px] text-foreground underline decoration-muted-foreground",children:"Forgot password?"}):null]}),(0,x.jsxs)(o.default,{className:"relative",children:[(0,x.jsx)(u.Input,{ref:v,className:"pr-10",placeholder:"sign-up"===e?"At least 8 characters":"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",placeholderTextColor:"hsl(var(--muted-foreground))",value:j,onChangeText:w,secureTextEntry:!T,autoComplete:"sign-up"===e?"new-password":"current-password",textContentType:"sign-up"===e?"newPassword":"password",returnKeyType:"go",onSubmitEditing:N}),(0,x.jsx)(o.default,{className:"absolute right-2 top-0 h-11 justify-center",children:(0,x.jsx)(c.Text,{onPress:()=>C(e=>!e),className:"px-2 py-1",accessibilityRole:"button",accessibilityLabel:T?"Hide password":"Show password",children:T?(0,x.jsx)(n.EyeOff,{size:16,color:"hsl(var(--muted-foreground))"}):(0,x.jsx)(n.Eye,{size:16,color:"hsl(var(--muted-foreground))"})})})]}),p?(0,x.jsx)(c.Text,{className:"text-destructive text-sm mt-3",children:p}):null,(0,x.jsx)(l.Button,{className:"mt-5",label:s?P:S,onPress:N,disabled:s})]})};var e,t=r(d[0]),s=r(d[1]),o=(e=s)&&e.__esModule?e:{default:e},n=r(d[2]),l=r(d[3]),u=r(d[4]),c=r(d[5]),x=r(d[6])},2777,[8,116,695,2392,2394,2388,6]);
|
|
14613
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.ForgotPasswordForm=function({loading:e,error:o,onSubmit:x,onBack:p}){const[b,f]=(0,t.useState)("");return(0,c.jsxs)(s.default,{children:[(0,c.jsx)(u.Text,{className:"text-muted-foreground mb-5",children:"Enter your email and we\u2019ll send a code to reset your password."}),(0,c.jsx)(u.Text,{className:"text-[12px] font-medium text-muted-foreground mb-1.5",children:"Email"}),(0,c.jsx)(l.Input,{placeholder:"you@example.com",placeholderTextColor:"hsl(var(--muted-foreground))",value:b,onChangeText:f,autoCapitalize:"none",autoComplete:"email",keyboardType:"email-address",textContentType:"emailAddress",returnKeyType:"go",onSubmitEditing:()=>x(b)}),o?(0,c.jsx)(u.Text,{className:"text-destructive text-sm mt-3",children:o}):null,(0,c.jsx)(n.Button,{className:"mt-5",label:e?"Sending\u2026":"Send reset code",onPress:()=>x(b),disabled:e}),(0,c.jsx)(n.Button,{className:"mt-2",variant:"ghost",label:"Back to sign in",onPress:p})]})};var e,t=r(d[0]),o=r(d[1]),s=(e=o)&&e.__esModule?e:{default:e},n=r(d[2]),l=r(d[3]),u=r(d[4]),c=r(d[5])},2778,[8,116,2392,2394,2388,6]);
|
|
14614
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"OAUTH_ENABLED",{enumerable:!0,get:function(){return c}}),_e.OAuthRow=function(){return(0,s.jsx)(o.default,{className:"gap-2",children:b.map(({key:e,label:o,Icon:n})=>(0,s.jsxs)(t.default,{disabled:!0,onPress:()=>{},className:(0,u.cn)("h-11 flex-row items-center justify-center rounded-lg border border-border bg-background","opacity-50"),children:[(0,s.jsx)(n,{size:16,color:"hsl(var(--foreground))"}),(0,s.jsx)(l.Text,{className:"ml-2 text-sm font-medium text-foreground",children:o}),(0,s.jsx)(l.Text,{className:"ml-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:"soon"})]},e))})},r(d[0]);var t=e(r(d[1])),o=e(r(d[2])),n=r(d[3]),l=r(d[4]),u=r(d[5]),s=r(d[6]);const c=!1,b=[{key:"oauth_apple",label:"Continue with Apple",Icon:n.Apple},{key:"oauth_google",label:"Continue with Google",Icon:n.Mail},{key:"oauth_github",label:"Continue with GitHub",Icon:n.Github}]},2779,[8,249,116,695,2388,2389,6]);
|
|
14615
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.VerificationForm=function({email:e,loading:n,error:u,submitLabel:f,onSubmit:h,onResend:j,onBack:p,extra:T}){const[N,b]=(0,t.useState)("");return(0,c.jsxs)(s.default,{children:[(0,c.jsxs)(x.Text,{className:"text-muted-foreground text-center mb-5",children:["We sent a verification code to","\n",(0,c.jsx)(x.Text,{className:"text-foreground",children:e})]}),(0,c.jsx)(l.Input,{className:"text-center text-lg tracking-[0.5em]",placeholder:"123456",placeholderTextColor:"hsl(var(--muted-foreground))",value:N,onChangeText:b,keyboardType:"number-pad",autoComplete:"one-time-code",textContentType:"oneTimeCode",returnKeyType:"go",onSubmitEditing:()=>h(N)}),T?(0,c.jsx)(s.default,{className:"mt-3",children:T}):null,u?(0,c.jsx)(x.Text,{className:"text-destructive text-sm mt-3",children:u}):null,(0,c.jsx)(o.Button,{className:"mt-5",label:n?"Verifying\u2026":f,onPress:()=>h(N),disabled:n}),(0,c.jsxs)(s.default,{className:"flex-row items-center justify-center mt-4 gap-1",children:[(0,c.jsx)(x.Text,{className:"text-[13px] text-muted-foreground",children:"Didn\u2019t get it?"}),(0,c.jsx)(x.Text,{onPress:()=>j(),className:"text-[13px] text-foreground underline decoration-muted-foreground",children:"Resend"}),(0,c.jsx)(x.Text,{className:"text-[13px] text-muted-foreground",children:"\xb7"}),(0,c.jsx)(x.Text,{onPress:p,className:"text-[13px] text-foreground underline decoration-muted-foreground",children:"Back"})]})]})};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]),x=r(d[4]),c=r(d[5])},2780,[8,116,2392,2394,2388,6]);
|
|
14616
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.clerkErrorMessage=function(t,s){if("object"==typeof t&&t&&"errors"in t){const n=t.errors,o=n?.[0];return o?.longMessage??o?.long_message??o?.message??s}return s},e.sanitizeRedirect=function(t){return t?!t.startsWith("/")||t.startsWith("//")?null:t:null}},2781,[]);
|
|
14617
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return k}});var t=r(d[0]),n=e(r(d[1]));r(d[2]);var o=e(r(d[3])),s=r(d[4]),c=r(d[5]),l=r(d[6]),u=r(d[7]),f=r(d[8]),x=r(d[9]);const h=15e3;function p(){const e=f.env.AIMUX_RELAY_URL;return e?e.replace(/^ws/,"http").replace(/\/$/,""):null}function w(e){let t;try{t=new URL(e)}catch{return!1}return"http:"===t.protocol&&(("127.0.0.1"===t.hostname||"localhost"===t.hostname||"::1"===t.hostname)&&"/callback"===t.pathname)}function k(){const e=(0,s.useLocalSearchParams)(),f="string"==typeof e.callback?e.callback:null,k="string"==typeof e.state?e.state:null,b="security-unlock"===e.action,{isSignedIn:j,isLoaded:y,getToken:C,userId:R}=(0,u.useAuth)(),[I,$]=(0,t.useState)("checking"),[T,U]=(0,t.useState)("");function L(e){if(!f)return;const t=f.includes("?")?"&":"?";window.location.href=`${f}${t}${e}`}return(0,t.useEffect)(()=>{if(!y)return;if(!f)return U("Missing callback parameter"),void $("error");if(!w(f))return U("Refusing to authorize: callback is not a localhost loopback URL."),void $("invalid-callback");if(u.LOCAL_MODE){const e="This deployment runs in local mode \u2014 no remote login needed.";return U(e),$("error"),void L(`error=${encodeURIComponent(e)}&state=${encodeURIComponent(k??"")}`)}if(!j)return void $("need-signin");let e=!1;return(async()=>{$("issuing");try{const t=p();if(!t)throw new Error("Relay URL not configured");const n=await C();if(!n)throw new Error("Could not get session token");const o=new AbortController,s=setTimeout(()=>o.abort(),h);let c;try{c=await fetch(`${t}/cli/issue-token`,{method:"POST",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:JSON.stringify({unlockSecurity:b}),signal:o.signal})}finally{clearTimeout(s)}const l=await c.json();if(!c.ok||!l.ok||!l.token)throw new Error(l.error??`Token issuance failed (${c.status})`);if(e)return;$("done"),L(`token=${encodeURIComponent(l.token)}&userId=${encodeURIComponent(R??"")}&state=${encodeURIComponent(k??"")}`)}catch(t){if(e)return;const n=t instanceof Error?t.message:String(t);U(n),$("error"),L(`error=${encodeURIComponent(n)}&state=${encodeURIComponent(k??"")}`)}})(),()=>{e=!0}},[y,j,f]),(0,x.jsx)(o.default,{className:"flex-1 bg-background items-center justify-center px-8",children:(0,x.jsxs)(o.default,{className:"max-w-[420px] w-full items-center",children:[(0,x.jsx)(l.Text,{className:"font-mono text-[28px] font-bold text-foreground mb-6",children:"aimux"}),"checking"===I||"issuing"===I?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n.default,{}),(0,x.jsx)(l.Text,{className:"text-[14px] text-muted-foreground mt-4",children:"issuing"===I?"Authorizing CLI...":"Checking session..."})]}):null,"need-signin"===I?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.Text,{className:"text-[15px] text-foreground text-center mb-2",children:"Sign in to authorize the CLI"}),(0,x.jsx)(l.Text,{className:"text-[13px] text-muted-foreground text-center mb-6",children:"After signing in, return to this page to complete login."}),(0,x.jsx)(o.default,{className:"w-full max-w-[280px]",children:(0,x.jsx)(c.Button,{label:"Sign in",onPress:()=>{{const e=window.location.pathname+window.location.search;window.location.href=`/auth?mode=sign-in&redirect=${encodeURIComponent(e)}`}}})})]}):null,"done"===I?(0,x.jsx)(l.Text,{className:"text-[15px] text-foreground text-center",children:"\u2713 CLI authorized. Return to your terminal."}):null,"error"===I||"invalid-callback"===I?(0,x.jsx)(l.Text,{className:"text-[14px] text-destructive text-center",children:T}):null]})})}},2782,[8,234,111,116,291,2392,2388,2400,2397,6]);
|
|
14618
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return j}});var e,t=r(d[0]),s=r(d[1]),n=(e=s)&&e.__esModule?e:{default:e},o=r(d[2]),c=r(d[3]),l=r(d[4]),u=r(d[5]),p=r(d[6]),h=r(d[7]),f=r(d[8]),x=r(d[9]),S=r(d[10]),I=r(d[11]);function j(){const e=(0,o.useLocalSearchParams)(),s=(0,f.singleRouteParam)(e.ownerUserId),j=(0,f.singleRouteParam)(e.token),{isSignedIn:v,isLoaded:b,getToken:w}=(0,h.useAuth)(),A=(0,c.useSetAtom)(S.activeSharedSessionAtom),P=(0,c.useSetAtom)(x.selectedProjectPathAtom),N=(0,c.useSetAtom)(x.selectedSessionIdAtom),R=(0,o.useRouter)(),[_,y]=(0,t.useState)("idle"),[E,k]=(0,t.useState)(null),T=s&&j?`/shares/invite/${s}/${j}/accept`:null,B=(0,t.useMemo)(()=>Boolean(b&&v&&s&&j&&"accepting"!==_),[b,v,s,j,_]);return(0,I.jsx)(n.default,{className:"flex-1 bg-background p-6 justify-center",children:(0,I.jsxs)(n.default,{className:"rounded-lg border border-border bg-card p-5",children:[(0,I.jsx)(u.Text,{className:"text-2xl font-semibold text-foreground",children:"Shared session invite"}),(0,I.jsx)(u.Text,{className:"text-sm text-muted-foreground mt-2",children:v?"Accepting this invite will connect aimux to the owner shared session.":"Sign in to accept this invite."}),E?(0,I.jsx)(u.Text,{className:"text-sm text-muted-foreground mt-4",children:E}):null,!v&&b?(0,I.jsx)(l.Button,{className:"mt-5",label:"Sign in",onPress:()=>R.push({pathname:"/auth",params:T?{mode:"sign-in",redirect:T}:{mode:"sign-in"}})}):(0,I.jsx)(l.Button,{className:"mt-5",label:"accepting"===_?"Accepting...":"accepted"===_?"Accepted":"Accept invite",disabled:!B,onPress:async function(){if(s&&j&&"accepting"!==_){y("accepting"),k(null);try{const e=await w();if(!e)throw new Error("Sign in is required to accept this invite.");const t=await(0,p.acceptShareInvite)(s,j,{token:e}),n=t.share.serviceEndpoint;if(!n)throw new Error("Invite is missing project connection metadata.");const o={shareId:t.share.id,ownerUserId:t.share.ownerUserId,projectRoot:t.share.projectRoot,sessionId:t.share.sessionId,serviceEndpoint:n,acceptedAt:(new Date).toISOString()};A(o),P(o.projectRoot),N(o.sessionId),y("accepted"),k("Invite accepted."),R.replace({pathname:"/agent/[sessionId]/chat",params:{sessionId:o.sessionId}})}catch(e){y("error"),k(e instanceof Error?e.message:String(e))}}}})]})})}},2783,[8,116,291,691,2392,2388,2538,2400,2542,2552,2562,6]);
|
|
14619
|
+
__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},2784,[2785]);
|
|
14620
|
+
__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Head=void 0;const u=r(d[1]),l=(n(r(d[2])),r(d[3]));function o({children:n}){return t.jsx(l.Helmet,{children:n})}e.Head=({children:n})=>(0,u.useIsFocused)()?t.jsx(o,{children:n}):null,e.Head.Provider=l.HelmetProvider},2785,[6,296,8,2786]);
|
|
14621
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";var t=r(d[0]);const s=["children"],n=["children"];var i,o=Object.create,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,y=(t,s,n,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let o of p(s))h.call(t,o)||o===n||c(t,o,{get:()=>s[o],enumerable:!(i=l(s,o))||i.enumerable});return t},b=(t,s,n)=>(n=null!=t?o(u(t)):{},y(!s&&t&&t.__esModule?n:c(n,"default",{value:t,enumerable:!0}),t)),f={};((t,s)=>{for(var n in s)c(t,n,{get:s[n],enumerable:!0})})(f,{Helmet:()=>Oe,HelmetData:()=>ce,HelmetProvider:()=>pe}),m.exports=(i=f,y(c({},"__esModule",{value:!0}),i));var T=b(r(d[1])),O=b(r(d[2])),A=b(r(d[3])),j=b(r(d[1])),C=b(r(d[1])),w=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(w||{}),x={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},$={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},k=Object.values(w),S={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M=Object.entries(S).reduce((t,[s,n])=>(t[n]=s,t),{}),E="data-rh",P="defaultTitle",H="defer",D="encodeSpecialCharacters",L="onChangeClientState",I="titleTemplate",U="prioritizeSeoTags",N=(t,s)=>{for(let n=t.length-1;n>=0;n-=1){const i=t[n];if(Object.prototype.hasOwnProperty.call(i,s))return i[s]}return null},q=t=>{let s=N(t,"title");const n=N(t,I);if(Array.isArray(s)&&(s=s.join("")),n&&s)return n.replace(/%s/g,()=>s);const i=N(t,P);return s||i||void 0},_=t=>N(t,L)||(()=>{}),R=(t,s)=>s.filter(s=>void 0!==s[t]).map(s=>s[t]).reduce((t,s)=>Object.assign({},t,s),{}),z=(t,s)=>s.filter(t=>void 0!==t.base).map(t=>t.base).reverse().reduce((s,n)=>{if(!s.length){const i=Object.keys(n);for(let o=0;o<i.length;o+=1){const c=i[o].toLowerCase();if(-1!==t.indexOf(c)&&n[c])return s.concat(n)}}return s},[]),B=(t,s,n)=>{const i={};return n.filter(s=>{return!!Array.isArray(s[t])||(void 0!==s[t]&&(n=`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`,console&&"function"==typeof console.warn&&console.warn(n)),!1);var n}).map(s=>s[t]).reverse().reduce((t,n)=>{const o={};n.filter(t=>{let n;const c=Object.keys(t);for(let i=0;i<c.length;i+=1){const o=c[i],l=o.toLowerCase();-1===s.indexOf(l)||"rel"===n&&"canonical"===t[n].toLowerCase()||"rel"===l&&"stylesheet"===t[l].toLowerCase()||(n=l),-1===s.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!t[n])return!1;const l=t[n].toLowerCase();return i[n]||(i[n]={}),o[n]||(o[n]={}),!i[n][l]&&(o[n][l]=!0,!0)}).reverse().forEach(s=>t.push(s));const c=Object.keys(o);for(let t=0;t<c.length;t+=1){const s=c[t],n=Object.assign({},i[s],o[s]);i[s]=n}return t},[]).reverse()},F=(t,s)=>{if(Array.isArray(t)&&t.length)for(let n=0;n<t.length;n+=1){if(t[n][s])return!0}return!1},Y=t=>Array.isArray(t)?t.join(""):t,K=(t,s)=>{const n=Object.keys(t);for(let i=0;i<n.length;i+=1)if(s[n[i]]&&s[n[i]].includes(t[n[i]]))return!0;return!1},G=(t,s)=>Array.isArray(t)?t.reduce((t,n)=>(K(n,s)?t.priority.push(n):t.default.push(n),t),{priority:[],default:[]}):{default:t,priority:[]},W=(t,s)=>Object.assign({},t,{[s]:void 0}),J=["noscript","script","style"],Q=(t,s=!0)=>!1===s?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),V=t=>Object.keys(t).reduce((s,n)=>{const i=void 0!==t[n]?`${n}="${t[n]}"`:`${n}`;return s?`${s} ${i}`:i},""),X=(t,s,n,i)=>{const o=V(n),c=Y(s);return o?`<${t} ${E}="true" ${o}>${Q(c,i)}</${t}>`:`<${t} ${E}="true">${Q(c,i)}</${t}>`},Z=(t,s,n=!0)=>s.reduce((s,i)=>{const o=i,c=Object.keys(o).filter(t=>!("innerHTML"===t||"cssText"===t)).reduce((t,s)=>{const i=void 0===o[s]?s:`${s}="${Q(o[s],n)}"`;return t?`${t} ${i}`:i},""),l=o.innerHTML||o.cssText||"",p=-1===J.indexOf(t);return`${s}<${t} ${E}="true" ${c}${p?"/>":`>${l}</${t}>`}`},""),ee=(t,s={})=>Object.keys(t).reduce((s,n)=>(s[S[n]||n]=t[n],s),s),te=(t,s,n)=>{const i=ee(n,{key:s,[E]:!0});return[C.default.createElement("title",i,s)]},re=(t,s)=>s.map((s,n)=>{const i={key:n,[E]:!0};return Object.keys(s).forEach(t=>{const n=S[t]||t;if("innerHTML"===n||"cssText"===n){const t=s.innerHTML||s.cssText;i.dangerouslySetInnerHTML={__html:t}}else i[n]=s[t]}),C.default.createElement(t,i)}),se=(t,s,n=!0)=>{switch(t){case"title":return{toComponent:()=>te(0,s.title,s.titleAttributes),toString:()=>X(t,s.title,s.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ee(s),toString:()=>V(s)};default:return{toComponent:()=>re(t,s),toString:()=>Z(t,s,n)}}},ne=({metaTags:t,linkTags:s,scriptTags:n,encode:i})=>{const o=G(t,$),c=G(s,x),l=G(n,v);return{priorityMethods:{toComponent:()=>[...re("meta",o.priority),...re("link",c.priority),...re("script",l.priority)],toString:()=>`${se("meta",o.priority,i)} ${se("link",c.priority,i)} ${se("script",l.priority,i)}`},metaTags:o.default,linkTags:c.default,scriptTags:l.default}},ie=t=>{const{baseTag:s,bodyAttributes:n,encode:i=!0,htmlAttributes:o,noscriptTags:c,styleTags:l,title:p="",titleAttributes:u,prioritizeSeoTags:h}=t;let{linkTags:y,metaTags:b,scriptTags:f}=t,T={toComponent:()=>{},toString:()=>""};return h&&({priorityMethods:T,linkTags:y,metaTags:b,scriptTags:f}=ne(t)),{priority:T,base:se("base",s,i),bodyAttributes:se("bodyAttributes",n,i),htmlAttributes:se("htmlAttributes",o,i),link:se("link",y,i),meta:se("meta",b,i),noscript:se("noscript",c,i),script:se("script",f,i),style:se("style",l,i),title:se("title",{title:p,titleAttributes:u},i)}},oe=[],ae=!("undefined"==typeof window||!window.document||!window.document.createElement),ce=class{instances=[];canUseDOM=ae;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?oe:this.instances,add:t=>{(this.canUseDOM?oe:this.instances).push(t)},remove:t=>{const s=(this.canUseDOM?oe:this.instances).indexOf(t);(this.canUseDOM?oe:this.instances).splice(s,1)}}};constructor(t,s){this.context=t,this.canUseDOM=s||!1,s||(t.helmet=ie({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},le=j.default.createContext({}),pe=class t extends j.Component{static canUseDOM=ae;constructor(s){super(s),this.helmetData=new ce(this.props.context||{},t.canUseDOM)}render(){return j.default.createElement(le.Provider,{value:this.helmetData.value},this.props.children)}},ue=r(d[1]),de=b(r(d[4])),he=(t,s)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${t}[${E}]`),o=[].slice.call(i),c=[];let l;return s&&s.length&&s.forEach(s=>{const n=document.createElement(t);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))if("innerHTML"===t)n.innerHTML=s.innerHTML;else if("cssText"===t)n.styleSheet?n.styleSheet.cssText=s.cssText:n.appendChild(document.createTextNode(s.cssText));else{const i=t,o=void 0===s[i]?"":s[i];n.setAttribute(t,o)}n.setAttribute(E,"true"),o.some((t,s)=>(l=s,n.isEqualNode(t)))?o.splice(l,1):c.push(n)}),o.forEach(t=>t.parentNode?.removeChild(t)),c.forEach(t=>n.appendChild(t)),{oldTags:o,newTags:c}},me=(t,s)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const i=n.getAttribute(E),o=i?i.split(","):[],c=[...o],l=Object.keys(s);for(const t of l){const i=s[t]||"";n.getAttribute(t)!==i&&n.setAttribute(t,i),-1===o.indexOf(t)&&o.push(t);const l=c.indexOf(t);-1!==l&&c.splice(l,1)}for(let t=c.length-1;t>=0;t-=1)n.removeAttribute(c[t]);o.length===c.length?n.removeAttribute(E):n.getAttribute(E)!==l.join(",")&&n.setAttribute(E,l.join(","))},ge=(t,s)=>{void 0!==t&&document.title!==t&&(document.title=Y(t)),me("title",s)},ye=(t,s)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:o,linkTags:c,metaTags:l,noscriptTags:p,onChangeClientState:u,scriptTags:h,styleTags:y,title:b,titleAttributes:f}=t;me("body",i),me("html",o),ge(b,f);const T={baseTag:he("base",n),linkTags:he("link",c),metaTags:he("meta",l),noscriptTags:he("noscript",p),scriptTags:he("script",h),styleTags:he("style",y)},O={},A={};Object.keys(T).forEach(t=>{const{newTags:s,oldTags:n}=T[t];s.length&&(O[t]=s),n.length&&(A[t]=T[t].oldTags)}),s&&s(),u(t,O,A)},be=null,fe=t=>{be&&cancelAnimationFrame(be),t.defer?be=requestAnimationFrame(()=>{ye(t,()=>{be=null})}):(ye(t),be=null)},Te=class extends ue.Component{rendered=!1;shouldComponentUpdate(t){return!(0,de.default)(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:s}=this.props.context;let n=null;const i=(o=t.get().map(t=>{const s=Object.assign({},t.props);return delete s.context,s}),{baseTag:z(["href"],o),bodyAttributes:R("bodyAttributes",o),defer:N(o,H),encode:N(o,D),htmlAttributes:R("htmlAttributes",o),linkTags:B("link",["rel","href"],o),metaTags:B("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:B("noscript",["innerHTML"],o),onChangeClientState:_(o),scriptTags:B("script",["src","innerHTML"],o),styleTags:B("style",["cssText"],o),title:q(o),titleAttributes:R("titleAttributes",o),prioritizeSeoTags:F(o,U)});var o;pe.canUseDOM?fe(i):ie&&(n=ie(i)),s(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Oe=class extends T.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!(0,O.default)(W(this.props,"helmetData"),W(t,"helmetData"))}mapNestedChildrenToProps(t,s){if(!s)return null;switch(t.type){case"script":case"noscript":return{innerHTML:s};case"style":return{cssText:s};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,s,n,i){return Object.assign({},s,{[t.type]:[...s[t.type]||[],Object.assign({},n,this.mapNestedChildrenToProps(t,i))]})}mapObjectTypeChildren(t,s,n,i){switch(t.type){case"title":return Object.assign({},s,{[t.type]:i,titleAttributes:Object.assign({},n)});case"body":return Object.assign({},s,{bodyAttributes:Object.assign({},n)});case"html":return Object.assign({},s,{htmlAttributes:Object.assign({},n)});default:return Object.assign({},s,{[t.type]:Object.assign({},n)})}}mapArrayTypeChildrenToProps(t,s){let n=Object.assign({},s);return Object.keys(t).forEach(s=>{n=Object.assign({},n,{[s]:t[s]})}),n}warnOnInvalidChildren(t,s){return(0,A.default)(k.some(s=>t.type===s),"function"==typeof t.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${k.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),(0,A.default)(!s||"string"==typeof s||Array.isArray(s)&&!s.some(t=>"string"!=typeof t),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,i){let o={};return T.default.Children.forEach(n,n=>{if(!n||!n.props)return;const c=n.props,{children:l}=c,p=t(c,s),u=Object.keys(p).reduce((t,s)=>(t[M[s]||s]=p[s],t),{});let{type:h}=n;switch("symbol"==typeof h?h=h.toString():this.warnOnInvalidChildren(n,l),h){case"Symbol(react.fragment)":i=this.mapChildrenToProps(l,i);break;case"link":case"meta":case"noscript":case"script":case"style":o=this.flattenArrayTypeChildren(n,o,u,l);break;default:i=this.mapObjectTypeChildren(n,i,u,l)}}),this.mapArrayTypeChildrenToProps(o,i)}render(){const s=this.props,{children:i}=s,o=t(s,n);let c=Object.assign({},o),{helmetData:l}=o;if(i&&(c=this.mapChildrenToProps(i,c)),l&&!(l instanceof ce)){l=new ce(l.context,!0),delete c.helmetData}return l?T.default.createElement(Te,Object.assign({},c,{context:l.value})):T.default.createElement(le.Consumer,null,t=>T.default.createElement(Te,Object.assign({},c,{context:t})))}}},2786,[283,8,2787,588,2788]);
|
|
14622
|
+
__d(function(g,r,_i,_a,m,e,d){var t='undefined'!=typeof Element,n='function'==typeof Map,f='function'==typeof Set,o='function'==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(u,a){if(u===a)return!0;if(u&&a&&'object'==typeof u&&'object'==typeof a){if(u.constructor!==a.constructor)return!1;var c,s,l,p;if(Array.isArray(u)){if((c=u.length)!=a.length)return!1;for(s=c;0!==s--;)if(!i(u[s],a[s]))return!1;return!0}if(n&&u instanceof Map&&a instanceof Map){if(u.size!==a.size)return!1;for(p=u.entries();!(s=p.next()).done;)if(!a.has(s.value[0]))return!1;for(p=u.entries();!(s=p.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(f&&u instanceof Set&&a instanceof Set){if(u.size!==a.size)return!1;for(p=u.entries();!(s=p.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(a)){if((c=u.length)!=a.length)return!1;for(s=c;0!==s--;)if(u[s]!==a[s])return!1;return!0}if(u.constructor===RegExp)return u.source===a.source&&u.flags===a.flags;if(u.valueOf!==Object.prototype.valueOf&&'function'==typeof u.valueOf&&'function'==typeof a.valueOf)return u.valueOf()===a.valueOf();if(u.toString!==Object.prototype.toString&&'function'==typeof u.toString&&'function'==typeof a.toString)return u.toString()===a.toString();if((c=(l=Object.keys(u)).length)!==Object.keys(a).length)return!1;for(s=c;0!==s--;)if(!Object.prototype.hasOwnProperty.call(a,l[s]))return!1;if(t&&u instanceof Element)return!1;for(s=c;0!==s--;)if(('_owner'!==l[s]&&'__v'!==l[s]&&'__o'!==l[s]||!u.$$typeof)&&!i(u[l[s]],a[l[s]]))return!1;return!0}return u!=u&&a!=a}m.exports=function(t,n){try{return i(t,n)}catch(t){if((t.message||'').match(/stack|recursion/i))return console.warn('react-fast-compare cannot handle circular refs'),!1;throw t}}},2787,[]);
|
|
14623
|
+
__d(function(g,r,i,a,m,e,d){m.exports=function(t,n,o,f){var c=o?o.call(f,t,n):void 0;if(void 0!==c)return!!c;if(t===n)return!0;if("object"!=typeof t||!t||"object"!=typeof n||!n)return!1;var u=Object.keys(t),v=Object.keys(n);if(u.length!==v.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),b=0;b<u.length;b++){var p=u[b];if(!l(p))return!1;var y=t[p],j=n[p];if(!1===(c=o?o.call(f,y,j,p):void 0)||void 0===c&&y!==j)return!1}return!0}},2788,[]);
|
|
14624
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2789,[]);
|
|
14625
|
+
__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=r(d[0]),n=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var c=e(t),u=0;u<c.length;u++)"default"!==c[u]&&n(i,t,c[u]);return o(i,t),i});Object.defineProperty(_e,"__esModule",{value:!0}),_e.renderRootComponent=function(e){try{setTimeout(()=>{f._internal_preventAutoHideAsync?.()}),u.startTransition(()=>{(0,c.registerRootComponent)(e)})}catch(e){f.hideAsync();const n=b(e);(0,c.registerRootComponent)(()=>t.jsx(s.View,{})),console.error(n),console.error("A runtime error has occurred while rendering the root component."),setTimeout(()=>{throw n})}};const c=r(d[1]),u=i(r(d[2])),s=r(d[3]),f=i(r(d[4]));function l(e){if('[object Object]'!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function p(e){return e&&'object'==typeof e&&'string'==typeof e.name&&'string'==typeof e.message}function b(e){return p(e)?e:l(e)?new Error(JSON.stringify(e)):new Error(String(e))}},2790,[6,534,8,21,533]);
|
|
14618
14626
|
__r(536);
|
|
14619
14627
|
__r(2);
|
|
14620
14628
|
__r(0);
|