@modern-js/devtools-client 0.0.0-nightly-20240306170726 → 0.0.0-nightly-20240308170649

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/html/client/index.html +3 -3
  2. package/dist/html/mount/index.html +3 -3
  3. package/dist/modern.config.json +1 -1
  4. package/dist/routes-manifest.json +62 -62
  5. package/dist/static/js/{637.a4d6eabf.js → 637.8dd2ff80.js} +2 -2
  6. package/dist/static/js/{637.a4d6eabf.js.LICENSE.txt → 637.8dd2ff80.js.LICENSE.txt} +263 -263
  7. package/dist/static/js/{55.f0dbad7f.js → 955.8524fd3e.js} +3 -3
  8. package/dist/static/js/{55.f0dbad7f.js.LICENSE.txt → 955.8524fd3e.js.LICENSE.txt} +247 -247
  9. package/dist/static/js/async/{447.5cb18bd5.js → 447.f4edfc0c.js} +2 -2
  10. package/dist/static/js/async/client_context/builder/{page.f6f5227e.js → page.49456005.js} +2 -2
  11. package/dist/static/js/async/client_context/framework/{page.8cd09499.js → page.9c4956d5.js} +2 -2
  12. package/dist/static/js/async/client_doctor/{page.c4455408.js → page.a6f0b4b5.js} +2 -2
  13. package/dist/static/js/async/client_headers/editor/page.f707da2f.js +2 -0
  14. package/dist/static/js/async/client_headers/editor/{page.ec9b48b1.js.LICENSE.txt → page.f707da2f.js.LICENSE.txt} +18 -18
  15. package/dist/static/js/async/client_headers/{layout.39145572.js → layout.081bc349.js} +2 -2
  16. package/dist/static/js/async/client_overview/page.e24aa0fe.js +2 -0
  17. package/dist/static/js/async/client_overview/{page.085b846a.js.LICENSE.txt → page.e24aa0fe.js.LICENSE.txt} +3 -3
  18. package/dist/static/js/async/client_pages/{layout.84628bc0.js → layout.e87c54d7.js} +2 -2
  19. package/dist/static/js/async/client_pages/{page.22c37b5f.js → page.e2091152.js} +2 -2
  20. package/dist/static/js/async/client_pages/{page.22c37b5f.js.LICENSE.txt → page.e2091152.js.LICENSE.txt} +22 -22
  21. package/dist/static/js/{builder-runtime.77b3e45d.js → builder-runtime.033cbe12.js} +1 -1
  22. package/dist/static/js/{client.e3f8e741.js → client.54868ee3.js} +2 -2
  23. package/dist/static/js/{client.e3f8e741.js.LICENSE.txt → client.54868ee3.js.LICENSE.txt} +104 -104
  24. package/dist/static/js/components.9c3812ca.js +1 -0
  25. package/dist/static/js/mount.8249f281.js +2 -0
  26. package/dist/static/js/{mount.893fbfbe.js.LICENSE.txt → mount.8249f281.js.LICENSE.txt} +38 -38
  27. package/package.json +12 -12
  28. package/dist/static/js/async/client_headers/editor/page.ec9b48b1.js +0 -2
  29. package/dist/static/js/async/client_overview/page.085b846a.js +0 -2
  30. package/dist/static/js/components.b7872779.js +0 -1
  31. package/dist/static/js/mount.893fbfbe.js +0 -2
  32. /package/dist/static/css/{55.1707421c.css → 955.87f81cb6.css} +0 -0
  33. /package/dist/static/css/async/client_doctor/{page.36cc31f0.css → page.e973f6c0.css} +0 -0
  34. /package/dist/static/css/async/client_headers/editor/{page.abdb11b6.css → page.5e88cf5d.css} +0 -0
  35. /package/dist/static/css/async/client_headers/{layout.f58ce7d3.css → layout.603b61e8.css} +0 -0
  36. /package/dist/static/css/async/client_overview/{page.8b92f0d4.css → page.d4e4a075.css} +0 -0
  37. /package/dist/static/css/async/client_pages/{layout.40fc6abc.css → layout.e78027ec.css} +0 -0
  38. /package/dist/static/css/async/client_pages/{page.caa31a02.css → page.b44251bf.css} +0 -0
  39. /package/dist/static/css/{client.7c273286.css → client.47ce11c3.css} +0 -0
  40. /package/dist/static/css/{components.9337c5b0.css → components.f6df2921.css} +0 -0
  41. /package/dist/static/css/{mount.46cf1459.css → mount.6da58dd4.css} +0 -0
  42. /package/dist/static/js/async/{447.5cb18bd5.js.LICENSE.txt → 447.f4edfc0c.js.LICENSE.txt} +0 -0
  43. /package/dist/static/js/async/client_context/builder/{page.f6f5227e.js.LICENSE.txt → page.49456005.js.LICENSE.txt} +0 -0
  44. /package/dist/static/js/async/client_context/framework/{page.8cd09499.js.LICENSE.txt → page.9c4956d5.js.LICENSE.txt} +0 -0
  45. /package/dist/static/js/async/client_doctor/{page.c4455408.js.LICENSE.txt → page.a6f0b4b5.js.LICENSE.txt} +0 -0
  46. /package/dist/static/js/async/client_headers/{layout.39145572.js.LICENSE.txt → layout.081bc349.js.LICENSE.txt} +0 -0
  47. /package/dist/static/js/async/client_pages/{layout.84628bc0.js.LICENSE.txt → layout.e87c54d7.js.LICENSE.txt} +0 -0
@@ -1,40 +1,38 @@
1
+ /*! @modern-js/runtime/router */
2
+
1
3
  /*! react */
2
4
 
3
5
  /*! react/jsx-runtime */
4
6
 
7
+ /*! ./context */
8
+
5
9
  /*! @modern-js/utils/universal/plugin-dag-sort */
6
10
 
7
11
  /*! react/jsx-runtime */
8
12
 
9
13
  /*! @modern-js/utils/universal/constants */
10
14
 
11
- /*! ./hooks */
12
-
13
15
  /*! @modern-js/plugin */
14
16
 
15
17
  /*! react-router-dom */
16
18
 
17
- /*! react */
18
-
19
- /*! ../state */
19
+ /*! react/jsx-runtime */
20
20
 
21
21
  /*! @swc/helpers/_/_object_spread */
22
22
 
23
23
  /*! hoist-non-react-statics */
24
24
 
25
+ /*! valtio */
26
+
25
27
  /*! ../runtimeContext */
26
28
 
27
29
  /*! ./plugin */
28
30
 
29
31
  /*! @swc/helpers/_/_sliced_to_array */
30
32
 
31
- /*! ufo */
32
-
33
- /*! @/components/SelectLink */
34
-
35
- /*! lodash */
33
+ /*! @modern-js/runtime/router */
36
34
 
37
- /*! @radix-ui/themes */
35
+ /*! ./state */
38
36
 
39
37
  /*! @swc/helpers/_/_ts_generator */
40
38
 
@@ -48,89 +46,87 @@
48
46
 
49
47
  /*! lodash */
50
48
 
51
- /*! ufo */
49
+ /*! @radix-ui/themes */
50
+
51
+ /*! @/components/Error/Fallback */
52
+
53
+ /*! react/jsx-runtime */
54
+
55
+ /*! ./layout.module.scss */
56
+
57
+ /*! react-icons/ri */
58
+
59
+ /*! react-icons/hi2 */
52
60
 
53
61
  /*! ./Link */
54
62
 
63
+ /*! hookable */
64
+
55
65
  /*! @modern-js/runtime-utils/router */
56
66
 
57
67
  /*! @modern-js/runtime/router */
58
68
 
59
- /*! ./state */
60
-
61
- /*! ufo */
69
+ /*! @modern-js/devtools-kit/runtime */
62
70
 
63
71
  /*! hoist-non-react-statics */
64
72
 
65
73
  /*! @swc/helpers/_/_object_spread */
66
74
 
75
+ /*! react/jsx-runtime */
76
+
77
+ /*! @/components/Theme */
78
+
67
79
  /*! @swc/helpers/_/_object_spread */
68
80
 
69
81
  /*! @swc/helpers/_/_async_to_generator */
70
82
 
71
- /*! @modern-js/runtime/router */
72
-
73
- /*! @modern-js/runtime/router */
83
+ /*! @/components/Breadcrumbs */
74
84
 
75
85
  /*! @swc/helpers/_/_object_without_properties */
76
86
 
77
87
  /*! @/entries/client/routes/state */
78
88
 
79
- /*! ../state */
89
+ /*! react/jsx-runtime */
80
90
 
81
91
  /*! react */
82
92
 
83
93
  /*! react/jsx-runtime */
84
94
 
85
- /*! @/components/Error/Fallback */
86
-
87
- /*! @/styles/theme.scss */
88
-
89
95
  /*! ./compatible */
90
96
 
91
97
  /*! @swc/helpers/_/_object_spread */
92
98
 
93
- /*! valtio */
94
-
95
99
  /*! ../runtimeContext */
96
100
 
97
- /*! valtio */
98
-
99
- /*! valtio */
100
-
101
- /*! @swc/helpers/_/_object_spread_props */
102
-
103
101
  /*! react */
104
102
 
103
+ /*! @/components/Error/Fallback */
104
+
105
105
  /*! ./DeferredDataScripts */
106
106
 
107
107
  /*! @radix-ui/themes */
108
108
 
109
- /*! lodash */
110
-
111
109
  /*! react-router-dom */
112
110
 
111
+ /*! @/components/Error/Fallback */
112
+
113
113
  /*! @modern-js/runtime-utils/router */
114
114
 
115
- /*! valtio */
115
+ /*! ufo */
116
116
 
117
117
  /*! @swc/helpers/_/_async_to_generator */
118
118
 
119
- /*! @modern-js/devtools-kit/runtime */
120
-
121
- /*! react/jsx-runtime */
122
-
123
119
  /*! ufo */
124
120
 
125
- /*! react-icons/hi2 */
121
+ /*! ./state */
126
122
 
127
123
  /*! @modern-js/runtime/router */
128
124
 
129
125
  /*! @radix-ui/themes */
130
126
 
131
- /*! ufo */
127
+ /*! lodash */
132
128
 
133
- /*! @/components/Loading */
129
+ /*! ufo */
134
130
 
135
131
  /*! ../time */
136
132
 
@@ -138,31 +134,33 @@
138
134
 
139
135
  /*! @swc/helpers/_/_object_spread_props */
140
136
 
137
+ /*! @/components/Devtools/Puller */
138
+
141
139
  /*! react */
142
140
 
143
141
  /*! react/jsx-runtime */
144
142
 
143
+ /*! react */
144
+
145
145
  /*! @swc/helpers/_/_to_consumable_array */
146
146
 
147
- /*! @/utils */
147
+ /*! react-use */
148
148
 
149
- /*! react-icons/hi2 */
149
+ /*! @/utils */
150
150
 
151
151
  /*! @swc/helpers/_/_object_without_properties */
152
152
 
153
153
  /*! @modern-js/runtime-utils/parsed */
154
154
 
155
- /*! @swc/helpers/_/_object_spread */
155
+ /*! @/components/Error/FeatureDisabled */
156
156
 
157
- /*! birpc */
157
+ /*! @swc/helpers/_/_object_spread */
158
158
 
159
159
  /*! ./loader/loaderManager */
160
160
 
161
- /*! @modern-js/runtime/router */
162
-
163
- /*! ./context */
161
+ /*! hookable */
164
162
 
165
- /*! react/jsx-runtime */
163
+ /*! @modern-js/runtime/router */
166
164
 
167
165
  /*! @radix-ui/themes */
168
166
 
@@ -174,53 +172,35 @@
174
172
 
175
173
  /*! ./layout.module.scss */
176
174
 
177
- /*! valtio */
178
-
179
175
  /*! @modern-js/runtime/router */
180
176
 
181
- /*! hookable */
177
+ /*! @/components/Error/Fallback */
182
178
 
183
179
  /*! @modern-js/runtime-utils/browser */
184
180
 
185
181
  /*! @remix-run/router */
186
182
 
187
- /*! ./state */
188
-
189
- /*! @/components/Error/Fallback */
190
-
191
- /*! @radix-ui/themes */
192
-
193
183
  /*! react/jsx-runtime */
194
184
 
195
- /*! ./layout.module.scss */
196
-
197
185
  /*! @swc/helpers/_/_to_consumable_array */
198
186
 
199
187
  /*! @radix-ui/themes */
200
188
 
201
- /*! react-icons/ri */
202
-
203
189
  /*! @swc/helpers/_/_object_spread */
204
190
 
205
- /*! react-icons/hi2 */
206
-
207
- /*! @modern-js/devtools-kit/runtime */
208
-
209
191
  /*! @/components/Error/Fallback */
210
192
 
211
193
  /*! ./FeatureDisabled.module.scss */
212
194
 
213
- /*! react/jsx-runtime */
214
-
215
195
  /*! @swc/helpers/_/_to_consumable_array */
216
196
 
217
- /*! @/components/Theme */
197
+ /*! @/components/Error/Fallback */
218
198
 
219
199
  /*! ./hooks */
220
200
 
221
- /*! @/components/Breadcrumbs */
201
+ /*! ./state */
222
202
 
223
- /*! react/jsx-runtime */
203
+ /*! @/components/SelectLink */
224
204
 
225
205
  /*! ../../core */
226
206
 
@@ -228,8 +208,12 @@
228
208
 
229
209
  /*! @modern-js/utils/universal/constants */
230
210
 
211
+ /*! @/components/Error/Fallback */
212
+
231
213
  /*! ./utils */
232
214
 
215
+ /*! react/jsx-runtime */
216
+
233
217
  /*! ./plugin */
234
218
 
235
219
  /*! @swc/helpers/_/_ts_generator */
@@ -240,54 +224,58 @@
240
224
 
241
225
  /*! @swc/helpers/_/_async_to_generator */
242
226
 
243
- /*! @/components/Error/Fallback */
227
+ /*! @swc/helpers/_/_object_spread */
244
228
 
245
229
  /*! @swc/helpers/_/_instanceof */
246
230
 
247
231
  /*! @swc/helpers/_/_object_without_properties */
248
232
 
249
- /*! @/components/Error/Fallback */
233
+ /*! react */
234
+
235
+ /*! react/jsx-runtime */
250
236
 
251
237
  /*! @modern-js/runtime/router */
252
238
 
253
- /*! ufo */
239
+ /*! @/utils/pluggable */
254
240
 
255
241
  /*! ./PrefetchLink */
256
242
 
243
+ /*! @modern-js/runtime/router */
244
+
257
245
  /*! @swc/helpers/_/_object_spread_props */
258
246
 
259
247
  /*! @swc/helpers/_/_ts_generator */
260
248
 
261
249
  /*! react-icons/hi2 */
262
250
 
263
- /*! ./state */
264
-
265
251
  /*! @swc/helpers/_/_object_spread */
266
252
 
267
253
  /*! ./nestedRoutes */
268
254
 
269
- /*! lodash */
270
-
271
- /*! ufo */
255
+ /*! ./hooks */
272
256
 
273
257
  /*! @swc/helpers/_/_define_property */
274
258
 
275
259
  /*! @swc/helpers/_/_object_spread */
276
260
 
277
- /*! @/components/Devtools/Puller */
278
-
279
261
  /*! react */
280
262
 
263
+ /*! ../state */
264
+
281
265
  /*! @swc/helpers/_/_ts_generator */
282
266
 
283
- /*! react-use */
267
+ /*! ufo */
284
268
 
285
269
  /*! ./runtime */
286
270
 
271
+ /*! lodash */
272
+
287
273
  /*! react */
288
274
 
289
275
  /*! react/jsx-runtime */
290
276
 
277
+ /*! @/components/SelectLink */
278
+
291
279
  /*! @swc/helpers/_/_object_without_properties */
292
280
 
293
281
  /*! react/jsx-runtime */
@@ -296,11 +284,11 @@
296
284
 
297
285
  /*! react/jsx-runtime */
298
286
 
299
- /*! @/components/Error/FeatureDisabled */
287
+ /*! @radix-ui/themes */
300
288
 
301
289
  /*! @modern-js/plugin */
302
290
 
303
- /*! hookable */
291
+ /*! ufo */
304
292
 
305
293
  /*! @swc/helpers/_/_sliced_to_array */
306
294
 
@@ -308,8 +296,6 @@
308
296
 
309
297
  /*! react */
310
298
 
311
- /*! @modern-js/runtime/router */
312
-
313
299
  /*! react/jsx-runtime */
314
300
 
315
301
  /*! @swc/helpers/_/_sliced_to_array */
@@ -318,56 +304,70 @@
318
304
 
319
305
  /*! @modern-js/runtime/router */
320
306
 
321
- /*! @radix-ui/themes */
307
+ /*! ./state */
322
308
 
323
- /*! @modern-js/runtime/router */
309
+ /*! ufo */
324
310
 
325
- /*! @/components/Error/Fallback */
311
+ /*! @radix-ui/themes */
326
312
 
327
313
  /*! @swc/helpers/_/_object_spread_props */
328
314
 
329
- /*! react/jsx-runtime */
330
-
331
315
  /*! ./core */
332
316
 
317
+ /*! @modern-js/runtime/router */
318
+
333
319
  /*! @radix-ui/themes */
334
320
 
321
+ /*! @modern-js/runtime/router */
322
+
335
323
  /*! ./routeModule */
336
324
 
337
325
  /*! @modern-js/runtime-utils/router */
338
326
 
339
327
  /*! @swc/helpers/_/_sliced_to_array */
340
328
 
329
+ /*! ../state */
330
+
341
331
  /*! @/components/Error/Fallback */
342
332
 
333
+ /*! @/styles/theme.scss */
334
+
343
335
  /*! @radix-ui/themes */
344
336
 
337
+ /*! valtio */
338
+
345
339
  /*! lodash */
346
340
 
347
- /*! ./state */
341
+ /*! valtio */
342
+
343
+ /*! valtio */
344
+
345
+ /*! @swc/helpers/_/_object_spread_props */
348
346
 
349
347
  /*! @modern-js/utils/universal/constants */
350
348
 
351
349
  /*! @modern-js/plugin */
352
350
 
353
- /*! @/components/SelectLink */
351
+ /*! lodash */
354
352
 
355
353
  /*! lodash */
356
354
 
357
355
  /*! react */
358
356
 
359
- /*! @/components/Error/Fallback */
360
-
361
357
  /*! react/jsx-runtime */
362
358
 
363
359
  /*! @modern-js/runtime/router */
364
360
 
365
- /*! @swc/helpers/_/_to_consumable_array */
361
+ /*! valtio */
366
362
 
367
- /*! react/jsx-runtime */
363
+ /*! @swc/helpers/_/_to_consumable_array */
368
364
 
369
365
  /*! @swc/helpers/_/_object_spread_props */
370
366
 
367
+ /*! @modern-js/devtools-kit/runtime */
368
+
369
+ /*! react/jsx-runtime */
370
+
371
371
  /*! @swc/helpers/_/_instanceof */
372
372
 
373
373
  /*! @swc/helpers/_/_async_to_generator */
@@ -376,24 +376,24 @@
376
376
 
377
377
  /*! react */
378
378
 
379
+ /*! react-icons/hi2 */
380
+
379
381
  /*! react/jsx-runtime */
380
382
 
381
- /*! @swc/helpers/_/_object_spread */
383
+ /*! ufo */
382
384
 
383
385
  /*! @swc/helpers/_/_object_without_properties */
384
386
 
385
- /*! react */
387
+ /*! @/components/Loading */
386
388
 
387
389
  /*! ./Breadcrumbs.module.scss */
388
390
 
389
- /*! react/jsx-runtime */
390
-
391
391
  /*! react */
392
392
 
393
393
  /*! react/jsx-runtime */
394
394
 
395
- /*! @/utils/pluggable */
395
+ /*! react-icons/hi2 */
396
396
 
397
- /*! @modern-js/runtime/router */
397
+ /*! @radix-ui/react-icons */
398
398
 
399
- /*! @radix-ui/react-icons */
399
+ /*! birpc */
@@ -0,0 +1 @@
1
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{52909:function(t){"use strict";t.exports={connector:"connector-_43720",link:"link-_26ee2"}},20105:function(t){"use strict";t.exports={"indicate-card":"indicate-card-_974b8",indicateCard:"indicate-card-_974b8"}},57570:function(t){"use strict";t.exports={container:"container-a41eae"}},81477:function(t){"use strict";t.exports={container:"container-c37ff8",fab:"fab-b17740",logo:"logo-c7a29e",slideInFromRight:"slideInFromRight-e1026d"}},96273:function(t){"use strict";t.exports={backdrop:"backdrop-_51706","close-button":"close-button-c3742a",closeButton:"close-button-c3742a",container:"container-fb8255",frame:"frame-_5d7ff"}},32782:function(t){"use strict";t.exports={children:"children-ce277e",container:"container-feec25"}},70896:function(t){"use strict";t.exports={loading:"loading-f4a5e7",rotate:"rotate-d4ee47"}},26402:function(t){"use strict";t.exports={container:"container-_6ff2e"}},68442:function(t){"use strict";t.exports={container:"container-_1260b"}},12588:function(t){"use strict";t.exports={container:"container-_560f9"}},65404:function(t){"use strict";t.exports={actions:"actions-_5b76a","input-pair":"input-pair-_55005",inputPair:"input-pair-_55005"}},85176:function(t){"use strict";t.exports={container:"container-_729f8",content:"content-_01b01",mark:"mark-_92790",slideDown:"slideDown-b8bce3",slideUp:"slideUp-dbcad1",trigger:"trigger-_13b59","url-text":"url-text-a0e7e4",urlText:"url-text-a0e7e4"}},81103:function(t){"use strict";t.exports={"endpoint-container":"endpoint-container-_4be65",endpointContainer:"endpoint-container-_4be65","endpoint-tag":"endpoint-tag-_0664a",endpointTag:"endpoint-tag-_0664a","shy-link":"shy-link-d59f70",shyLink:"shy-link-d59f70"}},94400:function(t){"use strict";t.exports={stats:"stats-e82970"}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see mount.8249f281.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsuleButton:function(){return i}});var o=n("86834");n("5872");var r=n("20421"),l=n("57570");let i=e=>{var t;let[n,i]=(0,r.useAsyncFn)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},62325:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsule:function(){return y}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("83982"),s=n("5872"),a=n("20421"),c=n("29214"),u=n("55058"),d=n("45967"),v=n("81477"),m=n("10734"),p=n("74709"),h=n("94258"),f=n("28391"),_=n("51879");let g=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:n}=t,o=null===(e=n.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof o?null:""===o?"/":o},y=e=>{let t=e.def.assets.logo,n=g(),[y,w]=(0,a.useToggle)(!!n),[k,b]=(0,s.useState)(!1),E=(0,u.withQuery)(e.endpoint,{src:e.dataSource}),x=(0,h.useStickyDraggable)({clamp:!0}),[C,j]=(0,s.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,a.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&j(e.newValue||void 0)}),(0,a.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&w()}),(0,s.useEffect)(()=>{f.wallAgent.hook("receive",e=>{"startInspectingNative"===e.event&&(w(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(w(!0),document.documentElement.style.removeProperty("cursor"))};return f.wallAgent.hook("send",e),()=>{f.wallAgent.removeHook("send",e)}},[]);let O=async()=>{document.documentElement.style.setProperty("cursor","wait"),w(!1),b(!0);try{(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,a.useAsync)(async()=>{if(!!n)(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Theme,{appearance:C,className:C,children:[(0,l.jsx)(d.default,{when:y,keepAlive:!0,load:k,children:(0,l.jsx)("div",{className:v.container,children:(0,l.jsx)(m.FrameBox,{src:E,onClose:()=>w(!1),style:{pointerEvents:x.isDragging?"none":"auto"}})})}),(0,l.jsxs)(i.Flex,(0,r._)((0,o._)({className:v.fab},x.props),{align:"center",children:[(0,l.jsx)(p.DevtoolsCapsuleButton,{type:"primary",onClick:w,children:(0,l.jsx)("img",{className:v.logo,src:t})}),(0,l.jsx)(p.DevtoolsCapsuleButton,{onClick:O,children:(0,l.jsx)(c.HiMiniCursorArrowRipple,{})})]}))]})}},10734:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("83982");n("5872");var a=n("29214"),c=n("42700"),u=n("428"),d=n("96273"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:p}=(0,c.useSnapshot)(v.$inner);return(0,i.jsxs)(s.Box,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(a.HiMiniXMark,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(u.Loading,{})})]}))}},45967:function(e,t,n){"use strict";n.r(t);var o=n("86834"),r=n("5872");t.default=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let s=e.load||(n?i.current:l);return s?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},80295:function(e,t,n){"use strict";n.r(t);var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("90833"),s=n("62325");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let a=document.createElement("div");a.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(a);let c=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(a).render((0,r.jsx)(s.DevtoolsCapsule,(0,o._)({},c)))})},82231:function(e,t,n){"use strict";n.r(t);var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},28391:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return f},$inner:function(){return _},wallAgent:function(){return p}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),a=n("9880"),c=n.n(a),u=n("42700"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),p=new v.WallAgent,h=(0,d.createBridge)(window,p),f=m.then(e=>{let t=(0,s.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,d.activate)(window,{bridge:h})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.proxy)({loaded:!1}),g=c()();f.then(e=>{let{remote:t,hooks:n}=e;p.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,g.resolve()})})},94258:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return a}});var o=n("5872"),r=n("20421");let l=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},s=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},a=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[a,c]=(0,o.useState)(),u=()=>{if(!a)return;a.moveable=!1;let{el:e}=a,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==a?void 0:a.moveable))return;let{startX:o,startY:r}=a;(o-n.clientX)**2+(r-n.clientY)**2>9&&(a.clickable=!1);let{width:s,height:c}=a.el.getBoundingClientRect(),u=n.clientY-a.offsetY,d=n.clientX-a.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,p,...h]=v,{style:f}=a.el;f.transition="",f[m.key]=m.value,f[p.key]=p.value,f[h[0].key]="auto",f[h[1].key]="auto"};(0,r.useEvent)("blur",u),(0,r.useEvent)("mouseup",u),(0,r.useEvent)("touchend",u),(0,r.useEvent)("mousemove",d),(0,r.useEvent)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!a,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==a?void 0:a.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.r(t),n.d(t,{pTimeout:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},24933:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return r}});var o=n("65872");class r extends o.Hookable{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e[t](...o)}),this}constructor(){super(),this.status="close";let e=e=>{this.status!==e&&(this.status=e,this.callHook(e))};this.hook("send",t=>{"shutdown"===t.event&&e("close")}),this.hook("receive",t=>{"shutdown"===t.event?e("close"):"operations"===t.event?e("active"):e("open")})}}},90833:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","567","58","637","768","955"],function(){return t("90915"),t("92033"),t("19161"),t("19449"),t("80295")}),e.O()}]);
@@ -1,22 +1,10 @@
1
- /*! react */
2
-
3
- /*! hookable */
1
+ /*! react/jsx-runtime */
4
2
 
5
3
  /*! ./Capsule.module.scss */
6
4
 
7
5
  /*! ../Visible */
8
6
 
9
- /*! ./index.module.scss */
10
-
11
- /*! react */
12
-
13
- /*! react-devtools-inline/backend */
14
-
15
- /*! react/jsx-runtime */
16
-
17
- /*! @swc/helpers/_/_object_spread_props */
18
-
19
- /*! @/entries/mount/state */
7
+ /*! @swc/helpers/_/_object_spread */
20
8
 
21
9
  /*! ./FrameBox.module.scss */
22
10
 
@@ -24,19 +12,17 @@
24
12
 
25
13
  /*! ../Loading */
26
14
 
27
- /*! react-devtools-inline/backend */
28
-
29
- /*! react-use */
30
-
31
15
  /*! ./Button.module.scss */
32
16
 
33
17
  /*! @/utils/draggable */
34
18
 
19
+ /*! birpc */
20
+
35
21
  /*! @radix-ui/themes */
36
22
 
37
- /*! react-use */
23
+ /*! ./state */
38
24
 
39
- /*! valtio */
25
+ /*! react-use */
40
26
 
41
27
  /*! react */
42
28
 
@@ -44,30 +30,18 @@
44
30
 
45
31
  /*! react/jsx-runtime */
46
32
 
47
- /*! @/utils/react-devtools */
48
-
49
- /*! @modern-js/devtools-kit/runtime */
50
-
51
- /*! p-defer */
52
-
53
33
  /*! @/utils/promise */
54
34
 
55
35
  /*! react-use */
56
36
 
57
37
  /*! react */
58
38
 
59
- /*! @/components/Devtools/Capsule */
60
-
61
39
  /*! @swc/helpers/_/_object_spread */
62
40
 
63
- /*! react-dom/client */
64
-
65
41
  /*! @radix-ui/themes */
66
42
 
67
43
  /*! react/jsx-runtime */
68
44
 
69
- /*! react/jsx-runtime */
70
-
71
45
  /*! react-icons/hi2 */
72
46
 
73
47
  /*! ufo */
@@ -76,28 +50,54 @@
76
50
 
77
51
  /*! @swc/helpers/_/_object_spread_props */
78
52
 
79
- /*! @swc/helpers/_/_object_spread */
53
+ /*! hookable */
54
+
55
+ /*! ./react-devtools-backend */
80
56
 
81
57
  /*! valtio */
82
58
 
59
+ /*! @swc/helpers/_/_object_spread */
60
+
83
61
  /*! @swc/helpers/_/_object_spread_props */
84
62
 
85
- /*! birpc */
63
+ /*! react */
86
64
 
87
65
  /*! react/jsx-runtime */
88
66
 
89
- /*! ./state */
67
+ /*! hookable */
68
+
69
+ /*! ./index.module.scss */
70
+
71
+ /*! react */
72
+
73
+ /*! react-devtools-inline/backend */
90
74
 
91
75
  /*! @swc/helpers/_/_object_without_properties */
92
76
 
77
+ /*! react/jsx-runtime */
78
+
79
+ /*! @swc/helpers/_/_object_spread_props */
80
+
81
+ /*! @/entries/mount/state */
82
+
83
+ /*! react-devtools-inline/backend */
84
+
85
+ /*! react-use */
86
+
93
87
  /*! @/entries/mount/state */
94
88
 
95
89
  /*! ./FrameBox */
96
90
 
91
+ /*! valtio */
92
+
97
93
  /*! react-icons/hi2 */
98
94
 
99
- /*! hookable */
95
+ /*! @/utils/react-devtools */
100
96
 
101
- /*! ./react-devtools-backend */
97
+ /*! @modern-js/devtools-kit/runtime */
98
+
99
+ /*! p-defer */
100
+
101
+ /*! @/components/Devtools/Capsule */
102
102
 
103
- /*! @swc/helpers/_/_object_spread */
103
+ /*! react-dom/client */