@zsviczian/kplex-web 0.0.5 → 0.0.6

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/chunk.js CHANGED
@@ -1,769 +1,12 @@
1
- var p1=Object.create;var zh=Object.defineProperty;var g1=Object.getOwnPropertyDescriptor;var y1=Object.getOwnPropertyNames;var b1=Object.getPrototypeOf,v1=Object.prototype.hasOwnProperty;var S1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var w1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y1(t))!v1.call(e,a)&&a!==n&&zh(e,a,{get:()=>t[a],enumerable:!(i=g1(t,a))||i.enumerable});return e};var j=(e,t,n)=>(n=e!=null?p1(b1(e)):{},w1(t||!e||!e.__esModule?zh(n,"default",{value:e,enumerable:!0}):n,e));var P,M=S1(()=>{P=[["K-Plex",` GNU AFFERO GENERAL PUBLIC LICENSE
2
- Version 3, 19 November 2007
3
-
4
- Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
- Everyone is permitted to copy and distribute verbatim copies
6
- of this license document, but changing it is not allowed.
7
-
8
- Preamble
9
-
10
- The GNU Affero General Public License is a free, copyleft license for
11
- software and other kinds of works, specifically designed to ensure
12
- cooperation with the community in the case of network server software.
13
-
14
- The licenses for most software and other practical works are designed
15
- to take away your freedom to share and change the works. By contrast,
16
- our General Public Licenses are intended to guarantee your freedom to
17
- share and change all versions of a program--to make sure it remains free
18
- software for all its users.
19
-
20
- When we speak of free software, we are referring to freedom, not
21
- price. Our General Public Licenses are designed to make sure that you
22
- have the freedom to distribute copies of free software (and charge for
23
- them if you wish), that you receive source code or can get it if you
24
- want it, that you can change the software or use pieces of it in new
25
- free programs, and that you know you can do these things.
26
-
27
- Developers that use our General Public Licenses protect your rights
28
- with two steps: (1) assert copyright on the software, and (2) offer
29
- you this License which gives you legal permission to copy, distribute
30
- and/or modify the software.
31
-
32
- A secondary benefit of defending all users' freedom is that
33
- improvements made in alternate versions of the program, if they
34
- receive widespread use, become available for other developers to
35
- incorporate. Many developers of free software are heartened and
36
- encouraged by the resulting cooperation. However, in the case of
37
- software used on network servers, this result may fail to come about.
38
- The GNU General Public License permits making a modified version and
39
- letting the public access it on a server without ever releasing its
40
- source code to the public.
41
-
42
- The GNU Affero General Public License is designed specifically to
43
- ensure that, in such cases, the modified source code becomes available
44
- to the community. It requires the operator of a network server to
45
- provide the source code of the modified version running there to the
46
- users of that server. Therefore, public use of a modified version, on
47
- a publicly accessible server, gives the public access to the source
48
- code of the modified version.
49
-
50
- An older license, called the Affero General Public License and
51
- published by Affero, was designed to accomplish similar goals. This is
52
- a different license, not a version of the Affero GPL, but Affero has
53
- released a new version of the Affero GPL which permits relicensing under
54
- this license.
55
-
56
- The precise terms and conditions for copying, distribution and
57
- modification follow.
58
-
59
- TERMS AND CONDITIONS
60
-
61
- 0. Definitions.
62
-
63
- "This License" refers to version 3 of the GNU Affero General Public License.
64
-
65
- "Copyright" also means copyright-like laws that apply to other kinds of
66
- works, such as semiconductor masks.
67
-
68
- "The Program" refers to any copyrightable work licensed under this
69
- License. Each licensee is addressed as "you". "Licensees" and
70
- "recipients" may be individuals or organizations.
71
-
72
- To "modify" a work means to copy from or adapt all or part of the work
73
- in a fashion requiring copyright permission, other than the making of an
74
- exact copy. The resulting work is called a "modified version" of the
75
- earlier work or a work "based on" the earlier work.
76
-
77
- A "covered work" means either the unmodified Program or a work based
78
- on the Program.
79
-
80
- To "propagate" a work means to do anything with it that, without
81
- permission, would make you directly or secondarily liable for
82
- infringement under applicable copyright law, except executing it on a
83
- computer or modifying a private copy. Propagation includes copying,
84
- distribution (with or without modification), making available to the
85
- public, and in some countries other activities as well.
86
-
87
- To "convey" a work means any kind of propagation that enables other
88
- parties to make or receive copies. Mere interaction with a user through
89
- a computer network, with no transfer of a copy, is not conveying.
90
-
91
- An interactive user interface displays "Appropriate Legal Notices"
92
- to the extent that it includes a convenient and prominently visible
93
- feature that (1) displays an appropriate copyright notice, and (2)
94
- tells the user that there is no warranty for the work (except to the
95
- extent that warranties are provided), that licensees may convey the
96
- work under this License, and how to view a copy of this License. If
97
- the interface presents a list of user commands or options, such as a
98
- menu, a prominent item in the list meets this criterion.
99
-
100
- 1. Source Code.
101
-
102
- The "source code" for a work means the preferred form of the work
103
- for making modifications to it. "Object code" means any non-source
104
- form of a work.
105
-
106
- A "Standard Interface" means an interface that either is an official
107
- standard defined by a recognized standards body, or, in the case of
108
- interfaces specified for a particular programming language, one that
109
- is widely used among developers working in that language.
110
-
111
- The "System Libraries" of an executable work include anything, other
112
- than the work as a whole, that (a) is included in the normal form of
113
- packaging a Major Component, but which is not part of that Major
114
- Component, and (b) serves only to enable use of the work with that
115
- Major Component, or to implement a Standard Interface for which an
116
- implementation is available to the public in source code form. A
117
- "Major Component", in this context, means a major essential component
118
- (kernel, window system, and so on) of the specific operating system
119
- (if any) on which the executable work runs, or a compiler used to
120
- produce the work, or an object code interpreter used to run it.
121
-
122
- The "Corresponding Source" for a work in object code form means all
123
- the source code needed to generate, install, and (for an executable
124
- work) run the object code and to modify the work, including scripts to
125
- control those activities. However, it does not include the work's
126
- System Libraries, or general-purpose tools or generally available free
127
- programs which are used unmodified in performing those activities but
128
- which are not part of the work. For example, Corresponding Source
129
- includes interface definition files associated with source files for
130
- the work, and the source code for shared libraries and dynamically
131
- linked subprograms that the work is specifically designed to require,
132
- such as by intimate data communication or control flow between those
133
- subprograms and other parts of the work.
134
-
135
- The Corresponding Source need not include anything that users
136
- can regenerate automatically from other parts of the Corresponding
137
- Source.
138
-
139
- The Corresponding Source for a work in source code form is that
140
- same work.
141
-
142
- 2. Basic Permissions.
143
-
144
- All rights granted under this License are granted for the term of
145
- copyright on the Program, and are irrevocable provided the stated
146
- conditions are met. This License explicitly affirms your unlimited
147
- permission to run the unmodified Program. The output from running a
148
- covered work is covered by this License only if the output, given its
149
- content, constitutes a covered work. This License acknowledges your
150
- rights of fair use or other equivalent, as provided by copyright law.
151
-
152
- You may make, run and propagate covered works that you do not
153
- convey, without conditions so long as your license otherwise remains
154
- in force. You may convey covered works to others for the sole purpose
155
- of having them make modifications exclusively for you, or provide you
156
- with facilities for running those works, provided that you comply with
157
- the terms of this License in conveying all material for which you do
158
- not control copyright. Those thus making or running the covered works
159
- for you must do so exclusively on your behalf, under your direction
160
- and control, on terms that prohibit them from making any copies of
161
- your copyrighted material outside their relationship with you.
162
-
163
- Conveying under any other circumstances is permitted solely under
164
- the conditions stated below. Sublicensing is not allowed; section 10
165
- makes it unnecessary.
166
-
167
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
-
169
- No covered work shall be deemed part of an effective technological
170
- measure under any applicable law fulfilling obligations under article
171
- 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
- similar laws prohibiting or restricting circumvention of such
173
- measures.
174
-
175
- When you convey a covered work, you waive any legal power to forbid
176
- circumvention of technological measures to the extent such circumvention
177
- is effected by exercising rights under this License with respect to
178
- the covered work, and you disclaim any intention to limit operation or
179
- modification of the work as a means of enforcing, against the work's
180
- users, your or third parties' legal rights to forbid circumvention of
181
- technological measures.
182
-
183
- 4. Conveying Verbatim Copies.
184
-
185
- You may convey verbatim copies of the Program's source code as you
186
- receive it, in any medium, provided that you conspicuously and
187
- appropriately publish on each copy an appropriate copyright notice;
188
- keep intact all notices stating that this License and any
189
- non-permissive terms added in accord with section 7 apply to the code;
190
- keep intact all notices of the absence of any warranty; and give all
191
- recipients a copy of this License along with the Program.
192
-
193
- You may charge any price or no price for each copy that you convey,
194
- and you may offer support or warranty protection for a fee.
195
-
196
- 5. Conveying Modified Source Versions.
197
-
198
- You may convey a work based on the Program, or the modifications to
199
- produce it from the Program, in the form of source code under the
200
- terms of section 4, provided that you also meet all of these conditions:
201
-
202
- a) The work must carry prominent notices stating that you modified
203
- it, and giving a relevant date.
204
-
205
- b) The work must carry prominent notices stating that it is
206
- released under this License and any conditions added under section
207
- 7. This requirement modifies the requirement in section 4 to
208
- "keep intact all notices".
209
-
210
- c) You must license the entire work, as a whole, under this
211
- License to anyone who comes into possession of a copy. This
212
- License will therefore apply, along with any applicable section 7
213
- additional terms, to the whole of the work, and all its parts,
214
- regardless of how they are packaged. This License gives no
215
- permission to license the work in any other way, but it does not
216
- invalidate such permission if you have separately received it.
217
-
218
- d) If the work has interactive user interfaces, each must display
219
- Appropriate Legal Notices; however, if the Program has interactive
220
- interfaces that do not display Appropriate Legal Notices, your
221
- work need not make them do so.
222
-
223
- A compilation of a covered work with other separate and independent
224
- works, which are not by their nature extensions of the covered work,
225
- and which are not combined with it such as to form a larger program,
226
- in or on a volume of a storage or distribution medium, is called an
227
- "aggregate" if the compilation and its resulting copyright are not
228
- used to limit the access or legal rights of the compilation's users
229
- beyond what the individual works permit. Inclusion of a covered work
230
- in an aggregate does not cause this License to apply to the other
231
- parts of the aggregate.
232
-
233
- 6. Conveying Non-Source Forms.
234
-
235
- You may convey a covered work in object code form under the terms
236
- of sections 4 and 5, provided that you also convey the
237
- machine-readable Corresponding Source under the terms of this License,
238
- in one of these ways:
239
-
240
- a) Convey the object code in, or embodied in, a physical product
241
- (including a physical distribution medium), accompanied by the
242
- Corresponding Source fixed on a durable physical medium
243
- customarily used for software interchange.
244
-
245
- b) Convey the object code in, or embodied in, a physical product
246
- (including a physical distribution medium), accompanied by a
247
- written offer, valid for at least three years and valid for as
248
- long as you offer spare parts or customer support for that product
249
- model, to give anyone who possesses the object code either (1) a
250
- copy of the Corresponding Source for all the software in the
251
- product that is covered by this License, on a durable physical
252
- medium customarily used for software interchange, for a price no
253
- more than your reasonable cost of physically performing this
254
- conveying of source, or (2) access to copy the
255
- Corresponding Source from a network server at no charge.
256
-
257
- c) Convey individual copies of the object code with a copy of the
258
- written offer to provide the Corresponding Source. This
259
- alternative is allowed only occasionally and noncommercially, and
260
- only if you received the object code with such an offer, in accord
261
- with subsection 6b.
262
-
263
- d) Convey the object code by offering access from a designated
264
- place (gratis or for a charge), and offer equivalent access to the
265
- Corresponding Source in the same way through the same place at no
266
- further charge. You need not require recipients to copy the
267
- Corresponding Source along with the object code. If the place to
268
- copy the object code is a network server, the Corresponding Source
269
- may be on a different server (operated by you or a third party)
270
- that supports equivalent copying facilities, provided you maintain
271
- clear directions next to the object code saying where to find the
272
- Corresponding Source. Regardless of what server hosts the
273
- Corresponding Source, you remain obligated to ensure that it is
274
- available for as long as needed to satisfy these requirements.
275
-
276
- e) Convey the object code using peer-to-peer transmission, provided
277
- you inform other peers where the object code and Corresponding
278
- Source of the work are being offered to the general public at no
279
- charge under subsection 6d.
280
-
281
- A separable portion of the object code, whose source code is excluded
282
- from the Corresponding Source as a System Library, need not be
283
- included in conveying the object code work.
284
-
285
- A "User Product" is either (1) a "consumer product", which means any
286
- tangible personal property which is normally used for personal, family,
287
- or household purposes, or (2) anything designed or sold for incorporation
288
- into a dwelling. In determining whether a product is a consumer product,
289
- doubtful cases shall be resolved in favor of coverage. For a particular
290
- product received by a particular user, "normally used" refers to a
291
- typical or common use of that class of product, regardless of the status
292
- of the particular user or of the way in which the particular user
293
- actually uses, or expects or is expected to use, the product. A product
294
- is a consumer product regardless of whether the product has substantial
295
- commercial, industrial or non-consumer uses, unless such uses represent
296
- the only significant mode of use of the product.
297
-
298
- "Installation Information" for a User Product means any methods,
299
- procedures, authorization keys, or other information required to install
300
- and execute modified versions of a covered work in that User Product from
301
- a modified version of its Corresponding Source. The information must
302
- suffice to ensure that the continued functioning of the modified object
303
- code is in no case prevented or interfered with solely because
304
- modification has been made.
305
-
306
- If you convey an object code work under this section in, or with, or
307
- specifically for use in, a User Product, and the conveying occurs as
308
- part of a transaction in which the right of possession and use of the
309
- User Product is transferred to the recipient in perpetuity or for a
310
- fixed term (regardless of how the transaction is characterized), the
311
- Corresponding Source conveyed under this section must be accompanied
312
- by the Installation Information. But this requirement does not apply
313
- if neither you nor any third party retains the ability to install
314
- modified object code on the User Product (for example, the work has
315
- been installed in ROM).
316
-
317
- The requirement to provide Installation Information does not include a
318
- requirement to continue to provide support service, warranty, or updates
319
- for a work that has been modified or installed by the recipient, or for
320
- the User Product in which it has been modified or installed. Access to a
321
- network may be denied when the modification itself materially and
322
- adversely affects the operation of the network or violates the rules and
323
- protocols for communication across the network.
324
-
325
- Corresponding Source conveyed, and Installation Information provided,
326
- in accord with this section must be in a format that is publicly
327
- documented (and with an implementation available to the public in
328
- source code form), and must require no special password or key for
329
- unpacking, reading or copying.
330
-
331
- 7. Additional Terms.
332
-
333
- "Additional permissions" are terms that supplement the terms of this
334
- License by making exceptions from one or more of its conditions.
335
- Additional permissions that are applicable to the entire Program shall
336
- be treated as though they were included in this License, to the extent
337
- that they are valid under applicable law. If additional permissions
338
- apply only to part of the Program, that part may be used separately
339
- under those permissions, but the entire Program remains governed by
340
- this License without regard to the additional permissions.
341
-
342
- When you convey a copy of a covered work, you may at your option
343
- remove any additional permissions from that copy, or from any part of
344
- it. (Additional permissions may be written to require their own
345
- removal in certain cases when you modify the work.) You may place
346
- additional permissions on material, added by you to a covered work,
347
- for which you have or can give appropriate copyright permission.
348
-
349
- Notwithstanding any other provision of this License, for material you
350
- add to a covered work, you may (if authorized by the copyright holders of
351
- that material) supplement the terms of this License with terms:
352
-
353
- a) Disclaiming warranty or limiting liability differently from the
354
- terms of sections 15 and 16 of this License; or
355
-
356
- b) Requiring preservation of specified reasonable legal notices or
357
- author attributions in that material or in the Appropriate Legal
358
- Notices displayed by works containing it; or
359
-
360
- c) Prohibiting misrepresentation of the origin of that material, or
361
- requiring that modified versions of such material be marked in
362
- reasonable ways as different from the original version; or
363
-
364
- d) Limiting the use for publicity purposes of names of licensors or
365
- authors of the material; or
366
-
367
- e) Declining to grant rights under trademark law for use of some
368
- trade names, trademarks, or service marks; or
369
-
370
- f) Requiring indemnification of licensors and authors of that
371
- material by anyone who conveys the material (or modified versions of
372
- it) with contractual assumptions of liability to the recipient, for
373
- any liability that these contractual assumptions directly impose on
374
- those licensors and authors.
375
-
376
- All other non-permissive additional terms are considered "further
377
- restrictions" within the meaning of section 10. If the Program as you
378
- received it, or any part of it, contains a notice stating that it is
379
- governed by this License along with a term that is a further
380
- restriction, you may remove that term. If a license document contains
381
- a further restriction but permits relicensing or conveying under this
382
- License, you may add to a covered work material governed by the terms
383
- of that license document, provided that the further restriction does
384
- not survive such relicensing or conveying.
385
-
386
- If you add terms to a covered work in accord with this section, you
387
- must place, in the relevant source files, a statement of the
388
- additional terms that apply to those files, or a notice indicating
389
- where to find the applicable terms.
390
-
391
- Additional terms, permissive or non-permissive, may be stated in the
392
- form of a separately written license, or stated as exceptions;
393
- the above requirements apply either way.
394
-
395
- 8. Termination.
396
-
397
- You may not propagate or modify a covered work except as expressly
398
- provided under this License. Any attempt otherwise to propagate or
399
- modify it is void, and will automatically terminate your rights under
400
- this License (including any patent licenses granted under the third
401
- paragraph of section 11).
402
-
403
- However, if you cease all violation of this License, then your
404
- license from a particular copyright holder is reinstated (a)
405
- provisionally, unless and until the copyright holder explicitly and
406
- finally terminates your license, and (b) permanently, if the copyright
407
- holder fails to notify you of the violation by some reasonable means
408
- prior to 60 days after the cessation.
409
-
410
- Moreover, your license from a particular copyright holder is
411
- reinstated permanently if the copyright holder notifies you of the
412
- violation by some reasonable means, this is the first time you have
413
- received notice of violation of this License (for any work) from that
414
- copyright holder, and you cure the violation prior to 30 days after
415
- your receipt of the notice.
416
-
417
- Termination of your rights under this section does not terminate the
418
- licenses of parties who have received copies or rights from you under
419
- this License. If your rights have been terminated and not permanently
420
- reinstated, you do not qualify to receive new licenses for the same
421
- material under section 10.
422
-
423
- 9. Acceptance Not Required for Having Copies.
424
-
425
- You are not required to accept this License in order to receive or
426
- run a copy of the Program. Ancillary propagation of a covered work
427
- occurring solely as a consequence of using peer-to-peer transmission
428
- to receive a copy likewise does not require acceptance. However,
429
- nothing other than this License grants you permission to propagate or
430
- modify any covered work. These actions infringe copyright if you do
431
- not accept this License. Therefore, by modifying or propagating a
432
- covered work, you indicate your acceptance of this License to do so.
433
-
434
- 10. Automatic Licensing of Downstream Recipients.
435
-
436
- Each time you convey a covered work, the recipient automatically
437
- receives a license from the original licensors, to run, modify and
438
- propagate that work, subject to this License. You are not responsible
439
- for enforcing compliance by third parties with this License.
440
-
441
- An "entity transaction" is a transaction transferring control of an
442
- organization, or substantially all assets of one, or subdividing an
443
- organization, or merging organizations. If propagation of a covered
444
- work results from an entity transaction, each party to that
445
- transaction who receives a copy of the work also receives whatever
446
- licenses to the work the party's predecessor in interest had or could
447
- give under the previous paragraph, plus a right to possession of the
448
- Corresponding Source of the work from the predecessor in interest, if
449
- the predecessor has it or can get it with reasonable efforts.
450
-
451
- You may not impose any further restrictions on the exercise of the
452
- rights granted or affirmed under this License. For example, you may
453
- not impose a license fee, royalty, or other charge for exercise of
454
- rights granted under this License, and you may not initiate litigation
455
- (including a cross-claim or counterclaim in a lawsuit) alleging that
456
- any patent claim is infringed by making, using, selling, offering for
457
- sale, or importing the Program or any portion of it.
458
-
459
- 11. Patents.
460
-
461
- A "contributor" is a copyright holder who authorizes use under this
462
- License of the Program or a work on which the Program is based. The
463
- work thus licensed is called the contributor's "contributor version".
464
-
465
- A contributor's "essential patent claims" are all patent claims
466
- owned or controlled by the contributor, whether already acquired or
467
- hereafter acquired, that would be infringed by some manner, permitted
468
- by this License, of making, using, or selling its contributor version,
469
- but do not include claims that would be infringed only as a
470
- consequence of further modification of the contributor version. For
471
- purposes of this definition, "control" includes the right to grant
472
- patent sublicenses in a manner consistent with the requirements of
473
- this License.
474
-
475
- Each contributor grants you a non-exclusive, worldwide, royalty-free
476
- patent license under the contributor's essential patent claims, to
477
- make, use, sell, offer for sale, import and otherwise run, modify and
478
- propagate the contents of its contributor version.
479
-
480
- In the following three paragraphs, a "patent license" is any express
481
- agreement or commitment, however denominated, not to enforce a patent
482
- (such as an express permission to practice a patent or covenant not to
483
- sue for patent infringement). To "grant" such a patent license to a
484
- party means to make such an agreement or commitment not to enforce a
485
- patent against the party.
486
-
487
- If you convey a covered work, knowingly relying on a patent license,
488
- and the Corresponding Source of the work is not available for anyone
489
- to copy, free of charge and under the terms of this License, through a
490
- publicly available network server or other readily accessible means,
491
- then you must either (1) cause the Corresponding Source to be so
492
- available, or (2) arrange to deprive yourself of the benefit of the
493
- patent license for this particular work, or (3) arrange, in a manner
494
- consistent with the requirements of this License, to extend the patent
495
- license to downstream recipients. "Knowingly relying" means you have
496
- actual knowledge that, but for the patent license, your conveying the
497
- covered work in a country, or your recipient's use of the covered work
498
- in a country, would infringe one or more identifiable patents in that
499
- country that you have reason to believe are valid.
500
-
501
- If, pursuant to or in connection with a single transaction or
502
- arrangement, you convey, or propagate by procuring conveyance of, a
503
- covered work, and grant a patent license to some of the parties
504
- receiving the covered work authorizing them to use, propagate, modify
505
- or convey a specific copy of the covered work, then the patent license
506
- you grant is automatically extended to all recipients of the covered
507
- work and works based on it.
508
-
509
- A patent license is "discriminatory" if it does not include within
510
- the scope of its coverage, prohibits the exercise of, or is
511
- conditioned on the non-exercise of one or more of the rights that are
512
- specifically granted under this License. You may not convey a covered
513
- work if you are a party to an arrangement with a third party that is
514
- in the business of distributing software, under which you make payment
515
- to the third party based on the extent of your activity of conveying
516
- the work, and under which the third party grants, to any of the
517
- parties who would receive the covered work from you, a discriminatory
518
- patent license (a) in connection with copies of the covered work
519
- conveyed by you (or copies made from those copies), or (b) primarily
520
- for and in connection with specific products or compilations that
521
- contain the covered work, unless you entered into that arrangement,
522
- or that patent license was granted, prior to 28 March 2007.
523
-
524
- Nothing in this License shall be construed as excluding or limiting
525
- any implied license or other defenses to infringement that may
526
- otherwise be available to you under applicable patent law.
527
-
528
- 12. No Surrender of Others' Freedom.
529
-
530
- If conditions are imposed on you (whether by court order, agreement or
531
- otherwise) that contradict the conditions of this License, they do not
532
- excuse you from the conditions of this License. If you cannot convey a
533
- covered work so as to satisfy simultaneously your obligations under this
534
- License and any other pertinent obligations, then as a consequence you may
535
- not convey it at all. For example, if you agree to terms that obligate you
536
- to collect a royalty for further conveying from those to whom you convey
537
- the Program, the only way you could satisfy both those terms and this
538
- License would be to refrain entirely from conveying the Program.
539
-
540
- 13. Remote Network Interaction; Use with the GNU General Public License.
541
-
542
- Notwithstanding any other provision of this License, if you modify the
543
- Program, your modified version must prominently offer all users
544
- interacting with it remotely through a computer network (if your version
545
- supports such interaction) an opportunity to receive the Corresponding
546
- Source of your version by providing access to the Corresponding Source
547
- from a network server at no charge, through some standard or customary
548
- means of facilitating copying of software. This Corresponding Source
549
- shall include the Corresponding Source for any work covered by version 3
550
- of the GNU General Public License that is incorporated pursuant to the
551
- following paragraph.
552
-
553
- Notwithstanding any other provision of this License, you have
554
- permission to link or combine any covered work with a work licensed
555
- under version 3 of the GNU General Public License into a single
556
- combined work, and to convey the resulting work. The terms of this
557
- License will continue to apply to the part which is the covered work,
558
- but the work with which it is combined will remain governed by version
559
- 3 of the GNU General Public License.
560
-
561
- 14. Revised Versions of this License.
562
-
563
- The Free Software Foundation may publish revised and/or new versions of
564
- the GNU Affero General Public License from time to time. Such new versions
565
- will be similar in spirit to the present version, but may differ in detail to
566
- address new problems or concerns.
567
-
568
- Each version is given a distinguishing version number. If the
569
- Program specifies that a certain numbered version of the GNU Affero General
570
- Public License "or any later version" applies to it, you have the
571
- option of following the terms and conditions either of that numbered
572
- version or of any later version published by the Free Software
573
- Foundation. If the Program does not specify a version number of the
574
- GNU Affero General Public License, you may choose any version ever published
575
- by the Free Software Foundation.
576
-
577
- If the Program specifies that a proxy can decide which future
578
- versions of the GNU Affero General Public License can be used, that proxy's
579
- public statement of acceptance of a version permanently authorizes you
580
- to choose that version for the Program.
581
-
582
- Later license versions may give you additional or different
583
- permissions. However, no additional obligations are imposed on any
584
- author or copyright holder as a result of your choosing to follow a
585
- later version.
586
-
587
- 15. Disclaimer of Warranty.
588
-
589
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
- APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
- HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
- OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
- IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
- ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
-
598
- 16. Limitation of Liability.
599
-
600
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
- THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
- GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
- USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
- DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
- PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
- EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
- SUCH DAMAGES.
609
-
610
- 17. Interpretation of Sections 15 and 16.
611
-
612
- If the disclaimer of warranty and limitation of liability provided
613
- above cannot be given local legal effect according to their terms,
614
- reviewing courts shall apply local law that most closely approximates
615
- an absolute waiver of all civil liability in connection with the
616
- Program, unless a warranty or assumption of liability accompanies a
617
- copy of the Program in return for a fee.
618
-
619
- END OF TERMS AND CONDITIONS
620
-
621
- How to Apply These Terms to Your New Programs
622
-
623
- If you develop a new program, and you want it to be of the greatest
624
- possible use to the public, the best way to achieve this is to make it
625
- free software which everyone can redistribute and change under these terms.
626
-
627
- To do so, attach the following notices to the program. It is safest
628
- to attach them to the start of each source file to most effectively
629
- state the exclusion of warranty; and each file should have at least
630
- the "copyright" line and a pointer to where the full notice is found.
631
-
632
- <one line to give the program's name and a brief idea of what it does.>
633
- Copyright (C) <year> <name of author>
634
-
635
- This program is free software: you can redistribute it and/or modify
636
- it under the terms of the GNU Affero General Public License as published
637
- by the Free Software Foundation, either version 3 of the License, or
638
- (at your option) any later version.
639
-
640
- This program is distributed in the hope that it will be useful,
641
- but WITHOUT ANY WARRANTY; without even the implied warranty of
642
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
- GNU Affero General Public License for more details.
644
-
645
- You should have received a copy of the GNU Affero General Public License
646
- along with this program. If not, see <https://www.gnu.org/licenses/>.
647
-
648
- Also add information on how to contact you by electronic and paper mail.
649
-
650
- If your software can interact with users remotely through a computer
651
- network, you should also make sure that it provides a way for users to
652
- get its source. For example, if your program is a web application, its
653
- interface could display a "Source" link that leads users to an archive
654
- of the code. There are many ways you could offer source, and different
655
- solutions will be better for different programs; see section 13 for the
656
- specific requirements.
657
-
658
- You should also get your employer (if you work as a programmer) or school,
659
- if any, to sign a "copyright disclaimer" for the program, if necessary.
660
- For more information on this, and how to apply and follow the GNU AGPL, see
661
- <https://www.gnu.org/licenses/>.
662
- `],["React",`MIT License
663
-
664
- Copyright (c) Meta Platforms, Inc. and affiliates.
665
-
666
- Permission is hereby granted, free of charge, to any person obtaining a copy
667
- of this software and associated documentation files (the "Software"), to deal
668
- in the Software without restriction, including without limitation the rights
669
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
670
- copies of the Software, and to permit persons to whom the Software is
671
- furnished to do so, subject to the following conditions:
672
-
673
- The above copyright notice and this permission notice shall be included in all
674
- copies or substantial portions of the Software.
675
-
676
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
677
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
678
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
679
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
680
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
681
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
682
- SOFTWARE.
683
- `],["ReactDOM",`MIT License
684
-
685
- Copyright (c) Meta Platforms, Inc. and affiliates.
686
-
687
- Permission is hereby granted, free of charge, to any person obtaining a copy
688
- of this software and associated documentation files (the "Software"), to deal
689
- in the Software without restriction, including without limitation the rights
690
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
691
- copies of the Software, and to permit persons to whom the Software is
692
- furnished to do so, subject to the following conditions:
693
-
694
- The above copyright notice and this permission notice shall be included in all
695
- copies or substantial portions of the Software.
696
-
697
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
698
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
699
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
700
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
701
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
702
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
703
- SOFTWARE.
704
- `],["Scheduler",`MIT License
705
-
706
- Copyright (c) Meta Platforms, Inc. and affiliates.
707
-
708
- Permission is hereby granted, free of charge, to any person obtaining a copy
709
- of this software and associated documentation files (the "Software"), to deal
710
- in the Software without restriction, including without limitation the rights
711
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
712
- copies of the Software, and to permit persons to whom the Software is
713
- furnished to do so, subject to the following conditions:
714
-
715
- The above copyright notice and this permission notice shall be included in all
716
- copies or substantial portions of the Software.
717
-
718
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
719
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
720
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
721
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
722
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
723
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
724
- SOFTWARE.
725
- `],["Lucide",`ISC License
726
-
727
- Copyright (c) 2026 Lucide Icons and Contributors
728
-
729
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
730
-
731
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
732
-
733
- Feather icons incorporated in Lucide are distributed under the MIT License.
734
-
735
- Copyright (c) 2013-present Cole Bemis
736
-
737
- Permission is hereby granted, free of charge, to any person obtaining a copy
738
- of this software and associated documentation files (the "Software"), to deal
739
- in the Software without restriction, including without limitation the rights
740
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
741
- copies of the Software, and to permit persons to whom the Software is
742
- furnished to do so, subject to the following conditions:
743
-
744
- The above copyright notice and this permission notice shall be included in all
745
- copies or substantial portions of the Software.
746
-
747
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
748
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
749
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
750
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
751
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
752
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
753
- SOFTWARE.
754
- `],["Source",`K-Plex Web 0.0.5 (pack 0.4.6)
755
- Copyright K-Plex contributors. Distributed under AGPL-3.0-only.
756
- Corresponding source: https://github.com/zsviczian/kplex/tree/aeac3bc46752a9d880d9068358f23e05b2cd6f72
757
- Use the source for the exact release that supplied this runtime. When redistributing a custom build, make its exact corresponding source available.
758
- `]]});var Vh=Dn(Ue=>{"use strict";M();function qc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(0<Rr(a,t))e[i]=t,e[n]=a,n=i;else break e}}function Hn(e){return e.length===0?null:e[0]}function Ar(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length,o=a>>>1;i<o;){var l=2*(i+1)-1,r=e[l],u=l+1,c=e[u];if(0>Rr(r,n))u<a&&0>Rr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[l]=n,i=l);else if(u<a&&0>Rr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function Rr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Ue.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Dh=performance,Ue.unstable_now=function(){return Dh.now()}):(Gc=Date,Hh=Gc.now(),Ue.unstable_now=function(){return Gc.now()-Hh});var Dh,Gc,Hh,ni=[],Mi=[],E1=1,sn=null,vt=3,jc=!1,ol=!1,ll=!1,Xc=!1,Uh=typeof setTimeout=="function"?setTimeout:null,_h=typeof clearTimeout=="function"?clearTimeout:null,kh=typeof setImmediate<"u"?setImmediate:null;function Nr(e){for(var t=Hn(Mi);t!==null;){if(t.callback===null)Ar(Mi);else if(t.startTime<=e)Ar(Mi),t.sortIndex=t.expirationTime,qc(ni,t);else break;t=Hn(Mi)}}function Kc(e){if(ll=!1,Nr(e),!ol)if(Hn(ni)!==null)ol=!0,Qa||(Qa=!0,Ka());else{var t=Hn(Mi);t!==null&&Qc(Kc,t.startTime-e)}}var Qa=!1,rl=-1,Ih=5,Bh=-1;function Gh(){return Xc?!0:!(Ue.unstable_now()-Bh<Ih)}function Vc(){if(Xc=!1,Qa){var e=Ue.unstable_now();Bh=e;var t=!0;try{e:{ol=!1,ll&&(ll=!1,_h(rl),rl=-1),jc=!0;var n=vt;try{t:{for(Nr(e),sn=Hn(ni);sn!==null&&!(sn.expirationTime>e&&Gh());){var i=sn.callback;if(typeof i=="function"){sn.callback=null,vt=sn.priorityLevel;var a=i(sn.expirationTime<=e);if(e=Ue.unstable_now(),typeof a=="function"){sn.callback=a,Nr(e),t=!0;break t}sn===Hn(ni)&&Ar(ni),Nr(e)}else Ar(ni);sn=Hn(ni)}if(sn!==null)t=!0;else{var o=Hn(Mi);o!==null&&Qc(Kc,o.startTime-e),t=!1}}break e}finally{sn=null,vt=n,jc=!1}t=void 0}}finally{t?Ka():Qa=!1}}}var Ka;typeof kh=="function"?Ka=function(){kh(Vc)}:typeof MessageChannel<"u"?(Yc=new MessageChannel,Ph=Yc.port2,Yc.port1.onmessage=Vc,Ka=function(){Ph.postMessage(null)}):Ka=function(){Uh(Vc,0)};var Yc,Ph;function Qc(e,t){rl=Uh(function(){e(Ue.unstable_now())},t)}Ue.unstable_IdlePriority=5;Ue.unstable_ImmediatePriority=1;Ue.unstable_LowPriority=4;Ue.unstable_NormalPriority=3;Ue.unstable_Profiling=null;Ue.unstable_UserBlockingPriority=2;Ue.unstable_cancelCallback=function(e){e.callback=null};Ue.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ih=0<e?Math.floor(1e3/e):5};Ue.unstable_getCurrentPriorityLevel=function(){return vt};Ue.unstable_next=function(e){switch(vt){case 1:case 2:case 3:var t=3;break;default:t=vt}var n=vt;vt=t;try{return e()}finally{vt=n}};Ue.unstable_requestPaint=function(){Xc=!0};Ue.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=vt;vt=e;try{return t()}finally{vt=n}};Ue.unstable_scheduleCallback=function(e,t,n){var i=Ue.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,e={id:E1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>i?(e.sortIndex=n,qc(Mi,e),Hn(ni)===null&&e===Hn(Mi)&&(ll?(_h(rl),rl=-1):ll=!0,Qc(Kc,n-i))):(e.sortIndex=a,qc(ni,e),ol||jc||(ol=!0,Qa||(Qa=!0,Ka()))),e};Ue.unstable_shouldYield=Gh;Ue.unstable_wrapCallback=function(e){var t=vt;return function(){var n=vt;vt=t;try{return e.apply(this,arguments)}finally{vt=n}}}});var qh=Dn((_T,Yh)=>{"use strict";M();Yh.exports=Vh()});var im=Dn(te=>{"use strict";M();var Jc=Symbol.for("react.transitional.element"),T1=Symbol.for("react.portal"),M1=Symbol.for("react.fragment"),R1=Symbol.for("react.strict_mode"),N1=Symbol.for("react.profiler"),A1=Symbol.for("react.consumer"),C1=Symbol.for("react.context"),O1=Symbol.for("react.forward_ref"),L1=Symbol.for("react.suspense"),z1=Symbol.for("react.memo"),Zh=Symbol.for("react.lazy"),D1=Symbol.for("react.activity"),H1=Symbol.for("react.view_transition"),jh=Symbol.iterator;function k1(e){return e===null||typeof e!="object"?null:(e=jh&&e[jh]||e["@@iterator"],typeof e=="function"?e:null)}var Fh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jh=Object.assign,Wh={};function Fa(e,t,n){this.props=e,this.context=t,this.refs=Wh,this.updater=n||Fh}Fa.prototype.isReactComponent={};Fa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $h(){}$h.prototype=Fa.prototype;function Wc(e,t,n){this.props=e,this.context=t,this.refs=Wh,this.updater=n||Fh}var $c=Wc.prototype=new $h;$c.constructor=Wc;Jh($c,Fa.prototype);$c.isPureReactComponent=!0;var Xh=Array.isArray;function Fc(){}var Ce={H:null,A:null,T:null,S:null},em=Object.prototype.hasOwnProperty;function es(e,t,n){var i=n.ref;return{$$typeof:Jc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function P1(e,t){return es(e.type,t,e.props)}function ts(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jc}function U1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Kh=/\/+/g;function Zc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?U1(""+e.key):t.toString(36)}function _1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Fc,Fc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Za(e,t,n,i,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Jc:case T1:l=!0;break;case Zh:return l=e._init,Za(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+Zc(e,0):i,Xh(a)?(n="",l!=null&&(n=l.replace(Kh,"$&/")+"/"),Za(a,t,n,"",function(c){return c})):a!=null&&(ts(a)&&(a=P1(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Kh,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(Xh(e))for(var u=0;u<e.length;u++)i=e[u],o=r+Zc(i,u),l+=Za(i,t,n,o,a);else if(u=k1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+Zc(i,u++),l+=Za(i,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return Za(_1(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function Cr(e,t,n){if(e==null)return e;var i=[],a=0;return Za(e,i,"","",function(o){return t.call(n,o,a++)}),i}function I1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Qh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function tm(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),a=Ce.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Fc,Qh)}catch(o){Qh(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function nm(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else tm(nm.bind(null,e))}var B1={map:Cr,forEach:function(e,t,n){Cr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cr(e,function(){t++}),t},toArray:function(e){return Cr(e,function(t){return t})||[]},only:function(e){if(!ts(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Activity=D1;te.Children=B1;te.Component=Fa;te.Fragment=M1;te.Profiler=N1;te.PureComponent=Wc;te.StrictMode=R1;te.Suspense=L1;te.ViewTransition=H1;te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;te.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};te.addTransitionType=nm;te.cache=function(e){return function(){return e.apply(null,arguments)}};te.cacheSignal=function(){return null};te.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Jh({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!em.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),r=0;r<o;r++)l[r]=arguments[r+2];i.children=l}return es(e.type,a,i)};te.createContext=function(e){return e={$$typeof:C1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:A1,_context:e},e};te.createElement=function(e,t,n){var i,a={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)em.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),u=0;u<l;u++)r[u]=arguments[u+2];a.children=r}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)a[i]===void 0&&(a[i]=l[i]);return es(e,o,a)};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:O1,render:e}};te.isValidElement=ts;te.lazy=function(e){return{$$typeof:Zh,_payload:{_status:-1,_result:e},_init:I1}};te.memo=function(e,t){return{$$typeof:z1,type:e,compare:t===void 0?null:t}};te.startTransition=tm;te.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};te.use=function(e){return Ce.H.use(e)};te.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};te.useCallback=function(e,t){return Ce.H.useCallback(e,t)};te.useContext=function(e){return Ce.H.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};te.useEffect=function(e,t){return Ce.H.useEffect(e,t)};te.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};te.useId=function(){return Ce.H.useId()};te.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};te.useMemo=function(e,t){return Ce.H.useMemo(e,t)};te.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};te.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};te.useRef=function(e){return Ce.H.useRef(e)};te.useState=function(e){return Ce.H.useState(e)};te.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};te.useTransition=function(){return Ce.H.useTransition()};te.version="19.3.0"});var $e=Dn((VT,am)=>{"use strict";M();am.exports=im()});var rm=Dn(St=>{"use strict";M();var G1=$e();function lm(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ri(){}var Ct={d:{f:Ri,r:function(){throw Error(lm(522))},D:Ri,C:Ri,L:Ri,m:Ri,X:Ri,S:Ri,M:Ri},p:0,findDOMNode:null},V1=Symbol.for("react.portal"),Y1=Symbol.for("react.recoverable"),om=Symbol.for("react.optimistic_key");function q1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V1,key:i==null?null:i===om?om:""+i,children:e,containerInfo:t,implementation:n}}var ul=G1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Or(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ct;St.browser=function(e){return{$$typeof:Y1,_reason:e}};St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(lm(299));return q1(e,t,null,n)};St.flushSync=function(e){var t=ul.T,n=Ct.p;try{if(ul.T=null,Ct.p=2,e)return e()}finally{ul.T=t,Ct.p=n,Ct.d.f()}};St.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ct.d.C(e,t))};St.prefetchDNS=function(e){typeof e=="string"&&Ct.d.D(e)};St.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Or(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ct.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:o}):n==="script"&&Ct.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};St.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Or(t.as,t.crossOrigin);Ct.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Ct.d.M(e)};St.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Or(n,t.crossOrigin);Ct.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};St.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Or(t.as,t.crossOrigin);Ct.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Ct.d.m(e)};St.requestFormReset=function(e){Ct.d.r(e)};St.unstable_batchedUpdates=function(e,t){return e(t)};St.useFormState=function(e,t,n){return ul.H.useFormState(e,t,n)};St.useFormStatus=function(){return ul.H.useHostTransitionStatus()};St.version="19.3.0"});var Lr=Dn((XT,cm)=>{"use strict";M();function um(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(um)}catch(e){console.error(e)}}um(),cm.exports=rm()});var Zb=Dn(dc=>{"use strict";M();var nt=qh(),Qp=$e(),j1=Lr();function A(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Zp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zl(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Fp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sm(e){if(Zl(e)!==e)throw Error(A(188))}function X1(e){var t=e.alternate;if(!t){if(t=Zl(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return sm(a),e;if(o===i)return sm(a),t;o=o.sibling}throw Error(A(188))}if(n.return!==i.return)n=a,i=o;else{for(var l=!1,r=a.child;r;){if(r===n){l=!0,n=a,i=o;break}if(r===i){l=!0,i=a,n=o;break}r=r.sibling}if(!l){for(r=o.child;r;){if(r===n){l=!0,n=o,i=a;break}if(r===i){l=!0,i=o,n=a;break}r=r.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==i)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Wp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Wp(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,a,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,a,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,a,o))return!0;e=e.sibling}return!1}function za(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function fm(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function $p(e){var t=[null,null],n=za(e);return n===null||eg(t,e,n.child,{foundSelf:!1}),t}function eg(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&eg(e,t,n.child,i))return!0;n=n.sibling}return!1}function tt(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(A(559))}}var io=null,Ds=null;function K1(e,t,n){return e===n?!0:e===t?(io=e,!0):!1}function Q1(e,t,n){return e===n?(Ds=e,!1):e===t?(Ds!==null&&(io=e),!0):!1}function dm(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Hs(e,t,n){for(var i=0,a=e;a;a=n(a))i++;a=0;for(var o=t;o;o=n(o))a++;for(;0<i-a;)e=n(e),i--;for(;0<a-i;)t=n(t),a--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Ae=Object.assign,Z1=Symbol.for("react.element"),zr=Symbol.for("react.transitional.element"),pl=Symbol.for("react.portal"),ao=Symbol.for("react.fragment"),tg=Symbol.for("react.strict_mode"),ks=Symbol.for("react.profiler"),ng=Symbol.for("react.consumer"),Bn=Symbol.for("react.context"),jf=Symbol.for("react.forward_ref"),Ps=Symbol.for("react.suspense"),Us=Symbol.for("react.suspense_list"),Xf=Symbol.for("react.memo"),Oi=Symbol.for("react.lazy");Symbol.for("react.scope");var _s=Symbol.for("react.activity"),F1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var J1=Symbol.for("react.memo_cache_sentinel"),Is=Symbol.for("react.view_transition"),W1=Symbol.for("react.recoverable"),hm=Symbol.iterator;function cl(e){return e===null||typeof e!="object"?null:(e=hm&&e[hm]||e["@@iterator"],typeof e=="function"?e:null)}var $1=Symbol.for("react.client.reference");function Bs(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ao:return"Fragment";case ks:return"Profiler";case tg:return"StrictMode";case Ps:return"Suspense";case Us:return"SuspenseList";case _s:return"Activity";case Is:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case pl:return"Portal";case Bn:return e.displayName||"Context";case ng:return(e._context.displayName||"Context")+".Consumer";case jf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xf:return t=e.displayName||null,t!==null?t:Bs(e.type)||"Memo";case Oi:t=e._payload,e=e._init;try{return Bs(e(t))}catch{}}return null}var gl=Array.isArray,F=Qp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be=j1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,va={pending:!1,data:null,method:null,action:null},Gs=[],oo=-1;function Kn(e){return{current:e}}function dt(e){0>oo||(e.current=Gs[oo],Gs[oo]=null,oo--)}function ze(e,t){oo++,Gs[oo]=e.current,e.current=t}var qn=Kn(null),Dl=Kn(null),Ii=Kn(null),bu=Kn(null);function vu(e,t){switch(ze(Ii,t),ze(Dl,e),ze(qn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Np(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Np(t),e=Tb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}dt(qn),ze(qn,e)}function Ro(){dt(qn),dt(Dl),dt(Ii)}function Vs(e){var t=e.memoizedState;t!==null&&(Po._currentValue=t.memoizedState,ze(bu,e)),t=qn.current;var n=Tb(t,e.type);t!==n&&(ze(Dl,e),ze(qn,n))}function Su(e){Dl.current===e&&(dt(qn),dt(Dl)),bu.current===e&&(dt(bu),Po._currentValue=va)}var ns,mm;function Ai(e){if(ns===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ns=t&&t[1]||"",mm=-1<n.stack.indexOf(`
1
+ var u1=Object.create;var Am=Object.defineProperty;var c1=Object.getOwnPropertyDescriptor;var s1=Object.getOwnPropertyNames;var f1=Object.getPrototypeOf,d1=Object.prototype.hasOwnProperty;var Dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var m1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of s1(t))!d1.call(e,l)&&l!==n&&Am(e,l,{get:()=>t[l],enumerable:!(i=c1(t,l))||i.enumerable});return e};var X=(e,t,n)=>(n=e!=null?u1(f1(e)):{},m1(t||!e||!e.__esModule?Am(n,"default",{value:e,enumerable:!0}):n,e));var Vm=Dn(He=>{"use strict";function Bc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,l=e[i];if(0<wr(l,t))e[i]=t,e[n]=l,n=i;else break e}}function Ln(e){return e.length===0?null:e[0]}function Er(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,l=e.length,a=l>>>1;i<a;){var o=2*(i+1)-1,r=e[o],u=o+1,c=e[u];if(0>wr(r,n))u<l&&0>wr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[o]=n,i=o);else if(u<l&&0>wr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function wr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}He.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(zm=performance,He.unstable_now=function(){return zm.now()}):(Pc=Date,Om=Pc.now(),He.unstable_now=function(){return Pc.now()-Om});var zm,Pc,Om,li=[],Ti=[],h1=1,an=null,gt=3,Gc=!1,Wa=!1,eo=!1,Yc=!1,_m=typeof setTimeout=="function"?setTimeout:null,Hm=typeof clearTimeout=="function"?clearTimeout:null,Dm=typeof setImmediate<"u"?setImmediate:null;function Mr(e){for(var t=Ln(Ti);t!==null;){if(t.callback===null)Er(Ti);else if(t.startTime<=e)Er(Ti),t.sortIndex=t.expirationTime,Bc(li,t);else break;t=Ln(Ti)}}function qc(e){if(eo=!1,Mr(e),!Wa)if(Ln(li)!==null)Wa=!0,Gl||(Gl=!0,Bl());else{var t=Ln(Ti);t!==null&&jc(qc,t.startTime-e)}}var Gl=!1,to=-1,Um=5,Pm=-1;function km(){return Yc?!0:!(He.unstable_now()-Pm<Um)}function kc(){if(Yc=!1,Gl){var e=He.unstable_now();Pm=e;var t=!0;try{e:{Wa=!1,eo&&(eo=!1,Hm(to),to=-1),Gc=!0;var n=gt;try{t:{for(Mr(e),an=Ln(li);an!==null&&!(an.expirationTime>e&&km());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var l=i(an.expirationTime<=e);if(e=He.unstable_now(),typeof l=="function"){an.callback=l,Mr(e),t=!0;break t}an===Ln(li)&&Er(li),Mr(e)}else Er(li);an=Ln(li)}if(an!==null)t=!0;else{var a=Ln(Ti);a!==null&&jc(qc,a.startTime-e),t=!1}}break e}finally{an=null,gt=n,Gc=!1}t=void 0}}finally{t?Bl():Gl=!1}}}var Bl;typeof Dm=="function"?Bl=function(){Dm(kc)}:typeof MessageChannel<"u"?(Vc=new MessageChannel,Lm=Vc.port2,Vc.port1.onmessage=kc,Bl=function(){Lm.postMessage(null)}):Bl=function(){_m(kc,0)};var Vc,Lm;function jc(e,t){to=_m(function(){e(He.unstable_now())},t)}He.unstable_IdlePriority=5;He.unstable_ImmediatePriority=1;He.unstable_LowPriority=4;He.unstable_NormalPriority=3;He.unstable_Profiling=null;He.unstable_UserBlockingPriority=2;He.unstable_cancelCallback=function(e){e.callback=null};He.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Um=0<e?Math.floor(1e3/e):5};He.unstable_getCurrentPriorityLevel=function(){return gt};He.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};He.unstable_requestPaint=function(){Yc=!0};He.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};He.unstable_scheduleCallback=function(e,t,n){var i=He.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,e={id:h1++,callback:t,priorityLevel:e,startTime:n,expirationTime:l,sortIndex:-1},n>i?(e.sortIndex=n,Bc(Ti,e),Ln(li)===null&&e===Ln(Ti)&&(eo?(Hm(to),to=-1):eo=!0,jc(qc,n-i))):(e.sortIndex=l,Bc(li,e),Wa||Gc||(Wa=!0,Gl||(Gl=!0,Bl()))),e};He.unstable_shouldYield=km;He.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Gm=Dn((TM,Bm)=>{"use strict";Bm.exports=Vm()});var eh=Dn($=>{"use strict";var Qc=Symbol.for("react.transitional.element"),p1=Symbol.for("react.portal"),g1=Symbol.for("react.fragment"),y1=Symbol.for("react.strict_mode"),b1=Symbol.for("react.profiler"),v1=Symbol.for("react.consumer"),S1=Symbol.for("react.context"),x1=Symbol.for("react.forward_ref"),w1=Symbol.for("react.suspense"),M1=Symbol.for("react.memo"),Km=Symbol.for("react.lazy"),E1=Symbol.for("react.activity"),T1=Symbol.for("react.view_transition"),Ym=Symbol.iterator;function N1(e){return e===null||typeof e!="object"?null:(e=Ym&&e[Ym]||e["@@iterator"],typeof e=="function"?e:null)}var Qm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zm=Object.assign,Im={};function ql(e,t,n){this.props=e,this.context=t,this.refs=Im,this.updater=n||Qm}ql.prototype.isReactComponent={};ql.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ql.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jm(){}Jm.prototype=ql.prototype;function Zc(e,t,n){this.props=e,this.context=t,this.refs=Im,this.updater=n||Qm}var Ic=Zc.prototype=new Jm;Ic.constructor=Zc;Zm(Ic,ql.prototype);Ic.isPureReactComponent=!0;var qm=Array.isArray;function Kc(){}var Ce={H:null,A:null,T:null,S:null},Fm=Object.prototype.hasOwnProperty;function Jc(e,t,n){var i=n.ref;return{$$typeof:Qc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function R1(e,t){return Jc(e.type,t,e.props)}function Fc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qc}function C1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jm=/\/+/g;function Xc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?C1(""+e.key):t.toString(36)}function A1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Kc,Kc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Yl(e,t,n,i,l){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Qc:case p1:o=!0;break;case Km:return o=e._init,Yl(o(e._payload),t,n,i,l)}}if(o)return l=l(e),o=i===""?"."+Xc(e,0):i,qm(l)?(n="",o!=null&&(n=o.replace(jm,"$&/")+"/"),Yl(l,t,n,"",function(c){return c})):l!=null&&(Fc(l)&&(l=R1(l,n+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(jm,"$&/")+"/")+o)),t.push(l)),1;o=0;var r=i===""?".":i+":";if(qm(e))for(var u=0;u<e.length;u++)i=e[u],a=r+Xc(i,u),o+=Yl(i,t,n,a,l);else if(u=N1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Xc(i,u++),o+=Yl(i,t,n,a,l);else if(a==="object"){if(typeof e.then=="function")return Yl(A1(e),t,n,i,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Tr(e,t,n){if(e==null)return e;var i=[],l=0;return Yl(e,i,"","",function(a){return t.call(n,a,l++)}),i}function z1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Xm=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function $m(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),l=Ce.S;l!==null&&l(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Kc,Xm)}catch(a){Xm(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function Wm(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else $m(Wm.bind(null,e))}var O1={map:Tr,forEach:function(e,t,n){Tr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tr(e,function(){t++}),t},toArray:function(e){return Tr(e,function(t){return t})||[]},only:function(e){if(!Fc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Activity=E1;$.Children=O1;$.Component=ql;$.Fragment=g1;$.Profiler=b1;$.PureComponent=Zc;$.StrictMode=y1;$.Suspense=w1;$.ViewTransition=T1;$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;$.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};$.addTransitionType=Wm;$.cache=function(e){return function(){return e.apply(null,arguments)}};$.cacheSignal=function(){return null};$.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Zm({},e.props),l=e.key;if(t!=null)for(a in t.key!==void 0&&(l=""+t.key),t)!Fm.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(i[a]=t[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),r=0;r<a;r++)o[r]=arguments[r+2];i.children=o}return Jc(e.type,l,i)};$.createContext=function(e){return e={$$typeof:S1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:v1,_context:e},e};$.createElement=function(e,t,n){var i,l={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)Fm.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(l[i]=t[i]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var r=Array(o),u=0;u<o;u++)r[u]=arguments[u+2];l.children=r}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)l[i]===void 0&&(l[i]=o[i]);return Jc(e,a,l)};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:x1,render:e}};$.isValidElement=Fc;$.lazy=function(e){return{$$typeof:Km,_payload:{_status:-1,_result:e},_init:z1}};$.memo=function(e,t){return{$$typeof:M1,type:e,compare:t===void 0?null:t}};$.startTransition=$m;$.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};$.use=function(e){return Ce.H.use(e)};$.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};$.useCallback=function(e,t){return Ce.H.useCallback(e,t)};$.useContext=function(e){return Ce.H.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};$.useEffect=function(e,t){return Ce.H.useEffect(e,t)};$.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};$.useId=function(){return Ce.H.useId()};$.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Ce.H.useMemo(e,t)};$.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};$.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};$.useRef=function(e){return Ce.H.useRef(e)};$.useState=function(e){return Ce.H.useState(e)};$.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};$.useTransition=function(){return Ce.H.useTransition()};$.version="19.3.0"});var nt=Dn((RM,th)=>{"use strict";th.exports=eh()});var lh=Dn(yt=>{"use strict";var D1=nt();function ih(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ni(){}var Nt={d:{f:Ni,r:function(){throw Error(ih(522))},D:Ni,C:Ni,L:Ni,m:Ni,X:Ni,S:Ni,M:Ni},p:0,findDOMNode:null},L1=Symbol.for("react.portal"),_1=Symbol.for("react.recoverable"),nh=Symbol.for("react.optimistic_key");function H1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L1,key:i==null?null:i===nh?nh:""+i,children:e,containerInfo:t,implementation:n}}var no=D1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Nt;yt.browser=function(e){return{$$typeof:_1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ih(299));return H1(e,t,null,n)};yt.flushSync=function(e){var t=no.T,n=Nt.p;try{if(no.T=null,Nt.p=2,e)return e()}finally{no.T=t,Nt.p=n,Nt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Nt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&Nt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nr(n,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Nt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:l,fetchPriority:a}):n==="script"&&Nt.d.X(e,{crossOrigin:i,integrity:l,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nr(t.as,t.crossOrigin);Nt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Nt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nr(n,t.crossOrigin);Nt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nr(t.as,t.crossOrigin);Nt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Nt.d.m(e)};yt.requestFormReset=function(e){Nt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return no.H.useFormState(e,t,n)};yt.useFormStatus=function(){return no.H.useHostTransitionStatus()};yt.version="19.3.0"});var Rr=Dn((AM,oh)=>{"use strict";function ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),oh.exports=lh()});var Kb=Dn(uc=>{"use strict";var Fe=Gm(),Xp=nt(),U1=Rr();function R(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Kp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jo(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Qp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rh(e){if(jo(e)!==e)throw Error(R(188))}function P1(e){var t=e.alternate;if(!t){if(t=jo(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(l===null)break;var a=l.alternate;if(a===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return rh(l),e;if(a===i)return rh(l),t;a=a.sibling}throw Error(R(188))}if(n.return!==i.return)n=l,i=a;else{for(var o=!1,r=l.child;r;){if(r===n){o=!0,n=l,i=a;break}if(r===i){o=!0,i=l,n=a;break}r=r.sibling}if(!o){for(r=a.child;r;){if(r===n){o=!0,n=a,i=l;break}if(r===i){o=!0,i=a,n=l;break}r=r.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==i)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Ip(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ip(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,l,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,l,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,l,a))return!0;e=e.sibling}return!1}function zl(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function uh(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Jp(e){var t=[null,null],n=zl(e);return n===null||Fp(t,e,n.child,{foundSelf:!1}),t}function Fp(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Fp(e,t,n.child,i))return!0;n=n.sibling}return!1}function Je(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(R(559))}}var Jl=null,As=null;function k1(e,t,n){return e===n?!0:e===t?(Jl=e,!0):!1}function V1(e,t,n){return e===n?(As=e,!1):e===t?(As!==null&&(Jl=e),!0):!1}function ch(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function zs(e,t,n){for(var i=0,l=e;l;l=n(l))i++;l=0;for(var a=t;a;a=n(a))l++;for(;0<i-l;)e=n(e),i--;for(;0<l-i;)t=n(t),l--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Re=Object.assign,B1=Symbol.for("react.element"),Cr=Symbol.for("react.transitional.element"),co=Symbol.for("react.portal"),Fl=Symbol.for("react.fragment"),$p=Symbol.for("react.strict_mode"),Os=Symbol.for("react.profiler"),Wp=Symbol.for("react.consumer"),Vn=Symbol.for("react.context"),Gf=Symbol.for("react.forward_ref"),Ds=Symbol.for("react.suspense"),Ls=Symbol.for("react.suspense_list"),Yf=Symbol.for("react.memo"),zi=Symbol.for("react.lazy");Symbol.for("react.scope");var _s=Symbol.for("react.activity"),G1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Y1=Symbol.for("react.memo_cache_sentinel"),Hs=Symbol.for("react.view_transition"),q1=Symbol.for("react.recoverable"),sh=Symbol.iterator;function io(e){return e===null||typeof e!="object"?null:(e=sh&&e[sh]||e["@@iterator"],typeof e=="function"?e:null)}var j1=Symbol.for("react.client.reference");function Us(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===j1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Os:return"Profiler";case $p:return"StrictMode";case Ds:return"Suspense";case Ls:return"SuspenseList";case _s:return"Activity";case Hs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case co:return"Portal";case Vn:return e.displayName||"Context";case Wp:return(e._context.displayName||"Context")+".Consumer";case Gf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yf:return t=e.displayName||null,t!==null?t:Us(e.type)||"Memo";case zi:t=e._payload,e=e._init;try{return Us(e(t))}catch{}}return null}var so=Array.isArray,Q=Xp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=U1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yl={pending:!1,data:null,method:null,action:null},Ps=[],$l=-1;function Kn(e){return{current:e}}function st(e){0>$l||(e.current=Ps[$l],Ps[$l]=null,$l--)}function Oe(e,t){$l++,Ps[$l]=e.current,e.current=t}var qn=Kn(null),Co=Kn(null),Vi=Kn(null),hu=Kn(null);function pu(e,t){switch(Oe(Vi,t),Oe(Co,e),Oe(qn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ep(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ep(t),e=xb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(qn),Oe(qn,e)}function ba(){st(qn),st(Co),st(Vi)}function ks(e){var t=e.memoizedState;t!==null&&(Ca._currentValue=t.memoizedState,Oe(hu,e)),t=qn.current;var n=xb(t,e.type);t!==n&&(Oe(Co,e),Oe(qn,n))}function gu(e){Co.current===e&&(st(qn),st(Co)),hu.current===e&&(st(hu),Ca._currentValue=yl)}var $c,fh;function Ci(e){if($c===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$c=t&&t[1]||"",fh=-1<n.stack.indexOf(`
759
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
760
- `+ns+e+mm}var is=!1;function as(e,t){if(!e||is)return"";is=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(S){var s=S}Reflect.construct(e,[],p)}else{try{p.call()}catch(S){s=S}p=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(S){s=S}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(S){if(S&&s&&typeof S.stack=="string")return[S.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),l=o[0],r=o[1];if(l&&r){var u=l.split(`
3
+ `+$c+e+fh}var Wc=!1;function es(e,t){if(!e||Wc)return"";Wc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(S){var s=S}Reflect.construct(e,[],p)}else{try{p.call()}catch(S){s=S}p=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(S){s=S}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(S){if(S&&s&&typeof S.stack=="string")return[S.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),o=a[0],r=a[1];if(o&&r){var u=o.split(`
761
4
  `),c=r.split(`
762
- `);for(a=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(i===u.length||a===c.length)for(i=u.length-1,a=c.length-1;1<=i&&0<=a&&u[i]!==c[a];)a--;for(;1<=i&&0<=a;i--,a--)if(u[i]!==c[a]){if(i!==1||a!==1)do if(i--,a--,0>a||u[i]!==c[a]){var f=`
763
- `+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=a);break}}}finally{is=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ai(n):""}function eS(e,t){switch(e.tag){case 26:case 27:case 5:return Ai(e.type);case 16:return Ai("Lazy");case 13:return e.child!==t&&t!==null?Ai("Suspense Fallback"):Ai("Suspense");case 19:return Ai("SuspenseList");case 0:case 15:return as(e.type,!1);case 11:return as(e.type.render,!1);case 1:return as(e.type,!0);case 31:return Ai("Activity");case 30:return Ai("ViewTransition");default:return""}}function pm(e){try{var t="",n=null;do t+=eS(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
5
+ `);for(l=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(i===u.length||l===c.length)for(i=u.length-1,l=c.length-1;1<=i&&0<=l&&u[i]!==c[l];)l--;for(;1<=i&&0<=l;i--,l--)if(u[i]!==c[l]){if(i!==1||l!==1)do if(i--,l--,0>l||u[i]!==c[l]){var f=`
6
+ `+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=l);break}}}finally{Wc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ci(n):""}function X1(e,t){switch(e.tag){case 26:case 27:case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return e.child!==t&&t!==null?Ci("Suspense Fallback"):Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 15:return es(e.type,!1);case 11:return es(e.type.render,!1);case 1:return es(e.type,!0);case 31:return Ci("Activity");case 30:return Ci("ViewTransition");default:return""}}function dh(e){try{var t="",n=null;do t+=X1(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
764
7
  Error generating stack: `+i.message+`
765
- `+i.stack}}var Ys=Object.prototype.hasOwnProperty,Kf=nt.unstable_scheduleCallback,os=nt.unstable_cancelCallback,tS=nt.unstable_shouldYield,nS=nt.unstable_requestPaint,Wt=nt.unstable_now,iS=nt.unstable_getCurrentPriorityLevel,ig=nt.unstable_ImmediatePriority,ag=nt.unstable_UserBlockingPriority,wu=nt.unstable_NormalPriority,aS=nt.unstable_LowPriority,og=nt.unstable_IdlePriority,oS=nt.log,lS=nt.unstable_setDisableYieldValue,Fl=null,$t=null;function Di(e){if(typeof oS=="function"&&lS(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Fl,e)}catch{}}var en=Math.clz32?Math.clz32:cS,rS=Math.log,uS=Math.LN2;function cS(e){return e>>>=0,e===0?32:31-(rS(e)/uS|0)|0}var Dr=256,Hr=262144,kr=4194304;function ma(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ku(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~o,i!==0?a=ma(i):(l&=r,l!==0?a=ma(l):n||(n=r&~e,n!==0&&(a=ma(n))))):(r=i&~o,r!==0?a=ma(r):l!==0?a=ma(l):n||(n=i&~e,n!==0&&(a=ma(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function Jl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lg(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-en(n),a=1<<i;t|=e[i],n&=~a}return t}function sS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rg(){var e=kr;return kr<<=1,(kr&62914560)===0&&(kr=4194304),e}function ls(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fS(e,t,n,i,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-en(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var m=s[f];m!==null&&(m.lane&=-536870913)}n&=~p}i!==0&&ug(e,i,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(l&~t))}function ug(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-en(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function cg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-en(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function sg(e,t){var n=t&-t;return n=(n&42)!==0?1:Qf(n),(n&(e.suspendedLanes|t))!==0?0:n}function Qf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Zf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fg(){var e=be.p;return e!==0?e:(e=window.event,e===void 0?32:Xb(e.type))}function gm(e,t){var n=be.p;try{return be.p=e,t()}finally{be.p=n}}var pi=Math.random().toString(36).slice(2),st="__reactFiber$"+pi,Yt="__reactProps$"+pi,Io="__reactContainer$"+pi,ym="__reactEvents$"+pi,dS="__reactListeners$"+pi,hS="__reactHandles$"+pi,bm="__reactResources$"+pi,$l="__reactMarker$"+pi,xu="__reactLoad$"+pi;function Qu(e){delete e[st],delete e[Yt],delete e[dS],delete e[hS]}function ya(e){var t;if(t=e[st])return t;for(var n=e.parentNode;n;){if(t=n[Io]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kp(e);e!==null;){if(n=e[st])return n;e=kp(e)}return t}e=n,n=e.parentNode}return null}function Bo(e){if(e=e[st]||e[Io]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function go(e){var t=e[bm];return t||(t=e[bm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[$l]=!0}function dg(e){e[xu]=void 0}var hg=new Set,mg={};function Da(e,t){No(e,t),No(e+"Capture",t)}function No(e,t){for(mg[e]=t,e=0;e<t.length;e++)hg.add(t[e])}var mS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),vm={},Sm={};function pS(e){return Ys.call(Sm,e)?!0:Ys.call(vm,e)?!1:mS.test(e)?Sm[e]=!0:(vm[e]=!0,!1)}var ge=!1;function wm(){var e=ge;return ge=!1,e}function $r(e,t,n){if(pS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Pr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ii(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qs(e){if(!e._valueTracker){var t=pg(e)?"checked":"value";e._valueTracker=gS(e,t,""+e[t])}}function gg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=pg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var yS=/[\n"\\]/g;function pn(e){return e.replace(yS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function js(e,t,n,i,a,o,l,r){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?l==="number"&&e.value==t?rs(e,Qt(e.value)):rs(e,Qt(t)):n!=null?rs(e,Qt(n)):i!=null&&e.removeAttribute("value"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function yg(e,t,n,i,a,o,l,r){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){qs(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),qs(e)}function rs(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function yo(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function bg(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function vg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(A(92));if(gl(i)){if(1<i.length)throw Error(A(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),qs(e)}function Ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xm(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||bS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Sg(e,t,n){if(t!=null&&typeof t!="object")throw Error(A(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",ge=!0);for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&(xm(e,a,i),ge=!0)}else for(var o in t)t.hasOwnProperty(o)&&xm(e,o,t[o])}function Ff(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),SS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function eu(e){return SS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gn(){}var Xs=null;function Jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lo=null,bo=null;function Em(e){var t=Bo(e);if(t&&(e=t.stateNode)){var n=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(js(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+pn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Yt]||null;if(!a)throw Error(A(90));js(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&gg(i)}break e;case"textarea":bg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&yo(e,!!n.multiple,t,!1)}}}var us=!1;function wg(e,t,n){if(us)return e(t,n);us=!0;try{var i=e(t);return i}finally{if(us=!1,(lo!==null||bo!==null)&&(uc(),lo&&(t=lo,e=bo,bo=lo=null,Em(t),e)))for(t=0;t<e.length;t++)Em(e[t])}}function Hl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Yt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ks=!1;if(ci)try{Ja={},Object.defineProperty(Ja,"passive",{get:function(){Ks=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Ks=!1}var Ja,Hi=null,Wf=null,tu=null;function xg(){if(tu)return tu;var e,t=Wf,n=t.length,i,a="value"in Hi?Hi.value:Hi.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(i=1;i<=l&&t[n-i]===a[o-i];i++);return tu=a.slice(e,1<i?1-i:void 0)}function nu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ur(){return!0}function Tm(){return!1}function Dt(e){function t(n,i,a,o,l){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(o):o[r]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ur:Tm,this.isPropagationStopped=Tm,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ur)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ur)},persist:function(){},isPersistent:Ur}),t}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zu=Dt(ea),er=Ae({},ea,{view:0,detail:0}),wS=Dt(er),cs,ss,sl,Fu=Ae({},er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$f,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sl&&(sl&&e.type==="mousemove"?(cs=e.screenX-sl.screenX,ss=e.screenY-sl.screenY):ss=cs=0,sl=e),cs)},movementY:function(e){return"movementY"in e?e.movementY:ss}}),Mm=Dt(Fu),xS=Ae({},Fu,{dataTransfer:0}),ES=Dt(xS),TS=Ae({},er,{relatedTarget:0}),fs=Dt(TS),MS=Ae({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),RS=Dt(MS),NS=Ae({},ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AS=Dt(NS),CS=Ae({},ea,{data:0}),Rm=Dt(CS),OS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},zS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zS[e])?!!t[e]:!1}function $f(){return DS}var HS=Ae({},er,{key:function(e){if(e.key){var t=OS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$f,charCode:function(e){return e.type==="keypress"?nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kS=Dt(HS),PS=Ae({},Fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nm=Dt(PS),US=Ae({},ea,{submitter:0}),_S=Dt(US),IS=Ae({},er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$f}),BS=Dt(IS),GS=Ae({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),VS=Dt(GS),YS=Ae({},Fu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qS=Dt(YS),jS=Ae({},ea,{newState:0,oldState:0,source:0}),XS=Dt(jS),KS=[9,13,27,32],ed=ci&&"CompositionEvent"in window,Sl=null;ci&&"documentMode"in document&&(Sl=document.documentMode);var QS=ci&&"TextEvent"in window&&!Sl,Eg=ci&&(!ed||Sl&&8<Sl&&11>=Sl),Am=" ",Cm=!1;function Tg(e,t){switch(e){case"keyup":return KS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function ZS(e,t){switch(e){case"compositionend":return Mg(t);case"keypress":return t.which!==32?null:(Cm=!0,Am);case"textInput":return e=t.data,e===Am&&Cm?null:e;default:return null}}function FS(e,t){if(ro)return e==="compositionend"||!ed&&Tg(e,t)?(e=xg(),tu=Wf=Hi=null,ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Eg&&t.locale!=="ko"?null:t.data;default:return null}}var JS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Om(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JS[e.type]:t==="textarea"}function Rg(e,t,n,i){lo?bo?bo.push(i):bo=[i]:lo=i,t=qu(t,"onChange"),0<t.length&&(n=new Zu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var wl=null,kl=null;function WS(e){wb(e,0)}function Ju(e){var t=yl(e);if(gg(t))return e}function Lm(e,t){if(e==="change")return t}var Ng=!1;ci&&(ci?(Ir="oninput"in document,Ir||(ds=document.createElement("div"),ds.setAttribute("oninput","return;"),Ir=typeof ds.oninput=="function"),_r=Ir):_r=!1,Ng=_r&&(!document.documentMode||9<document.documentMode));var _r,Ir,ds;function zm(){wl&&(wl.detachEvent("onpropertychange",Ag),kl=wl=null)}function Ag(e){if(e.propertyName==="value"&&Ju(kl)){var t=[];Rg(t,kl,e,Jf(e)),wg(WS,t)}}function $S(e,t,n){e==="focusin"?(zm(),wl=t,kl=n,wl.attachEvent("onpropertychange",Ag)):e==="focusout"&&zm()}function ew(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ju(kl)}function tw(e,t){if(e==="click")return Ju(t)}function nw(e,t){if(e==="input"||e==="change")return Ju(t)}function iw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:iw;function Pl(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Ys.call(t,a)||!nn(e[a],t[a]))return!1}return!0}function Qs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hm(e,t){var n=Dm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dm(n)}}function Cg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Og(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qs(e.document)}return t}function td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var aw=ci&&"documentMode"in document&&11>=document.documentMode,uo=null,Zs=null,xl=null,Fs=!1;function km(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||uo==null||uo!==Qs(i)||(i=uo,"selectionStart"in i&&td(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),xl&&Pl(xl,i)||(xl=i,i=qu(Zs,"onSelect"),0<i.length&&(t=new Zu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=uo)))}function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},hs={},Lg={};ci&&(Lg=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function Ha(e){if(hs[e])return hs[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lg)return hs[e]=t[n];return e}var zg=Ha("animationend"),Dg=Ha("animationiteration"),Hg=Ha("animationstart"),ow=Ha("transitionrun"),lw=Ha("transitionstart"),rw=Ha("transitioncancel"),kg=Ha("transitionend"),Pg=new Map,Js="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Js.push("scrollEnd");function Rn(e,t){Pg.set(e,t),Da(t,[e])}var uw=0;function si(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Mn.identifierPrefix;var n=uw++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Pm(e){if(e==null||typeof e=="string")return e;var t=null,n=Mo;if(n!==null)for(var i=0;i<n.length;i++){var a=e[n[i]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function gi(e,t){return e=Pm(e),t=Pm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Eu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dn=[],so=0,nd=0;function Wu(){for(var e=so,t=nd=so=0;t<e;){var n=dn[t];dn[t++]=null;var i=dn[t];dn[t++]=null;var a=dn[t];dn[t++]=null;var o=dn[t];if(dn[t++]=null,i!==null&&a!==null){var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}o!==0&&Ug(n,a,o)}}function $u(e,t,n,i){dn[so++]=e,dn[so++]=t,dn[so++]=n,dn[so++]=i,nd|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function id(e,t,n,i){return $u(e,t,n,i),Tu(e)}function ka(e,t){return $u(e,null,null,t),Tu(e)}function Ug(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-en(n),e=o.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),o):null}function Tu(e){if(50<zl)throw zl=0,du=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fo={};function cw(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,i){return new cw(e,t,n,i)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ri(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _g(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,n,i,a,o){var l=0;if(i=e,typeof i=="function")ad(i)&&(l=1);else if(typeof i=="string")l=kx(e,n,qn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case _s:return e=Bt(31,n,t,a),e.elementType=_s,e.lanes=o,e;case ao:return Sa(n.children,a,o,t);case tg:l=8,a|=24;break;case ks:return e=Bt(12,n,t,a|2),e.elementType=ks,e.lanes=o,e;case Ps:return e=Bt(13,n,t,a),e.elementType=Ps,e.lanes=o,e;case Us:return e=Bt(19,n,t,a),e.elementType=Us,e.lanes=o,e;case F1:case Is:return e=a|32,e=Bt(30,n,t,e),e.elementType=Is,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Bn:l=10;break e;case ng:l=9;break e;case jf:l=11;break e;case Xf:l=14;break e;case Oi:l=16,i=null;break e}l=29,n=Error(A(130,e===null?"null":typeof e,"")),i=null}return t=Bt(l,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Sa(e,t,n,i){return e=Bt(7,e,i,t),e.lanes=n,e}function ms(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function Ig(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function ps(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Um=new WeakMap;function gn(e,t){if(typeof e=="object"&&e!==null){var n=Um.get(e);return n!==void 0?n:(t={value:e,source:t,stack:pm(t)},Um.set(e,t),t)}return{value:e,source:t,stack:pm(t)}}var ho=[],mo=0,Mu=null,Ul=0,hn=[],mn=0,Zi=null,Vn=1,Yn="";function oi(e,t){ho[mo++]=Ul,ho[mo++]=Mu,Mu=e,Ul=t}function Bg(e,t,n){hn[mn++]=Vn,hn[mn++]=Yn,hn[mn++]=Zi,Zi=e;var i=Vn;e=Yn;var a=32-en(i)-1;i&=~(1<<a),n+=1;var o=32-en(t)+a;if(30<o){var l=a-a%5;o=(i&(1<<l)-1).toString(32),i>>=l,a-=l,Vn=1<<32-en(t)+a|n<<a|i,Yn=o+e}else Vn=1<<o|n<<a|i,Yn=e}function ec(e){e.return!==null&&(oi(e,1),Bg(e,1,0))}function od(e){for(;e===Mu;)Mu=ho[--mo],ho[mo]=null,Ul=ho[--mo],ho[mo]=null;for(;e===Zi;)Zi=hn[--mn],hn[mn]=null,Yn=hn[--mn],hn[mn]=null,Vn=hn[--mn],hn[mn]=null}function Gg(e,t){hn[mn++]=Vn,hn[mn++]=Yn,hn[mn++]=Zi,Vn=t.id,Yn=t.overflow,Zi=e}var ut=null,Le=null,ce=!1,Bi=null,yn=!1,Ws=Error(A(519));function Fi(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(gn(t,e)),Ws}function _m(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[st]=e,t[Yt]=i,n){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(n=0;n<Vl.length;n++)fe(Vl[n],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),yg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),vg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Eb(t.textContent,n)?(i.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),i.onScroll!=null&&fe("scroll",t),i.onScrollEnd!=null&&fe("scrollend",t),i.onClick!=null&&(t.onclick=Gn),t=!0):t=!1,t||Fi(e,!0)}function Ru(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:ut=ut.return}}function Wa(e){if(e!==ut)return!1;if(!ce)return Ru(e),ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Uf(e.type,e.memoizedProps)),n=!n),n&&Le&&Fi(e),Ru(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Le=Hp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Le=Hp(e)}else t===27?(t=Le,ta(e.type)?(e=Gf,Gf=null,Le=e):Le=t):Le=ut?bn(e.stateNode.nextSibling):null;return!0}function Ta(){Le=ut=null,ce=!1}function gs(){var e=Bi;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),Bi=null),e}function _l(e){Bi===null?Bi=[e]:Bi.push(e)}var $s=Kn(null),Pa=null,li=null;function ki(e,t,n){ze($s,t._currentValue),t._currentValue=n}function ui(e){e._currentValue=$s.current,dt($s)}function au(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function ef(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var l=a.child;o=o.firstContext;e:for(;o!==null;){var r=o;o=a;for(var u=0;u<t.length;u++)if(r.context===t[u]){o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),au(o.return,n,e),i||(l=null);break e}o=r.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(A(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),au(l,n,e),l=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),au(a.return,n,e),l=a.child,l=l!==null?l.sibling:null):l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function Ma(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(A(387));if(l=l.memoizedProps,l!==null){var r=a.type;nn(a.pendingProps.value,l.value)||(e!==null?e.push(r):e=[r])}}else if(a===bu.current){if(l=a.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Po):e=[Po])}a=a.return}return e!==null&&ef(t,e,n,i),t.flags|=262144,e!==null}function Nu(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ra(e){Pa=e,li=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Vg(Pa,e)}function Br(e,t){return Pa===null&&Ra(e),Vg(e,t)}function Vg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},li===null){if(e===null)throw Error(A(308));li=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else li=li.next=t;return n}var sw=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},fw=nt.unstable_scheduleCallback,dw=nt.unstable_NormalPriority,Fe={$$typeof:Bn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ld(){return{controller:new sw,data:new Map,refCount:0}}function tr(e){e.refCount--,e.refCount===0&&fw(dw,function(){e.controller.abort()})}function Im(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var bl=null;function hw(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var El=null,tf=0,Na=0,vo=null;function mw(e,t){if(El===null){var n=El=[];tf=0,Na=Hd(),vo={status:"pending",value:void 0,then:function(i){n.push(i)}}}return tf++,t.then(Bm,Bm),t}function Bm(){if(--tf===0&&(bl=null,El!==null)){vo!==null&&(vo.status="fulfilled");var e=El;El=null,Na=0,vo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function pw(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var Gm=F.S;F.S=function(e,t){if(lb=Wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&mw(e,t),bl!==null)for(var n=Do;n!==null;)Im(n,bl),n=n.next;if(n=e.types,n!==null){for(var i=Do;i!==null;)Im(i,n),i=i.next;if(Na!==0){i=bl,i===null&&(i=bl=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}Gm!==null&&Gm(e,t)};var wa=Kn(null);function rd(){var e=wa.current;return e!==null?e:Ne.pooledCache}function ou(e,t){t===null?ze(wa,wa.current):ze(wa,t.pool)}function Yg(){var e=rd();return e===null?null:{parent:Fe._currentValue,pool:e}}var Go=Error(A(460)),ud=Error(A(474)),tc=Error(A(542)),Au={then:function(){}};function Vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gn,Gn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qm(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(Gn,Gn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qm(e),e}throw xa=t,Go}}function pa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xa=n,Go):n}}var xa=null;function Ym(){if(xa===null)throw Error(A(459));var e=xa;return xa=null,e}function qm(e){if(e===Go||e===tc)throw Error(A(483))}var So=null,Il=0;function Gr(e){var t=Il;return Il+=1,So===null&&(So=[]),qg(So,e,t)}function Ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vr(e,t){throw t.$$typeof===Z1?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jg(e){function t(d,h){if(e){var g=d.deletions;g===null?(d.deletions=[h],d.flags|=16):g.push(h)}}function n(d,h){if(!e)return null;for(;h!==null;)t(d,h),h=h.sibling;return null}function i(d){for(var h=new Map;d!==null;)d.key===null?h.set(d.index,d):h.set(d.key,d),d=d.sibling;return h}function a(d,h){return d=ri(d,h),d.index=0,d.sibling=null,d}function o(d,h,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<h?(d.flags|=2,h):g):(d.flags|=134217730,h)):(d.flags|=1048576,h)}function l(d){return e&&d.alternate===null&&(d.flags|=134217730),d}function r(d,h,g,w){return h===null||h.tag!==6?(h=ms(g,d.mode,w),h.return=d,h):(h=a(h,g),h.return=d,h)}function u(d,h,g,w){var E=g.type;return E===ao?(d=f(d,h,g.props.children,w,g.key),Ni(d,g),d):h!==null&&(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Oi&&pa(E)===h.type)?(h=a(h,g.props),Ni(h,g),h.return=d,h):(h=iu(g.type,g.key,g.props,null,d.mode,w),Ni(h,g),h.return=d,h)}function c(d,h,g,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ps(g,d.mode,w),h.return=d,h):(h=a(h,g.children||[]),h.return=d,h)}function f(d,h,g,w,E){return h===null||h.tag!==7?(h=Sa(g,d.mode,w,E),h.return=d,h):(h=a(h,g),h.return=d,h)}function p(d,h,g){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=ms(""+h,d.mode,g),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case zr:return g=iu(h.type,h.key,h.props,null,d.mode,g),Ni(g,h),g.return=d,g;case pl:return h=ps(h,d.mode,g),h.return=d,h;case Oi:return h=pa(h),p(d,h,g)}if(gl(h)||cl(h))return h=Sa(h,d.mode,g,null),h.return=d,h;if(typeof h.then=="function")return p(d,Gr(h),g);if(h.$$typeof===Bn)return p(d,Br(d,h),g);Vr(d,h)}return null}function s(d,h,g,w){var E=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return E!==null?null:r(d,h,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zr:return g.key===E?u(d,h,g,w):null;case pl:return g.key===E?c(d,h,g,w):null;case Oi:return g=pa(g),s(d,h,g,w)}if(gl(g)||cl(g))return E!==null?null:f(d,h,g,w,null);if(typeof g.then=="function")return s(d,h,Gr(g),w);if(g.$$typeof===Bn)return s(d,h,Br(d,g),w);Vr(d,g)}return null}function m(d,h,g,w,E){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return d=d.get(g)||null,r(h,d,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zr:return d=d.get(w.key===null?g:w.key)||null,u(h,d,w,E);case pl:return d=d.get(w.key===null?g:w.key)||null,c(h,d,w,E);case Oi:return w=pa(w),m(d,h,g,w,E)}if(gl(w)||cl(w))return d=d.get(g)||null,f(h,d,w,E,null);if(typeof w.then=="function")return m(d,h,g,Gr(w),E);if(w.$$typeof===Bn)return m(d,h,g,Br(h,w),E);Vr(h,w)}return null}function S(d,h,g,w){for(var E=null,R=null,x=h,N=h=0,G=null;x!==null&&N<g.length;N++){x.index>N?(G=x,x=null):G=x.sibling;var T=s(d,x,g[N],w);if(T===null){x===null&&(x=G);break}e&&x&&T.alternate===null&&t(d,x),h=o(T,h,N),R===null?E=T:R.sibling=T,R=T,x=G}if(N===g.length)return n(d,x),ce&&oi(d,N),E;if(x===null){for(;N<g.length;N++)x=p(d,g[N],w),x!==null&&(h=o(x,h,N),R===null?E=x:R.sibling=x,R=x);return ce&&oi(d,N),E}for(x=i(x);N<g.length;N++)G=m(x,d,N,g[N],w),G!==null&&(e&&(T=G.alternate,T!==null&&x.delete(T.key===null?N:T.key)),h=o(G,h,N),R===null?E=G:R.sibling=G,R=G);return e&&x.forEach(function(I){return t(d,I)}),ce&&oi(d,N),E}function b(d,h,g,w){if(g==null)throw Error(A(151));for(var E=null,R=null,x=h,N=h=0,G=null,T=g.next();x!==null&&!T.done;N++,T=g.next()){x.index>N?(G=x,x=null):G=x.sibling;var I=s(d,x,T.value,w);if(I===null){x===null&&(x=G);break}e&&x&&I.alternate===null&&t(d,x),h=o(I,h,N),R===null?E=I:R.sibling=I,R=I,x=G}if(T.done)return n(d,x),ce&&oi(d,N),E;if(x===null){for(;!T.done;N++,T=g.next())T=p(d,T.value,w),T!==null&&(h=o(T,h,N),R===null?E=T:R.sibling=T,R=T);return ce&&oi(d,N),E}for(x=i(x);!T.done;N++,T=g.next())T=m(x,d,N,T.value,w),T!==null&&(e&&(G=T.alternate,G!==null&&x.delete(G.key===null?N:G.key)),h=o(T,h,N),R===null?E=T:R.sibling=T,R=T);return e&&x.forEach(function(H){return t(d,H)}),ce&&oi(d,N),E}function v(d,h,g,w){if(typeof g=="object"&&g!==null&&g.type===ao&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case zr:e:{for(var E=g.key;h!==null;){if(h.key===E){if(E=g.type,E===ao){if(h.tag===7){n(d,h.sibling),w=a(h,g.props.children),Ni(w,g),w.return=d,d=w;break e}}else if(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Oi&&pa(E)===h.type){n(d,h.sibling),w=a(h,g.props),Ni(w,g),w.return=d,d=w;break e}n(d,h);break}else t(d,h);h=h.sibling}g.type===ao?(w=Sa(g.props.children,d.mode,w,g.key),Ni(w,g),w.return=d,d=w):(w=iu(g.type,g.key,g.props,null,d.mode,w),Ni(w,g),w.return=d,d=w)}return l(d);case pl:e:{for(E=g.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(d,h.sibling),w=a(h,g.children||[]),w.return=d,d=w;break e}else{n(d,h);break}else t(d,h);h=h.sibling}w=ps(g,d.mode,w),w.return=d,d=w}return l(d);case Oi:return g=pa(g),v(d,h,g,w)}if(gl(g))return S(d,h,g,w);if(cl(g)){if(E=cl(g),typeof E!="function")throw Error(A(150));return g=E.call(g),b(d,h,g,w)}if(typeof g.then=="function")return v(d,h,Gr(g),w);if(g.$$typeof===Bn)return v(d,h,Br(d,g),w);Vr(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,h!==null&&h.tag===6?(n(d,h.sibling),w=a(h,g),w.return=d,d=w):(n(d,h),w=ms(g,d.mode,w),w.return=d,d=w),l(d)):n(d,h)}return function(d,h,g,w){try{Il=0;var E=v(d,h,g,w);return So=null,E}catch(x){if(x===Go||x===tc)throw x;var R=Bt(29,x,null,d.mode);return R.lanes=w,R.return=d,R}finally{}}}var Aa=jg(!0),Xg=jg(!1),Li=!1;function cd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ye&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=Tu(e),Ug(e,null,n),t}return $u(e,i,t,n),Tu(e)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,cg(e,n)}}function ys(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var af=!1;function Ml(){if(af){var e=vo;if(e!==null)throw e}}function Rl(e,t,n,i){af=!1;var a=e.updateQueue;Li=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var u=r,c=u.next;u.next=null,l===null?o=c:l.next=c,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==l&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(o!==null){var p=a.baseState;l=0,f=c=u=null,r=o;do{var s=r.lane&-536870913,m=s!==r.lane;if(m?(me&s)===s:(i&s)===s){s!==0&&s===Na&&(af=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var S=e,b=r;s=t;var v=n;switch(b.tag){case 1:if(S=b.payload,typeof S=="function"){p=S.call(v,p,s);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=b.payload,s=typeof S=="function"?S.call(v,p,s):S,s==null)break e;p=Ae({},p,s);break e;case 2:Li=!0}}s=r.callback,s!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[s]:m.push(s))}else m={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=m,u=p):f=f.next=m,l|=s;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);f===null&&(u=p),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,o===null&&(a.shared.lanes=0),$i|=l,e.lanes=l,e.memoizedState=p}}function Kg(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function Qg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Kg(n[e],t)}var Ji=Kn(null),Cu=Kn(0);function jm(e,t){e=mi,ze(Cu,e),ze(Ji,t),mi=e|t.baseLanes}function of(){ze(Cu,mi),ze(Ji,Ji.current)}function sd(){mi=Cu.current,dt(Ji),dt(Cu)}var pt=Kn(null),wt=null;function Yi(e){var t=e.alternate;ze(ht,ht.current&1),ze(pt,e),wt===null&&(t===null||Ji.current!==null||t.memoizedState!==null)&&(wt=e)}function lf(e){ze(ht,ht.current),ze(pt,e),wt===null&&(wt=e)}function Zg(e){e.tag===22?(ze(ht,ht.current),ze(pt,e),wt===null&&(wt=e)):qi()}function qi(){ze(ht,ht.current),ze(pt,pt.current)}function Zt(e){dt(pt),wt===e&&(wt=null),dt(ht)}var ht=Kn(0);function Bl(e,t){ze(pt,pt.current),ze(ht,t)}function fd(e){dt(ht),dt(pt),wt===e&&(wt=null)}function Ou(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Bf(n)||_d(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fi=0,oe=null,Te=null,Ze=null,Lu=!1,wo=!1,Ca=!1,zu=0,Gl=0,xo=null,gw=0;function Ye(){throw Error(A(321))}function dd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function hd(e,t,n,i,a,o){return fi=o,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?Ry:Ny,Ca=!1,o=n(i,a),Ca=!1,wo&&(o=Jg(t,n,i,a)),Fg(e),o}function Fg(e){F.H=Du;var t=Te!==null&&Te.next!==null;if(fi=0,Ze=Te=oe=null,Lu=!1,Gl=0,xo=null,t)throw Error(A(300));e===null||Je||(e=e.dependencies,e!==null&&Nu(e)&&(Je=!0))}function Jg(e,t,n,i){oe=e;var a=0;do{if(wo&&(xo=null),Gl=0,wo=!1,25<=a)throw Error(A(301));if(a+=1,Ze=Te=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=Tw,o=t(n,i)}while(wo);return o}function yw(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?nr(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(oe.flags|=1024),t}function md(){var e=zu!==0;return zu=0,e}function pd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function gd(e){if(Lu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lu=!1}fi=0,Ze=Te=oe=null,wo=!1,Gl=zu=0,xo=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?oe.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function je(){if(Te===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ze===null?oe.memoizedState:Ze.next;if(t!==null)Ze=t,Te=e;else{if(e===null)throw oe.alternate===null?Error(A(467)):Error(A(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ze===null?oe.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function nc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nr(e){var t=Gl;return Gl+=1,xo===null&&(xo=[]),e=qg(xo,e,t),t=oe,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?Ry:Ny),e}function ic(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nr(e);if(e.$$typeof===W1)return;if(e.$$typeof===Bn)return ft(e)}throw Error(A(438,String(e)))}function yd(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=nc(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=J1;return t.index++,n}function di(e,t){return typeof t=="function"?t(e):t}function lu(e){var t=je();return bd(t,Te,e)}function bd(e,t,n){var i=e.queue;if(i===null)throw Error(A(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var l=a.next;a.next=o.next,o.next=l}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var r=l=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(me&p)===p:(fi&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Na&&(f=!0);else if((fi&s)===s){c=c.next,s===Na&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,l=o):u=u.next=p,oe.lanes|=s,$i|=s;p=c.action,Ca&&n(o,p),o=c.hasEagerState?c.eagerState:n(o,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,l=o):u=u.next=s,oe.lanes|=p,$i|=p;c=c.next}while(c!==null&&c!==t);if(u===null?l=o:u.next=r,!nn(o,e.memoizedState)&&(Je=!0,f&&(n=vo,n!==null)))throw n;e.memoizedState=o,e.baseState=l,e.baseQueue=u,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function bs(e){var t=je(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do o=e(o,l.action),l=l.next;while(l!==a);nn(o,t.memoizedState)||(Je=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Wg(e,t,n){var i=oe,a=je(),o=ce;if(o){if(n===void 0)throw Error(A(407));n=n()}else n=t();var l=!nn((Te||a).memoizedState,n);if(l&&(a.memoizedState=n,Je=!0),a=a.queue,vd(ty.bind(null,i,a,e),[e]),e=a.getSnapshot!==t||l||Ze!==null&&(Ze.memoizedState.tag&1)!==0,Co(e?9:8,{destroy:void 0},ey.bind(null,i,a,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(A(349));o||(fi&127)!==0||$g(i,t,n)}return n}function $g(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=nc(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ey(e,t,n,i){t.value=n,t.getSnapshot=i,ny(t)&&iy(e)}function ty(e,t,n){return n(function(){ny(t)&&iy(e)})}function ny(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function iy(e){var t=ka(e,2);t!==null&&Gt(t,e,2)}function rf(e){var t=zt();if(typeof e=="function"){var n=e;if(e=n(),Ca){Di(!0);try{n()}finally{Di(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:e},t}function ay(e,t,n,i){return e.baseState=n,bd(e,Te,typeof i=="function"?i:di)}function bw(e,t,n,i,a){if(oc(e))throw Error(A(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){o.listeners.push(l)}};F.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,oy(t,o)):(o.next=n.next,t.pending=n.next=o)}}function oy(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var o=F.T,l={};l.types=o!==null?o.types:null,F.T=l;try{var r=n(a,i),u=F.S;u!==null&&u(l,r),Xm(e,t,r)}catch(c){uf(e,t,c)}finally{o!==null&&l.types!==null&&(o.types=l.types),F.T=o}}else try{o=n(a,i),Xm(e,t,o)}catch(c){uf(e,t,c)}}function Xm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Km(e,t,i)},function(i){return uf(e,t,i)}):Km(e,t,n)}function Km(e,t,n){t.status="fulfilled",t.value=n,ly(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,oy(e,n)))}function uf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,ly(t),t=t.next;while(t!==i)}e.action=null}function ly(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ry(e,t){return t}function Qm(e,t){if(ce){var n=Ne.formState;if(n!==null){e:{var i=oe;if(ce){if(Le){t:{for(var a=Le,o=yn;a.nodeType!==8;){if(!o){a=null;break t}if(a=bn(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){Le=bn(a.nextSibling),i=a.data==="F!";break e}}Fi(i)}i=!1}i&&(t=n[0])}}return n=zt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ry,lastRenderedState:t},n.queue=i,n=Ey.bind(null,oe,i),i.dispatch=n,i=rf(!1),o=Ed.bind(null,oe,!1,i.queue),i=zt(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=bw.bind(null,oe,a,o,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function Zm(e){var t=je();return uy(t,Te,e)}function uy(e,t,n){if(t=bd(e,t,ry)[0],e=lu(di)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=nr(t)}catch(l){throw l===Go?tc:l}else i=t;t=je();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,Co(9,{destroy:void 0},vw.bind(null,a,n),null)),[i,o,e]}function vw(e,t){e.action=t}function Fm(e){var t=je(),n=Te;if(n!==null)return uy(t,n,e);je(),t=t.memoizedState,n=je();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Co(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=oe.updateQueue,t===null&&(t=nc(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function cy(){return je().memoizedState}function ru(e,t,n,i){var a=zt();oe.flags|=e,a.memoizedState=Co(1|t,{destroy:void 0},n,i===void 0?null:i)}function ac(e,t,n,i){var a=je();i=i===void 0?null:i;var o=a.memoizedState.inst;Te!==null&&i!==null&&dd(i,Te.memoizedState.deps)?a.memoizedState=Co(t,o,n,i):(oe.flags|=e,a.memoizedState=Co(1|t,o,n,i))}function Jm(e,t){ru(8390656,8,e,t)}function vd(e,t){ac(2048,8,e,t)}function Sw(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=nc(),oe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function sy(e){var t=je().memoizedState;return Sw({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function fy(e,t){return ac(4,2,e,t)}function dy(e,t){return ac(4,4,e,t)}function hy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function my(e,t,n){n=n!=null?n.concat([e]):null,ac(4,4,hy.bind(null,t,e),n)}function Sd(){}function py(e,t){var n=je();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&dd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function gy(e,t){var n=je();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&dd(t,i[1]))return i[0];if(i=e(),Ca){Di(!0);try{e()}finally{Di(!1)}}return n.memoizedState=[i,t],i}function wd(e,t,n){return n===void 0||(fi&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ub(),oe.lanes|=e,$i|=e,n)}function yy(e,t,n,i){return nn(n,t)?n:Ji.current!==null?(e=wd(e,n,i),nn(e,t)||(Je=!0),e):(fi&106)===0||(fi&1073741824)!==0&&(me&261930)===0?(Je=!0,e.memoizedState=n):(e=ub(),oe.lanes|=e,$i|=e,t)}function by(e,t,n,i,a){var o=be.p;be.p=o!==0&&8>o?o:8;var l=F.T,r={};r.types=l!==null?l.types:null,F.T=r,Ed(e,!1,t,n);try{var u=a(),c=F.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=pw(u,i);Nl(e,t,f,tn(e))}else Nl(e,t,i,tn(e))}catch(p){Nl(e,t,{then:function(){},status:"rejected",reason:p},tn())}finally{be.p=o,l!==null&&r.types!==null&&(l.types=r.types),F.T=l}}function ww(){}function cf(e,t,n,i){if(e.tag!==5)throw Error(A(476));var a=vy(e).queue;by(e,a,t,va,n===null?ww:function(){return Sy(e),n(i)})}function vy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:va,baseState:va,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:va},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sy(e){var t=vy(e);t.next===null&&(t=e.alternate.memoizedState),Nl(e,t.next.queue,{},tn())}function xd(){return ft(Po)}function wy(){return je().memoizedState}function xy(){return je().memoizedState}function xw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=tn();e=Gi(n);var i=Vi(t,e,n);i!==null&&(Gt(i,t,n),Tl(i,t,n)),t={cache:ld()},e.payload=t;return}t=t.return}}function Ew(e,t,n){var i=tn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},oc(e)?Ty(t,n):(n=id(e,t,n,i),n!==null&&(Gt(n,e,i),My(n,t,i)))}function Ey(e,t,n){var i=tn();Nl(e,t,n,i)}function Nl(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(oc(e))Ty(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,r=o(l,n);if(a.hasEagerState=!0,a.eagerState=r,nn(r,l))return $u(e,t,a,0),Ne===null&&Wu(),!1}catch{}finally{}if(n=id(e,t,a,i),n!==null)return Gt(n,e,i),My(n,t,i),!0}return!1}function Ed(e,t,n,i){if(i={lane:2,revertLane:Hd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},oc(e)){if(t)throw Error(A(479))}else t=id(e,n,i,2),t!==null&&Gt(t,e,2)}function oc(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Ty(e,t){wo=Lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function My(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,cg(e,n)}}var Du={readContext:ft,use:ic,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye,useEffectEvent:Ye},Ry={readContext:ft,use:ic,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Jm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ru(4194308,4,hy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var n=zt();t=t===void 0?null:t;var i=e();if(Ca){Di(!0);try{e()}finally{Di(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=zt();if(n!==void 0){var a=n(t);if(Ca){Di(!0);try{n(t)}finally{Di(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=Ew.bind(null,oe,e),[i.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=rf(e);var t=e.queue,n=Ey.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Sd,useDeferredValue:function(e,t){var n=zt();return wd(n,e,t)},useTransition:function(){var e=rf(!1);return e=by.bind(null,oe,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=oe,a=zt();if(ce){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ne===null)throw Error(A(349));(me&127)!==0||$g(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Jm(ty.bind(null,i,o,e),[e]),i.flags|=2048,Co(9,{destroy:void 0},ey.bind(null,i,o,n,t),null),n},useId:function(){var e=zt(),t=Ne.identifierPrefix;if(ce){var n=Yn,i=Vn;n=(i&~(1<<32-en(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=zu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=gw++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xd,useFormState:Qm,useActionState:Qm,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ed.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:yd,useCacheRefresh:function(){return zt().memoizedState=xw.bind(null,oe)},useEffectEvent:function(e){var t=zt(),n={impl:e};return t.memoizedState=n,function(){if((ye&2)!==0)throw Error(A(440));return n.impl.apply(void 0,arguments)}}},Ny={readContext:ft,use:ic,useCallback:py,useContext:ft,useEffect:vd,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:dy,useMemo:gy,useReducer:lu,useRef:cy,useState:function(){return lu(di)},useDebugValue:Sd,useDeferredValue:function(e,t){var n=je();return yy(n,Te.memoizedState,e,t)},useTransition:function(){var e=lu(di)[0],t=je().memoizedState;return[typeof e=="boolean"?e:nr(e),t]},useSyncExternalStore:Wg,useId:wy,useHostTransitionStatus:xd,useFormState:Zm,useActionState:Zm,useOptimistic:function(e,t){var n=je();return ay(n,Te,e,t)},useMemoCache:yd,useCacheRefresh:xy,useEffectEvent:sy},Tw={readContext:ft,use:ic,useCallback:py,useContext:ft,useEffect:vd,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:dy,useMemo:gy,useReducer:bs,useRef:cy,useState:function(){return bs(di)},useDebugValue:Sd,useDeferredValue:function(e,t){var n=je();return Te===null?wd(n,e,t):yy(n,Te.memoizedState,e,t)},useTransition:function(){var e=bs(di)[0],t=je().memoizedState;return[typeof e=="boolean"?e:nr(e),t]},useSyncExternalStore:Wg,useId:wy,useHostTransitionStatus:xd,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,t){var n=je();return Te!==null?ay(n,Te,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:yd,useCacheRefresh:xy,useEffectEvent:sy};function vs(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var sf={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=tn(),a=Gi(i);a.payload=t,n!=null&&(a.callback=n),t=Vi(e,a,i),t!==null&&(Gt(t,e,i),Tl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=tn(),a=Gi(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Vi(e,a,i),t!==null&&(Gt(t,e,i),Tl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tn(),i=Gi(n);i.tag=2,t!=null&&(i.callback=t),t=Vi(e,i,n),t!==null&&(Gt(t,e,n),Tl(t,e,n))}};function Wm(e,t,n,i,a,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,l):t.prototype&&t.prototype.isPureReactComponent?!Pl(n,i)||!Pl(a,o):!0}function $m(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&sf.enqueueReplaceState(t,t.state,null)}function Oa(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ae({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function Ay(e){Eu(e)}function Cy(e){console.error(e)}function Oy(e){Eu(e)}function Hu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ep(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ff(e,t,n){return n=Gi(n),n.tag=3,n.payload={element:null},n.callback=function(){Hu(e,t)},n}function Ly(e){return e=Gi(e),e.tag=3,e}function zy(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var o=i.value;e.payload=function(){return a(o)},e.callback=function(){ep(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){ep(t,n,i),typeof a!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function Mw(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ma(t,n,a,!0),n=pt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return wt===null?Vu():n.alternate===null&&qe===0&&(qe=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Au?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Rs(e,i,a)),!1;case 22:return n.flags|=65536,i===Au?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Rs(e,i,a)),!1}throw Error(A(435,n.tag))}return Rs(e,i,a),Vu(),!1}if(ce)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Ws&&(e=Error(A(422),{cause:i}),_l(gn(e,n)))):(i!==Ws&&(t=Error(A(423),{cause:i}),_l(gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=gn(i,n),a=ff(e.stateNode,i,a),ys(e,a),qe!==4&&(qe=2)),!1;var o=Error(A(520),{cause:i});if(o=gn(o,n),Ll===null?Ll=[o]:Ll.push(o),qe!==4&&(qe=2),t===null)return!0;i=gn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ff(n.stateNode,i,e),ys(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ji===null||!ji.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ly(a),zy(a,e,n,i),ys(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Td=Error(A(461)),Je=!1;function et(e,t,n,i){t.child=e===null?Xg(t,null,n,i):Aa(t,e.child,n,i)}function tp(e,t,n,i,a){n=n.render;var o=t.ref;if("ref"in i){var l={};for(var r in i)r!=="ref"&&(l[r]=i[r])}else l=i;return Ra(t),i=hd(e,t,n,l,o,a),r=md(),e!==null&&!Je?(pd(e,t,a),hi(e,t,a)):(ce&&r&&ec(t),t.flags|=1,et(e,t,i,a),t.child)}function np(e,t,n,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!ad(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Dy(e,t,o,i,a)):(e=iu(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Rd(e,a)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Pl,n(l,i)&&e.ref===t.ref)return hi(e,t,a)}return t.flags|=1,e=ri(o,i),e.ref=t.ref,e.return=t,t.child=e}function Dy(e,t,n,i,a){if(e!==null){var o=e.memoizedProps;if(Pl(o,i)&&e.ref===t.ref)if(Je=!1,t.pendingProps=i=o,Rd(e,a))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,hi(e,t,a)}return df(e,t,n,i,a)}function Hy(e,t,n,i){var a=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~o}else i=0,t.child=null;return ip(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ou(t,o!==null?o.cachePool:null),o!==null?jm(t,o):of(),Zg(t);else return i=t.lanes=536870912,ip(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(ou(t,o.cachePool),jm(t,o),qi(),t.memoizedState=null):(e!==null&&ou(t,null),of(),qi());return et(e,t,a,n),t.child}function Al(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ip(e,t,n,i,a){var o=rd();return o=o===null?null:{parent:Fe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&ou(t,null),of(),Zg(t),e!==null&&Ma(e,t,i,!0),t.childLanes=a,null}function uu(e,t){return t=lc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ap(e,t,n){return Aa(t,e.child,null,n),e=uu(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function Rw(e,t,n){var i=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ce){if(i.mode==="hidden")return e=uu(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Al(null,e);if(lf(t),(e=Le)?(e=Hb(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Vn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ig(e),n.return=t,t.child=n,ut=t,Le=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return uu(t,i)}var o=e.memoizedState;if(o!==null){var l=o.dehydrated;if(lf(t),a)if(t.flags&256)t.flags&=-257,t=ap(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(A(558));else if(Je||Ma(e,t,n,!1),a=(n&e.childLanes)!==0,Je||a){if(Ji.current===null){if(i=Ne,i!==null&&(l=sg(i,n),l!==0&&l!==o.retryLane))throw o.retryLane=l,ka(e,l),Gt(i,e,l),Td;Vu()}t=ap(e,t,n)}else e=o.treeContext,Le=bn(l.nextSibling),ut=t,ce=!0,Bi=null,yn=!1,e!==null&&Gg(t,e),t=uu(t,i),t.flags|=134221824;return t}return e=ri(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function eo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(A(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function df(e,t,n,i,a){return Ra(t),n=hd(e,t,n,i,void 0,a),i=md(),e!==null&&!Je?(pd(e,t,a),hi(e,t,a)):(ce&&i&&ec(t),t.flags|=1,et(e,t,n,a),t.child)}function op(e,t,n,i,a,o){return Ra(t),t.updateQueue=null,n=Jg(t,i,n,a),Fg(e),i=md(),e!==null&&!Je?(pd(e,t,o),hi(e,t,o)):(ce&&i&&ec(t),t.flags|=1,et(e,t,n,o),t.child)}function lp(e,t,n,i,a){if(Ra(t),t.stateNode===null){var o=fo,l=n.contextType;typeof l=="object"&&l!==null&&(o=ft(l)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=sf,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},cd(t),l=n.contextType,o.context=typeof l=="object"&&l!==null?ft(l):fo,o.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(vs(t,n,l,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(l=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),l!==o.state&&sf.enqueueReplaceState(o,o.state,null),Rl(t,i,o,a),Ml(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var r=t.memoizedProps,u=Oa(n,r);o.props=u;var c=o.context,f=n.contextType;l=fo,typeof f=="object"&&f!==null&&(l=ft(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r||c!==l)&&$m(t,o,i,l),Li=!1;var s=t.memoizedState;o.state=s,Rl(t,i,o,a),Ml(),c=t.memoizedState,r||s!==c||Li?(typeof p=="function"&&(vs(t,n,p,i),c=t.memoizedState),(u=Li||Wm(t,n,u,i,s,c,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),o.props=i,o.state=c,o.context=l,i=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,nf(e,t),l=t.memoizedProps,f=Oa(n,l),o.props=f,p=t.pendingProps,s=o.context,c=n.contextType,u=fo,typeof c=="object"&&c!==null&&(u=ft(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||s!==u)&&$m(t,o,i,u),Li=!1,s=t.memoizedState,o.state=s,Rl(t,i,o,a),Ml();var m=t.memoizedState;l!==p||s!==m||Li||e!==null&&e.dependencies!==null&&Nu(e.dependencies)?(typeof r=="function"&&(vs(t,n,r,i),m=t.memoizedState),(f=Li||Wm(t,n,f,i,s,m,u)||e!==null&&e.dependencies!==null&&Nu(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=u,i=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,eo(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Aa(t,e.child,null,a),t.child=Aa(t,null,n,a)):et(e,t,n,a),t.memoizedState=o.state,e=t.child):e=hi(e,t,a),e}function rp(e,t,n,i){return Ta(),t.flags|=256,et(e,t,n,i),t.child}var hf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mf(e){return{baseLanes:e,cachePool:Yg()}}function pf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function ky(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(ce){if(a?Yi(t):qi(),(e=Le)?(e=Hb(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Vn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ig(e),n.return=t,t.child=n,ut=t,Le=null)):e=null,e===null)throw Fi(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,a?(qi(),a=t.mode,o=lc({mode:"hidden",children:o},a),i=Sa(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=mf(n),i.childLanes=pf(e,l,n),t.memoizedState=hf,Al(null,i)):(Yi(t),Md(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return Nw(e,t,o,l,i,u,r,n)}return a?(qi(),a=i.fallback,o=t.mode,r=e.child,u=r.sibling,i=ri(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=ri(u,a):(a=Sa(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,Al(null,i),i=t.child,a=e.child.memoizedState,a===null?a=mf(n):(o=a.cachePool,o!==null?(r=Fe._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=Yg(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=pf(e,l,n),t.memoizedState=hf,Al(e.child,i)):(Yi(t),n=e.child,e=n.sibling,n=ri(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Md(e,t){return t=lc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function lc(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Yr(e,t,n){return Aa(t,e.child,null,n),e=Md(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nw(e,t,n,i,a,o,l,r){if(n)return t.flags&256?(Yi(t),t.flags&=-257,Yr(e,t,r)):t.memoizedState!==null?(qi(),t.child=e.child,t.flags|=128,null):(qi(),o=a.fallback,l=t.mode,a=lc({mode:"visible",children:a.children},l),o=Sa(o,l,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Aa(t,e.child,null,r),a=t.child,a.memoizedState=mf(r),a.childLanes=pf(e,i,r),t.memoizedState=hf,Al(null,a));if(Yi(t),_d(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(a=Error(A(419)),a.stack="",a.digest=i,_l({value:a,source:null,stack:null})),Yr(e,t,r)}if(Je||Ma(e,t,r,!1),i=(r&e.childLanes)!==0,Je||i){if(Ji.current!==null)return Yr(e,t,r);if(i=Ne,i!==null&&(a=sg(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,ka(e,a),Gt(i,e,a),Td;return Bf(o)||Vu(),Yr(e,t,r)}return Bf(o)?(t.flags|=192,t.child=e.child,null):(e=l.treeContext,Le=bn(o.nextSibling),ut=t,ce=!0,Bi=null,yn=!1,e!==null&&Gg(t,e),t=Md(t,a.children),t.flags|=134221824,t)}function up(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),au(e.return,t,n)}function cp(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ou(n)===null&&(t=e),e=e.sibling}return t}function qr(e,t,n,i,a,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function Ss(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function gf(e,t,n){var i=t.pendingProps,a=i.revealOrder,o=i.tail;i=i.children;var l=ht.current;if(t.flags&128)return Bl(t,l),null;var r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,Bl(t,l),a==="backwards"&&e!==null?(Ss(e),et(e,t,i,n),Ss(e)):et(e,t,i,n),i=ce?Ul:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&up(e,n,t);else if(e.tag===19)up(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=cp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,Ss(t)),qr(t,!0,a,null,o,i);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ou(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}qr(t,!0,n,null,o,i);break;case"together":qr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=cp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),qr(t,!1,a,n,o,i)}return t.child}function sp(e,t,n){var i=t.pendingProps;return ki(t,t.type,i.value),et(e,t,i.children,n),t.child}function hi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ma(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Nu(e)))}function Aw(e,t,n){switch(t.tag){case 3:vu(t,t.stateNode.containerInfo),ki(t,Fe,e.memoizedState.cache),Ta();break;case 27:case 5:Vs(t);break;case 4:vu(t,t.stateNode.containerInfo);break;case 10:ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Yi(t),t.flags|=128,null;i=Ma(e,t,n,!1);var a=t.child.childLanes;return i||(n&a)!==0?ky(e,t,n):(Yi(t),e=hi(e,t,n),e!==null?e.sibling:null)}Yi(t);break;case 19:if(t.flags&128)return gf(e,t,n);if(a=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(Ma(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return gf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Bl(t,ht.current),i)break;return null;case 22:return t.lanes=0,Hy(e,t,n,t.pendingProps);case 24:ki(t,Fe,e.memoizedState.cache)}return hi(e,t,n)}function Py(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Rd(e,n)&&(t.flags&128)===0)return Je=!1,Aw(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,ce&&(t.flags&1048576)!==0&&Bg(t,Ul,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=pa(t.elementType),t.type=e,typeof e=="function")ad(e)?(i=Oa(e,i),t.tag=1,t=lp(null,t,e,i,n)):(t.tag=0,t=df(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===jf){t.tag=11,t=tp(null,t,e,i,n);break e}else if(a===Xf){t.tag=14,t=np(null,t,e,i,n);break e}else if(a===Bn){t.tag=10,t.type=e,t=sp(null,t,n);break e}}throw t=Bs(e)||e,Error(A(306,t,""))}}return t;case 0:return df(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=Oa(i,t.pendingProps),lp(e,t,i,a,n);case 3:e:{if(vu(t,t.stateNode.containerInfo),e===null)throw Error(A(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,nf(e,t),Rl(t,i,null,n);var l=t.memoizedState;if(i=l.cache,ki(t,Fe,i),i!==o.cache&&ef(t,[Fe],n,!0),Ml(),i=l.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=rp(e,t,i,n);break e}else if(i!==a){a=gn(Error(A(424)),t),_l(a),t=rp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=bn(e.firstChild),ut=t,ce=!0,Bi=null,yn=!0,n=Xg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ta(),i===a){t=hi(e,t,n);break e}et(e,t,i,n)}t=t.child}return t;case 26:return eo(e,t),e===null?(n=Up(t.type,null,t.pendingProps,null))?t.memoizedState=n:ce||(t.stateNode=Mb(t.type,t.pendingProps,Ii.current,t)):t.memoizedState=Up(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vs(t),e===null&&ce&&(i=t.stateNode=kb(t.type,t.pendingProps,Ii.current),ut=t,yn=!0,a=Le,ta(t.type)?(Gf=a,Le=bn(i.firstChild)):Le=a),et(e,t,t.pendingProps.children,n),eo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ce&&((a=i=Le)&&(i=Sx(i,t.type,t.pendingProps,yn),i!==null?(t.stateNode=i,ut=t,Le=bn(i.firstChild),yn=!1,a=!0):a=!1),a||Fi(t)),Vs(t),a=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Uf(a,o)?i=null:l!==null&&Uf(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=hd(e,t,yw,null,null,n),Po._currentValue=a),eo(e,t),et(e,t,i,n),t.child;case 6:return e===null&&ce&&((e=n=Le)&&(n=wx(n,t.pendingProps,yn),n!==null?(t.stateNode=n,ut=t,Le=null,e=!0):e=!1),e||Fi(t)),null;case 13:return ky(e,t,n);case 4:return vu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Aa(t,null,i,n):et(e,t,i,n),t.child;case 11:return tp(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,eo(e,t),et(e,t,i,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:return sp(e,t,n);case 9:return a=t.type._context,i=t.pendingProps.children,Ra(t),a=ft(a),i=i(a),t.flags|=1,et(e,t,i,n),t.child;case 14:return np(e,t,t.type,t.pendingProps,n);case 15:return Dy(e,t,t.type,t.pendingProps,n);case 19:return gf(e,t,n);case 31:return Rw(e,t,n);case 22:return Hy(e,t,n,t.pendingProps);case 24:return Ra(t),i=ft(Fe),e===null?(a=rd(),a===null&&(a=Ne,o=ld(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},cd(t),ki(t,Fe,a)):((e.lanes&n)!==0&&(nf(e,t),Rl(t,null,null,n),Ml()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ki(t,Fe,i)):(i=o.cache,ki(t,Fe,i),i!==a.cache&&ef(t,[Fe],n,!0))),et(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:ce&&ec(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:eo(e,t),et(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function ai(e){e.flags|=4}function ws(e,t,n,i,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Bp(t,i):Bp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(fb())e.flags|=8192;else throw xa=Au,ud}else e.flags&=-16777217}function fp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ib(t))if(fb())e.flags|=8192;else throw xa=Au,ud}function jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rg():536870912,e.lanes|=t,Oo|=t)}function fl(e,t){if(!ce)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Cw(e,t,n){var i=t.pendingProps;switch(od(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ui(Fe),Ro(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wa(t)?ai(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gs())),Oe(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ai(t),o!==null?(Oe(t),fp(t,o)):(Oe(t),ws(t,a,null,i,n))):o?o!==e.memoizedState?(ai(t),Oe(t),fp(t,o)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ai(t),Oe(t),ws(t,a,e,i,n)),null;case 27:if(Su(t),n=Ii.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ai(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Oe(t),t.subtreeFlags&=-33554433,null}e=qn.current,Wa(t)?_m(t,e):(e=kb(a,i,n),t.stateNode=e,ai(t))}return Oe(t),t.subtreeFlags&=-33554433,null;case 5:if(Su(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ai(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Oe(t),t.subtreeFlags&=-33554433,null}if(o=qn.current,Wa(t))_m(t,o);else{var l=ql(Ii.current);switch(o){case 1:o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=l.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}o[st]=t,o[Yt]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=o;e:switch(mt(o,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ai(t)}}return Oe(t),t.subtreeFlags&=-33554433,ws(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ai(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(A(166));if(e=Ii.current,Wa(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=ut,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Eb(e.nodeValue,n)),e||Fi(t,!0)}else e=ql(e).createTextNode(i),e[st]=t,t.stateNode=e}return Oe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Wa(t),n!==null){if(e===null){if(!i)throw Error(A(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(557));e[st]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else n=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(A(558))}return Oe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Wa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[st]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),a=!1}else a=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jr(t,t.updateQueue),Oe(t),null);case 4:return Ro(),e===null&&kd(t.stateNode.containerInfo),t.flags|=67108864,Oe(t),null;case 10:return ui(t.type),Oe(t),null;case 19:if(fd(t),i=t.memoizedState,i===null)return Oe(t),null;if(a=(t.flags&128)!==0,o=i.rendering,o===null)if(a)fl(i,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Ou(e),o!==null){for(t.flags|=128,fl(i,!1),e=o.updateQueue,t.updateQueue=e,jr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_g(n,e),n=n.sibling;return Bl(t,ht.current&1|2),ce&&oi(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Wt()>Bu&&(t.flags|=128,a=!0,fl(i,!1),t.lanes=4194304)}else{if(!a)if(e=Ou(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,jr(t,e),fl(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!ce)return Oe(t),null}else 2*Wt()-i.renderingStartTime>Bu&&n!==536870912&&(t.flags|=128,a=!0,fl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Wt(),e.sibling=null,o=ht.current,o=a?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||ce?Bl(t,o):(n=o,ze(pt,t),ze(ht,n),wt===null&&(wt=t)),ce&&oi(t,i.treeForkCount),e}return Oe(t),null;case 22:case 23:return Zt(t),sd(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),n=t.updateQueue,n!==null&&jr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&dt(wa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ui(Fe),Oe(t),null;case 25:return null;case 30:return t.flags|=33554432,Oe(t),null}throw Error(A(156,t.tag))}function Ow(e,t){switch(od(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ui(Fe),Ro(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Su(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(A(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ro(),null;case 10:return ui(t.type),null;case 22:case 23:return Zt(t),sd(),e!==null&&dt(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ui(Fe),null;case 25:return null;default:return null}}function Uy(e,t){switch(od(t),t.tag){case 3:ui(Fe),Ro();break;case 26:case 27:case 5:Su(t);break;case 4:Ro();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:fd(t);break;case 10:ui(t.type);break;case 22:case 23:Zt(t),sd(),e!==null&&dt(wa);break;case 24:ui(Fe)}}function ir(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var o=n.create,l=n.inst;i=o(),l.destroy=i}n=n.next}while(n!==a)}}catch(r){xe(t,t.return,r)}}function Wi(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var o=a.next;i=o;do{if((i.tag&e)===e){var l=i.inst,r=l.destroy;if(r!==void 0){l.destroy=void 0,a=t;var u=n,c=r;try{c()}catch(f){xe(a,u,f)}}}i=i.next}while(i!==o)}}catch(f){xe(t,t.return,f)}}function _y(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qg(t,n)}catch(i){xe(e,e.return,i)}}}function Iy(e,t,n){n.props=Oa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function _n(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var a=e.stateNode,o=si(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=Cb(o)),i=a.ref;break;case 7:if(e.stateNode===null){var l=new an(e);Vt(e.child,!1,bx,l,void 0,void 0),e.stateNode=l}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function ct(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){xe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){xe(e,t,a)}else n.current=null}function ku(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Db(e.stateNode,t[n])}function dp(e){for(var t=e.return;t!==null&&(Ad(t)&&Db(e.stateNode,t.stateNode),!Nd(t));)t=t.return}function Cl(e){for(var t=e.return;t!==null&&(Ad(t)&&vx(e.stateNode,t.stateNode),!Nd(t));)t=t.return}function Nd(e){return e.tag===5||e.tag===3||e.tag===27}function Ad(e){return e&&e.tag===7&&e.stateNode!==null}function yf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){xe(e,e.return,a)}}function xs(e,t,n){try{var i=e.stateNode;ex(i,e.type,n,t),i[Yt]=t}catch(a){xe(e,e.return,a)}}function By(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ta(e.type)||e.tag===4}function Es(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||By(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ta(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bf(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gn)),ku(e,i),ge=!0;else if(a!==4&&(a===27&&(ku(e,i),i=null,ta(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(bf(e,t,n,i),e=e.sibling;e!==null;)bf(e,t,n,i),e=e.sibling}function Pu(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),ku(e,i),ge=!0;else if(a!==4&&(a===27&&(ku(e,i),i=null,ta(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Pu(e,t,n,i),e=e.sibling;e!==null;)Pu(e,t,n,i),e=e.sibling}function Gy(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);mt(t,i,n),t[st]=e,t[Yt]=n}catch(o){xe(e,e.return,o)}}var Uu=!1,Ft=null;function hp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Uu=!0)}var In=null;function mp(){var e=In;return In=null,e}var It=0;function Vo(e,t,n,i,a){return It=0,Vy(e.child,t,n,i,a)}function Vy(e,t,n,i,a){for(var o=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null){var r=_f(l);i.push(r),r.view&&(o=!0)}else o||_f(l).view&&(o=!0);Uu=!0,Rb(l,It===0?t:t+"_"+It,n),It++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||Vy(e.child,t,n,i,a)&&(o=!0));e=e.sibling}return o}function Xn(e,t){for(;e!==null;)e.tag===5?Nb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Xn(e.child,t)),e=e.sibling}function cu(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(cu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(A(544));var n=t.name;t=gi(t.default,t.share),t!=="none"&&(Vo(e,n,t,null,!1)||Xn(e.child,!1))}e=e.sibling}}function vf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,a=si(i,n),o=gi(i.default,n.paired?i.share:i.enter);o!=="none"?Vo(e,a,o,null,!1)?(cu(e),n.paired||t||Lo(e,i.onEnter)):Xn(e.child,!1):cu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)vf(e,t),e=e.sibling;else cu(e)}function Sf(e){if(Ft!==null&&Ft.size!==0){var t=Ft;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var a=t.get(i);if(a!==void 0){var o=gi(n.default,n.share);if(o!=="none"&&(Vo(e,i,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,Lo(e,n.onShare)):Xn(e.child,!1)),t.delete(i),t.size===0)break}}}Sf(e)}e=e.sibling}}}function wf(e){if(e.tag===30){var t=e.memoizedProps,n=si(t,e.stateNode),i=Ft!==null?Ft.get(n):void 0,a=gi(t.default,i!==void 0?t.share:t.exit);a!=="none"&&(Vo(e,n,a,null,!1)?i!==void 0?(a=e.stateNode,i.paired=a,a.paired=i,Ft.delete(n),Lo(e,t.onShare)):Lo(e,t.onExit):Xn(e.child,!1)),Ft!==null&&Sf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)wf(e),e=e.sibling;else Ft!==null&&Sf(e)}function Yy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=si(t,e.stateNode);t=gi(t.default,t.update),e.flags&=-5,t!=="none"&&Vo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Yy(e);e=e.sibling}}function xf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xn(e.child,!1))}xf(e)}e=e.sibling}}function su(e){if(e.tag===30)e.stateNode.paired=null,Xn(e.child,!1),xf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)su(e),e=e.sibling;else xf(e)}function qy(e){for(e=e.child;e!==null;)e.tag===30?Xn(e.child,!1):(e.subtreeFlags&33554432)!==0&&qy(e),e=e.sibling}function Cd(e,t,n,i,a,o,l){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(o!==null&&It<o.length){var c=o[It],f=_f(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Rb(u,It===0?n:n+"_"+It,a),r&&(e.flags&4)!==0||(In===null&&(In=[]),In.push(u,It===0?i:i+"_"+It,t.memoizedProps)),It++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l?e.flags|=t.flags&32:Cd(e,t.child,n,i,a,o,l)&&(r=!0));t=t.sibling}return r}function jy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,a=si(n,i),o=gi(n.default,n.update);if(t){i=i.clones;var l=i===null?null:i.map(lx)}else l=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;It=0,a=Cd(i,r,a,a,o,l,!1),(e.flags&4)!==0&&a&&(t||Lo(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&jy(e,t);e=e.sibling}}var ot=!1,ve=!1,kn=!1,Ts=!1,pp=typeof WeakSet=="function"?WeakSet:Set,lt=null,Pn=!1,vl=!1,_u=!1,Ef=!1;function Lw(e,t,n){if(e=e.containerInfo,kf=Uo,e=Og(e),td(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{i.nodeType,l.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,m=null;t:for(;;){for(var S;s!==i||o!==0&&s.nodeType!==3||(u=r+o),s!==l||a!==0&&s.nodeType!==3||(c=r+a),s.nodeType===3&&(r+=s.nodeValue.length),(S=s.firstChild)!==null;)m=s,s=S;for(;;){if(s===e)break t;if(m===i&&++f===o&&(u=r),m===l&&++p===a&&(c=r),(S=s.nextSibling)!==null)break;s=m,m=s.parentNode}s=S}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Pf={focusedElem:e,selectionRange:i},Uo=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)n&&wf(i[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&hp(e),Xr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&wf(i),Xr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&hp(e),Xr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&Yy(e),Xr(n))}}Ft=null}function Xr(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var l=Oa(t.type,a);n=o.getSnapshotBeforeUpdate(l,i),o.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((a&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)If(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":If(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=si(i.memoizedProps,i.stateNode),a=t.memoizedProps,a=gi(a.default,a.update),a!=="none"&&Vo(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(A(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function Xy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),i&4&&ir(5,n);break;case 1:if(Un(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){xe(n,n.return,l)}else{var a=Oa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){xe(n,n.return,l)}}i&64&&_y(n),i&512&&_n(n,n.return);break;case 3:if(Un(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Qg(e,t)}catch(l){xe(n,n.return,l)}}break;case 27:t===null&&i&4&&Gy(n);case 26:case 5:Un(e,n),t===null&&i&4&&yf(n),i&512&&_n(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),i&4&&Fy(e,n);break;case 13:Un(e,n),i&4&&Jy(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yw.bind(null,n),xx(e,n))));break;case 22:if(i=n.memoizedState!==null||ot,!i){var o=t!==null&&t.memoizedState!==null||ve;t=ot,a=ve,ot=i,(ve=o)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),xn(e,n,i)):Un(e,n),ot=t,ve=a}break;case 30:Un(e,n),i&512&&_n(n,n.return);break;case 7:i&512&&_n(n,n.return);default:Un(e,n)}}function Tf(e,t){for(e=e.child;e!==null;)Ky(e,t),e=e.sibling}function Ky(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var a=e.stateNode,o=e.memoizedProps.style,l=o!=null&&o.hasOwnProperty("display")?o.display:null;a.style.display=l==null||typeof l=="boolean"?"":(""+l).trim()}}catch(u){xe(e,e.return,u)}Mf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ge=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Lp(r,!0):Lp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Tf(e,t);break;default:Tf(e,t)}}function Mf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:Ky(n,i);break e;case 22:n.memoizedState===null&&Mf(n,i);break e;default:Mf(n,i)}}e=e.sibling}}function Qy(e){var t=e.alternate;t!==null&&(e.alternate=null,Qy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _e=null,Ut=!1;function wn(e,t,n){for(n=n.child;n!==null;)Zy(e,t,n),n=n.sibling}function Zy(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Fl,n)}catch{}switch(n.tag){case 26:ve||ct(n,t),wn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ve&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ve||ct(n,t),Cl(n);var i=_e,a=Ut;ta(n.type)&&(_e=n.stateNode,Ut=!1),wn(e,t,n),Pb(n.stateNode,n.type,n.memoizedProps),_e=i,Ut=a;break;case 5:ve||ct(n,t),Cl(n);case 6:if(n.tag===6&&Cl(n),i=_e,a=Ut,_e=null,wn(e,t,n),_e=i,Ut=a,_e!==null)if(Ut)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(n.stateNode),ge=!0}catch(o){xe(n,t,o)}else try{_e.removeChild(n.stateNode),ge=!0}catch(o){xe(n,t,o)}break;case 18:_e!==null&&(Ut?(e=_e,Op(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_o(e)):Op(_e,n.stateNode));break;case 4:i=_e,a=Ut,_e=n.stateNode.containerInfo,Ut=!0,wn(e,t,n),_e=i,Ut=a;break;case 0:case 11:case 14:case 15:Wi(2,n,t),ve||Wi(4,n,t),wn(e,t,n);break;case 1:ve||(ct(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Iy(n,t,i)),wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:ve=(i=ve)||n.memoizedState!==null,wn(e,t,n),ve=i;break;case 30:ct(n,t),wn(e,t,n);break;case 7:ve||ct(n,t),wn(e,t,n);break;default:wn(e,t,n)}}function Fy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_o(e)}catch(n){xe(t,t.return,n)}}}function Jy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_o(e)}catch(n){xe(t,t.return,n)}}function zw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pp),t;default:throw Error(A(435,e.tag))}}function Kr(e,t){var n=zw(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=qw.bind(null,e,i);i.then(a,a)}})}function Ot(e,t,n){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a],l=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(ta(u.type)){_e=u.stateNode,Ut=!1;break e}break;case 5:_e=u.stateNode,Ut=!1;break e;case 3:case 4:_e=u.stateNode.containerInfo,Ut=!0;break e}u=u.return}if(_e===null)throw Error(A(160));Zy(l,r,o),_e=null,Ut=!1,l=o.alternate,l!==null&&(l.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wy(t,e,n),t=t.sibling}var En=null;function Wy(e,t,n){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var l=i[o];l.ref.impl=l.nextImpl}Ot(t,e,n),Lt(e),a&4&&(Wi(3,e,e.return),ir(3,e),Wi(5,e,e.return));break;case 1:Ot(t,e,n),Lt(e),a&512&&(ve||i===null||ct(i,i.return)),a&64&&ot&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=En,Ot(t,e,n),Lt(e),a&512&&(ve||i===null||ct(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(ot)e.stateNode=Mb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case"title":i=a.getElementsByTagName("title")[0],(!i||i[$l]||i[st]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(t),a.head.insertBefore(i,a.querySelector("head > title"))),mt(i,t,n),i[st]=e,rt(i),t=i;break e;case"link":if(o=Ip("link","href",a).get(t+(n.href||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(t),mt(i,t,n),a.head.appendChild(i);break;case"meta":if(o=Ip("meta","content",a).get(t+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(t),mt(i,t,n),a.head.appendChild(i);break;default:throw Error(A(468,t))}i[st]=e,rt(i),t=i}e.stateNode=t}else ot||Vf(o,e.type,e.stateNode);else e.stateNode=_p(o,n,e.memoizedProps);else a!==n?(a===null?(t=i.stateNode,t===null||ve||t.parentNode.removeChild(t)):a.count--,n===null?ot||Vf(o,e.type,e.stateNode):_p(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&xs(e,e.memoizedProps,i.memoizedProps);break;case 27:Ot(t,e,n),Lt(e),a&512&&(ve||i===null||ct(i,i.return)),i!==null&&a&4&&xs(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=kn,kn=!1,Ot(t,e,n),kn=o,Lt(e),a&512&&(ve||i===null||ct(i,i.return)),e.flags&32){t=e.stateNode;try{Ao(t,""),ge=!0}catch(f){xe(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,xs(e,t,i!==null?i.memoizedProps:t)),a&1024&&(Ts=!0);break;case 6:if(Ot(t,e,n),Lt(e),a&4){if(e.stateNode===null)throw Error(A(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ge=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(ge=!1,mu=null,o=En,En=jl(t.containerInfo),Ot(t,e,n),En=o,Lt(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{_o(t.containerInfo)}catch(f){xe(e,e.return,f)}Ts&&(Ts=!1,$y(e)),ge=!1;break;case 4:a=kn,kn=ot,i=wm(),o=En,En=jl(e.stateNode.containerInfo),Ot(t,e,n),Lt(e),En=o,ge&&vl&&(_u=!0),ge=i,kn=a;break;case 12:Ot(t,e,n),Lt(e);break;case 31:Ot(t,e,n),Lt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Kr(e,t)));break;case 13:Ot(t,e,n),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(rc=Wt()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Kr(e,t)));break;case 22:o=e.memoizedState!==null,l=i!==null&&i.memoizedState!==null;var r=ot,u=ve,c=kn;ot=r||o,kn=c||o,ve=u||l,Ot(t,e,n),ve=u,kn=c,ot=r,Lt(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||l||ot||ve||(t=l||ve,n=ot,i=ve,ot=o||ot,ve=t,Ci(e,2),ot=n,ve=i),!o&&kn||Tf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Kr(e,n))));break;case 19:Ot(t,e,n),Lt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Kr(e,t)));break;case 30:a&512&&(ve||i===null||ct(i,i.return)),a=wm(),o=vl,l=(n&335544064)===n,r=e.memoizedProps,vl=l&&gi(r.default,r.update)!=="none",Ot(t,e,n),Lt(e),l&&i!==null&&ge&&(e.flags|=4),vl=o,ge=a;break;case 21:break;case 7:a&512&&(ve||i===null||ct(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Ot(t,e,n),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(By(i)){n=i;break}i=i.return}i=null;for(var a=e.return;a!==null;){if(Ad(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(Nd(a))break;a=a.return}var l=i;if(n==null)throw Error(A(160));switch(n.tag){case 27:var r=n.stateNode,u=Es(e);Pu(e,u,r,l);break;case 5:var c=n.stateNode;n.flags&32&&(Ao(c,""),n.flags&=-33);var f=Es(e);Pu(e,f,c,l);break;case 3:case 4:var p=n.stateNode.containerInfo,s=Es(e);bf(e,s,p,l);break;default:throw Error(A(161))}}catch(m){xe(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $y(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$y(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Uo=!0,t.reset(),Uo=!1),e=e.sibling}}function $a(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)eb(t,e),t=t.sibling;else jy(t,!1)}function eb(e,t){var n=e.alternate;if(n===null)vf(e,!1);else switch(e.tag){case 3:if(Ef=Pn=!1,mp(),$a(t,e),!Pn&&!_u){if(e=In,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var a=e[i+1];Nb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Ef=!0}In=null;break;case 5:$a(t,e);break;case 4:i=Pn,Pn=!1,$a(t,e),Pn&&(_u=!0),Pn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?vf(e,!1):$a(t,e));break;case 30:i=Pn,a=mp(),Pn=!1,$a(t,e),Pn&&(e.flags|=4);var o=e.memoizedProps,l=e.stateNode;t=si(o,l),l=si(n.memoizedProps,l);var r=gi(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,It=0,t=Cd(e,n,t,l,r,o,!0),It!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Lo(e,e.memoizedProps.onUpdate),In=a):a!==null&&(a.push.apply(a,In),In=a),Pn=(e.flags&32)!==0?!0:i;break;default:$a(t,e)}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Xy(e,t.alternate,t),t=t.sibling}function Ci(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:Wi(4,n,n.return),Ci(n,i);break;case 1:ct(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Iy(n,n.return,a),Ci(n,i);break;case 27:(i&2)!==0&&Pb(n.stateNode,n.type,n.memoizedProps);case 5:ct(n,n.return),n.tag!==5&&n.tag!==27||Cl(n),Ci(n,i);break;case 6:Cl(n);break;case 26:ct(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||ve||a.parentNode.removeChild(a),Ci(n,i);break;case 22:n.memoizedState===null&&Ci(n,i);break;case 30:ct(n,n.return),Ci(n,i);break;case 7:ct(n,n.return);default:Ci(n,i)}e=e.sibling}}function xn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,a=e,o=t,l=o.flags,r=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:xn(a,o,n),ir(4,o);break;case 1:if(xn(a,o,n),i=o,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=o,a=i.updateQueue,a!==null){var u=i.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)Kg(c[a],u)}catch(f){xe(i,i.return,f)}}r&&l&64&&_y(o),_n(o,o.return);break;case 27:(n&2)!==0&&Gy(o);case 5:o.tag!==5&&o.tag!==27||dp(o),xn(a,o,n),r&&i===null&&l&4&&yf(o),_n(o,o.return);break;case 6:dp(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||ot||Vf(jl(u.ownerDocument),o.type,u),xn(a,o,n),r&&i===null&&l&4&&yf(o),_n(o,o.return);break;case 12:xn(a,o,n);break;case 31:xn(a,o,n),r&&l&4&&Fy(a,o);break;case 13:xn(a,o,n),r&&l&4&&Jy(a,o);break;case 22:o.memoizedState===null&&xn(a,o,n),_n(o,o.return);break;case 30:xn(a,o,n),_n(o,o.return);break;case 7:_n(o,o.return);default:xn(a,o,n)}t=t.sibling}}function Od(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&tr(n))}function Ld(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tr(e))}function fn(e,t,n,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)tb(e,t,n,i),t=t.sibling;else a&&qy(t)}function tb(e,t,n,i){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&su(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,n,i),o&2048&&ir(9,t);break;case 1:fn(e,t,n,i);break;case 3:fn(e,t,n,i),a&&Ef&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&tr(o)));break;case 12:if(o&2048){fn(e,t,n,i),o=t.stateNode;try{var l=t.memoizedProps,r=l.id,u=l.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(c){xe(t,t.return,c)}}else fn(e,t,n,i);break;case 31:fn(e,t,n,i);break;case 13:fn(e,t,n,i);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?(a&&r!==null&&r.memoizedState===null&&su(r),l._visibility&2?fn(e,t,n,i):Ol(e,t)):(a&&r!==null&&r.memoizedState!==null&&su(t),l._visibility&2?fn(e,t,n,i):(l._visibility|=2,to(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Od(r,t);break;case 24:fn(e,t,n,i),o&2048&&Ld(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(Xn(o.child,!0),Xn(t.child,!0))),fn(e,t,n,i);break;default:fn(e,t,n,i)}}function to(e,t,n,i,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,l=t,r=n,u=i,c=l.flags;switch(l.tag){case 0:case 11:case 15:to(o,l,r,u,a),ir(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?to(o,l,r,u,a):Ol(o,l):(f._visibility|=2,to(o,l,r,u,a)),a&&c&2048&&Od(l.alternate,l);break;case 24:to(o,l,r,u,a),a&&c&2048&&Ld(l.alternate,l);break;default:to(o,l,r,u,a)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:Ol(n,i),a&2048&&Od(i.alternate,i);break;case 24:Ol(n,i),a&2048&&Ld(i.alternate,i);break;default:Ol(n,i)}t=t.sibling}}var ga=8192;function ha(e,t,n){if(e.subtreeFlags&ga)for(e=e.child;e!==null;)nb(e,t,n),e=e.sibling}function nb(e,t,n){switch(e.tag){case 26:ha(e,t,n),e.flags&ga&&(e.memoizedState!==null?Px(n,En,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Gp(n,e)));break;case 5:ha(e,t,n),e.flags&ga&&(e=e.stateNode,(t&335544128)===t&&Gp(n,e));break;case 3:case 4:var i=En;En=jl(e.stateNode.containerInfo),ha(e,t,n),En=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ga,ga=16777216,ha(e,t,n),ga=i):ha(e,t,n));break;case 30:if((e.flags&ga)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var a=e.stateNode;a.paired=null,Ft===null&&(Ft=new Map),Ft.set(i,a)}ha(e,t,n);break;default:ha(e,t,n)}}function ib(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function dl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,ob(i,e)}ib(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ab(e),e=e.sibling}function ab(e){switch(e.tag){case 0:case 11:case 15:dl(e),e.flags&2048&&Wi(9,e,e.return);break;case 3:dl(e);break;case 12:dl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):dl(e);break;default:dl(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,ob(i,e)}ib(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wi(8,t,t.return),fu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function ob(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Wi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:tr(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var a=i.sibling,o=i.return;if(Qy(i),i===n){lt=null;break e}if(a!==null){a.return=o,lt=a;break e}lt=o}}}var Dw={getCacheForType:function(e){var t=ft(Fe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ft(Fe).controller.signal}},Hw=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ne=null,de=null,me=0,Se=0,Kt=null,Pi=!1,Yo=!1,zd=!1,mi=0,qe=0,$i=0,Ea=0,Iu=0,Jt=0,Oo=0,Ll=null,_t=null,Rf=!1,rc=0,lb=0,Bu=1/0,Gu=null,ji=null,Ie=0,Mn=null,La=null,jn=0,Nf=0,Af=null,rb=null,Eo=null,To=null,Mo=null,zl=0,du=null;function tn(){return(ye&2)!==0&&me!==0?me&-me:F.T!==null?Hd():fg()}function ub(){if(Jt===0)if((me&536870912)===0||ce){var e=Hr;Hr<<=1,(Hr&3932160)===0&&(Hr=262144),Jt=e}else Jt=536870912;return e=pt.current,e!==null&&(e.flags|=32),Jt}function Lo(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Cb(si(e.memoizedProps,n))),To===null&&(To=[]),To.push(t.bind(null,i))}}function Gt(e,t,n){(e===Ne&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(zo(e,0),Ui(e,me,Jt,!1)),Wl(e,n),((ye&2)===0||e!==Ne)&&(e===Ne&&((ye&2)===0&&(Ea|=n),qe===4&&Ui(e,me,Jt,!1)),Qn(e))}function cb(e,t,n){if((ye&6)!==0)throw Error(A(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Jl(e,t),a=i?Uw(e,t):Ms(e,t,!0),o=i;do{if(a===0){Yo&&!i&&Ui(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!kw(n)){a=Ms(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var r=e;a=Ll;var u=r.current.memoizedState.isDehydrated;if(u&&(zo(r,l).flags|=256),l=Ms(r,l,!1),l!==2&&l!==6){if(zd&&!u){r.errorRecoveryDisabledLanes|=o,Ea|=o,a=4;break e}o=_t,_t=a,o!==null&&(_t===null?_t=o:_t.push.apply(_t,o))}a=l}if(o=!1,a!==2)continue}}if(a===1){zo(e,0),Ui(e,t,0,!0);break}e:{switch(i=e,o=a,o){case 0:case 1:throw Error(A(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ui(i,t,Jt,!Pi);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(A(329))}if((t&62914560)===t&&(a=rc+300-Wt(),10<a)){if(Ui(i,t,Jt,!Pi),Ku(i,0,!0)!==0)break e;jn=t,i.timeoutHandle=Pd(gp.bind(null,i,n,_t,Gu,Rf,t,Jt,Ea,Oo,Pi,o,"Throttled",-0,0),a);break e}gp(i,n,_t,Gu,Rf,t,Jt,Ea,Oo,Pi,o,null,-0,0)}}break}while(!0);Qn(e)}function gp(e,t,n,i,a,o,l,r,u,c,f,p,s,m){e.timeoutHandle=-1;var S=t.subtreeFlags,b=(o&335544064)===o;if(p=null,(b||S&8192||(S&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gn},Ft=null,nb(t,o,p),b&&(S=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(S.count++,S.waitingForViewTransition=!0,S=Xl.bind(S),b.finished.then(S,S))),S=(o&62914560)===o?rc-Wt():(o&4194048)===o?lb-Wt():0,S=Ux(p,S),S!==null)){jn=o,e.cancelPendingCommit=S(bp.bind(null,e,t,o,n,i,a,l,r,u,c,f,p,null,s,m)),Ui(e,o,l,!c);return}bp(e,t,o,n,i,a,l,r,u,c,f,p)}function kw(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],o=a.getSnapshot;a=a.value;try{if(!nn(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ui(e,t,n,i){t=lg(e,t),t&=~Iu,t&=~Ea,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var o=31-en(a),l=1<<o;i[o]=-1,a&=~l}n!==0&&ug(e,n,t)}function uc(){return(ye&6)===0?(ar(0,!1),!1):!0}function Dd(){if(de!==null){if(Se===0)var e=de.return;else e=de,li=Pa=null,gd(e),So=null,Il=0,e=de;for(;e!==null;)Uy(e.alternate,e),e=e.return;de=null}}function zo(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,ix(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jn=0,Dd(),Ne=e,de=n=ri(e.current,null),me=t,Se=0,Kt=null,Pi=!1,Yo=Jl(e,t),zd=!1,Oo=Jt=Iu=Ea=$i=qe=0,_t=Ll=null,Rf=!1,mi=lg(e,t),Wu(),n}function sb(e,t){oe=null,F.H=Du,t===Go||t===tc?(t=Ym(),Se=3):t===ud?(t=Ym(),Se=4):Se=t===Td?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,de===null&&(qe=1,Hu(e,gn(t,e.current)))}function fb(){var e=pt.current;return e===null?!0:(me&4194048)===me?wt===null:(me&62914560)===me||(me&536870912)!==0?e===wt:!1}function db(){var e=F.H;return F.H=Du,e===null?Du:e}function hb(){var e=F.A;return F.A=Dw,e}function Vu(){qe=4,Pi||(me&4194048)!==me&&pt.current!==null||(Yo=!0),($i&134217727)===0&&(Ea&134217727)===0||Ne===null||Ui(Ne,me,Jt,!1)}function Ms(e,t,n){var i=ye;ye|=2;var a=db(),o=hb();(Ne!==e||me!==t)&&(Gu=null,zo(e,t)),t=!1;var l=qe;e:do try{if(Se!==0&&de!==null){var r=de,u=Kt;switch(Se){case 8:Dd(),l=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var c=Se;if(Se=0,Kt=null,po(e,r,u,c),n&&Yo){l=0;break e}break;default:c=Se,Se=0,Kt=null,po(e,r,u,c)}}Pw(),l=qe;break}catch(f){sb(e,f)}while(!0);return t&&e.shellSuspendCounter++,li=Pa=null,ye=i,F.H=a,F.A=o,de===null&&(Ne=null,me=0,Wu()),l}function Pw(){for(;de!==null;)mb(de)}function Uw(e,t){var n=ye;ye|=2;var i=db(),a=hb();Ne!==e||me!==t?(Gu=null,Bu=Wt()+500,zo(e,t)):Yo=Jl(e,t);e:do try{if(Se!==0&&de!==null){t=de;var o=Kt;t:switch(Se){case 1:Se=0,Kt=null,po(e,t,o,1);break;case 2:case 9:if(Vm(o)){Se=0,Kt=null,yp(t);break}t=function(){Se!==2&&Se!==9||Ne!==e||(Se=7),Qn(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:Vm(o)?(Se=0,Kt=null,yp(t)):(Se=0,Kt=null,po(e,t,o,7));break;case 5:var l=null;switch(de.tag){case 26:l=de.memoizedState;case 5:case 27:var r=de;if(l?Ib(l):r.stateNode.complete){Se=0,Kt=null;var u=r.sibling;if(u!==null)de=u;else{var c=r.return;c!==null?(de=c,cc(c)):de=null}break t}}Se=0,Kt=null,po(e,t,o,5);break;case 6:Se=0,Kt=null,po(e,t,o,6);break;case 8:Dd(),qe=6;break e;default:throw Error(A(462))}}_w();break}catch(f){sb(e,f)}while(!0);return li=Pa=null,F.H=i,F.A=a,ye=n,de!==null?0:(Ne=null,me=0,Wu(),qe)}function _w(){for(;de!==null&&!tS();)mb(de)}function mb(e){var t=Py(e.alternate,e,mi);e.memoizedProps=e.pendingProps,t===null?cc(e):de=t}function yp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=op(n,t,t.pendingProps,t.type,void 0,me);break;case 11:t=op(n,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:gd(t);var i=t;i===ut&&(ce?(Ru(i),i.tag===5&&i.stateNode!=null&&(Le=i.stateNode)):(Ru(i),ce=!0));default:Uy(n,t),t=de=_g(t,mi),t=Py(n,t,mi)}e.memoizedProps=e.pendingProps,t===null?cc(e):de=t}function po(e,t,n,i){li=Pa=null,gd(t),So=null,Il=0;var a=t.return;try{if(Mw(e,a,t,n,me)){qe=1,Hu(e,gn(n,e.current)),de=null;return}}catch(o){if(a!==null)throw de=a,o;qe=1,Hu(e,gn(n,e.current)),de=null;return}t.flags&32768?(ce||i===1?e=!0:Yo||(me&536870912)!==0?e=!1:(Pi=e=!0,(i===2||i===9||i===3||i===6)&&(i=pt.current,i!==null&&i.tag===13&&(i.flags|=16384))),pb(t,e)):cc(t)}function cc(e){var t=e;do{if((t.flags&32768)!==0){pb(t,Pi);return}e=t.return;var n=Cw(t.alternate,t,mi);if(n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function pb(e,t){do{var n=Ow(e.alternate,e);if(n!==null){n.flags&=32767,de=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=n}while(e!==null);qe=6,de=null}function bp(e,t,n,i,a,o,l,r,u,c,f,p){e.cancelPendingCommit=null;do sc();while(Ie!==0);if((ye&6)!==0)throw Error(A(327));if(t!==null){if(t===e.current)throw Error(A(177));e===Ne&&(de=Ne=null,me=0),La=t,Mn=e,jn=n,Af=a,rb=i,Iw(e,t,n,l,r,u,p)}}function Iw(e,t,n,i,a,o,l){var r=t.lanes|t.childLanes;if(Nf=r,r|=nd,fS(e,n,r,i,a,o),To=null,(n&335544064)===n?(Mo=hw(e),i=10262):(Mo=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,jw(wu,function(){return zf(),null})):(e.callbackNode=null,e.callbackPriority=0),Uu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=F.T,F.T=null,a=be.p,be.p=2,o=ye,ye|=4;try{Lw(e,t,n)}finally{ye=o,be.p=a,F.T=i}}Ie=1,Uu?Eo=cx(l,e.containerInfo,Mo,Cf,Of,Gw,Lf,zf,Bw,null,null):(Cf(),Of(),Lf())}function Bw(e){if(Ie!==0){var t=Mn.onRecoverableError;t(e,{componentStack:null})}}function Gw(){Ie===3&&(Ie=0,eb(La,Mn),Ie=4)}function Cf(){if(Ie===1){Ie=0;var e=Mn,t=La,n=jn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=F.T,F.T=null;var a=be.p;be.p=2;var o=ye;ye|=4;try{vl=_u=!1,Wy(t,e,n),n=Pf;var l=Og(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(l!==r&&r&&r.ownerDocument&&Cg(r.ownerDocument.documentElement,r)){if(u!==null&&td(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var m=s.getSelection(),S=r.textContent.length,b=Math.min(u.start,S),v=u.end===void 0?b:Math.min(u.end,S);!m.extend&&b>v&&(l=v,v=b,b=l);var d=Hm(r,b),h=Hm(r,v);if(d&&h&&(m.rangeCount!==1||m.anchorNode!==d.node||m.anchorOffset!==d.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var g=p.createRange();g.setStart(d.node,d.offset),m.removeAllRanges(),b>v?(m.addRange(g),m.extend(h.node,h.offset)):(g.setEnd(h.node,h.offset),m.addRange(g))}}}}for(p=[],m=r;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var w=p[r];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Uo=!!kf,Pf=kf=null}finally{ye=o,be.p=a,F.T=i}}e.current=t,Ie=2}}function Of(){if(Ie===2){Ie=0;var e=Mn,t=La,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var i=be.p;be.p=2;var a=ye;ye|=4;try{Xy(e,t.alternate,t)}finally{ye=a,be.p=i,F.T=n}}Ie=3}}function Lf(){if(Ie===4||Ie===3){Ie=0;var e=Eo;Eo=null,nS();var t=Mn,n=La,i=jn,a=rb,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Ie=5:(Ie=0,La=Mn=null,gb(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(ji=null),Zf(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Fl,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=F.T,o=be.p,be.p=2,F.T=null;try{for(var l=t.onRecoverableError,r=0;r<a.length;r++){var u=a[r];l(u.value,{componentStack:u.stack})}}finally{F.T=n,be.p=o}}if(a=To,l=Mo,Mo=null,a!==null&&(To=null,l===null&&(l=[]),e!==null))for(u=0;u<a.length;u++)n=(0,a[u])(l),n!==void 0&&e.finished.finally(n);(jn&3)!==0&&sc(),Qn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===du?zl++:(zl=0,du=t):(zl=0,du=null),ar(0,!1)}}function gb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,tr(t)))}function sc(){return Eo!==null&&(Eo.skipTransition(),Eo=null),Cf(),Of(),Lf(),zf()}function zf(){if(Ie!==5)return!1;var e=Mn,t=Nf;Nf=0;var n=Zf(jn),i=F.T,a=be.p;try{be.p=32>n?32:n,F.T=null,n=Af,Af=null;var o=Mn,l=jn;if(Ie=0,La=Mn=null,jn=0,(ye&6)!==0)throw Error(A(331));var r=ye;if(ye|=4,ab(o.current),tb(o,o.current,l,n),ye=r,ar(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Fl,o)}catch{}return!0}finally{be.p=a,F.T=i,gb(e,t)}}function vp(e,t,n){t=gn(n,t),t=ff(e.stateNode,t,2),e=Vi(e,t,2),e!==null&&(Wl(e,2),Qn(e))}function xe(e,t,n){if(e.tag===3)vp(e,e,n);else for(;t!==null;){if(t.tag===3){vp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ji===null||!ji.has(i))){e=gn(n,e),n=Ly(2),i=Vi(t,n,2),i!==null&&(zy(n,i,t,e),Wl(i,2),Qn(i));break}}t=t.return}}function Rs(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Hw;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(zd=!0,a.add(n),e=Vw.bind(null,e,t,n),t.then(e,e))}function Vw(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(me&n)===n&&((qe===4||qe===3&&(me&62914560)===me&&300>Wt()-rc)&&(ye&2)===0?zo(e,0):Iu|=n,Oo===me&&(Oo=0)),Qn(e)}function yb(e,t){t===0&&(t=rg()),e=ka(e,t),e!==null&&(Wl(e,t),Qn(e))}function Yw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yb(e,n)}function qw(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(A(314))}i!==null&&i.delete(t),yb(e,n)}function jw(e,t){return Kf(e,t)}var Do=null,no=null,Df=!1,Yu=!1,Ns=!1,_i=0;function Qn(e){e!==no&&e.next===null&&(no===null?Do=no=e:no=no.next=e),Yu=!0,Df||(Df=!0,Kw())}function ar(e,t){if(!Ns&&Yu){Ns=!0;do for(var n=!1,i=Do;i!==null;){if(!t)if(e!==0){var a=i.pendingLanes;if(a===0)var o=0;else{var l=i.suspendedLanes,r=i.pingedLanes;o=(1<<31-en(42|e)+1)-1,o&=a&~(l&~r),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Sp(i,o))}else o=me,o=Ku(i,i===Ne?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Jl(i,o)||(n=!0,Sp(i,o));i=i.next}while(n);Ns=!1}}function Xw(){bb()}function bb(){Yu=Df=!1;var e=0;_i!==0&&nx()&&(e=_i);for(var t=Wt(),n=null,i=Do;i!==null;){var a=i.next,o=vb(i,t);o===0?(i.next=null,n===null?Do=a:n.next=a,a===null&&(no=n)):(n=i,(e!==0||(o&3)!==0)&&(Yu=!0)),i=a}Ie!==0&&Ie!==5||ar(e,!1),_i!==0&&(_i=0)}function vb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var l=31-en(o),r=1<<l,u=a[l];u===-1?((r&n)===0||(r&i)!==0)&&(a[l]=sS(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=Ne,n=me,n=Ku(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&os(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Jl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&os(i),Zf(n)){case 2:case 8:n=ag;break;case 32:n=wu;break;case 268435456:n=og;break;default:n=wu}return i=Sb.bind(null,e),n=Kf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&os(i),e.callbackPriority=2,e.callbackNode=null,2}function Sb(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(sc()&&e.callbackNode!==n)return null;var i=me;return i=Ku(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(cb(e,i,t),vb(e,Wt()),e.callbackNode!=null&&e.callbackNode===n?Sb.bind(null,e):null)}function Sp(e,t){if(sc())return null;cb(e,t,!0)}function Kw(){ax(function(){(ye&6)!==0?Kf(ig,Xw):bb()})}function Hd(){if(_i===0){var e=Na;e===0&&(e=Dr,Dr<<=1,(Dr&261888)===0&&(Dr=256)),_i=e}return _i}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:eu(e)}function Qw(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var o=wp((a[Yt]||null).action),l=i.submitter;l&&(t=(t=l[Yt]||null)?wp(t.formAction):l.getAttribute("formAction"),t!==null&&(o=t,l=null));var r=new Zu("action","action",null,i,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_i!==0){var u=new FormData(a,l);cf(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,l),cf(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(Qr=0;Qr<Js.length;Qr++)Zr=Js[Qr],xp=Zr.toLowerCase(),Ep=Zr[0].toUpperCase()+Zr.slice(1),Rn(xp,"on"+Ep);var Zr,xp,Ep,Qr;Rn(zg,"onAnimationEnd");Rn(Dg,"onAnimationIteration");Rn(Hg,"onAnimationStart");Rn("dblclick","onDoubleClick");Rn("focusin","onFocus");Rn("focusout","onBlur");Rn(ow,"onTransitionRun");Rn(lw,"onTransitionStart");Rn(rw,"onTransitionCancel");Rn(kg,"onTransitionEnd");No("onMouseEnter",["mouseout","mouseover"]);No("onMouseLeave",["mouseout","mouseover"]);No("onPointerEnter",["pointerout","pointerover"]);No("onPointerLeave",["pointerout","pointerover"]);Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Da("onBeforeInput",["compositionend","keypress","textInput","paste"]);Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function wb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var l=i.length-1;0<=l;l--){var r=i[l],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){Eu(f)}a.currentTarget=null,o=u}else for(l=0;l<i.length;l++){if(r=i[l],u=r.instance,c=r.currentTarget,r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){Eu(f)}a.currentTarget=null,o=u}}}}function fe(e,t){var n=t[ym];n===void 0&&(n=t[ym]=new Set);var i=e+"__bubble";n.has(i)||(xb(t,e,2,!1),n.add(i))}function As(e,t,n){var i=0;t&&(i|=4),xb(n,e,i,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function kd(e){if(!e[Fr]){e[Fr]=!0,hg.forEach(function(n){n!=="selectionchange"&&(Zw.has(n)||As(n,!1,e),As(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,As("selectionchange",!1,t))}}function xb(e,t,n,i){switch(Xb(t)){case 2:var a=Gx;break;case 8:a=Vx;break;default:a=Vd}n=a.bind(null,t,n,e),a=void 0,!Ks||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Cs(e,t,n,i,a){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var l=i.tag;if(l===3||l===4){var r=i.stateNode.containerInfo;if(r===a)break;if(l===4)for(l=i.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;r!==null;){if(l=ya(r),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){i=o=l;continue e}r=r.parentNode}}i=i.return}wg(function(){var c=o,f=Jf(n),p=[];e:{var s=Pg.get(e);if(s!==void 0){var m=Zu,S=e;switch(e){case"keypress":if(nu(n)===0)break e;case"keydown":case"keyup":m=kS;break;case"focusin":S="focus",m=fs;break;case"focusout":S="blur",m=fs;break;case"beforeblur":case"afterblur":m=fs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=ES;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=BS;break;case zg:case Dg:case Hg:m=RS;break;case kg:m=VS;break;case"scroll":case"scrollend":m=wS;break;case"wheel":m=qS;break;case"copy":case"cut":case"paste":m=AS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Nm;break;case"submit":m=_S;break;case"toggle":case"beforetoggle":m=XS}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),d=b?s!==null?s+"Capture":null:s;b=[];for(var h=c,g;h!==null;){var w=h;if(g=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||g===null||d===null||(w=Hl(h,d),w!=null&&b.push(Yl(h,w,g))),v)break;h=h.return}0<b.length&&(s=new m(s,S,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",m&&n!==Xs&&(S=n.relatedTarget||n.fromElement)&&(ya(S)||S[Io]))break e;(s||m)&&(S=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,s?(m=n.relatedTarget||n.toElement,s=c,m=m?ya(m):null,m!==null&&(v=Zl(m),b=m.tag,m!==v||b!==5&&b!==27&&b!==6)&&(m=null)):(s=null,m=c),s!==m&&(b=Mm,w="onMouseLeave",d="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(b=Nm,w="onPointerLeave",d="onPointerEnter",h="pointer"),v=s==null?S:yl(s),g=m==null?S:yl(m),S=new b(w,h+"leave",s,n,f),S.target=v,S.relatedTarget=g,w=null,ya(f)===c&&(b=new b(d,h+"enter",m,n,f),b.target=g,b.relatedTarget=v,w=b),v=w,b=s&&m?Hs(s,m,Fw):null,s!==null&&Tp(p,S,s,b,!1),m!==null&&v!==null&&Tp(p,v,m,b,!0)))}e:{if(s=c?yl(c):window,m=s.nodeName&&s.nodeName.toLowerCase(),m==="select"||m==="input"&&s.type==="file")var E=Lm;else if(Om(s))if(Ng)E=nw;else{E=ew;var R=$S}else m=s.nodeName,!m||m.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Ff(c.elementType)&&(E=Lm):E=tw;if(E&&(E=E(e,c))){Rg(p,E,n,f);break e}R&&R(e,s,c)}switch(R=c?yl(c):window,e){case"focusin":(Om(R)||R.contentEditable==="true")&&(uo=R,Zs=c,xl=null);break;case"focusout":xl=Zs=uo=null;break;case"mousedown":Fs=!0;break;case"contextmenu":case"mouseup":case"dragend":Fs=!1,km(p,n,f);break;case"selectionchange":if(aw)break;case"keydown":case"keyup":km(p,n,f)}var x;if(ed)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ro?Tg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Eg&&n.locale!=="ko"&&(ro||N!=="onCompositionStart"?N==="onCompositionEnd"&&ro&&(x=xg()):(Hi=f,Wf="value"in Hi?Hi.value:Hi.textContent,ro=!0)),R=qu(c,N),0<R.length&&(N=new Rm(N,e,null,n,f),p.push({event:N,listeners:R}),x?N.data=x:(x=Mg(n),x!==null&&(N.data=x)))),(x=QS?ZS(e,n):FS(e,n))&&(N=qu(c,"onBeforeInput"),0<N.length&&(R=new Rm("onBeforeInput","beforeinput",null,n,f),p.push({event:R,listeners:N}),R.data=x)),Qw(p,e,c,n,f)}wb(p,t)})}function Yl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qu(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=Hl(e,n),a!=null&&i.unshift(Yl(e,a,o)),a=Hl(e,t),a!=null&&i.push(Yl(e,a,o))),e.tag===3)return i;e=e.return}return[]}function Fw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tp(e,t,n,i,a){for(var o=t._reactName,l=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,a?(c=Hl(n,o),c!=null&&l.unshift(Yl(n,c,u))):a||(c=Hl(n,o),c!=null&&l.push(Yl(n,c,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Jw=/\r\n?/g,Ww=/\u0000|\uFFFD/g;function Mp(e){return(typeof e=="string"?e:""+e).replace(Jw,`
766
- `).replace(Ww,"")}function Eb(e,t){return t=Mp(t),Mp(e)===t}function we(e,t,n,i,a,o){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Ao(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Ao(e,""+i);else return;break;case"className":Pr(e,"class",i);break;case"tabIndex":Pr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Pr(e,n,i);break;case"style":Sg(e,i,o);return;case"data":if(t!=="object"){Pr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=eu(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&we(e,t,"name",a.name,a,null),we(e,t,"formEncType",a.formEncType,a,null),we(e,t,"formMethod",a.formMethod,a,null),we(e,t,"formTarget",a.formTarget,a,null)):(we(e,t,"encType",a.encType,a,null),we(e,t,"method",a.method,a,null),we(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=eu(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Gn);return;case"onScroll":i!=null&&fe("scroll",e);return;case"onScrollEnd":i!=null&&fe("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=eu(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":fe("beforetoggle",e),fe("toggle",e),$r(e,"popover",i);break;case"xlinkActuate":ii(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ii(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ii(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ii(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ii(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ii(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ii(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ii(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ii(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":$r(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=vS.get(n)||n,$r(e,n,i);else return}ge=!0}function Hf(e,t,n,i,a,o){switch(n){case"style":Sg(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")Ao(e,i);else if(typeof i=="number"||typeof i=="bigint")Ao(e,""+i);else return;break;case"onScroll":i!=null&&fe("scroll",e);return;case"onScrollEnd":i!=null&&fe("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Gn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!mg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),o=n.slice(2,a?n.length-7:void 0),t=e[Yt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,a),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,i,a);break e}ge=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):$r(e,n,i)}return}ge=!0}function mt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var i=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(l!=null)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,o,l,n,null)}}a&&we(e,t,"srcSet",n.srcSet,n,null),i&&we(e,t,"src",n.src,n,null);return;case"input":fe("invalid",e);var r=o=l=a=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":a=f;break;case"type":l=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":o=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(A(137,t));break;default:we(e,t,i,f,n,null)}}yg(e,o,r,u,c,l,a,!1);return;case"select":fe("invalid",e),i=l=o=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":o=r;break;case"defaultValue":l=r;break;case"multiple":i=r;default:we(e,t,a,r,n,null)}t=o,n=l,e.multiple=!!i,t!=null?yo(e,!!i,t,!1):n!=null&&yo(e,!!i,n,!0);return;case"textarea":fe("invalid",e),o=a=i=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":i=r;break;case"defaultValue":a=r;break;case"children":o=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(A(91));break;default:we(e,t,l,r,n,null)}vg(e,i,a,o);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:we(e,t,u,i,n,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(i=0;i<Vl.length;i++)fe(Vl[i],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,c,i,n,null)}return;default:if(Ff(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&Hf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&we(e,t,r,i,n,null))}var $w={};function ex(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,l=null,r=null,u=null,c=null,f=null;for(m in n){var p=n[m];if(n.hasOwnProperty(m)&&p!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(m)||we(e,t,m,null,i,p)}}for(var s in i){var m=i[s];if(p=n[s],i.hasOwnProperty(s)&&(m!=null||p!=null))switch(s){case"type":m!==p&&(ge=!0),o=m;break;case"name":m!==p&&(ge=!0),a=m;break;case"checked":m!==p&&(ge=!0),c=m;break;case"defaultChecked":m!==p&&(ge=!0),f=m;break;case"value":m!==p&&(ge=!0),l=m;break;case"defaultValue":m!==p&&(ge=!0),r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(A(137,t));break;default:m!==p&&we(e,t,s,m,i,p)}}js(e,l,r,u,c,f,o,a);return;case"select":m=l=r=s=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(o)||we(e,t,o,null,i,u)}for(a in i)if(o=i[a],u=n[a],i.hasOwnProperty(a)&&(o!=null||u!=null))switch(a){case"value":o!==u&&(ge=!0),s=o;break;case"defaultValue":o!==u&&(ge=!0),r=o;break;case"multiple":o!==u&&(ge=!0),l=o;default:o!==u&&we(e,t,a,o,i,u)}t=r,n=l,i=m,s!=null?yo(e,!!n,s,!1):!!i!=!!n&&(t!=null?yo(e,!!n,t,!0):yo(e,!!n,n?[]:"",!1));return;case"textarea":m=s=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:we(e,t,r,null,i,a)}for(l in i)if(a=i[l],o=n[l],i.hasOwnProperty(l)&&(a!=null||o!=null))switch(l){case"value":a!==o&&(ge=!0),s=a;break;case"defaultValue":a!==o&&(ge=!0),m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(A(91));break;default:a!==o&&we(e,t,l,a,i,o)}bg(e,s,m);return;case"option":for(var S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:we(e,t,S,null,i,s)}for(u in i)if(s=i[u],m=n[u],i.hasOwnProperty(u)&&s!==m&&(s!=null||m!=null))switch(u){case"selected":s!==m&&(ge=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:we(e,t,u,s,i,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&we(e,t,b,null,i,s);for(c in i)if(s=i[c],m=n[c],i.hasOwnProperty(c)&&s!==m&&(s!=null||m!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(A(137,t));break;default:we(e,t,c,s,i,m)}return;default:if(Ff(t)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!i.hasOwnProperty(v)&&Hf(e,t,v,void 0,i,s);for(f in i)s=i[f],m=n[f],!i.hasOwnProperty(f)||s===m||s===void 0&&m===void 0||Hf(e,t,f,s,i,m);return}}for(var d in n)s=n[d],n.hasOwnProperty(d)&&s!=null&&!i.hasOwnProperty(d)&&we(e,t,d,null,i,s);for(p in i)s=i[p],m=n[p],!i.hasOwnProperty(p)||s===m||s==null&&m==null||we(e,t,p,s,i,m)}function Rp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var a=n[i],o=a.transferSize,l=a.initiatorType,r=a.duration;if(o&&r&&Rp(l)){for(l=0,r=a.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&Rp(p)&&(u=u.responseEnd,l+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(o+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var kf=null,Pf=null;function ql(e){return e.nodeType===9?e:e.ownerDocument}function Np(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Mb(e,t,n,i){return n=ql(n).createElement(e),n[st]=i,n[Yt]=t,mt(n,e,t),rt(n),n}function Uf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Os=null;function nx(){var e=window.event;return e&&e.type==="popstate"?e===Os?!1:(Os=e,!0):(Os=null,!1)}var Pd=typeof setTimeout=="function"?setTimeout:void 0,ix=typeof clearTimeout=="function"?clearTimeout:void 0,Ap=typeof Promise=="function"?Promise:void 0,Cp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Pd,ax=typeof queueMicrotask=="function"?queueMicrotask:typeof Ap<"u"?function(e){return Ap.resolve(null).then(e).catch(ox)}:Pd;function ox(e){setTimeout(function(){throw e})}function ta(e){return e==="head"}function Op(e,t){var n=t,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(a),_o(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")zs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,zs(n);for(var o=n.firstChild;o;){var l=o.nextSibling,r=o.nodeName;o[$l]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=l}}else n==="body"&&zs(e.ownerDocument.body);n=a}while(n);_o(t)}function Lp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Rb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var a=i=0;a<t.length;a++){var o=t[a];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Nb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Ab(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function _f(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Ab(t,n,e)}function lx(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ab(t,n,e)}function rx(e){return e.documentElement.clientHeight}function ux(e){this.addEventListener("load",e),this.addEventListener("error",e)}function cx(e,t,n,i,a,o,l,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,m=s.navigation&&s.navigation.transition,S=c.fonts.status;i();var b=[];if(S==="loaded"&&(rx(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),S=b.length,e!==null)for(var v=e.suspenseyImages,d=0,h=0;h<v.length;h++){var g=v[h];if(!g.complete){var w=g.getBoundingClientRect();if(0<w.bottom&&0<w.right&&w.top<s.innerHeight&&w.left<s.innerWidth){if(d+=Bb(g),d>pu){b.length=S;break}g=new Promise(ux.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(E){return setTimeout(E,500)})]).then(a,a),(m?Promise.allSettled([m.finished,s]):s).then(o,o);if(a(),m)return m.finished.then(o,o);o()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),m=0;m<s.length;m++){var S=s[m],b=S.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(S),S=b.getKeyframes();for(var d=v=void 0,h=!0,g=0;g<S.length;g++){var w=S[g],E=w.width;if(v===void 0)v=E;else if(v!==E){h=!1;break}if(E=w.height,d===void 0)d=E;else if(d!==E){h=!1;break}delete w.width,delete w.height,w.transform==="none"&&delete w.transform}h&&v!==void 0&&d!==void 0&&(b.setKeyframes(S),h=getComputedStyle(b.target,b.pseudoElement),h.width!==v||h.height!==d)&&(h=S[0],h.width=v,h.height=d,h=S[S.length-1],h.width=v,h.height=d,b.setKeyframes(S))}}l()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),a(),l()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),a(),l(),null}}function ba(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ba.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ae({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};ba.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(n[a])}return i};ba.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Cb(e){return{name:e,group:new ba("group",e),imagePair:new ba("image-pair",e),old:new ba("old",e),new:new ba("new",e)}}function an(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}an.prototype.addEventListener=function(e,t,n){var i=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(Ob(o,e,t,n)===-1){var l=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){l.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(a=l.removeEventListener.bind(l,e,t,n),i.addEventListener("abort",a,{once:!0}),a=i.removeEventListener.bind(i,"abort",a)),i=Ho(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),Vt(this._fragmentFiber.child,!1,sx,e,r,i)}this._eventListeners=o}};function sx(e,t,n,i){return tt(e).addEventListener(t,n,i),!1}an.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Ob(i,e,t,n),t!==-1)){var a=i[t];n=a.attachedListener;var o=a.cleanup;a=Ho(a.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,fx,e,n,a),i.splice(t,1),o!==null&&o()}};function fx(e,t,n,i){return tt(e).removeEventListener(t,n,i),!1}function Ho(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Ob(e,t,n,i){if(e.length===0)return-1;i=zp(i);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&zp(o.optionsOrUseCapture)===i)return a}return-1}an.prototype.dispatchEvent=function(e){var t=za(this._fragmentFiber);if(t===null)return!0;t=tt(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var o=n[a];i.addEventListener(o.type,o.attachedListener,Ho(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(a=0;a<n.length;a++)o=n[a],i.removeEventListener(o.type,o.attachedListener,Ho(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};an.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Lb,e,void 0,void 0)};function Lb(e,t){return e.tag===6?!1:(e=tt(e),Ex(e,t))}an.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Ud,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Lb(t[n],e);n--);};function Ud(e,t){return t.push(e),!1}an.prototype.blur=function(){var e=za(this._fragmentFiber);e!==null&&(e=tt(e),e=ql(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,dx,e,void 0,void 0))};function dx(e,t){return e.tag===6?!1:(e=tt(e),e===t||e.contains(t)?(t.blur(),!0):!1)}an.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,hx,e,void 0,void 0)};function hx(e,t){return e.tag===6||(e=tt(e),t.observe(e)),!1}an.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,mx,e,void 0,void 0);for(var n=t=0;n<Tn.length;n++){var i=Tn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Tn[t++]=i}Tn.length=t}};function mx(e,t){return e.tag===6||(e=tt(e),t.unobserve(e)),!1}var Tn=[],Ls=!1;function px(e,t,n){Tn.push({fragmentInstance:e,observer:t,instance:n}),Ls||(Ls=!0,Tx(function(){Ls=!1;var i=Tn;Tn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}an.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,gx,e,void 0,void 0),e};function gx(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=tt(e),t.push.apply(t,e.getClientRects());return!1}an.prototype.getRootNode=function(e){var t=za(this._fragmentFiber);return t===null?this:tt(t).getRootNode(e)};an.prototype.compareDocumentPosition=function(e){var t=za(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Ud,n,void 0,void 0);var i=tt(t);if(n.length===0){if(n=i,fm(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=i=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=$p(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=tt(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=tt(n[0]),a=tt(n[n.length-1]);var o=fm(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var l=t.compareDocumentPosition(e),r=a.compareDocumentPosition(e),u=l&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&o&&l&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&a===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:l,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||yx(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function yx(e,t,n,i,a){var o=ya(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;e:{for(o=t,t=za(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=Hs(n,o,dm),t===null?t=!1:(Vt(t,!0,K1,o,n),o=io,io=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=Hs(i,o,dm),t===null?t=!1:(Vt(t,!0,Q1,o,i),o=io,Ds=io=null,t=o!==null)),t):!1}function Dp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}an.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(A(566));var t=[];Vt(this._fragmentFiber.child,!1,Ud,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=$p(this._fragmentFiber);if(i=n?i[1]||i[0]||za(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=tt(i),Dp(e,n);return}if(i=tt(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var a=t[i];a.tag===6?(a=tt(a),Dp(a,n)):tt(a).scrollIntoView(e),i+=n?-1:1}};function bx(e,t){return e=tt(e),zb(e,t),!1}function zb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Db(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.addEventListener(a.type,a.attachedListener,Ho(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var l=0,r=0;r<Tn.length;r++){var u=Tn[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(Tn[l++]=u)}Tn.length=l,o.observe(e)}),zb(e,t))}function vx(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.removeEventListener(a.type,a.attachedListener,Ho(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?px(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function If(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":If(n),Qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Sx(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[$l])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function wx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=bn(e.nextSibling),e===null))return null;return e}function Hb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=bn(e.nextSibling),e===null))return null;return e}function Bf(e){return e.data==="$?"||e.data==="$~"}function _d(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gf=null;function Hp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return bn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function kp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Ex(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function Tx(e){Cp(function(){Cp(function(t){return e(t)})})}function kb(e,t,n){switch(t=ql(n),e){case"html":if(e=t.documentElement,!e)throw Error(A(452));return e;case"head":if(e=t.head,!e)throw Error(A(453));return e;case"body":if(e=t.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function Pb(e,t,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&we(e,t,i,null,$w,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Gn&&(e.onclick=null),Qu(e)}function zs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qu(e)}var vn=new Map,Pp=new Set;function jl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var yi=be.d;be.d={f:Mx,r:Rx,D:Nx,C:Ax,L:Cx,m:Ox,X:zx,S:Lx,M:Dx};function Mx(){var e=yi.f(),t=uc();return e||t}function Rx(e){var t=Bo(e);t!==null&&t.tag===5&&t.type==="form"?Sy(t):yi.r(e)}var qo=typeof document>"u"?null:document;function Ub(e,t,n){var i=qo;if(i&&typeof t=="string"&&t){var a=pn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Pp.has(a)||(Pp.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),mt(t,"link",e),rt(t),i.head.appendChild(t)))}}function Nx(e){yi.D(e),Ub("dns-prefetch",e,null)}function Ax(e,t){yi.C(e,t),Ub("preconnect",e,t)}function Cx(e,t,n){yi.L(e,t,n);var i=qo;if(i&&e&&t){var a='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+pn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+pn(n.imageSizes)+'"]')):a+='[href="'+pn(e)+'"]';var o=a;switch(t){case"style":o=ko(e);break;case"script":o=jo(e)}if(!(vn.has(o)||(e=Ae({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vn.set(o,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(or(o))||t==="script"&&i.querySelector(lr(o))))){var l=i.createElement("link");mt(l,"link",e),t==="style"&&(l[xu]=!0,l.onload=l.onerror=function(){dg(l)}),rt(l),i.head.appendChild(l)}}}function Ox(e,t){yi.m(e,t);var n=qo;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',o=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=jo(e)}if(!vn.has(o)&&(e=Ae({rel:"modulepreload",href:e},t),vn.set(o,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(lr(o)))return}i=n.createElement("link"),mt(i,"link",e),rt(i),n.head.appendChild(i)}}}function Lx(e,t,n){yi.S(e,t,n);var i=qo;if(i&&e){var a=go(i).hoistableStyles,o=ko(e);t=t||"default";var l=a.get(o);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(or(o)))r.loading=5;else{e=Ae({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vn.get(o))&&Id(e,n);var u=l=i.createElement("link");rt(u),mt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,hu(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(o,l)}}}function zx(e,t){yi.X(e,t);var n=qo;if(n&&e){var i=go(n).hoistableScripts,a=jo(e),o=i.get(a);o||(o=n.querySelector(lr(a)),o||(e=Ae({src:e,async:!0},t),(t=vn.get(a))&&Bd(e,t),o=n.createElement("script"),rt(o),mt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function Dx(e,t){yi.M(e,t);var n=qo;if(n&&e){var i=go(n).hoistableScripts,a=jo(e),o=i.get(a);o||(o=n.querySelector(lr(a)),o||(e=Ae({src:e,async:!0,type:"module"},t),(t=vn.get(a))&&Bd(e,t),o=n.createElement("script"),rt(o),mt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function Up(e,t,n,i){var a=(a=Ii.current)?jl(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ko(n.href),t=go(a).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ko(n.href);var o=go(a).hoistableStyles,l=o.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,l),(o=a.querySelector(or(e)))?o._p||(l.instance=o,l.state.loading=5):(o=vn.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vn.set(e,o)),Hx(a,e,o,l.state))),t&&i===null)throw Error(A(528,""));return l}if(t&&i!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=jo(n),t=go(a).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function ko(e){return'href="'+pn(e)+'"'}function or(e){return'link[rel="stylesheet"]['+e+"]"}function _b(e){return Ae({},e,{"data-precedence":e.precedence,precedence:null})}function Hx(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[xu]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[xu]=!0,t.onload=t.onerror=dg.bind(null,t),mt(t,"link",n),rt(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function jo(e){return'[src="'+pn(e)+'"]'}function lr(e){return"script[async]"+e}function _p(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pn(n.href)+'"]');if(i)return t.instance=i,rt(i),i;var a=Ae({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),rt(i),mt(i,"style",a),hu(i,n.precedence,e),t.instance=i;case"stylesheet":a=ko(n.href);var o=e.querySelector(or(a));if(o)return t.state.loading|=4,t.instance=o,rt(o),o;i=_b(n),(a=vn.get(a))&&Id(i,a),o=(e.ownerDocument||e).createElement("link"),rt(o);var l=o;return l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),mt(o,"link",i),t.state.loading|=4,hu(o,n.precedence,e),t.instance=o;case"script":return o=jo(n.src),(a=e.querySelector(lr(o)))?(t.instance=a,rt(a),a):(i=n,(a=vn.get(o))&&(i=Ae({},n),Bd(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),rt(a),mt(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,hu(i,n.precedence,e));return t.instance}function hu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,o=a,l=0;l<i.length;l++){var r=i[l];if(r.dataset.precedence===t)o=r;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Bd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mu=null;function Ip(e,t,n){if(mu===null){var i=new Map,a=mu=new Map;a.set(n,i)}else a=mu,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[$l]||o[st]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var l=o.getAttribute(t)||"";l=e+l;var r=i.get(l);r?r.push(o):i.set(l,[o])}}return i}function Vf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function kx(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Bp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Ib(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Bb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Gp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Bb(t),e.suspenseyImages.push(t)),e=_x.bind(e),t.decode().then(e,e))}function Px(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=ko(i.href),o=t.querySelector(or(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,rt(o);return}o=t.ownerDocument||t,i=_b(i),(a=vn.get(a))&&Id(i,a),o=o.createElement("link"),rt(o);var l=o;l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),mt(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Xl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var pu=0;function Ux(e,t){return e.stylesheets&&e.count===0&&gu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&pu===0&&(pu=62500*tx());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>pu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Gb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)gu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Xl(){this.count--,Gb(this)}function _x(){this.imgCount--,Gb(this)}var ju=null;function gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ju=new Map,t.forEach(Ix,e),ju=null,Xl.call(e))}function Ix(e,t){if(!(t.state.loading&4)){var n=ju.get(e);if(n)var i=n.get(null);else{n=new Map,ju.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),i=l)}i&&n.set(null,i)}a=t.instance,l=a.getAttribute("data-precedence"),o=n.get(l)||i,o===i&&n.set(null,a),n.set(l,a),this.count++,i=Xl.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Po={$$typeof:Bn,Provider:null,Consumer:null,_currentValue:va,_currentValue2:va,_threadCount:0};function Bx(e,t,n,i,a,o,l,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ls(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.hiddenUpdates=ls(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Vb(e,t,n,i,a,o,l,r,u,c,f,p){return e=new Bx(e,t,n,l,u,c,f,p,r),t=1,o===!0&&(t|=24),o=Bt(3,null,null,t),e.current=o,o.stateNode=e,t=ld(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},cd(o),e}function Yb(e){return e?(e=fo,e):fo}function qb(e,t,n,i,a,o){a=Yb(a),i.context===null?i.context=a:i.pendingContext=a,i=Gi(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Vi(e,i,t),n!==null&&(Gt(n,e,t),Tl(n,e,t))}function Vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gd(e,t){Vp(e,t),(e=e.alternate)&&Vp(e,t)}function jb(e){if(e.tag===13||e.tag===31){var t=ka(e,67108864);t!==null&&Gt(t,e,67108864),Gd(e,67108864)}}function Yp(e){if(e.tag===13||e.tag===31){var t=tn();t=Qf(t);var n=ka(e,t);n!==null&&Gt(n,e,t),Gd(e,t)}}var Uo=!0;function Gx(e,t,n,i){var a=F.T;F.T=null;var o=be.p;try{be.p=2,Vd(e,t,n,i)}finally{be.p=o,F.T=a}}function Vx(e,t,n,i){var a=F.T;F.T=null;var o=be.p;try{be.p=8,Vd(e,t,n,i)}finally{be.p=o,F.T=a}}function Vd(e,t,n,i){if(Uo){var a=Yf(i);if(a===null)Cs(e,t,i,Xu,n),qp(e,i);else if(qx(a,e,t,n,i))i.stopPropagation();else if(qp(e,i),t&4&&-1<Yx.indexOf(e)){for(;a!==null;){var o=Bo(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var l=ma(o.pendingLanes);if(l!==0){var r=o;for(r.pendingLanes|=2,r.entangledLanes|=2;l;){var u=1<<31-en(l);r.entanglements[1]|=u,l&=~u}Qn(o),(ye&6)===0&&(Bu=Wt()+500,ar(0,!1))}}break;case 31:case 13:r=ka(o,2),r!==null&&Gt(r,o,2),uc(),Gd(o,2)}if(o=Yf(i),o===null&&Cs(e,t,i,Xu,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else Cs(e,t,i,null,n)}}function Yf(e){return e=Jf(e),Yd(e)}var Xu=null;function Yd(e){if(Xu=null,e=ya(e),e!==null){var t=Zl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Fp(t),e!==null)return e;e=null}else if(n===31){if(e=Jp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xu=e,null}function Xb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(iS()){case ig:return 2;case ag:return 8;case wu:case aS:return 32;case og:return 268435456;default:return 32}default:return 32}}var qf=!1,Xi=null,Ki=null,Qi=null,Kl=new Map,Ql=new Map,zi=[],Yx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qp(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ql.delete(t.pointerId)}}function hl(e,t,n,i,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Bo(t),t!==null&&jb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function qx(e,t,n,i,a){switch(t){case"focusin":return Xi=hl(Xi,e,t,n,i,a),!0;case"dragenter":return Ki=hl(Ki,e,t,n,i,a),!0;case"mouseover":return Qi=hl(Qi,e,t,n,i,a),!0;case"pointerover":var o=a.pointerId;return Kl.set(o,hl(Kl.get(o)||null,e,t,n,i,a)),!0;case"gotpointercapture":return o=a.pointerId,Ql.set(o,hl(Ql.get(o)||null,e,t,n,i,a)),!0}return!1}function Kb(e){var t=ya(e.target);if(t!==null){var n=Zl(t);if(n!==null){if(t=n.tag,t===13){if(t=Fp(n),t!==null){e.blockedOn=t,gm(e.priority,function(){Yp(n)});return}}else if(t===31){if(t=Jp(n),t!==null){e.blockedOn=t,gm(e.priority,function(){Yp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Xs=i,n.target.dispatchEvent(i),Xs=null}else return t=Bo(n),t!==null&&jb(t),e.blockedOn=n,!1;t.shift()}return!0}function jp(e,t,n){yu(e)&&n.delete(t)}function jx(){qf=!1,Xi!==null&&yu(Xi)&&(Xi=null),Ki!==null&&yu(Ki)&&(Ki=null),Qi!==null&&yu(Qi)&&(Qi=null),Kl.forEach(jp),Ql.forEach(jp)}function Jr(e,t){e.blockedOn===t&&(e.blockedOn=null,qf||(qf=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,jx)))}var Wr=null;function Xp(e){Wr!==e&&(Wr=e,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,function(){Wr===e&&(Wr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Yd(i||n)===null)continue;break}var o=Bo(n);o!==null&&(e.splice(t,3),t-=3,cf(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function _o(e){function t(u){return Jr(u,e)}Xi!==null&&Jr(Xi,e),Ki!==null&&Jr(Ki,e),Qi!==null&&Jr(Qi,e),Kl.forEach(t),Ql.forEach(t);for(var n=0;n<zi.length;n++){var i=zi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<zi.length&&(n=zi[0],n.blockedOn===null);)Kb(n),n.blockedOn===null&&zi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],o=n[i+1],l=a[Yt]||null;if(typeof o=="function")l||Xp(n);else if(l){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Yt]||null)r=l.formAction;else if(Yd(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),Xp(n)}}}function Qb(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function qd(e){this._internalRoot=e}fc.prototype.render=qd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,i=tn();qb(n,i,e,t,null,null)};fc.prototype.unmount=qd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qb(e.current,2,null,e,null,null),uc(),t[Io]=null}};function fc(e){this._internalRoot=e}fc.prototype.unstable_scheduleHydration=function(e){if(e){var t=fg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zi.length&&t!==0&&t<zi[n].priority;n++);zi.splice(n,0,e),n===0&&Kb(e)}};var Kp=Qp.version;if(Kp!=="19.3.0")throw Error(A(527,Kp,"19.3.0"));be.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=X1(t),e=e!==null?Wp(e):null,e=e===null?null:e.stateNode,e};var Xx={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ml=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ml.isDisabled&&ml.supportsFiber))try{Fl=ml.inject(Xx),$t=ml}catch{}var ml;dc.createRoot=function(e,t){if(!Zp(e))throw Error(A(299));var n=!1,i="",a=Ay,o=Cy,l=Oy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Vb(e,1,!1,null,null,n,i,null,a,o,l,Qb),e[Io]=t.current,kd(e),new qd(t)};dc.hydrateRoot=function(e,t,n){if(!Zp(e))throw Error(A(299));var i=!1,a="",o=Ay,l=Cy,r=Oy,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Vb(e,1,!0,t,n??null,i,a,u,o,l,r,Qb),t.context=Yb(null),n=t.current,i=tn(),i=Qf(i),a=Gi(i),a.callback=null,Vi(n,a,i),n=i,t.current.lanes=n,Wl(t,n),Qn(t),e[Io]=t.current,kd(e),new fc(t)};dc.version="19.3.0"});var Wb=Dn((FT,Jb)=>{"use strict";M();function Fb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fb)}catch(e){console.error(e)}}Fb(),Jb.exports=Zb()});var bv=Dn(Ec=>{"use strict";M();var uE=Symbol.for("react.transitional.element"),cE=Symbol.for("react.fragment");function yv(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:uE,type:e,key:i,ref:t!==void 0?t:null,props:n}}Ec.Fragment=cE;Ec.jsx=yv;Ec.jsxs=yv});var pe=Dn((jM,vv)=>{"use strict";M();vv.exports=bv()});M();var d1=j(Wb(),1);M();var J=j($e(),1);M();var Nn=e=>e;M();M();M();var Kx=["path","circle","ellipse","line","polyline","polygon","rect","g"],Qx={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},Zx=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],ev=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,tv=1024;function jd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function $b(e){let t=jd(e),n={};for(let[i,a]of Object.entries(Qx)){let o=t[i],l=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof o=="string"&&o.length<=l&&a.test(o)&&(n[i]=o)}for(let i of Zx){let a=t[i];typeof a=="string"&&a.length<=32&&ev.test(a)&&Math.abs(Number(a))<=1e5&&(n[i]=a)}return n}function nv(e){let{viewBox:t,attrs:n,shapes:i}=jd(e);if(typeof t!="string"||t.length>100)return;let a=t.trim().split(/[\s,]+/);if(a.length!==4||!a.every(u=>ev.test(u)&&Math.abs(Number(u))<=1e5)||Number(a[2])<=0||Number(a[3])<=0)return;let o=64;function l(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(o--<=0)break;let{tag:s,attrs:m,shapes:S}=jd(p),b=Kx.find(v=>v===s);b&&f.push({tag:b,attrs:$b(m),shapes:b==="g"?l(S,c+1):[]})}return f}let r=l(i,0);return r.length?{viewBox:a.join(" "),attrs:$b(n),shapes:r}:void 0}M();var iv=["siblings","ontology","crosslinks","sidecar"],Xd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},hc=["view",...iv,"dock","theme"],Kd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function mc(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=Xd.view.find(l=>l===t.view),a=Xd.dock.find(l=>l===t.dock),o=Xd.theme.find(l=>l===t.theme);i&&(n.view=i),a&&(n.dock=a),o&&(n.theme=o);for(let l of iv){let r=t[l];typeof r=="boolean"&&(n[l]=r)}return Object.keys(n).length?n:void 0}var gc=1e4,Fx=25e4,Jx=256*1024*1024,lv=24*1024*1024,Zd="data/search.json",Fd="theme/publication.css",cM=48*1024,Jd=["parent","child","left","right","previous","next"],Wx=["document","drawing","attachment","folder","tag","url"],$x=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,eE=/^[a-f0-9]{64}$/,av=["none","arrow","triangle","bar","dot"],tE=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,nE=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Wd(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function bi(e){return typeof e=="string"&&nE.test(e)}function $d(e){if(!bi(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function eh(e){return typeof e=="string"&&e.length<=180&&$x.test(e)}function An(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function Ua(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Zn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function rv(e,t){return Zn(e,0,t-1)&&Number.isInteger(e)}function pc(e,t){let n=An(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:a,gateRadius:o,icon:l}=n;if(a!==void 0&&!Zn(a,6,96))throw new Error("Invalid publication font size");if(o!==void 0&&!Zn(o,0,40))throw new Error("Invalid publication gate radius");if(l!=null&&!rv(l,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:a,gateRadius:o,...l===void 0?{}:{icon:l}}}function iE(e,t){let{center:n,sibling:i,inferred:a}=An(e);return{center:n===void 0?void 0:pc(n,t),sibling:i===void 0?void 0:pc(i,t),inferred:a===void 0?void 0:pc(a,t)}}function aE(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:o,endHead:l,labelColor:r,labelSize:u}=An(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Zn(n,.25,20)||i!==void 0&&typeof i!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let c=av.find(p=>p===o),f=av.find(p=>p===l);if(o!==void 0&&!c||l!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Zn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:c,endHead:f,labelColor:r,labelSize:u}}function oE(e){let t=An(e),n={};if(t.maximum!==void 0){if(!Zn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=An(t.geometry),a={},o=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let l of o){let r=i[l];if(r!==void 0){if(!Zn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(a,{[l]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...a,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}=An(t.typography);if(i!==void 0&&!Zn(i,6,48)||o!==void 0&&!Zn(o,6,48)||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}}return n}function lE(e){let t=Object.entries(An(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,a]of t){if(!Ua(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(Ua(a,1e3)||typeof a=="boolean"||typeof a=="number"&&Number.isFinite(a))n.set(i,a);else if(Array.isArray(a)&&a.length<=48&&a.every(o=>Ua(o,1e3)))n.set(i,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function uv(e){let t=An(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!tE.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!bi(t.id)||!bi(t.entry)||!Ua(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>gc||!Array.isArray(t.relations)||t.relations.length>Fx||!Array.isArray(t.resources)||t.resources.length>gc*4)throw new Error("Invalid publication manifest");let i=0,a=new Set,o=t.resources.map(b=>{let{path:v,bytes:d,sha256:h}=An(b);if(!eh(v)||a.has(v)||!Zn(d,0,32*1024*1024)||!Number.isInteger(d)||typeof h!="string"||!eE.test(h))throw new Error("Invalid publication resource");if(a.add(v),i+=d,i>Jx)throw new Error("Publication exceeds package limit");return{path:v,bytes:d,sha256:h}}),l;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>tv)throw new Error("Invalid publication icons");l=t.icons.map(b=>{let v=nv(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=l?.length??0,u=new Set,c=new Set,f=t.nodes.map(b=>{let v=An(b),{id:d,title:h,aliases:g,asset:w,url:E,trailIcon:R}=v,x=Wx.find(N=>N===v.kind);if(!bi(d)||u.has(d)||!Ua(h,512)||!x)throw new Error("Invalid publication node");if(u.add(d),x==="document"||x==="drawing"){let N=$d(d);if(!a.has(N))throw new Error("Missing publication note resource");c.add(N)}if(w!==void 0&&(typeof w!="string"||!w.startsWith("assets/")||!a.has(w)))throw new Error("Missing publication asset");if(E!==void 0&&(x!=="url"||!Wd(E)))throw new Error("Invalid publication web link");if(R!==void 0&&!rv(R,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>Ua(N,512))))throw new Error("Invalid publication aliases");return{id:d,title:h,kind:x,...g===void 0?{}:{aliases:[...g]},...w===void 0?{}:{asset:w},...E===void 0?{}:{url:E},...R===void 0?{}:{trailIcon:R},...v.style===void 0?{}:{style:pc(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:iE(v.roleStyles,r)},...v.properties===void 0?{}:{properties:lE(v.properties)}}});if(!u.has(t.entry)||[...a].some(b=>b.startsWith("notes/")&&!c.has(b))||t.fullText!==a.has(Zd))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let s=new Set,m=t.relations.map(b=>{let{source:v,target:d,relationType:h,direction:g,definition:w,role:E,style:R}=An(b),x=Jd.find(G=>G===E);if(typeof v!="string"||typeof d!="string"||v===d||!u.has(v)||!u.has(d)||!x||h!==1&&h!==2||g!==null&&g!==1&&g!==2&&g!==3||w!==void 0&&!Ua(w,192))throw new Error("Invalid publication relationship");let N=`${v}/${d}/${x}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:v,target:d,role:x,relationType:h,direction:g,...w===void 0?{}:{definition:w},...R===void 0?{}:{style:aE(R)}}}),S=mc(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:m,resources:o,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...S&&{canvasDefaults:S},...l===void 0?{}:{icons:l},...t.appearance===void 0?{}:{appearance:oE(t.appearance)}}}M();var rr={key:"F4"};M();M();M();function cv(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(a,o)=>o<=8&&(!a||typeof a!="object"||Object.values(a).every(l=>i(l,o+1)));return i(n,0)?n:null}catch{return null}}M();var gt={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},yc={min:.1,max:4,step:.05};function Xo(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var bc={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:Xo(96,40,240),verticalSpacing:Xo(24,12,80),parentColumns:Xo(2,1,3),initialGenerations:Xo(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=yc.min&&e<=yc.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=yc.min&&e<=yc.max},maximumDepth:Xo(10,1,gt.depth),maximumOccurrences:Xo(500,16,gt.occurrences)}};function vc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=a=>Object.prototype.hasOwnProperty.call(t,a)?t[a]:bc.fields[a].defaultValue;for(let[a,o]of Object.entries(bc.fields))if(!o.validate(n(a)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var th={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},Sc={version:0,unavailable:!0};function _a(e){return typeof e=="string"&&e.length>0&&e.length<=gt.occurrenceCharacters}function na(e){if(e==null)return{...th,expanded:[],collapsed:[],sides:{}};let t=cv(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return Sc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),a=Reflect.get(t,"expanded"),o=Reflect.get(t,"collapsed"),l=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!_a(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(a)||!Array.isArray(o)||a.length>256||o.length>256||!a.every(_a)||!o.every(_a)||!l||typeof l!="object"||Array.isArray(l)||Object.keys(l).length>256)return Sc;let r=[];for(let[c,f]of Object.entries(l)){let p=f;if(!_a(c)||p!==-1&&p!==1)return Sc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:Nn(n),initialGenerations:i,expanded:[...new Set(a)].sort(),collapsed:[...new Set(o)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=gt.stateCharacters?u:Sc}function sv(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function ur(e){let t=na(e);return t.version===1?t:null}function wc(e,t,n){let i=na(e),a=i.version===1&&i.scope===t.layoutRoot?i:na(t.stateSuggestion);if(a.version!==1||a.scope!==t.layoutRoot)return null;let o=new Set(a.expanded),l=new Set(a.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(l.delete(u.id),o.add(u.id)):(o.delete(u.id),l.add(u.id));return ur({...a,expanded:[...o],collapsed:[...l]})}M();var L={licenses:"Runtime licenses",close:"Close",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",darkMode:"Dark mode",lightMode:"Light mode",systemTheme:"System theme",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},Ia={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",trigger:e=>`Color theme (${e})`},Fn={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};M();var xc=class{constructor(t,n,i,a=750,o){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=a;this.modifierFeedback=o;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function fv(e,t){let n=e.ownerDocument,i=n.defaultView,a=r=>t.modifier(r.altKey,r.isTrusted),o=()=>t.clear(),l=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",a),i.addEventListener("keyup",a),i.addEventListener("blur",o),n.addEventListener("visibilitychange",l),()=>{i.removeEventListener("keydown",a),i.removeEventListener("keyup",a),i.removeEventListener("blur",o),n.removeEventListener("visibilitychange",l),t.clear()}}M();M();M();M();M();var nh={min:8,max:20,step:1,default:12};function ih(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(nh.min,Math.min(nh.max,e)):nh.default}var cr=(e,t,n)=>Math.max(t,Math.min(n,e));function dv(e){return Math.max(5,(e.gateRadius??5)*1.05)}function ah(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function sr(e,t,n=12.4){return(t?cr(e*.72,13,24):cr(e*.62,10,16))*cr(Number.isFinite(n)?n:12.4,8,28)/12.4}function rE(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((a,o)=>a+(o.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function hv(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function mv(e,t){return e.reduce((n,i)=>Math.max(n,32+rE(i,t)),0)}function pv(e,t,n,i=!1,a=30,o,l=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,ah(a,i)),f=i?180:112,s=Math.max(f,o??(i?370:286)),m=i?sr(t,!0,n.baseFontSize)*.55:t*u*.29,S=cr(70+c*Math.max(4.8,m),f,s),b=(i?16:8)+2*Math.max(0,l),v=sr(t,i,n.baseFontSize),d=Math.max(i?48:26,Math.ceil(v*1.6+b)),h=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(d,h):d,w=ih(n.propertyFontSize),E=mv(r,w);return{width:r.length?cr(Math.max(S,E),f,s):S,height:g+hv(r,w)}}function gv(e,t,n,i,a=1,o=[]){if(t===1)return e;let l=ih(i.propertyFontSize),r=mv(o,l),u=sr(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,a))+hv(o,l))}}var Xe=j(pe(),1);function Sv({bounds:e,semanticRole:t,className:n,style:i,...a}){return(0,Xe.jsx)("div",{...a,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function wv({label:e,maximum:t,center:n}){let i=ah(t??30,n),a=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,Xe.jsx)("span",{className:"kplex-thought-text",title:e,children:a})}function xv({wrap:e,children:t}){return(0,Xe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function Ev({side:e,connected:t,highlighted:n,disabled:i,count:a,...o}){return(0,Xe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,Xe.jsx)("span",{...o,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),a!==null&&(0,Xe.jsx)("span",{className:"kplex-gate-count",children:a})]})}function Tv(e){return(0,Xe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function Mv({label:e,midpoint:t,fontSize:n,color:i,background:a,opacity:o}){if(!e)return null;let l=n??10,r=Math.max(20,e.length*l*.58+10),u=l+6;return(0,Xe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:o,children:[(0,Xe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:a}),(0,Xe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:l,children:e})]})}function oh(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function Rv({prefix:e="kplex"}){return(0,Xe.jsxs)("defs",{children:[(0,Xe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,Xe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,Xe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,Xe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,Xe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}M();var Nv={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function fr(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function Av(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=fr(e,n);return i.length===1&&i[0]===t?n:void 0}function lh(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Ko(e){return typeof e=="string"&&e.trim().length>0}function sE(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(Nv,e)!==void 0}function Cv(e){let t=lh(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return fE(uv(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Ko(t.title)||!Ko(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,a=Object.freeze([]);for(let u of t.nodes){let c=lh(u);if(!c||!Ko(c.id)||!Ko(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=Nn(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:a,tags:a,styleTags:a,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let o=n.get(t.entry)?.id;if(!o)throw new Error("Missing publication entry node");let l=new Map,r=new Set;for(let u of t.relations){let c=lh(u);if(!c||!Ko(c.source)||!Ko(c.target)||!sE(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=Nv[c.role],m=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(m))throw new Error("Invalid or duplicate publication relationship");r.add(m),r.add(JSON.stringify([p.id,s,f.id])),rh(l,f,p,c.role,1,1,c.label),rh(l,p,f,s,1,2,c.label)}return{title:t.title,entry:o,read:Ov(n,l),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function rh(e,t,n,i,a,o,l){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:a,direction:o,definition:l}))}function fE(e){let t=new Map,n=new Map,i=new Map,a=new Map,o=new Map;for(let l of e.nodes){let r=Nn(l.id),u=l.id.slice(0,8),c=a.get(u);c?c.push(r):a.set(u,[r]);let f=l.kind==="folder"?"container":l.kind==="drawing"?"document":l.kind;t.set(r,Object.freeze({id:r,name:l.title,kind:f,resolution:"resolved",url:l.url??null,aliases:l.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,l)}for(let l of e.relations)rh(i,t.get(l.source),t.get(l.target),l.role,l.relationType,l.direction,l.definition),l.style&&o.set(`${l.source}/${l.target}/${l.role}`,l.style);return{title:e.title,entry:Nn(e.entry),read:Ov(t,i),nodes:t,shortIds:a,manifest:e,published:n,body:()=>{},linkStyle:(l,r,u)=>o.get(`${l}/${r}/${u}`)}}function Ov(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(o,l)=>n.compare(o.name,l.name)||(o.id<l.id?-1:o.id>l.id?1:0);for(let o of t.values())for(let l of o.values())Object.freeze(l.sort((r,u)=>i(r.node,u.node)));let a=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:o=>e.get(o)??null,scope:o=>({coverage:e.has(o)?"local":"unavailable",complete:e.has(o),prepared:e.has(o),pending:!1}),relations(o,l,r){if(!e.has(o))return{items:a,coverage:"unavailable",truncated:!1};let u=t.get(o)?.get(l)??a,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}M();var Ba=j($e(),1);M();function Lv(e,t){let n=hc.map(i=>{let a=t?.get(i)??e.get(i);return[i,a==="1"?!0:a==="0"?!1:a]});return mc(Object.fromEntries(n))??{}}function uh(e,t){for(let n of hc){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function ch(e,t){return hc.every(n=>e?.[n]===t?.[n])}var dE=80;function Tc(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-dE)}function fh(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function dr(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),a=i===null?[]:fr(e,i),o=a.length===1?a[0]:void 0,l=fh(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=Lv(t.searchParams,n);return{location:{id:o??e.entry,fragment:o||i===null?l:void 0,canvas:r},addressProblem:i===null||o?void 0:a.length?"ambiguous":"missing",matches:a}}function hE(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),uh(i,n),`#${i}`}function zv(e,t,n,i){try{let a=new URL(e,t);if(a.origin!==t.origin||a.pathname!==t.pathname&&a.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=dr(n,a);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:fh(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:l,addressProblem:r}=dr(n,a);return r?void 0:l}catch{return}}function Qo(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=hE(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),uh(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function Dv(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let a=o=>o.endsWith("/")?o+"index.html":o;return a(i.pathname)!==a(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:dr(n,i)}catch{return}}function sh(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function Hv(e,t,n){let i=(0,Ba.useRef)(n);i.current=n;let a=e.manifest?.id,[o,l]=(0,Ba.useState)(()=>{let S=t?dr(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&a?sh(t.history.state,a)??{position:0,last:0}:void 0;return{entries:[S.location],index:0,addressProblem:S.addressProblem,browser:b,visits:[S.location]}}),r=o.entries[o.index],u=(0,Ba.useRef)(o.browser?.last??0);(0,Ba.useEffect)(()=>{if(!t||!a)return;let S=t.history,b=d=>{let{location:h,addressProblem:g}=dr(e,new URL(t.location.href)),w=sh(d.state,a),E=w?{...w,last:Math.max(w.position,u.current)}:{position:0,last:0};u.current=E.last,S.replaceState({kplexPublication:a,...E},""),i.current(h.id),l(R=>({entries:[h],index:0,addressProblem:g,browser:E,visits:Tc(R.visits,h)}))},v=sh(S.state,a)??{position:0,last:0};return S.replaceState({kplexPublication:a,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,a]);function c(S){let b={...S,canvas:{...r.canvas,...S.canvas}};if(!e.nodes.has(b.id)||!o.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&ch(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&a&&o.browser){let d=o.browser.position+1,h={position:d,last:d};return t.history.pushState({kplexPublication:a,...h},"",Qo(new URL(t.location.href),b)),u.current=d,l({entries:[b],index:0,browser:h,visits:Tc(o.visits,b)}),!0}let v=o.index+1;return l({entries:[...o.entries.slice(0,v),b],index:v,visits:Tc(o.visits,b)}),!0}function f(S){let b={...r.canvas,...S};if(ch(r.canvas,b))return;let v={...r,canvas:b};t&&a&&o.browser&&t.history.replaceState(t.history.state,"",Qo(new URL(t.location.href),v));let d=[...o.entries];d[o.index]=v,l({...o,entries:d})}let p=o.browser?o.browser.position>0:o.index>0,s=o.browser?o.browser.position<o.browser.last:o.index+1<o.entries.length;function m(S){if(S===-1?p:s)if(t&&o.browser)t.history.go(S);else{let b=o.index+S,v=o.entries[b];i.current(v.id),l({...o,index:b,addressProblem:void 0,visits:Tc(o.visits,v)})}}return{attention:r,activate:c,changeCanvas:f,move:m,visits:o.visits,addressProblem:o.addressProblem,canGoBack:p,canGoForward:s}}M();var ia=j($e(),1);M();var Zo=j($e(),1),Uv=j(Lr(),1);M();var mE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function pE(){}function gE(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function yE(e,t){let i=gE(e)?.closest(mE)??null;return!!(i&&t.contains(i))}function kv(e,t,n,i,a){let o=t+a,l=Math.max(o,t+n-i-a);return Math.min(l,Math.max(o,e))}function bE(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function Pv({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let a=e.ownerDocument,o=a.defaultView;if(!o||t.ownerDocument!==a)return pE;let l=null,r=!1,u=!1,c=!1,f=o.visualViewport,p=(E,R)=>{let x=e.getBoundingClientRect(),N=bE(o),G=kv(E,N.left,N.width,x.width,n),T=kv(R,N.top,N.height,x.height,n);e.style.setProperty("--kplex-dialog-left",`${G}px`),e.style.setProperty("--kplex-dialog-top",`${T}px`),e.classList.add("is-positioned"),u=!0,i?.({left:G,top:T})},s=()=>{if(!u||c)return;let E=e.getBoundingClientRect();p(E.left,E.top)},m=()=>{a.removeEventListener("pointermove",b,!0),a.removeEventListener("pointerup",v,!0),a.removeEventListener("pointercancel",v,!0)},S=()=>{if(!l)return;let E=l.pointerId;l=null,r=!1,m(),t.hasPointerCapture(E)&&t.releasePointerCapture(E),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(E){let R=l;if(!R||E.pointerId!==R.pointerId)return;E.preventDefault(),E.stopPropagation();let x=E.clientX-R.startClientX,N=E.clientY-R.startClientY;if(!r){if(Math.hypot(x,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(R.startLeft+x,R.startTop+N)}function v(E){!l||E.pointerId!==l.pointerId||(E.preventDefault(),E.stopPropagation(),S())}let d=E=>{l?.pointerId===E.pointerId&&S()},h=()=>{S()},g=E=>{if(c||l||E.button!==0||yE(E.target,t))return;let R=e.getBoundingClientRect();l={pointerId:E.pointerId,startClientX:E.clientX,startClientY:E.clientY,startLeft:R.left,startTop:R.top},a.addEventListener("pointermove",b,!0),a.addEventListener("pointerup",v,!0),a.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(E.pointerId)}catch{}E.preventDefault(),E.stopPropagation()},w=()=>{c||(c=!0,S(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",d),o.removeEventListener("blur",h),o.removeEventListener("resize",s),o.removeEventListener("pagehide",w),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",d),o.addEventListener("blur",h),o.addEventListener("resize",s),o.addEventListener("pagehide",w),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),w}function vE(e,t){let n=e.target,i=e.composedPath();return t.some(a=>a?i.includes(a)?!0:n?a.contains(n):!1:!1)}function Mc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:a,insideRoots:o,onDismiss:l,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,m]=(0,Zo.useState)({}),S=(0,Zo.useRef)({insideRoots:o,onDismiss:l,handleEscape:u});S.current={insideRoots:o,onDismiss:l,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,d=b?.closest("[data-floating-layer-boundary]")??null,h=e&&v?d??c(v):null,g=n?.x,w=n?.y;return(0,Zo.useLayoutEffect)(()=>{if(!e)return;let E=t.current;if(!E)return;let R=E.ownerDocument,x=R.defaultView;if(!x)return;let N=!1,G=null,T=()=>{if(N)return;let $=t.current;if(!$||$.ownerDocument!==R)return;let C=$.getBoundingClientRect();if(r&&(!$.getClientRects().length||!C.width||!C.height)){S.current.onDismiss("anchor-hidden");return}let U=x.visualViewport,z=d?.getBoundingClientRect(),q=z&&d?z.left+d.clientLeft-d.scrollLeft:0,ee=z&&d?z.top+d.clientTop-d.scrollTop:0,ie=Math.max(U?.offsetLeft??0,z?.left??0),B=Math.max(U?.offsetTop??0,z?.top??0),X=Math.min((U?.offsetLeft??0)+Math.min(x.innerWidth,U?.width??x.innerWidth),z?.right??1/0),se=Math.min((U?.offsetTop??0)+Math.min(x.innerHeight,U?.height??x.innerHeight),z?.bottom??1/0),he=Math.min(f.viewportMargin,Math.max(0,(X-ie)/2)),yt=g??C.left,Ee=w??C.top,bt=w??C.bottom,Ke=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),X-ie-he*2)),Ln=Math.max(ie+he,Math.min(G?.left??yt,X-Ke-he)),We=se-bt-f.anchorGap-he,ln=Ee-B-f.anchorGap-he,Mt=We<f.minimumMaxHeight&&ln>We?Ee-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,ln):bt+f.anchorGap,kt=Math.max(B+he,Math.min(G?.top??Mt,se-Math.min(f.minimumMaxHeight,Math.max(0,se-B-he*2))-he));m({position:d?"absolute":"fixed",left:Ln-q,top:kt-ee,width:Ke,maxHeight:Math.max(0,se-kt-he)})},I=$=>{vE($,S.current.insideRoots())||S.current.onDismiss("outside-pointer")},H=$=>{if($.key!=="Escape"||S.current.handleEscape?.($)===!1)return;$.preventDefault(),$.stopPropagation(),S.current.onDismiss("escape");let C=t.current;C?.ownerDocument===R&&C.isConnected&&C.focus({preventScroll:!0})},k=x.ResizeObserver,K=k?new k(T):null;K?.observe(E),d&&K?.observe(d),i.current&&K?.observe(i.current),x.addEventListener("resize",T),x.visualViewport?.addEventListener("resize",T),x.visualViewport?.addEventListener("scroll",T),R.addEventListener("scroll",T,!0),R.addEventListener("pointerdown",I,!0),R.addEventListener("keydown",H,!0);let ne=i.current,le=a?.current,W=ne&&le?Pv({modalEl:ne,handleEl:le,viewportMargin:f.viewportMargin,onPositionChange:$=>{G=$,T()}}):void 0,re=()=>{N||(N=!0,W?.(),K?.disconnect(),x.removeEventListener("resize",T),x.visualViewport?.removeEventListener("resize",T),x.visualViewport?.removeEventListener("scroll",T),R.removeEventListener("scroll",T,!0),R.removeEventListener("pointerdown",I,!0),R.removeEventListener("keydown",H,!0),x.removeEventListener("pagehide",re))};return x.addEventListener("pagehide",re),T(),re},[e,r,t,g,w,i,a,v,d,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),h?(0,Uv.createPortal)(p(s),h):null}var Cn=j(pe(),1),SE={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function _v({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:a}){let o=(0,ia.useRef)(e),l=(0,ia.useRef)(null),r=(0,ia.useRef)(!0),[u,c]=(0,ia.useState)();o.current=e,(0,ia.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let m=e.ownerDocument.defaultView?.navigator.clipboard;if(!m)throw new Error("Clipboard unavailable");await m.writeText(s),r.current&&(a(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[m,S]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?m:s.key==="End"||s.target===m?S:m;s.preventDefault(),b?.focus()}return(0,Cn.jsx)(Mc,{open:!0,anchorRef:o,panelRef:l,insideRoots:()=>[l.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:SE,children:s=>(0,Cn.jsx)("div",{ref:l,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":L.copyAddress,onKeyDown:p,children:u?(0,Cn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":L.address,value:u,onFocus:m=>m.currentTarget.select()}):(0,Cn.jsxs)(Cn.Fragment,{children:[(0,Cn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:L.copyShortAddress}),(0,Cn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:L.copyFullAddress}),!n&&(0,Cn.jsx)("p",{children:L.ambiguousAddress})]})})})}M();var Iv=j($e(),1);M();var aa=j($e(),1);M();var D=j(pe(),1),wE={"arrow-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,D.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M3 15h18"})]}),sun:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M12 20v2"}),(0,D.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,D.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,D.jsx)("path",{d:"M2 12h2"}),(0,D.jsx)("path",{d:"M20 12h2"}),(0,D.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,D.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,D.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,D.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,D.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,D.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,D.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,D.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M5 12h14"})}),plus:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,D.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,D.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M18 6 6 18"}),(0,D.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,D.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,D.jsx)("path",{d:"M12 12V8"})]})};function dh({icon:e}){return(0,D.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:wE[e]})}function xt({icon:e,label:t,title:n=t,type:i="button",...a}){return(0,D.jsx)("button",{...a,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,D.jsx)(dh,{icon:e})})}var on=j(pe(),1),hh={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},xE={...hh,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},EE={...hh,preferredWidth:280,minimumMaxHeight:235},TE={canvas:{label:L.graphOptions,positioning:hh},theme:{label:Ia.label,positioning:xE},brand:{label:Fn.label,positioning:EE}};function ME(e){e?.focus({preventScroll:!0})}function hr({anchor:e,point:t,choices:n,onDismiss:i,variant:a="canvas"}){let o=(0,aa.useRef)(e),l=(0,aa.useRef)(null),r=(0,aa.useRef)(null),[u,c]=(0,aa.useState)(null),f=TE[a];o.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("button"))?.focus()}(0,aa.useLayoutEffect)(()=>{u&&p()},[u]);function s(){c(null),l.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function m(){i(),e.focus({preventScroll:!0})}function S(v){if(v.key==="Tab"){m();return}let d=v.target,h=d.closest("[role=menu]");if(h){if(v.key==="ArrowRight"&&d.getAttribute("aria-haspopup")==="menu")u?p():d.click();else if(v.key==="ArrowLeft"&&h!==l.current)s();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(h.querySelectorAll("[role^=menuitem]")).filter(R=>R.closest("[role=menu]")===h),w=g.indexOf(d),E=v.key==="Home"?0:v.key==="End"?g.length-1:(w+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[E]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b({label:v,icon:d,kind:h,checked:g,select:w},E=!1){return(0,on.jsxs)("button",{type:"button",role:h,"aria-checked":g,autoFocus:E,onClick:()=>{m(),w()},children:[(0,on.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:g?"✓":""}),d&&(0,on.jsx)(dh,{icon:d}),v]},v)}return(0,on.jsx)(Mc,{open:!0,anchorRef:o,anchorPoint:t,panelRef:l,insideRoots:()=>[l.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),s(),!1):!0,children:v=>(0,on.jsx)("div",{ref:l,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:S,children:n.map((d,h)=>"choices"in d?(0,on.jsxs)("div",{role:"none",children:[(0,on.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===d.label,onClick:()=>u===d.label?s():c(d.label),children:[(0,on.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),d.label,(0,on.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===d.label&&(0,on.jsx)("div",{ref:r,role:"menu","aria-label":d.label,children:d.choices.map(g=>b(g))})]},d.label):"href"in d?(0,on.jsx)("a",{role:"menuitem",ref:h===0?ME:void 0,href:d.href,target:"_blank",rel:"noopener noreferrer",onClick:m,children:d.label},d.href):b(d,a==="theme"?d.checked:h===0))})})}var qt=j(pe(),1),RE=[{label:Fn.github,href:"https://github.com/zsviczian/kplex"},{label:Fn.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:Fn.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:Fn.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:Fn.book,href:"https://community.sketch-your-mind.com/sym"}];function Bv(){let[e,t]=(0,Iv.useState)(null);return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":Fn.label,title:Fn.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,qt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,qt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,qt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,qt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,qt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,qt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,qt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,qt.jsx)(hr,{anchor:e,variant:"brand",choices:RE,onDismiss:()=>t(null)})]})}M();var Gv=j($e(),1),Vv=j(pe(),1);function mh({icon:e,size:t,className:n}){function i(a,o){return(0,Gv.createElement)(a.tag,{...a.attrs,key:o},a.shapes.length?a.shapes.map(i):void 0)}return(0,Vv.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}M();var Yv=j($e(),1);var vi=j(pe(),1),qv=typeof P>"u"?[]:P,ph=qv.length>0;function jv({dialog:e}){let t=(0,Yv.useId)();return ph?(0,vi.jsxs)("dialog",{className:"kplex-publication-license-dialog",ref:e,"aria-labelledby":t,onKeyDown:n=>n.stopPropagation(),children:[(0,vi.jsxs)("div",{className:"kplex-publication-license-heading",children:[(0,vi.jsx)("h2",{id:t,children:L.licenses}),(0,vi.jsx)("button",{type:"button",autoFocus:!0,onClick:()=>e.current?.close(),children:L.close})]}),qv.map(([n,i])=>(0,vi.jsxs)("section",{children:[(0,vi.jsx)("h3",{children:n}),(0,vi.jsx)("pre",{children:i})]},n))]}):null}M();var pr=j($e(),1);M();M();function Xv(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let a=e[i],o=e[i-1];if(n>a.offset&&i<e.length-1)continue;let l=a.offset>o.offset?(n-o.offset)/(a.offset-o.offset):1,r=(u,c)=>u+(c-u)*l;return{offset:n,x:r(o.x,a.x),y:r(o.y,a.y),scaleX:r(o.scaleX,a.scaleX),scaleY:r(o.scaleY,a.scaleY),originX:r(o.originX,a.originX),originY:r(o.originY,a.originY)}}return null}var Rc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,a){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let o=t.animate(n,{...i,fill:"none"});if(!o)return null;this.animations.set(t,o),a&&this.poses.set(t,{animation:o,frames:a});let l=()=>{this.animations.get(t)===o&&(this.animations.delete(t),this.poses.delete(t))};return o.finished.then(l,l),o}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Xv(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};M();function Kv(e,t,n,i){let a=Math.max(.01,n),o=(e.left-t.left)/a,l=(e.top-t.top)/a,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(o,l),f=Math.min(24/a,c*.08),p=c?-l/c:0,s=c?o/c:0;return[0,.35,.65,.85,1].map(m=>{let S=m===0||m===1?0:Math.sin(Math.PI*m),b=o*(1-m)+p*f*S,v=l*(1-m)+s*f*S,d=1+.055*S;return i?.push({offset:m,x:b,y:v,scaleX:(r+(1-r)*m)*d,scaleY:(u+(1-u)*m)*d,originX:0,originY:0}),{offset:m,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*m)*d}, ${(u+(1-u)*m)*d})`,opacity:1}})}M();var mr=j($e(),1),Nc=j(pe(),1),Ga="[data-publication-strip-scroll]";function Qv({id:e,label:t,panel:n,start:i,onScroll:a,children:o}){let l=(0,mr.useRef)(null),r=(0,mr.useRef)(i);return(0,mr.useLayoutEffect)(()=>{l.current&&(l.current.scrollTop=r.current)},[]),(0,Nc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Nc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:l,role:"region","aria-label":t,tabIndex:0,onScroll:u=>a(u.currentTarget.scrollTop),children:(0,Nc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:o})})})}var Ac={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function Zv(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(Ga),a=>[a,a.getBoundingClientRect()])),i=[];for(let a of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let o=a.getBoundingClientRect(),l=a.closest(Ga),r=l?n.get(l)??t:t;o.left>=Math.min(t.right,r.right)||o.right<=Math.max(t.left,r.left)||o.top>=Math.min(t.bottom,r.bottom)||o.bottom<=Math.max(t.top,r.top)||i.push({element:a,id:a.dataset.publicationNode,occurrence:a.dataset.publicationOccurrence,rect:o,clipped:r!==t&&(o.top<r.top||o.bottom>r.bottom)})}return i}function NE(e,t){let n=new Set(e),i=new Map(e.map(l=>[l.occurrence,l])),a=new Map;for(let l of e){let r=a.get(l.id);r?r.push(l):a.set(l.id,[l])}let o=new Map;for(let l of t){let r=i.get(l.occurrence);r?.id===l.id&&(o.set(l,r),n.delete(r))}for(let l of t){if(o.has(l))continue;let r,u=1/0;for(let c of a.get(l.id)??[]){if(!n.has(c))continue;let f=Math.hypot(l.rect.x-c.rect.x,l.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(o.set(l,r),n.delete(r))}return{pairs:o,remaining:n}}function Fv(e,t){let n=(0,pr.useRef)(new Rc).current,i=(0,pr.useRef)(null);function a(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,pr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",a),()=>{r?.removeEventListener("change",a),a()}},[]);function o(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){a();return}i.current={id:r,cards:Zv(u)}}}function l(r,u){let c=e.current,f=t.current,p=i.current;if(a(),!c||!f||p?.id!==r)return;let s=Zv(c),{pairs:m,remaining:S}=NE(p.cards,s);for(let d of s){let h=m.get(d)?.rect;h?(Math.abs(h.left-d.rect.left)>.5||Math.abs(h.top-d.rect.top)>.5||Math.abs(h.width-d.rect.width)>.5||Math.abs(h.height-d.rect.height)>.5)&&n.play(d.element,Kv(h,d.rect,u),Ac):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],Ac)}let b=f.getBoundingClientRect();for(let d of S){if(d.clipped||d.element.isConnected)continue;let h=d.element.cloneNode(!0);h.removeAttribute("role"),h.removeAttribute("tabindex"),h.removeAttribute("data-publication-node"),h.removeAttribute("data-publication-occurrence"),h.removeAttribute("data-publication-center"),h.style.left=`${d.rect.left-b.left}px`,h.style.top=`${d.rect.top-b.top}px`;let g=d.rect.width/parseFloat(h.style.width),w=d.rect.height/parseFloat(h.style.height);f.append(h);let E=n.play(h,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${w})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${w*.95})`}],{...Ac,duration:200});E?E.finished.then(()=>h.remove(),()=>h.remove()):h.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],Ac)}return{capture:o,play:l,cancel:a}}M();var Ht=j($e(),1);M();var gr=j(pe(),1);function Jv({label:e,controlId:t,children:n,layout:i="stacked",actions:a,className:o=""}){return(0,gr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${a?" has-actions":""} ${o}`,children:[(0,gr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,a?(0,gr.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}M();var Cc=j($e(),1);M();var De=j($e(),1),$v=j(Lr(),1),Et=j(pe(),1);function AE(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),a=i.indexOf(n);if(a>=0)return new Set(Array.from({length:n.length},(r,u)=>a+u));let o=new Set,l=0;for(let r of n){let u=i.indexOf(r,l);if(u<0)return new Set;o.add(u),l=u+1}return o}function Wv(e,t){let n=AE(e,t);if(!n.size)return e;let i=[],a=0,o=n.has(0);for(let l=1;l<=e.length;l+=1){let r=l<e.length&&n.has(l);if(l<e.length&&r===o)continue;let u=e.slice(a,l);i.push(o?(0,Et.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${a}:m`):(0,Et.jsx)("span",{children:u},`${a}:t`)),a=l,o=r}return(0,Et.jsx)(Et.Fragment,{children:i})}function e0({value:e,onChange:t,results:n,getResults:i,onChoose:a,getKey:o,getLabel:l,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:m=!1,disabled:S=!1,floating:b=!1,floatingMode:v="app",portalSelector:d,appTopbarSelector:h,maxFloatingHeight:g=440,minFloatingWidth:w=0,resultsClassName:E="",matchingQuery:R,resultsOwnerId:x,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:G,onEnterWithoutResult:T,onCtrlEnter:I,openResultsOnFocus:H=!0,onFocusChange:k,onDismiss:K,focusRequest:ne,inputTitle:le,inputKeyShortcuts:W,className:re="",highlightMatches:$=!0,closeOnChoose:C=!0,closeOnBlur:U=!1,combobox:z=!1,advanceOnChoose:q=!1,disclosure:ee}){let ie=(0,De.useId)(),[B,X]=(0,De.useState)(!1),[se,he]=(0,De.useState)(!1),[yt,Ee]=(0,De.useState)(!1),[bt,Ke]=(0,De.useState)(!1),[Ln,We]=(0,De.useState)(0),[ln,Mt]=(0,De.useState)(null),kt=(0,De.useRef)(null),wi=(0,De.useRef)(null),Wn=(0,De.useRef)(null),la=B&&!yt&&(bt||H||se&&e.trim().length>0),Re=(0,De.useMemo)(()=>la?i?.(e)??n??[]:[],[la,i,n,e]),Be=Re.length?Math.max(0,Math.min(Re.length-1,Ln)):0,Rt=kt.current?.ownerDocument??null,Ge=Rt?.defaultView??null,jt=b?v==="viewport"?Rt?.body??null:d?kt.current?.closest(d)??null:null:null,rn=B&&Re.length>0&&(!b||!!(jt&&ln)),$n=()=>{Ke(!1),Ee(!0),We(0),K?.()},un=()=>{ee&&(ee.onOpen(),Wn.current?.focus({preventScroll:!0}),X(!0),Ke(!0),Ee(!1),We(0))},ra=_=>{Ke(!1),X(!_),he(!1),Ee(!_),We(0);let ae=Wn.current;_&&ae&&ae.ownerDocument.activeElement===ae&&ae.blur(),k?.(!1)},ua=()=>ra(!0),Sn=_=>{if(a(_),C){ra(!z);return}q&&Re.length>0&&We(ae=>(Math.max(0,Math.min(Re.length-1,ae))+1)%Re.length)};(0,De.useEffect)(()=>{We(0)},[e]);let ke=(0,De.useCallback)(()=>{let _=Wn.current;_&&(X(!0),he(!1),Ee(!1),_.focus({preventScroll:!0}),k?.(!0))},[k]);(0,De.useEffect)(()=>{m&&ke()},[m,ke]),(0,De.useEffect)(()=>{ne&&ke()},[ne,ke]),(0,De.useEffect)(()=>{let _=kt.current;if(!_)return;let ae=()=>$n();return _.addEventListener("kplex-dismiss-suggestions",ae),()=>_.removeEventListener("kplex-dismiss-suggestions",ae)},[K]),(0,De.useEffect)(()=>{if(!B||!Rt||!Ge)return;let _=kt.current;if(!_)return;let ae=cn=>{let Xt=cn.target;Xt&&(_.contains(Xt)||wi.current?.contains(Xt))||ua()},Ve=()=>Rt.removeEventListener("pointerdown",ae,!0);return Rt.addEventListener("pointerdown",ae,!0),Ge.addEventListener("pagehide",Ve,{once:!0}),()=>{Ve(),Ge.removeEventListener("pagehide",Ve)}},[B,Rt,Ge]),(0,De.useLayoutEffect)(()=>{if(!b||!B||!Re.length){Mt(null);return}let _=kt.current;if(!_||!Ge)return;let ae=Ge.visualViewport,Ve=()=>{let zn=_.getBoundingClientRect(),Pt=8,$o=6;if(v==="viewport"){let Xa=ae?.offsetLeft??0,il=ae?.offsetTop??0,y=ae?.width??Ge.innerWidth,O=il+(ae?.height??Ge.innerHeight),Y=Math.min(Math.max(zn.width,w),Math.max(0,y-Pt*2)),Z=Math.max(Xa+Pt,Math.min(zn.left,Xa+y-Pt-Y)),ue=Math.max(zn.bottom+$o,il+Pt),Q=Math.min(zn.top-$o,O-Pt),He=Math.max(0,O-Pt-ue),Nt=Math.max(0,Q-il-Pt),Qe=He>=Math.min(180,g)||He>=Nt,Pe=Math.max(0,Math.min(g,Qe?He:Nt)),At={position:"fixed",left:Z,width:Y,maxHeight:Pe,zIndex:1e4};Qe?At.top=ue:At.bottom=Ge.innerHeight-Q,Mt(At);return}let vr=d?_.closest(d)??null:null,Sr=h?_.closest(h)??null:null;if(!vr||!Sr)return;let fa=vr.getBoundingClientRect(),ja=Sr.getBoundingClientRect(),el=Math.max(0,fa.width-Pt*2),tl=Math.min(780,Math.max(zn.width,Math.min(620,el)),el),wr=Pt,xr=Math.max(wr,fa.width-Pt-tl),Er=Math.min(xr,Math.max(wr,zn.left-fa.left)),nl=Math.max(0,ja.bottom-fa.top+$o),Tr=Math.max(0,Math.min(g,fa.height-nl-Pt));Mt({left:Er,top:nl,width:tl,maxHeight:Tr})};Ve();let cn=Ge.ResizeObserver,Xt=cn?new cn(Ve):null,Ei=v==="app"&&d?_.closest(d):null,sa=v==="app"&&h?_.closest(h):null;Ei&&Xt?.observe(Ei),sa&&Xt?.observe(sa),Xt?.observe(_);let qa=()=>{Xt?.disconnect(),Ge.removeEventListener("resize",Ve),Ge.removeEventListener("scroll",Ve,!0),ae?.removeEventListener("resize",Ve),ae?.removeEventListener("scroll",Ve)};return Ge.addEventListener("resize",Ve),Ge.addEventListener("scroll",Ve,!0),ae?.addEventListener("resize",Ve),ae?.addEventListener("scroll",Ve),Ge.addEventListener("pagehide",qa,{once:!0}),()=>{qa(),Ge.removeEventListener("pagehide",qa)}},[h,b,v,B,Re.length,g,w,Rt,Ge,d]),(0,De.useEffect)(()=>{let _=wi.current;!_||!Re.length||_.querySelector(`[data-kplex-fuzzy-index="${Be}"]`)?.scrollIntoView({block:"nearest"})},[Be,Re.length]);let xi=_=>{if(!(_.nativeEvent.isComposing||_.key==="Dead"||_.getModifierState("AltGraph"))){if(_.key==="Tab"){$n(),X(!1),k?.(!1);return}if(_.key==="Escape"){Re.length&&(_.preventDefault(),_.stopPropagation(),$n());return}if(z&&ee&&_.key==="ArrowDown"&&!Re.length){_.preventDefault(),un();return}if(_.key==="ArrowDown"&&Re.length){_.preventDefault(),We(ae=>Math.min(Re.length-1,ae+1));return}if(_.key==="ArrowUp"&&Re.length){_.preventDefault(),We(ae=>Math.max(0,ae-1));return}if(_.key==="Enter"&&_.repeat){_.preventDefault(),_.stopPropagation();return}if(_.key==="Enter"&&Re.length&&(!(_.ctrlKey||_.metaKey)||N)){_.preventDefault(),_.stopPropagation();let ae=Re[Be];ae&&Sn(ae);return}if(_.key==="Enter"&&(_.ctrlKey||_.metaKey)&&I){_.preventDefault(),_.stopPropagation(),I();return}if(!(_.key==="Enter"&&(_.ctrlKey||_.metaKey)&&!I)&&_.key==="Enter"){_.preventDefault();let ae=Re[Be];ae?Sn(ae):T?.()}}},ca=B&&Re.length>0?(0,Et.jsx)("div",{ref:wi,id:z?ie:void 0,role:z?"listbox":void 0,"aria-labelledby":z?p:void 0,"aria-label":z&&!p?c:void 0,"data-fuzzy-owner":x,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${E?` ${E}`:""}`,style:b?ln??void 0:void 0,children:Re.map((_,ae)=>{let Ve=l(_),cn=r?.(_),Xt=$?R??e:"";return(0,Et.jsxs)("button",{id:z?`${ie}-option-${ae}`:void 0,role:z?"option":void 0,"aria-selected":z?ae===Be:void 0,tabIndex:z?-1:void 0,"data-kplex-fuzzy-index":ae,className:`kplex-search-result${G?" has-prefix":""}${ae===Be?" is-selected":""}`,"aria-label":cn?`${Ve}
767
- ${cn}`:Ve,onMouseDown:Ei=>Ei.preventDefault(),onMouseEnter:()=>We(ae),onClick:()=>Sn(_),children:[G?(0,Et.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:G(_)}):null,(0,Et.jsx)("span",{children:Wv(Ve,Xt)}),cn?(0,Et.jsx)("small",{children:Wv(cn,Xt)}):null]},o(_))})}):null,Ya=b&&jt&&ln&&ca?(0,$v.createPortal)(ca,jt):b?null:ca;return(0,Et.jsxs)("div",{ref:kt,className:`kplex-search-shell kplex-fuzzy-search${re?` ${re}`:""}`,children:[s?(0,Et.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,Et.jsx)("input",{ref:Wn,type:"text",role:z?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:S,onChange:_=>{Ke(!1),he(!0),Ee(!1),t(_.currentTarget.value)},onFocus:()=>{X(!0),he(!1),Ee(!1),k?.(!0)},onBlur:U?ua:void 0,onKeyDown:xi,placeholder:u,"aria-label":p?void 0:c,title:le,"aria-keyshortcuts":W,"aria-labelledby":p,"aria-expanded":z?rn:B&&Re.length>0,"aria-haspopup":z?"listbox":void 0,"aria-autocomplete":z?"list":void 0,"aria-controls":z&&rn?ie:void 0,"aria-activedescendant":z&&rn?`${ie}-option-${Be}`:void 0,autoComplete:"off"}),ee?(0,Et.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:z?-1:void 0,disabled:S,"aria-label":ee.label,"aria-expanded":z?rn:B&&Re.length>0,"aria-haspopup":z?"listbox":void 0,"aria-controls":z&&rn?ie:void 0,onMouseDown:_=>_.preventDefault(),onClick:()=>{if(B&&bt&&!yt){$n();return}un()},children:ee.icon}):null,Ya]})}var n0=j(pe(),1);function t0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:a,revision:o,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:m}){let[S,b]=(0,Cc.useState)(""),v=(0,Cc.useCallback)(d=>e.search(d,24),[e,o]);return(0,n0.jsx)(e0,{value:S,onChange:b,getResults:v,onChoose:d=>{a(d.node.id),p&&b("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:m,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}M();M();var CE=1e5,OE=8*1024*1024,i0=1e6,LE=/[\p{L}\p{N}]+/gu,zE=/^[\p{L}\p{N}]{1,128}$/u;function a0(e){return[...new Set(e.normalize("NFC").toLowerCase().match(LE))].filter(t=>t.length<=128)}function DE(e,t){if(!Array.isArray(e)||e.length>gc)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(a=>{if(!a||typeof a!="object"||!("id"in a)||!bi(a.id)||n.has(a.id)||t&&!t.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>CE)throw new Error("Invalid publication search row");if(n.add(a.id),i+=a.text.length,i>OE)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function o0(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>i0)throw new Error("Invalid publication search index");let n=DE(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let a="",o=0,l=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!zE.test(u)||u!==u.normalize("NFC").toLowerCase()||a>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(a=u,o+=c.length,o>i0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:l}}function Va(e){return e.trim().normalize("NFC").toLowerCase()}function l0(e,t){let n=new Set([...t.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),i=o0(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:a},o)=>[a,o])),postings:new Map(i.terms)}}function HE(e,t){let n=Math.max(0,Va(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function r0(e,t){let n=new Map,i=[...e.nodes.values()].map(o=>{let l=Va(o.name),r=o.aliases.map(Va),u=Object.values(e.published.get(o.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Va);for(let c of[l,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(o.id)}return{node:o,title:l,aliases:r,properties:u}});return{graph:{search(o,l){let r=Va(o.slice(0,128));if(!r)return[];let u=a0(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:m,properties:S})=>{let b=t?.positions.get(p.id),v=s===r?1:m.includes(r)?2:s.startsWith(r)?3:m.some(d=>d.startsWith(r))?4:s.includes(r)?5:m.some(d=>d.includes(r))||S.some(d=>d.includes(r))?6:b!==void 0&&f?.every(d=>d.has(b))?7:0;return v?[{score:v,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,l).map(({score:p,node:s,position:m,title:S})=>{let b=p===7&&m!==void 0?t?.rows[m]?.text:void 0,v=b&&c?HE(b,c):n.get(S).size>1?s.id:s.aliases.find(d=>Va(d).includes(r))??"";return{node:s,label:s.name,detail:v}})}},address(o){let l=Va(o),r=fr(e,l);return r.length?r:[...n.get(l)??[]]}}}var it=j(pe(),1);function u0({publication:e,resources:t,page:n,searchFocus:i,onChoose:a}){let o=(0,Ht.useRef)(null),l=(0,Ht.useId)(),[r,u]=(0,Ht.useState)(""),[c,f]=(0,Ht.useState)([]),[p,s]=(0,Ht.useState)(!1),[m,S]=(0,Ht.useState)(!1),[b,v]=(0,Ht.useState)(null),[d,h]=(0,Ht.useState)(!1),g=(0,Ht.useMemo)(()=>r0(e,m?b:null),[e,m,b]);(0,Ht.useEffect)(()=>{let E=o.current?.ownerDocument.defaultView;if(!m||!E||b)return;let R=new E.AbortController,x=R.signal;return h(!1),t.text(Zd,x).then(N=>{x.aborted||v(l0(JSON.parse(N),e))}).catch(()=>{x.aborted||h(!0)}),()=>R.abort()},[m,e,t,b]);function w(E){E.preventDefault();let R=Dv(r.trim(),n(),e),x=R?R.matches:g.address(r);if(x.length!==1){f(x),s(!x.length);return}f([]),s(!1),a(R?.location??{id:x[0]})}return(0,it.jsxs)("div",{className:"kplex-publication-tools",ref:o,children:[(0,it.jsxs)("div",{className:"kplex-publication-search",children:[(0,it.jsx)(t0,{graph:g.graph,revision:b&&m?1:0,onActivate:E=>a({id:E}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:L.find,ariaLabel:L.find,focusRequest:i,inputTitle:`${L.find} (${rr.key})`,inputKeyShortcuts:rr.key}),e.manifest?.fullText&&(0,it.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,it.jsx)(xt,{icon:"file-search",label:L.fullText,"aria-pressed":m,onClick:()=>S(E=>!E)}),m&&(d||!b)&&(0,it.jsx)("span",{role:"status",children:d?L.searchUnavailable:L.searchLoading})]})]}),(0,it.jsxs)("form",{className:"kplex-publication-address",onSubmit:w,children:[(0,it.jsx)(Jv,{label:L.address,layout:"inline",controlId:l,actions:(0,it.jsx)(xt,{icon:"corner-down-left",label:L.open,type:"submit"}),children:(0,it.jsx)("input",{id:l,type:"text",placeholder:L.address,autoComplete:"off",maxLength:512,value:r,onChange:E=>{u(E.currentTarget.value),f([]),s(!1)}})}),p&&(0,it.jsx)("span",{role:"status",children:L.nodeUnavailable}),c.length>1&&(0,it.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,it.jsx)("p",{children:L.chooseNote}),(0,it.jsx)("ul",{children:c.slice(0,24).map(E=>(0,it.jsx)("li",{children:(0,it.jsxs)("button",{type:"button",onClick:()=>{f([]),a({id:E})},children:[e.nodes.get(E)?.name," · ",E]})},E))}),c.length>24&&(0,it.jsx)("p",{children:L.chooseAddress})]})]})]})}M();var Tt=j($e(),1);M();var kE="https://api.github.com",PE="https://github.com",UE=/^[a-z\d][a-z\d-]{0,38}$/i,_E=/^[a-z\d_.-]{1,100}$/i;function c0(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function s0(e){if(!Wd(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,a="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let o;try{o=a.slice(1).replace(/\/$/,"").split("/").map(m=>decodeURIComponent(m))}catch{return{}}let[l,r,u,...c]=o;if(!l||!r||!UE.test(l)||!_E.test(r)||r==="."||r==="..")return{};let f=`${l}/${r}`,p=`${kE}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let m=s.split("...");if(m.length===2&&m.every(c0))return{repository:f,preview:{api:`${p}/compare/${m.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let m=c.slice(1).join("/");if(c0(m))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(m)}`,caption:m,comparison:!1}}}return{repository:f}}function gh(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function yh(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function f0(e,t,n){let i=gh(n);if(!t.comparison)return{title:yh(i.title??i.name??i.full_name,240)??t.caption,description:yh(i.body??i.description,16e3)};let a=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(o=>{let{sha:l,commit:r}=gh(o);if(typeof l!="string"||!/^[a-f\d]{40}$/i.test(l))return[];let u=yh(gh(r).message,240);return[{sha:l.slice(0,7),title:u?.split(/\r?\n/,1)[0]??l.slice(0,7),href:`${PE}/${e}/commit/${l}`}]}):[];return{title:t.caption,commits:a,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=a.length?i.total_commits:a.length}}M();var Oc="http://www.w3.org/1999/xhtml",Fo="http://www.w3.org/2000/svg",IE="http://www.w3.org/1999/xlink",d0="http://www.w3.org/XML/1998/namespace",BE=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),GE=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),VE=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),YE=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),qE=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),h0=/^[-a-z0-9_]{1,96}$/i,jE=/^[\d\s+.,%()a-z-]+$/i,XE=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,KE=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,QE=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,ZE=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,m0=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,p0=4*1024*1024;function Lc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function FE(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function JE(e,t=""){if(!bi(e)||t&&!Lc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function g0(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!bi(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!Lc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let a=JE(n[1],i);return t.siteURL?new URL(a,t.siteURL).href:a}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return Lc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return y0(e,t)??(t.allowExternalLinks===!1?null:FE(e))}function y0(e,t){let n=e.slice(2);return!ZE.test(e)||!eh(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function WE(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let a=i.getAttribute("id");a&&/^[a-z0-9_.:-]{1,160}$/i.test(a)&&!n.has(a)&&n.set(a,`${t}-${n.size+1}`)}return n}function b0(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function v0(e,t,n,i){let a=y0(n,i);a&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,a))}function $E(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let a=`data-publication-${i}`,o=e.getAttribute(a)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(o)&&(t.setAttribute(a,o),t.style.setProperty(`--kplex-published-drawing-${i}`,o.endsWith("%")?o:`${o}px`))}}function eT(e,t,n){let i=e.localName,a=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(a&&Lc(a)&&(t.id=n.idPrefix?`${n.idPrefix}-${a}`:a,t.setAttribute("data-publication-fragment",a)),i==="a"&&b0(t,g0(e.getAttribute("href")??"",n)),i==="figure"&&$E(e,t),i==="img"||i==="audio"||i==="video"){let o=e.getAttribute("src")??"";(i==="img"?m0:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(o)&&v0(t,"src",o,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let o=e.getAttribute("data-callout");o&&h0.test(o)&&t.setAttribute("data-callout",o)}if(i==="ol"){let o=e.getAttribute("start");o&&/^\d{1,7}$/.test(o)&&t.setAttribute("start",o)}}var tT=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,nT=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,iT=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,aT=new Set(["text","tspan","textPath"]),oT={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},lT=512*1024;function rT(e,t){let n=new Map,i=[],a=0;for(let o of Array.from(e.children))if(!(o.namespaceURI!==Fo||o.localName!=="defs"))for(let l of Array.from(o.children)){if(l.namespaceURI!==Fo||l.localName!=="style"||l.childElementCount)continue;let r=l.textContent??"";if(a+=r.length,a>lT)return{families:new Map,rules:[]};for(let u of r.matchAll(tT)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(oT[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let m=new Map;for(let b of u[6].split(";")){let[v,d]=b.split(":").map(h=>h.trim().toLowerCase());d&&(v==="unicode-range"&&d.length<=8192&&iT.test(d)||v==="font-weight"&&nT.test(d)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(d))&&m.set(v,d)}let S=[...m].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${S}}`)}}return{families:n,rules:i}}function uT(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function cT(e,t,n,i,a){for(let o of Array.from(e.attributes)){let{localName:l,value:r}=o;if(!(r.length>65536)){if(aT.has(e.localName)&&(l==="style"&&!o.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||l==="space"&&o.namespaceURI===d0&&r==="preserve")){t.setAttributeNS(d0,"xml:space","preserve");continue}if(l==="href"&&(o.namespaceURI===null||o.namespaceURI===IE)){if(e.localName==="a")b0(t,g0(r,i));else if(e.localName==="image"&&m0.test(r))v0(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!o.namespaceURI)if(l==="id"){let u=n.get(r);u&&t.setAttribute(l,u)}else if(qE.has(l)){let u=QE.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(l,`url(#${c})`):KE.test(r)&&t.setAttribute(l,r)}else VE.has(l)&&jE.test(r)?t.setAttribute(l,r):YE.has(l)&&XE.test(r)&&t.setAttribute(l,l==="font-family"?uT(r,a?.families):r)}}}function sT(e,t,n){if(n.idPrefix&&!h0.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=n.siteURL?t:t.implementation.createDocument(null,null),o=a.adoptNode(new i.DocumentFragment),l=0,r=0,u=0,c=new Set,f=(p,s,m,S,b)=>{if(++l>1e5||m>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let d=p.nodeValue??"";if(u+=d.length,u>p0)throw new Error("Publication content too large");s.appendChild(a.createTextNode(d));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===Fo&&GE.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;S=WE(v,g),b=n.allowDrawingFonts?rT(v,g):void 0}if(!S)return;let d=a.createElementNS(Fo,v.localName);cT(v,d,S,n,b);let h=d.getAttribute("id");if(h&&c.has(h)?d.removeAttribute("id"):h&&c.add(h),s.appendChild(d),v.localName==="svg"&&b?.rules.length){let g=a.createElementNS(Fo,"defs"),w=a.createElementNS(Fo,"style");w.textContent=b.rules.join(`
768
- `),g.appendChild(w),d.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,d,m+1,S,b)}else if(!S&&v.namespaceURI===Oc&&BE.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let h=v.getAttribute("data-publication-drawing-mode");if((h==="light"||h==="dark")&&h!==n.drawingMode)return}let d=a.createElementNS(Oc,v.localName);eT(v,d,n),s.appendChild(d);for(let h of Array.from(v.childNodes))f(h,d,m+1,null)}};for(let p of e)f(p,o,0,null);return o}function S0(e,t,n){if(e.length>p0||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=new i.DOMParser().parseFromString(`<article xmlns="${Oc}">${e}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==Oc||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return sT(Array.from(a.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}M();M();function w0(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function x0(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=w0(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let a=t.searchParams.get("start")??t.searchParams.get("t");return a&&/^\d+s?$/.test(a)&&i.searchParams.set("start",a.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}M();var Jo=j($e(),1);M();async function E0(e,t,n,i){let a=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),o=a.body?.getReader();if(!a.ok||!o||Number(a.headers.get("Content-Length"))>n)throw await o?.cancel(),new Error("Publication resource unavailable");let l=[],r=0;try{for(;;){let f=await o.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");l.push(f.value)}}catch(f){throw await o.cancel().catch(()=>{}),f}finally{o.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of l)u.set(f,c),c+=f.byteLength;return u}async function bh(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await E0(e,t,n,i)))}async function CN(e,t,n){return bh(e,t,lv,n)}function T0(e,t,n,i,a){let o=new URL("./",t),l=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...l.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=l.get(c),s=new URL(c,o);if(!p||s.origin!==o.origin||s.pathname!==`${o.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let m=i?await i(c,p.bytes,f):await E0(e,s,p.bytes,f);if(m.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let S=await e.crypto.subtle.digest("SHA-256",m);if(f.throwIfAborted(),Array.from(new Uint8Array(S),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return m}return{siteURL:o,assetPaths:r,bytes:u,nodeAddress:a,has:c=>l.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var at=j(pe(),1);function M0({page:e}){let t=(0,Jo.useRef)(null),[n,i]=(0,Jo.useState)(),{repository:a,preview:o}=e;return(0,Jo.useEffect)(()=>{let l=t.current?.ownerDocument.defaultView;if(!l||!a||!o)return;let r=new l.AbortController;return bh(l,new l.URL(o.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(f0(a,o,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[a,o]),(0,at.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:o?n===void 0?(0,at.jsx)("p",{role:"status",children:L.githubLoading}):n===null?(0,at.jsx)("p",{role:"status",children:L.githubPreviewUnavailable}):(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("h3",{children:n.title}),n.description&&(0,at.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,at.jsxs)(at.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,at.jsx)("p",{children:L.githubCommitCount(n.commits.length,n.total)}),(0,at.jsx)("ol",{children:n.commits.map(l=>(0,at.jsx)("li",{children:(0,at.jsxs)("a",{href:l.href,target:"_blank",rel:"noopener noreferrer",children:[(0,at.jsx)("code",{children:l.sha})," ",l.title]})},l.href))})]}):(0,at.jsx)("p",{children:L.githubNoCommits}))]}):(0,at.jsx)("p",{children:L.githubOpenOriginal})})}var Me=j(pe(),1),R0="http://www.w3.org/2000/svg",fT={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function vh(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function N0({publication:e,resources:t,location:n,id:i,contentScope:a,colorMode:o,onClose:l,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,Tt.useRef)(null),p=(0,Tt.useRef)(null),s=(0,Tt.useRef)(!1),m=(0,Tt.useRef)(n.fragment);m.current=n.fragment;let[S,b]=(0,Tt.useState)(0),[v,d]=(0,Tt.useState)("loading"),[h,g]=(0,Tt.useState)(0),w=e.published.get(n.id),E=w.kind==="url"?w.url:void 0,R=(0,Tt.useMemo)(()=>s0(E),[E]),x=(0,Tt.useMemo)(()=>E?x0(E):null,[E]),N=x&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(x.url).origin!==t.siteURL.origin;(0,Tt.useEffect)(()=>{let T=f.current,I=T?.ownerDocument.defaultView;if(!T||!I||E)return;let H=new I.AbortController,k=H.signal,K=new Map;g(0),T.replaceChildren();let ne=async W=>{let re=K.get(W);if(re)return re;let $=fT[W.slice(W.lastIndexOf(".")+1)];if(!$)throw new Error("Unsupported publication media");let C=await t.bytes(W,k);k.throwIfAborted();let U=I.URL.createObjectURL(new I.Blob([C],{type:$}));return K.set(W,U),U},le=async()=>{if(w.kind!=="document"&&w.kind!=="drawing"){if(!w.asset){d("unavailable");return}let U=await ne(w.asset);k.throwIfAborted();let z=T.ownerDocument.createElement("a");z.href=U,z.download=w.asset.slice(7),z.textContent=L.downloadAsset,T.replaceChildren(z),d("ready");return}let W=await t.text($d(w.id),k),re=S0(W,T.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:a,deferMedia:!0,drawingMode:o}),$=Array.from(re.querySelectorAll("[data-publication-asset]"),U=>({element:U,path:U.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let U of Array.from(re.querySelectorAll("a[href]"))){let z=new URL(U.getAttribute("href"),t.siteURL);if(z.origin!==C.origin||!z.pathname.startsWith(C.pathname))continue;let q=z.pathname.slice(t.siteURL.pathname.length);U.removeAttribute("href"),U.namespaceURI!==R0&&t.assetPaths.has(q)&&$.push({element:U,path:q,download:!0})}k.throwIfAborted(),T.replaceChildren(re),d("ready"),vh(T,m.current)?.scrollIntoView({block:"start"});for(let{element:U,path:z,download:q}of $)try{let ee=await ne(z);k.throwIfAborted(),U.setAttribute(q||U.namespaceURI===R0?"href":"src",ee),q&&U.setAttribute("download",z.slice(7)),U.removeAttribute("data-publication-asset")}catch{if(k.aborted)return;g(ee=>ee+1)}};return d("loading"),le().catch(()=>{k.aborted||d("failed")}),()=>{H.abort(),T.replaceChildren();for(let W of K.values())I.URL.revokeObjectURL(W)}},[S,w,e,t,a,o,E]),(0,Tt.useEffect)(()=>{f.current&&vh(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,Tt.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function G(T){if(T.defaultPrevented||T.metaKey||T.ctrlKey||T.shiftKey||T.altKey)return;let I=T.target;if(!(I instanceof T.currentTarget.ownerDocument.defaultView.Element))return;let H=I.closest("a")?.getAttribute("href");if(!H)return;let k=zv(H,t.siteURL,e,n.id);if(!k)return;T.preventDefault();let K=H.startsWith("#")&&k.id===n.id&&f.current?vh(f.current,k.fragment):null;s.current=T.detail===0&&k.id!==n.id,r(K?{...k,fragment:K.getAttribute("data-publication-fragment")??void 0}:k)}return(0,Me.jsxs)("aside",{id:i,className:`kplex-publication-note${E?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Me.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Me.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:w.title}),(0,Me.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Me.jsx)(xt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:c,label:u==="bottom"?L.dockSidecarRight:L.dockSidecarBottom}),(0,Me.jsx)(xt,{icon:"x",onClick:l,label:L.closeSidecar})]})]}),E?(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Me.jsx)("a",{href:E,target:"_blank",rel:"noopener noreferrer",children:L.openWebsite}),!R&&!x&&(0,Me.jsx)("p",{children:L.webFrameHelp})]}),R?(0,Me.jsx)(M0,{page:R},E):x?N&&(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:w.title,src:x.url,style:{aspectRatio:x.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},x.url):(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame",title:w.title,src:E,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},E)]}):(0,Me.jsxs)(Me.Fragment,{children:[v==="loading"&&(0,Me.jsx)("p",{role:"status",children:L.loadingNote}),v==="failed"&&(0,Me.jsxs)("div",{role:"alert",children:[(0,Me.jsx)("p",{children:L.noteUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(T=>T+1),children:L.retry})]}),v==="unavailable"&&(0,Me.jsx)("p",{children:L.noDocument}),(0,Me.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:G}),h>0&&(0,Me.jsxs)("div",{role:"status",children:[(0,Me.jsx)("p",{children:L.mediaUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(T=>T+1),children:L.retry})]})]})]})}M();var Jn=j($e(),1);var Si=j(pe(),1),C0=736,A0=6;function dT({dock:e,sidecarId:t,size:n,minimum:i,maximum:a,onSize:o}){let l=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(h){return u?h.clientX:h.clientY}function p(h){o(Math.max(i,Math.min(a,Math.round(h))))}function s(h,g){r.current?.pointer===g&&(r.current=null,h.hasPointerCapture(g)&&h.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let h=l.current;return()=>{h&&r.current&&s(h,r.current.pointer)}},[e]);function m(h){h.button!==0||r.current||(h.preventDefault(),h.currentTarget.focus({preventScroll:!0}),h.currentTarget.setPointerCapture(h.pointerId),r.current={pointer:h.pointerId,origin:f(h),size:n})}function S(h){let g=r.current;g?.pointer===h.pointerId&&p(g.size+c*(f(h)-g.origin))}function b(h){S(h),s(h.currentTarget,h.pointerId)}function v(h){s(h.currentTarget,h.pointerId)}function d(h){if(h.altKey||h.ctrlKey||h.metaKey)return;let[g,w]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],E=h.shiftKey?1:10,R;if(h.key==="Home")R=i;else if(h.key==="End")R=a;else if(h.key===g)R=n+E;else if(h.key===w)R=n-E;else return;h.preventDefault(),p(R)}return(0,Si.jsx)("div",{ref:l,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":L.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,onPointerDown:m,onPointerMove:S,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:d})}function O0({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:a,onDock:o,renderSidecar:l}){let r=(0,Jn.useRef)(null),[u,c]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),s=i!=="bottom",m=s?u.width:u.height,S=Math.max(0,m-(s?260:160)-A0),b=Math.min(S,s?240:120),v=f[i]??Math.round(m*(s?.34:.43)),d=Math.max(b,Math.min(S,v)),h=n?{"--kplex-publication-sidecar-size":`${d}px`,"--kplex-publication-divider-size":`${A0}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let E=r.current,R=E?.ownerDocument.defaultView;if(!E||!R)return;let x=E;function N(){let T=x.clientWidth,I=x.clientHeight;c(H=>H.width===T&&H.height===I?H:{width:T,height:I})}let G=new R.ResizeObserver(N);return G.observe(E),N(),()=>G.disconnect()},[]);function g(E){p(R=>R[i]===E?R:{...R,[i]:E})}function w(){o(i==="bottom"?"right":"bottom")}return(0,Si.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:h,children:[e,n?(0,Si.jsxs)(Si.Fragment,{children:[(0,Si.jsx)(dT,{dock:i,sidecarId:t,size:d,minimum:b,maximum:S,onSize:g}),l(i,a?w:void 0)]}):(0,Si.jsx)("div",{id:t,hidden:!0})]})}M();M();function zc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function L0(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function hT(e,t,n,i,a){let o=1-a,l=o*o,r=a*a;return{x:l*o*e.x+3*l*a*t.x+3*o*r*n.x+r*a*i.x,y:l*o*e.y+3*l*a*t.y+3*o*r*n.y+r*a*i.y}}function Sh(e,t,n,i,a){if(a==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let o=Math.hypot(t.x-e.x,t.y-e.y),l=Math.max(20,Math.min(108,o*.2)),r=L0(n),u=L0(i),c={x:e.x+r.x*l,y:e.y+r.y*l},f={x:t.x+u.x*l,y:t.y+u.y*l};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:hT(e,c,f,t,.5)}}M();M();var wh=["parent","child","left","right","previous","next"];function z0(e,t,n,i){let a=t.neighbours(e,"parent").slice(0,n),o=t.neighbours(e,"child").slice(0,n),l=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...a,...o,...l,...r].map(p=>t.identity(p.page))]),c=new Map([...a,...o,...l,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of wh)for(let m of t.neighbours(p,s)){let S=t.identity(m.page);if(u.has(S))continue;let b=f.get(S);(!b||b.relationType!==1)&&f.set(S,{...m,role:"sibling"})}return{center:e,parents:a,children:o,leftFriends:l,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}M();var oa=(e,t,n)=>Math.max(t,Math.min(n,e));function P0(e){return e.horizontalCompactingFactor??e.compactingFactor}function mT(e){let t=e.compactView?.82:1;return{horizontal:oa(1.35/P0(e),.38,1.35)*t,vertical:oa(1.35/e.compactingFactor,.38,1.35)*t,spacing:oa(e.minLinkLength/18,.72,1.7)}}function D0(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function kc(e){return oa(e.siblingRelativeSize/100,.3,.85)}function H0(e,t){let n=oa(P0(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*oa(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function Dc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function Hc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function On(e,t,n=!1){let i=[...e];for(let a of e){let o=t.mini(a,n);o&&i.push({...a,width:o.width,height:o.viewportHeight,y:a.y+a.height/2+o.topGap+o.viewportHeight/2})}return i}function k0(e,t,n,i,a,o,l){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let m=r.slice(s,s+i);u.push({nodes:m,height:Math.max(...m.map(S=>S.height)),reserve:Math.max(0,...m.map(S=>l.reserve(S)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,m)=>{let S;if(m===0){let h=Math.max(0,s.height-26)/2;S=n===-1?t-s.reserve-h:t+h}else n===1?S=c+f/2+p+o+s.height/2:S=c-f/2-o-s.reserve-s.height/2;let b=s.nodes.map(h=>l.width(h)),d=-(b.reduce((h,g)=>h+g,0)+a*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((h,g)=>{let w=b[g];h.x=d+w/2,h.y=S,d+=w+a}),c=S,f=s.height,p=s.reserve}),r}function xh(e,t,n,i){let a=e;return U0(a,t,n,i),a}function U0(e,t,n,i){if(!e.length)return;let a=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+a[c-1]+n+p.height/2}let o=e[0].y-e[0].height/2,l=e.length-1,r=e[l].y+e[l].height/2+a[l],u=-(o+r)/2;for(let c of e)c.y+=u}function Eh(e,t,n,i,a="center"){if(!e.length)return;let o=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-o,u=Math.max(1,n-t),f=(r>u?t:a==="midline"?oa(o,t,n-r):a==="bottom"?n-r:a==="top"?t:t+(u-r)/2)-o;for(let p of e)p.y+=f}function yr(e,t,n,i,a,o,l){let c=a.centerX-a.width/2,f=a.centerX+a.width/2,p=a.fixedEdgeY,s=a.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let m=l!==void 0&&o!==void 0?Math.max(72,o-l):Math.max(72,n),S=l!==void 0&&o!==void 0?l:i==="top"?(t.length?s+16:a.fixedEdgeY)-m:t.length?p-16:a.fixedEdgeY;return{key:e,left:c,top:S,width:f-c,height:m,resizeEdge:i}}function br(e,t,n,i,a,o){if(!t.length)return null;let l=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,m=p+r,S=m-s,b=o!==void 0&&a!==void 0?Math.max(72,a-o):a===void 0?Number.POSITIVE_INFINITY:Math.max(72,a-s),v=Math.min(S,Math.max(72,n),b);if(S<=v+.5)return null;let d=s,h=0;return o!==void 0&&a!==void 0?(d=o,h=Math.max(0,d-s)):a!==void 0?(d=a-v,h=Math.max(0,d-s)):(i==="bottom"?d=m-v:i==="center"&&(d=oa(-v/2,s,m-v)),h=Math.max(0,d-s)),{key:e,left:u-l,top:d,width:c-u+l*2,height:v,contentTop:s,contentHeight:S,initialScrollTop:h}}function _0(e,t,n,i=!1){let a=ke=>Math.max(0,...ke.filter(xi=>xi.editor).map(xi=>xi.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(ke=>ke.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,a(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,a(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,a([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,a(e.siblings))});let o=e.center,{horizontal:l,vertical:r,spacing:u}=mT(t),c=50*l*u,f=36*r*u,p=66*r*u,s=18*r*u,m=26,S=-(o.height/2+m/2+p),b=Math.max(42,52*r*u),v=o.height/2+m/2+p+b,d=k0(e.parents,S,-1,D0(t,"parent"),c,f,n),h=k0(e.children,v,1,D0(t,"child"),c,f,n),g=o.width/2,w=g+205*l*u,E=xh(e.leftFriends,-w,s,n),R=t.lateralArrangement==="left",x=xh(e.rightFriends,R?-w:w,s,n),N=R?[...E,...x]:E;R&&U0(N,-w,s,n);let G=!R&&x.length>0,T=G?Math.max(...x.map(ke=>ke.x+ke.width/2)):g,I=G?285:205,H=G?190:120,k=Math.max(w+I*l*u,T+H*l*u),K=xh(e.siblings,k,s,n),ne=h.length?Math.min(...h.map(ke=>ke.y-ke.height/2)):o.height/2+p+b+12,le=Math.max(30,36*r*u),W=Math.max(120,t.friendMaxHeight),re=Math.max(120,t.siblingMaxHeight),$=i?R?Math.min(W/2,ne-le):W/2:ne-le,C=$-W,U=C,z=$,q=C,ee=$;Eh(N,U,z,n,"midline"),R||Eh(x,q,ee,n,"midline");let ie=Math.max(58,72*r*u),B=t.alignSiblingsToFirstParent?d[0]:void 0,X=i?re/2:B?B.y+B.height/2:$-ie,se=i?-re/2:X-re;Eh(K,se,X,n,i?"midline":"center");let he=On(d,n,!0),yt=On(K,n,!0),Ee=d.length?Dc(he,o.width/2+24):170,bt=Hc(he,o.width/2),Ke=Math.max(Dc(On(E,n,!0),115,-w),Dc(On(x,n,!0),115,R?-w:w)),Ln=Math.max(Hc(On(E,n,!0),0,-w),Hc(On(x,n,!0),0,R?-w:w)),We=Dc(yt,110,k),ln=Hc(yt,0,k),Mt=R?Math.max(0,H0(t,Ee*2)):H0(t,Ee*2);d.length&&(w=Ee+Ke+Mt),w=Math.max(w,bt+Ln+4);for(let ke of E)ke.x=-w;for(let ke of x)ke.x=R?-w:w;(d.length||G)&&(k=G?w+Ke+We+Math.max(0,Mt):Ee+We+Mt),k=Math.max(k,bt+ln+4,G?w+Ln+ln+4:0);for(let ke of K)ke.x=k;let kt=On(d,n),wi=On(h,n),Wn=On(N,n),la=On(R?[]:x,n),Re=On(K,n),Be={},Rt=br("parent",kt,t.parentMaxHeight,"bottom"),Ge=br("child",wi,t.childMaxHeight,"top"),jt=br("left",Wn,t.friendMaxHeight,"top",z,U),rn=br("right",la,t.friendMaxHeight,"top",ee,q),$n=br("sibling",Re,t.siblingMaxHeight,"top",X,se);Rt&&(Rt.left=-Ee,Rt.width=Ee*2,Be.parent=Rt),Ge&&(Be.child=Ge),jt&&(Be.left=jt),rn&&(Be.right=rn),$n&&(Be.sibling=$n);let un={},ra=S+m/2+16,ua=v-m/2-16;un.parent=yr("parent",kt,t.parentMaxHeight,"top",{centerX:0,width:Ee*2,fixedEdgeY:ra}),un.child=yr("child",wi,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:ua}),un.left=yr("left",Wn,t.friendMaxHeight,"top",{centerX:-w,width:Ke*2,fixedEdgeY:z},z,U),R||(un.right=yr("right",la,t.friendMaxHeight,"top",{centerX:w,width:Ke*2,fixedEdgeY:ee},ee,q)),un.sibling=yr("sibling",Re,t.siblingMaxHeight,"top",{centerX:k,width:We*2,fixedEdgeY:X},X,se);let Sn=[o,...d,...h,...E,...x,...K];return t.flipEastWest&&pT(Sn,un,Be),{nodes:Sn,zoneViewports:Be,zoneAreas:un}}function pT(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}M();var I0={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Pc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Uc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function B0(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var gT={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var yT={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function bT(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(a=>{let o=Reflect.get(e,a);return typeof o=="number"&&Number.isFinite(o)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var G0={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:I0,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,a=(f,p)=>{let s=JSON.stringify([f.id,p]),m=i.get(s)??e.read.relations(f.id,p);return i.set(s,m),n||=m.truncated||m.coverage==="unavailable",m.items.map(S=>({page:S.node,role:S.role,relationType:S.relationType,value:S}))},o=z0(t,{identity:f=>f.id,neighbours:a,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),l=Pc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...l?{ports:Uc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,m)=>{let S=JSON.stringify([p,s.page.id,m]),b=B0(p,Pc(e.configuration));r.push({id:S,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...l?{ports:Uc(!0)}:{}}),p!=="sibling"&&u.push({id:S,kind:"semantic",source:"attention",target:S,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(o.parents,"parent"),c(o.children,"child"),c(o.leftFriends,"left"),c(o.rightFriends,"right"),c(o.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=wh.flatMap(m=>a(p,m));for(let m of r.filter(S=>S.role==="sibling")){let S=s.find(v=>v.page.id===m.nodeId),b=S?B0(S.role,l):null;S&&b&&u.push({id:JSON.stringify([f.id,m.id]),kind:"semantic",source:f.id,target:m.id,sourceNode:f.nodeId,targetNode:S.page.id,sourcePort:b.source,targetPort:b.target,relation:S.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[o.parents,o.children,o.leftFriends,o.rightFriends,o.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,a){if(!bT(n))throw new Error("Missing Classic geometry preferences");let o={...n,flipEastWest:n.flipEastWest??Pc(a?.configuration)},l=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let m=l.get(s.id);if(!m)throw new Error("Missing occurrence measurement");return{...m,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(m=>m.areaId===s),f=_0({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},o,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?kc(o):1),width:s=>s.expandedWidth,mini:(s,m)=>s[m?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let m=yT[s.key];return{id:s.key,labelKey:gT[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:m.key,minimum:m.min,maximum:m.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};M();var vT={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function Y0(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,a])=>a===i)?.[0]}function V0(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function q0(e,t,n,i,a,o){let l=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(V0(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],l)){if(++u>16384||c>=4096)return!0;let m=i(s),S=e.get(m);if(!S||m===f)continue;let b=V0(f,m);if(r.has(b))continue;let v,d=1/0;for(let h of p)for(let g of S){if(++u>16384)return!0;let w=a(h,s.role),E=a(g,vT[s.role]);if(!w||!E)continue;let R=(h.x-g.x)**2+(h.y-g.y)**2;R<d&&(v={source:h,target:g,sourcePort:w,targetPort:E},d=R)}v&&(r.add(b),c++,o(v,s))}}return!1}M();M();M();function Wo(e){let t=e.length===1?"root":JSON.stringify(e);return _a(t)?t:null}function j0(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let a=JSON.parse(i.occurrenceId);if(!Array.isArray(a)||a.length<2||a.length>gt.depth+1||!a.every(_a)||a[0]!==t||a[a.length-1]!==i.nodeId||Wo(a.map(Nn))!==i.occurrenceId)continue;n.set(i.occurrenceId,a.map(Nn))}catch{}}return n}function X0(e){let t=vc(e.configuration),n=na(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let a=ur(sv(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!a)return null;let o=a,l=Math.min(t.maximumOccurrences,gt.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(o.expanded),u=new Set(o.collapsed),c=j0(e,i),f=new Set,p=new Map,s=new Set;for(let x of c.values())for(let N=1;N<=x.length;N++){let G=Wo(x.slice(0,N));if(G&&(f.add(G),N<x.length)){let T=p.get(G)??new Set;T.add(x[N]),p.set(G,T),N>1&&s.add(x[N-1])}}let m=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(x=>x!==i)),S=new Set,b=new Set,v=[],d=[],h=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,w=(x,N,G)=>{let I=(G?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(k=>e.read.relations(x,k,N)),H=new Map;for(let k of I)for(let K of k.items)H.has(K.node.id)||H.set(K.node.id,K);return{items:[...H.values()],truncated:I.some(k=>k.truncated),coverage:I.some(k=>k.coverage==="unavailable")?"unavailable":I.every(k=>k.coverage==="local")?"local":"cached"}},E=x=>{if(x===i||S.has(x))return!0;if(S.size>=gt.scopes)return!1;let N=[...m].filter(G=>!S.has(G)&&G!==x).length;return!m.has(x)&&S.size+N>=gt.scopes?!1:(S.add(x),!0)};for(;h.length&&v.length<l;){let x=h.shift(),N=x.lineage[x.lineage.length-1];if(b.has(x.id))continue;b.add(x.id);let G=e.read.node(N);if(!G||G.id!==N||!e.read.isCurrent())return null;let T=x.lineage.slice(0,-1).includes(N),I=p.has(x.id)?Math.max(t.maximumDepth,x.depth+1):t.maximumDepth,H=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},k=T?{items:[],truncated:!1,coverage:"cached"}:w(N,1,x.depth===0),K=!T&&x.depth<I&&!u.has(x.id)&&(r.has(x.id)||x.depth<o.initialGenerations),ne=!T&&x.depth<I&&!(H.complete&&k.coverage!=="unavailable"&&k.items.length===0&&!k.truncated),le=K&&ne&&E(N),W=le?w(N,Math.min(e.maximum,128),x.depth===0):k,re=T||!K?"ready":H.pending?"loading":W.coverage==="unavailable"?"unavailable":H.complete?"ready":H.prepared||W.items.length>0?"partial":"unavailable";(K&&ne&&!le||le&&W.truncated||!T&&x.depth>=I&&(W.items.length>0||!H.complete))&&(re="limited",g=!0);let $=[];if(le){let q=new Map(W.items.map(B=>[B.node.id,B]));for(let B of p.get(x.id)??[])if(!q.has(B)){let se=(x.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(he=>e.read.relation?.(N,B,he)?.items??[]).find(he=>he.node.id===B);se&&e.read.isCurrent()&&q.set(B,se)}if(x.depth===0&&H.complete&&!W.truncated&&W.coverage!=="unavailable"){let B=new Set([...q.keys()].map(X=>Wo([i,X])));o={...o,sides:Object.fromEntries(Object.entries(o.sides).filter(([X])=>B.has(X)))}}let ee=[...q.values()].map(B=>{let X=[...x.lineage,B.node.id],se=Wo(X);return se?{id:se,lineage:X,relation:B}:(g=!0,re="limited",null)}).filter(B=>B!==null);ee.sort((B,X)=>Number(f.has(X.id))-Number(f.has(B.id))||e.read.compare(B.relation.node,X.relation.node));let ie=l-v.length-1-h.length;for(let B of ee){let X=[...f].filter(se=>se!==x.id&&!b.has(se)&&!h.some(he=>he.id===se)&&!$.some(he=>he.id===se)&&se!==B.id).length;if(ie<=0||!f.has(B.id)&&ie<=X){g=!0,re="limited";continue}if(x.depth===0&&B.relation.role==="child"&&o.sides[B.id]===void 0){let se=[...q.keys()].flatMap(Ee=>{let bt=Wo([i,Ee]),Ke=bt?o.sides[bt]:void 0;return Ke===-1||Ke===1?[Ke]:[]}),he=se.filter(Ee=>Ee===-1).length<se.filter(Ee=>Ee===1).length?-1:1,yt=ur({...o,sides:{...o.sides,[B.id]:he}});if(!yt){g=!0,re="limited";continue}o=yt}$.push(B),ie--}$.sort((B,X)=>e.read.compare(B.relation.node,X.relation.node))}let C={parent:x.parent,depth:x.depth,side:x.side,expanded:le,canExpand:ne,reference:T,status:re},U=x.depth===0||x.side===-1?"left":"right";v.push({id:x.id,nodeId:N,areaId:x.areaId,representation:"thought",role:x.relation?.role,relation:x.relation,branch:C,ports:x.depth===0?{top:"parent",bottom:"child",left:"left"}:x.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:U,count:new Set(W.items.filter(q=>["left","right","previous","next"].includes(q.role)).map(q=>q.node.id)).size,complete:H.complete&&W.coverage!=="unavailable"&&!W.truncated&&!T},...!le&&!T&&x.parent?{groupingPartition:JSON.stringify([x.parent,x.side])}:{}}),x.parent&&x.relation&&d.push({id:x.id,kind:"semantic",source:x.parent,target:x.id,sourceNode:x.lineage[x.lineage.length-2],targetNode:N,relation:x.relation,sourcePort:x.relation.role==="child"?"bottom":x.relation.role==="parent"?"top":x.side===1?"right":"left",targetPort:x.parent==="root"&&x.relation.role==="parent"?"bottom":x.side===1?"left":"right"});let z=0;for(let q of $){let ee=q.relation.role==="parent"&&t.parentColumns>1&&z++%t.parentColumns===0?-1:1,ie=x.depth?x.side:q.relation.role==="parent"?ee:q.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:o.sides[q.id],B=x.depth?x.areaId:q.relation.role==="parent"?"parent":q.relation.role==="child"?ie===-1?"child-left":"child-right":"left";h.push({...q,parent:x.id,depth:x.depth+1,side:ie,areaId:B})}}if(!e.read.isCurrent())return null;g||=h.length>0;let R=JSON.stringify(o)===JSON.stringify(n)?void 0:o;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:d,truncated:g,coverage:e.read.coverage,preparation:{parents:[...S]},stateSuggestion:R}}M();M();function ST(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let a=i.insets?.top??0,o=i.insets?.right??0,l=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[a,o,l,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:a,right:o,bottom:l,left:r,width:i.width+r+o,height:i.height+a+l})}return n}function wT(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function K0(e,t,n,i,a=24,o=42,l=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,a,o,l].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=ST(e),u=Math.min(t,e.length),c=wT(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],s=[],m=a,S=o;for(let v of c)p.push(m+v/2),m+=v+n;for(let v of f)s.push(S+v/2),S+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let d=r[v];b.set(d.item.id,{x:p[v%u]+(d.left-d.right)/2,y:s[Math.floor(v/u)]+(d.top-d.bottom)/2,width:d.item.width,height:d.item.height})}return{positions:b,width:m-n+a,height:S-i+l}}function Q0(e,t,n,i={}){let a=n.horizontalSpacing/n.horizontalDensity,o=n.verticalSpacing/n.verticalDensity,l=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,U)=>C?c.get(C)?.controlReserve?.[U]??0:0;if(r.length>gt.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let U=c.get(C.id);if(!U||![U.width,U.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(U.controlReserve&&![U.controlReserve.right,U.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===l){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let z=C.branch.parent;if(!z||!c.has(z))throw new Error("Missing hierarchy parent");let q=p.get(z)??[];q.push(C),p.set(z,q)}let s=new Map,m=new Set,S=(C,U)=>{let z=s.get(C);if(z!==void 0)return z;if(U>gt.depth||m.has(C))throw new Error("Invalid hierarchy ancestry");m.add(C);let q=p.get(C)??[],ee=q.reduce((B,X)=>B+S(X.id,U+1),0)+Math.max(0,q.length-1)*o,ie=Math.max(c.get(C).height+f(C,"bottom"),ee);return m.delete(C),s.set(C,ie),ie};for(let C of r)S(C.id,0);let b=c.get(l);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[l,{x:0,y:0,width:b.width,height:b.height}]]),d=(C,U,z,q)=>{let ee=C.reduce((B,X)=>B+s.get(X.id),0)+Math.max(0,C.length-1)*o,ie=U.y+f(q,"bottom")/2-ee/2;for(let B of C){let X=c.get(B.id),se=s.get(B.id),he={width:X.width,height:X.height,x:U.x+z*(U.width/2+a+X.width/2+f(z===1?q:B.id,"right")),y:ie+se/2-f(B.id,"bottom")/2};if(v.has(B.id))throw new Error("Repeated hierarchy parent");v.set(B.id,he),d(p.get(B.id)??[],he,z,B.id),ie+=se+o}},h=p.get(l)??[],g=h.filter(C=>C.role==="parent"),w=h.filter(C=>C.role!=="parent"),E=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?a+Math.max(...p.get(C).map(U=>E(U.id))):0),R=g.filter(C=>C.branch.side===-1),x=g.filter(C=>C.branch.side===1),N=n.parentColumns,G=[];for(;R.length||x.length;)for(let C=0;C<N;C++)G.push(N>1&&C===0?R.shift():x.shift()??(N===1?R.shift():void 0));let T=K0(G.map((C,U)=>C?{id:C.id,width:E(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${U}`,width:1,height:1}),n.parentColumns,a,o),I=u.map(C=>{let U=c.get(C.id);if(!U)throw new Error("Missing measured section");return U}),H=Math.max(b.width+f(l,"right")*2,T.width,...I.map(C=>C.width)),k=Math.max(140,Math.min(800,i.parentHeight??300)),K=Math.max(k,T.height),ne={x:-H/2,y:-b.height/2-o-K,width:H,height:K};if(!Number.isFinite(K))throw new Error("Invalid parent area height");for(let C of g){let U=T.positions.get(C.id),z=c.get(C.id),q=N===1?1:C.branch.side,ee={x:ne.x+(H-T.width)/2+U.x+q*(-U.width/2+z.width/2)-(q===-1?f(C.id,"right"):0),y:ne.y+K-T.height+U.y-f(C.id,"bottom")/2,width:z.width,height:z.height};v.set(C.id,ee),d(p.get(C.id)??[],ee,q,C.id)}let le={...v.get(l),width:H};for(let C of[-1,1]){let U=w.filter(z=>z.branch?.side===C);d([...U.filter(z=>z.role!=="child"),...U.filter(z=>z.role==="child")],le,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let W=b.height/2+f(l,"bottom")+Math.min(24,o);for(let C of I)v.set(C.id,{x:0,y:W+C.height/2,width:C.width,height:C.height}),W+=C.height+Math.min(24,o);let re=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...ne,height:K},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:k},dropRole:"parent",viewport:{...ne,height:K,contentTop:ne.y,contentHeight:K,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:a,rowGap:o,filterLayout:"keep"}}],$=Math.min(8,o/4,a/4);for(let[C,U]of[["child-left","child"],["child-right","child"],["left","left"]]){let z=r.filter(ie=>ie.areaId===C).map(ie=>{let B=v.get(ie.id),X=f(ie.id,"right"),se=f(ie.id,"bottom");return{...B,x:B.x+X/2,y:B.y+se/2,width:B.width+X,height:B.height+se}});if(!z.length)continue;let q=Math.min(...z.map(ie=>ie.x-ie.width/2))-$,ee=Math.min(...z.map(ie=>ie.y-ie.height/2))-$;re.push({id:C,labelKey:U==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:U,bounds:{x:q,y:ee,width:Math.max(...z.map(ie=>ie.x+ie.width/2))+$-q,height:Math.max(...z.map(ie=>ie.y+ie.height/2))+$-ee}})}return{positions:v,areas:re}}M();function xT(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function ET(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let a=new Map(e.rows.map(c=>[c.id,c])),o=new Set(e.visible),l=c=>{let f=[];for(let p=0;c&&p<256;p++)o.has(c)&&f.push(c),c=a.get(c)?.parent??"";return f},r=i.map(c=>l(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function Z0(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!xT(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let a=new Set(t.visible),o=t.rows.filter(r=>a.has(r.id)),l=o.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...l],truncated:e.truncated||l.length<o.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=ET(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var F0={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:th,hierarchy:{maximumScopes:gt.scopes,maximumDepth:gt.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:wc},configuration:bc,restoreState:na,project(e){let t=X0(e);return t&&e.sections?.status==="available"?Z0(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,a){let o=vc(a?.configuration);if(!o)throw new Error("Mind Map configuration unavailable");return Q0(e,t,o,a?.areaHeights)}};var TT={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Th={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function J0(e){return e==="left"||e==="right"||e==="sibling"}function $0(e,t,n=!0,i="compass",a,o=!1,l){let{read:r}=e,u=e.manifest?.appearance,c=u?.flip??!1,f={...TT,...u?.geometry,flipEastWest:c};l!==void 0&&(f.childColumns=Math.min(f.childColumns,l)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Th.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Th.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Th.propertyFontSize},s=Uc(c),m=i==="mindmap",S=m?F0:G0,b=S.project({attention:t,read:r,maximum:u?.maximum??100,...m?{layoutRoot:t,state:a}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:c}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(T=>{let I=T.nodeId&&r.node(T.nodeId);if(!I)throw new Error("Publication occurrence is unavailable");let H=T.id===b.entry,k=T.role==="sibling",K=k?kc(f):1,ne=e.published.get(I.id),le=ne?.roleStyles,W=T.relation?.relationType===2?le?.inferred:void 0,re=H?le?.center:k?le?.sibling:void 0,$={...ne?.style,...W,...re},C=re?.fontSize??W?.fontSize??ne?.style?.fontSize??(H?30:k?15:20),U=re?.gateRadius??W?.gateRadius??ne?.style?.gateRadius??5,z=sr(C*K,H,p.baseFontSize)*(k&&e.manifest?.7:1),q=pv(I.name,C,p,H,I.maxLabelLength);$.icon!=null&&(q.width+=H?22:17);let ee=gv(q,K,C*K,p);return{occurrence:T,node:I,center:H,fontSize:z,style:$,gateSize:dv({gateRadius:U*K}),measurement:{id:T.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:T.branch?.canExpand?{right:0,bottom:23}:void 0}}}),d=S.layout(b,v.map(T=>T.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),h=[],g=!1;if(o){let T=new Map;for(let{node:H,occurrence:k,center:K}of v){if(!m&&K)continue;let ne=T.get(H.id)??[];ne.push({...d.positions.get(k.id),node:H.id,occurrence:k}),T.set(H.id,ne)}let I=b.edges.flatMap(H=>H.kind==="semantic"?[[H.sourceNode,H.targetNode]]:[]);g=q0(T,I,function*(H){for(let k of Jd)yield*r.relations(H.node,k).items},H=>H.node.id,(H,k)=>Y0(m?H.occurrence.ports:s,H.occurrence.peerPort?.side,k),({source:H,target:k,sourcePort:K,targetPort:ne},le)=>{h.push({id:JSON.stringify(["cross",H.occurrence.id,k.occurrence.id]),kind:"semantic",source:H.occurrence.id,target:k.occurrence.id,sourceNode:H.node,targetNode:k.node,sourcePort:K,targetPort:ne,relation:le})})}let w=[...b.edges,...h],E=new Map;if(m){let T=(I,H)=>{let k=E.get(I)??new Map;k.set(H,(k.get(H)??0)+1),E.set(I,k)};for(let I of w)T(I.source,I.sourcePort),T(I.target,I.targetPort)}let R=new Map;if(!m)for(let{id:T,viewport:I}of d.areas)I&&J0(T)&&R.set(T,I);let x=v.map(({occurrence:T,node:I,center:H,fontSize:k,gateSize:K,style:ne})=>{let le=T.areaId==="right"&&f.lateralArrangement==="left"?"left":T.areaId;return{id:T.id,node:I,center:H,fontSize:k,gateSize:K,style:ne,role:T.role??"center",bounds:d.positions.get(T.id),branch:T.branch,strip:J0(le)&&R.has(le)?le:void 0,gates:m?[...E.get(T.id)??[]].map(([W,re])=>({side:W,count:re})):Object.keys(s).map(W=>{let re=s[W],$=re==="left"?"previous":re==="right"?"next":null,C=r.relations(I.id,re).items,U=$?new Set([...C,...r.relations(I.id,$).items].map(z=>z.node.id)).size:C.length;return{side:W,count:U}})}}),N=new Map(x.map(T=>[T.id,T])),G=w.map((T,I)=>{let H=N.get(T.source),k=N.get(T.target),K=Sh(zc(H.bounds,T.sourcePort,H.gateSize),zc(k.bounds,T.targetPort,k.gateSize),T.sourcePort,T.targetPort,"bezier"),ne=T.kind==="semantic"?T.relation.direction:null,le=T.kind==="semantic"?e.linkStyle(T.sourceNode,T.targetNode,T.relation.role):void 0,W=T.kind==="semantic"?T.relation.definition??null:null;return{id:T.id,source:T.source,target:T.target,route:K,label:W,labelSize:le?.labelSize,labelColor:le?.labelColor,crossLink:I>=b.edges.length,sourcePort:T.sourcePort,targetPort:T.targetPort,stroke:le?.stroke,strokeWidth:le?.width,startHead:le?.startHead??(le?.arrowStart??(ne===2||ne===3)?"arrow":void 0),endHead:le?.endHead??(le?.arrowEnd??(ne===1||ne===3)?"arrow":void 0)}});return{cards:x,cardById:N,edges:G,strips:R,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function _c(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function W0(e,t,n,i){let a=zc(_c(e,t,i),n,t.gateSize);if(!t.strip)return a;let{y:o,height:l}=e.strips.get(t.strip);return a.y>=o&&a.y<=o+l?a:null}function e1(e,t,n){let i=e.cardById.get(t.source),a=e.cardById.get(t.target);if(!i.strip&&!a.strip)return t.route;let o=W0(e,i,t.sourcePort,n),l=W0(e,a,t.targetPort,n);return o&&l?Sh(o,l,t.sourcePort,t.targetPort,"bezier"):null}M();M();function Ic(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Bc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),a=i.includes(","),o=a?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(o.length<3||o.length>4||a&&i.includes("/")||!a&&o.length===4&&!i.includes("/"))return null;let l=Ic(o[0],255),r=Ic(o[1],255),u=Ic(o[2],255),c=o.length===4?Ic(o[3],1):1;return l===null||r===null||u===null||c===null?null:{red:l,green:r,blue:u,alpha:c}}M();function Rh(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(a,o)=>(a*e.alpha+o*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function Mh(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function t1(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=Rh(e,t),i=l=>.2126*Mh(l.red)+.7152*Mh(l.green)+.0722*Mh(l.blue),a=i(n),o=i(t);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}M();var MT=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),RT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),NT=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function AT(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let a=i.trim(),o=/^(['"])(.*?)\1$/u.exec(a),l=o?.[2]??a;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(l)&&l!=="-apple-system"||NT.has(l.toLowerCase()))return;n.push(!o&&RT.has(l.toLowerCase())?l.toLowerCase():JSON.stringify(l))}return n.join(", ")}function n1(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function i1(e,t){let n=t.trim();if(!(!n||n.length>320))switch(MT.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return AT(n);case"length":return n1(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):n1(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Nh=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function a1(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Nh.lastIndex=i;let a=Nh.exec(e);if(!a)throw new Error("Unsupported publication theme");i=Nh.lastIndex;let o=(a[1]??a[3]).split(";").map(u=>u.trim()).filter(Boolean),l=o.filter(u=>u.startsWith("color-scheme"));if(l.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(l[0])?.[1];if(!u||l.length!==1||a[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=l.length?"author":a[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of o){if(u===l[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&i1(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function o1(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,a=e??{},o=Bc(a[n+"text-normal"]),l=Bc(a[n+"background-secondary"]??a[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(a)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(o&&(f==="interactive-normal"||f==="interactive-hover")&&c===a[i+f]){let p=Bc(c),s=p&&t1(o,l?Rh(p,l):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var V=j(pe(),1),l1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Ah={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},CT={left:L.friends,right:L.challengers,sibling:L.siblings},OT=[["system",L.systemTheme],["light",L.lightMode],["dark",L.darkMode]],r1=[["light",Ia.light,"sun"],["dark",Ia.dark,"moon"],["system",Ia.auto,"sun-moon"]],LT=[["right",L.sidecarRight],["left",L.sidecarLeft],["bottom",L.sidecarBottom]],zT={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},u1=600,c1={};function Ch(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(Ga))}function s1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function f1({publication:e,markerPrefix:t,resources:n,browser:i}){let a=(0,J.useRef)(null),o=(0,J.useRef)(null),l=(0,J.useRef)(null),r=Fv(o,l),u=Hv(e,i,r.capture),c=u.attention.id,f={...Kd,crosslinks:e.manifest?.appearance?.showCrossLinks??Kd.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:s,crosslinks:m,ontology:S,sidecar:b}=f,[v,d]=(0,J.useState)(),[h,g]=(0,J.useState)(null),w=(0,J.useRef)(null),[E,R]=(0,J.useState)(),[x,N]=(0,J.useState)(!0),G=x?f.dock:"bottom",T=(0,J.useMemo)(()=>$0(e,c,s,p,v,m,E),[e,c,s,p,v,m,E]),I=p==="mindmap"?L.mindMap:L.view,H=T.cards.find(y=>y.center),[k,K]=(0,J.useState)(),ne=k?.attention===c?k.offsets:c1,le=(0,J.useRef)(null),W=(0,J.useRef)(null),re=(0,J.useRef)({x:0,y:0,scale:1}),$=(0,J.useRef)(!1),C=(0,J.useRef)({points:new Map,origin:null,moved:!1}),U=(0,J.useRef)(!1),z=(0,J.useId)(),q=(0,J.useRef)(null),ee=(0,J.useRef)(null),[ie,B]=(0,J.useState)(0),[X,se]=(0,J.useState)(null),[he,yt]=(0,J.useState)(null),[Ee,bt]=(0,J.useState)(null),[Ke,Ln]=(0,J.useState)(!1),We=(0,J.useRef)(()=>{}),ln=(0,J.useRef)(null),[Mt,kt]=(0,J.useState)(),[wi,Wn]=(0,J.useState)(!1),[la,Re]=(0,J.useState)("light"),Be=e.manifest?.colorMode,Rt=e.manifest?.pins,Ge=Mt?.colorScheme==="dark"?"dark":Mt?.colorScheme==="light"?"light":void 0,jt=Be==="both"?f.theme:Be??Ge??"system",rn=jt==="system"?la:jt,[,$n,un]=r1.find(([y])=>y===jt),ra=()=>u.changeCanvas({sidecar:!b}),ua=(0,J.useMemo)(()=>T.edges.flatMap(y=>{let O=e1(T,y,ne);return O?[{edge:y,route:O}]:[]}),[T,ne]),Sn=new Set,ke=new Set;if(h)for(let{edge:y}of ua)(y.source===h.occurrence&&(!h.port||y.sourcePort===h.port)||y.target===h.occurrence&&(!h.port||y.targetPort===h.port))&&(Sn.add(y.id),ke.add(y.source),ke.add(y.target));let xi=y=>y?" is-highlighted":Sn.size?" is-dimmed":"";(0,J.useLayoutEffect)(()=>{let y=a.current,O=o.current,Y=y?.ownerDocument.defaultView;if(!y||!O||!Y)return;let Z=()=>{let Q=O.clientWidth;N(y.clientWidth>=C0),R(Q<360?1:Q<u1?2:Q<880?3:void 0)},ue=new Y.ResizeObserver(Z);return ue.observe(y),ue.observe(O),Z(),()=>ue.disconnect()},[]),(0,J.useLayoutEffect)(()=>{let y=o.current,O=y?.ownerDocument.defaultView;if(!y||!O)return;let Y=new xc(O,!0,g);w.current=Y;let Z=fv(y,Y);return()=>{w.current=null,Z()}},[]),(0,J.useLayoutEffect)(()=>{w.current?.clear()},[T]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView;if(!Ke||!y)return;let O=y.setTimeout(()=>Ln(!1),3500);return()=>y.clearTimeout(O)},[Ke]),We.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===rr.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||B(Y=>Y+1);return}let O=y.target;!y.altKey||O?.isContentEditable||O?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||ra()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,J.useEffect)(()=>{if(!i)return;let y=O=>We.current(O);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,J.useLayoutEffect)(()=>{let y=ln.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let O=()=>Re(y.matches?"dark":"light");return O(),y.addEventListener("change",O),()=>y.removeEventListener("change",O)},[]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView;if(!y||!n?.has(Fd))return;let O=new y.AbortController,Y=O.signal;return n.text(Fd,Y).then(Z=>{Y.aborted||kt(a1(Z))}).catch(()=>{Y.aborted||Wn(!0)}),()=>O.abort()},[n]);function ca(y){re.current=y,le.current&&(le.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Ya(){let y=o.current;if(!y)return;let O=1/0,Y=-1/0,Z=1/0,ue=-1/0,Q=(Pe,At,ei,ti)=>{O=Math.min(O,Pe),Y=Math.max(Y,Pe+ei),Z=Math.min(Z,At),ue=Math.max(ue,At+ti)};for(let{bounds:Pe,strip:At}of T.cards)At||Q(Pe.x-Pe.width/2,Pe.y-Pe.height/2,Pe.width,Pe.height);for(let{x:Pe,y:At,width:ei,height:ti}of T.strips.values())Q(Pe,At,ei,ti);if($.current=!1,y.clientWidth<u1){let Pe=W.current?W.current.offsetHeight+10:0,At=y.clientWidth-32,ei=y.clientHeight-32-Pe,ti=Y-O,al=ue-Z,Ti=Math.max(.25,Math.min(1,At/ti,ei/al)),Mr=ti*Ti<=At?(O+Y)/2:H.bounds.x,m1=al*Ti<=ei?(Z+ue)/2:H.bounds.y;ca({x:-Mr*Ti,y:-m1*Ti-Pe/2,scale:Ti});return}let He=Math.max(H.bounds.x-O,Y-H.bounds.x),Nt=Math.max(H.bounds.y-Z,ue-H.bounds.y),Qe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/He,(y.clientHeight/2-22)/Nt));ca({x:-H.bounds.x*Qe,y:-H.bounds.y*Qe,scale:Qe})}function _(y,O,Y){r.cancel(),w.current?.clear();let{x:Z,y:ue,scale:Q}=re.current,He=Math.max(.25,Math.min(3,Q*Y));$.current=!0,ca({x:O.x-(y.x-Z)*He/Q,y:O.y-(y.y-ue)*He/Q,scale:He})}function ae(y){_({x:0,y:0},{x:0,y:0},y)}function Ve(y,O,Y){let Z=y.getBoundingClientRect();return{x:O-Z.left-Z.width/2,y:Y-Z.top-Z.height/2}}(0,J.useLayoutEffect)(()=>{let y=o.current;if(!y)return;Ya(),r.play(c,re.current.scale),U.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),U.current=!1);let O=ue=>{if(Ch(ue,y))return;ue.preventDefault();let Q=Ve(y,ue.clientX,ue.clientY),He=ue.deltaY*(ue.deltaMode===1?16:ue.deltaMode===2?y.clientHeight:1);_(Q,Q,Math.exp(-Math.max(-200,Math.min(200,He))/350))},Y=y.ownerDocument.defaultView,Z=Y?new Y.ResizeObserver(()=>{$.current||Ya()}):null;return Z?.observe(y),y.addEventListener("wheel",O,{passive:!1}),()=>{Z?.disconnect(),y.removeEventListener("wheel",O)}},[e,c,p,s,v,E]);function cn(y,O){let Y=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:Y})&&y!==c&&(U.current=O)}function Xt(){u.changeCanvas({sidecar:!1}),q.current?.focus()}function Ei(y){u.activate(y)}function sa(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let O=new URL(y);return O.search="",O.hash="",O}function qa(y,O){yt(null),bt(null),Ln(!1),se({id:y,anchor:O})}function zn(y,O){se(null),bt(null),w.current?.clear(),yt({anchor:y,point:O})}function Pt(y,O,Y=!1){return(0,V.jsxs)("nav",{className:`kplex-publication-trail ${Y?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":O,children:[(0,V.jsx)("span",{children:O}),(0,V.jsx)("ol",{ref:Y?ln:void 0,children:y.map(Z=>{let ue=e.published.get(Z.id),Q=ue?.style,He=Q?.icon??ue?.trailIcon,Nt=He===void 0?void 0:e.manifest?.icons?.[He];return(0,V.jsx)("li",{children:(0,V.jsxs)("a",{href:Qo(sa(),{...Z,canvas:{...u.attention.canvas,...Z.canvas}}).href,"aria-current":Z.id===c?"location":void 0,style:{backgroundColor:Q?.fill,color:Q?.color,"--kplex-publication-trail-border":Q?.stroke},onClick:Qe=>{Qe.altKey||Qe.ctrlKey||Qe.metaKey||Qe.shiftKey||(Qe.preventDefault(),Ei(Z))},children:[Nt&&(0,V.jsx)(mh,{icon:Nt,size:12}),(0,V.jsx)("span",{children:e.nodes.get(Z.id)?.name})]})},Z.id)})})]})}function $o(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:O,top:Y}=y.currentTarget.getBoundingClientRect();zn(y.currentTarget,{x:O+12,y:Y+12});return}if(!(y.target.matches?.(Ga)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Ya();else if(y.key==="+"||y.key==="=")ae(1.25);else if(y.key==="-")ae(.8);else if(Object.prototype.hasOwnProperty.call(l1,y.key)){let[O,Y]=l1[y.key],Z=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),ue=Z.find(Pe=>Pe===y.target)?.dataset.publicationOccurrence,Q=_c(T,ue?T.cardById.get(ue)??H:H,ne),He=-1,Nt=1/0;for(let[Pe,At]of Z.entries()){let ei=_c(T,T.cardById.get(At.dataset.publicationOccurrence),ne),ti=ei.x-Q.x,al=ei.y-Q.y,Ti=ti*O+al*Y,Mr=Ti+2*Math.abs(ti*Y-al*O);Ti>0&&Mr<Nt&&(He=Pe,Nt=Mr)}let Qe=Z[He];Qe?.focus({preventScroll:!Qe.closest(Ga)})}else return;y.preventDefault()}}}function vr(y){let O=y.currentTarget.ownerDocument.defaultView?.Element;if(!O||!(y.target instanceof O)||C.current.points.size)return;let Y=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),Z=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;Y?w.current?.enter({occurrence:Y,port:Z},y):w.current?.clear()}function Sr(y){if(y.button!==0||(he&&yt(null),X&&se(null),Ch(y,y.currentTarget)))return;let O=C.current;if(O.points.size>=2)return;let Y={...Ve(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};O.points.size===0&&(O.origin=Y,O.moved=!1),O.points.set(y.pointerId,Y)}function fa(y){let O=C.current;if(!O.points.has(y.pointerId))return;let[Y,Z]=O.points.values(),ue=s1(Y,Z),Q={...Ve(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};O.points.set(y.pointerId,Q);let[He,Nt]=O.points.values(),Qe=s1(He,Nt);if(!(!O.moved&&!Nt&&O.origin&&Math.hypot(Q.x-O.origin.x,Q.y-O.origin.y)<5)){if(O.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{O.moved=!0;for(let Pe of O.points.keys())y.currentTarget.setPointerCapture(Pe)}_(ue,Qe,Qe.distance/ue.distance)}}function ja(y){C.current.points.delete(y.pointerId)}let el=e.body(c),tl=()=>u.changeCanvas({siblings:!s}),wr=(0,V.jsx)(xt,{icon:"network",label:L.showSiblings,"data-publication-siblings-toggle":!0,title:s?L.hideSiblings:L.showSiblings,"aria-pressed":s,onClick:tl}),xr=(0,V.jsxs)(V.Fragment,{children:[p==="compass"&&wr,(0,V.jsx)(xt,{icon:"minus",label:L.zoomOut,onClick:()=>ae(.8)}),(0,V.jsx)(xt,{icon:"plus",label:L.zoomIn,onClick:()=>ae(1.25)}),(0,V.jsx)(xt,{icon:"maximize",label:L.fit,onClick:()=>{r.cancel(),Ya()}}),(0,V.jsx)(xt,{icon:"ellipsis",label:L.graphOptions,"aria-haspopup":"menu","aria-expanded":!!he,onClick:y=>zn(y.currentTarget)})]});function Er(y,O){let Y=O?{...y.bounds,x:y.bounds.x-O.x,y:y.bounds.y-O.contentTop}:y.bounds,Z=e.manifest?.icons,ue=y.style?.icon!=null?Z?.[y.style.icon]:void 0;return(0,V.jsxs)(J.Fragment,{children:[(0,V.jsxs)(Sv,{bounds:Y,semanticRole:y.role,className:xi(ke.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:Q=>cn(y.node.id,Q.detail===0),onContextMenu:Q=>{n&&(Q.preventDefault(),qa(y.node.id,Q.currentTarget))},onKeyDown:Q=>{n&&(Q.key==="ContextMenu"||Q.shiftKey&&Q.key==="F10")?(Q.preventDefault(),qa(y.node.id,Q.currentTarget)):(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),cn(y.node.id,!0))},children:[(0,V.jsxs)(xv,{wrap:T.wrap,children:[ue&&(0,V.jsx)(mh,{icon:ue,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,V.jsx)(wv,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:Q,count:He})=>(0,V.jsx)(Ev,{side:Q,connected:He>0,count:He?String(He):null,highlighted:Sn.size>0&&h?.occurrence===y.id&&h.port===Q,"aria-hidden":"true"},Q))]}),y.branch?.canExpand&&(0,V.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?L.collapseBranch:L.expandBranch} · ${y.node.name}`,style:{left:Y.x+16,top:Y.y+Y.height/2+3},onClick:()=>d(Q=>wc(Q,T.projection,{kind:"toggle",occurrenceId:y.id})??Q),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let nl=(0,V.jsxs)("div",{ref:o,className:"kplex-publication-viewport",role:"group","aria-label":I,tabIndex:0,onKeyDown:$o,onPointerOver:vr,onPointerDown:Sr,onPointerMove:fa,onPointerUp:ja,onPointerCancel:ja,onLostPointerCapture:ja,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),zn(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{w.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||ja(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!Ch(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,V.jsxs)("div",{className:"kplex-camera",ref:le,children:[(0,V.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,V.jsx)(Rv,{prefix:t}),ua.map(({edge:y,route:O})=>{let{id:Y,source:Z,target:ue,label:Q,stroke:He,strokeWidth:Nt,startHead:Qe,endHead:Pe}=y;return(0,V.jsxs)("g",{className:`kplex-edge${xi(Sn.has(Y))}`,"data-publication-source":Z,"data-publication-target":ue,"data-publication-crosslink":y.crossLink||void 0,children:[(0,V.jsx)(Tv,{d:O.d,stroke:He??"var(--kplex-publication-link)",strokeWidth:Nt??1.2,markerStart:oh(Qe,t),markerEnd:oh(Pe,t)}),S&&(0,V.jsx)(Mv,{label:Q,midpoint:O.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},Y)})]}),(0,V.jsx)("div",{className:"kplex-nodes",children:T.cards.map(y=>y.strip?null:Er(y))}),[...T.strips].map(([y,O])=>(0,V.jsx)(Qv,{id:y,panel:O,start:ne[y]??O.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?L.lateral:CT[y],onScroll:Y=>K(Z=>{let ue=Z?.attention===c?Z.offsets:c1;return ue[y]===Y?Z:{attention:c,offsets:{...ue,[y]:Y}}}),children:T.cards.map(Y=>Y.strip===y?Er(Y,O):null)},JSON.stringify([c,y])))]}),(0,V.jsx)("div",{className:"kplex-publication-exits",ref:l,"aria-hidden":"true"})]}),Tr=X?Av(e,X.id):void 0,Xa=X&&{id:X.id,canvas:{...f,theme:jt}},il=Be==="both"?o1(Mt,rn):Be?{...Mt,colorScheme:rn}:Mt;return(0,V.jsxs)("main",{ref:a,className:`kplex-publication${n?" kplex-publication-production":""}`,style:il,onKeyDown:i?void 0:y=>We.current(y.nativeEvent),children:[(0,V.jsxs)("header",{className:"kplex-publication-header",children:[(0,V.jsxs)("div",{className:"kplex-publication-heading",children:[(0,V.jsx)(Bv,{}),(0,V.jsx)("h1",{children:e.title})]}),(0,V.jsxs)("div",{className:"kplex-publication-controls",children:[(0,V.jsx)(xt,{icon:"arrow-left",label:L.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Ah.back,title:L.backTooltip}),(0,V.jsx)(xt,{icon:"arrow-right",label:L.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Ah.forward,title:L.forwardTooltip}),n?(0,V.jsx)(xt,{ref:q,icon:zT[G],label:b?L.hideSidecar:L.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${z}`,"aria-keyshortcuts":Ah.sidecar,title:b?L.hideSidecarTooltip:L.showSidecarTooltip,onClick:ra}):xr,Be==="both"&&(0,V.jsx)(xt,{icon:un,label:Ia.trigger($n),"aria-haspopup":"menu","aria-expanded":!!Ee,onClick:y=>{yt(null),se(null),bt(Ee?null:y.currentTarget)}})]}),n&&(0,V.jsx)(u0,{publication:e,resources:n,page:sa,searchFocus:ie,onChoose:Ei}),n&&Rt?.length?Pt(Rt.map(y=>({id:Nn(y)})),L.pins):null]}),n?(0,V.jsx)(O0,{sidecarId:`sidecar-${z}`,sidecarOpen:b,dock:G,canDockLaterally:x,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,V.jsxs)("div",{className:"kplex-publication-canvas",children:[nl,(0,V.jsx)("div",{ref:W,className:"kplex-publication-controls kplex-publication-camera-actions",children:xr}),(0,V.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,V.jsx)("p",{children:u.addressProblem==="ambiguous"?L.ambiguousAddress:L.nodeUnavailable}),T.truncated&&(0,V.jsx)("p",{children:L.sceneLimited}),wi&&(0,V.jsx)("p",{children:L.themeUnavailable}),Ke&&(0,V.jsx)("p",{children:L.addressCopied})]})]}),renderSidecar:(y,O)=>(0,V.jsx)(N0,{publication:e,resources:n,id:`sidecar-${z}`,contentScope:`${t}-document`,location:u.attention,colorMode:rn,onClose:Xt,onNavigate:Ei,dock:y,onSwitchDock:O})}):(0,V.jsxs)(V.Fragment,{children:[nl,(0,V.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":z,"aria-live":"polite",children:[(0,V.jsx)("h2",{id:z,children:H.node.name}),el&&(0,V.jsx)("p",{children:el})]})]}),n&&u.visits.length>1&&Pt(u.visits,L.history,!0),(0,V.jsx)(jv,{dialog:ee}),Ee&&(0,V.jsx)(hr,{anchor:Ee,variant:"theme",onDismiss:()=>bt(null),choices:r1.map(([y,O,Y])=>({label:O,icon:Y,kind:"menuitemradio",checked:jt===y,select:()=>u.changeCanvas({theme:y})}))}),he&&(0,V.jsx)(hr,{anchor:he.anchor,point:he.point,onDismiss:()=>yt(null),choices:[{label:L.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:L.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:L.crossLinks,kind:"menuitemcheckbox",checked:m,select:()=>u.changeCanvas({crosslinks:!m})},...p==="compass"?[{label:L.showSiblings,kind:"menuitemcheckbox",checked:s,select:tl}]:[],{label:L.linkOntology,kind:"menuitemcheckbox",checked:S,select:()=>u.changeCanvas({ontology:!S})},...n?[{label:L.sidecar,choices:[{label:L.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...LT.filter(([y])=>x||y==="bottom").map(([y,O])=>({label:O,kind:"menuitemradio",checked:b&&G===y,select:()=>u.changeCanvas(x?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...Be==="both"?OT.map(([y,O])=>({label:O,kind:"menuitemradio",checked:jt===y,select:()=>u.changeCanvas({theme:y})})):[],...ph?[{label:L.licenses,kind:"menuitem",select:()=>ee.current?.showModal()}]:[]]}),n&&X&&Xa&&(0,V.jsx)(_v,{anchor:X.anchor,address:Qo(sa(),Xa).href,shortAddress:Tr&&Qo(sa(),Xa,Tr).href,onDismiss:y=>{se(null),y&&X.anchor.isConnected&&X.anchor.focus({preventScroll:!0})},onCopied:()=>Ln(!0)},X.id)]})}var h1=j(pe(),1),Oh=new WeakSet,DT=0;function DA(e,t,{publicationUrl:n}={}){return Lh(e,t,n)}function HA(e,t,n){return Lh(e,t,n,!0)}function kA(e,t,n){return Lh(e,t,void 0,!0,n)}function Lh(e,t,n,i=!1,a){let o=e.ownerDocument.defaultView,l=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=S=>{let b=Cv(S);if(b.manifest&&(!o?.crypto.subtle||!a&&l.origin!==o.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&o?a?.(b.manifest)??T0(o,l,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(Oh.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++DT}`,f=(0,d1.createRoot)(e,{identifierPrefix:c});Oh.add(e);let p=0,s=!1,m=({publication:S,resources:b})=>{i&&(e.ownerDocument.title=S.title),f.render((0,h1.jsx)(f1,{publication:S,markerPrefix:c,resources:b,browser:i&&b&&o?o:void 0},p++))};return m(u),{update(S){if(s)throw new Error("Publication mount has been disposed");m(r(S))},dispose(){if(!s){s=!0;try{f.unmount()}finally{Oh.delete(e)}}}}}export{M as a,L as b,CN as c,DA as d,HA as e,kA as f};
8
+ `+i.stack}}var Vs=Object.prototype.hasOwnProperty,qf=Fe.unstable_scheduleCallback,ts=Fe.unstable_cancelCallback,K1=Fe.unstable_shouldYield,Q1=Fe.unstable_requestPaint,Ft=Fe.unstable_now,Z1=Fe.unstable_getCurrentPriorityLevel,eg=Fe.unstable_ImmediatePriority,tg=Fe.unstable_UserBlockingPriority,yu=Fe.unstable_NormalPriority,I1=Fe.unstable_LowPriority,ng=Fe.unstable_IdlePriority,J1=Fe.log,F1=Fe.unstable_setDisableYieldValue,Xo=null,$t=null;function Li(e){if(typeof J1=="function"&&F1(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Xo,e)}catch{}}var Wt=Math.clz32?Math.clz32:eS,$1=Math.log,W1=Math.LN2;function eS(e){return e>>>=0,e===0?32:31-($1(e)/W1|0)|0}var Ar=256,zr=262144,Or=4194304;function dl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~a,i!==0?l=dl(i):(o&=r,o!==0?l=dl(o):n||(n=r&~e,n!==0&&(l=dl(n))))):(r=i&~a,r!==0?l=dl(r):o!==0?l=dl(o):n||(n=i&~e,n!==0&&(l=dl(n)))),l===0?0:t!==0&&t!==l&&(t&a)===0&&(a=l&-l,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:l}function Ko(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ig(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),l=1<<i;t|=e[i],n&=~l}return t}function tS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lg(){var e=Or;return Or<<=1,(Or&62914560)===0&&(Or=4194304),e}function ns(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qo(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nS(e,t,n,i,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var h=s[f];h!==null&&(h.lane&=-536870913)}n&=~p}i!==0&&ag(e,i,0),a!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ag(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function og(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),l=1<<i;l&t|e[i]&t&&(e[i]|=t),n&=~l}}function rg(e,t){var n=t&-t;return n=(n&42)!==0?1:jf(n),(n&(e.suspendedLanes|t))!==0?0:n}function jf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ug(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:qb(e.type))}function mh(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var yi=Math.random().toString(36).slice(2),ut="__reactFiber$"+yi,Bt="__reactProps$"+yi,Oa="__reactContainer$"+yi,hh="__reactEvents$"+yi,iS="__reactListeners$"+yi,lS="__reactHandles$"+yi,ph="__reactResources$"+yi,Zo="__reactMarker$"+yi,bu="__reactLoad$"+yi;function ju(e){delete e[ut],delete e[Bt],delete e[iS],delete e[lS]}function pl(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Dp(e);e!==null;){if(n=e[ut])return n;e=Dp(e)}return t}e=n,n=e.parentNode}return null}function Da(e){if(e=e[ut]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(R(33))}function ua(e){var t=e[ph];return t||(t=e[ph]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Zo]=!0}function cg(e){e[bu]=void 0}var sg=new Set,fg={};function Ol(e,t){va(e,t),va(e+"Capture",t)}function va(e,t){for(fg[e]=t,e=0;e<t.length;e++)sg.add(t[e])}var aS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gh={},yh={};function oS(e){return Vs.call(yh,e)?!0:Vs.call(gh,e)?!1:aS.test(e)?yh[e]=!0:(gh[e]=!0,!1)}var pe=!1;function bh(){var e=pe;return pe=!1,e}function Ir(e,t,n){if(oS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Dr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ai(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,a=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){if(!e._valueTracker){var t=dg(e)?"checked":"value";e._valueTracker=rS(e,t,""+e[t])}}function mg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=dg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var uS=/[\n"\\]/g;function sn(e){return e.replace(uS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gs(e,t,n,i,l,a,o,r){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?is(e,Qt(e.value)):is(e,Qt(t)):n!=null?is(e,Qt(n)):i!=null&&e.removeAttribute("value"),l==null&&a!=null&&(e.defaultChecked=!!a),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function hg(e,t,n,i,l,a,o,r){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Bs(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Bs(e)}function is(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ca(e,t,n,i){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function pg(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function gg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(R(92));if(so(i)){if(1<i.length)throw Error(R(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Bs(e)}function Sa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||cS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yg(e,t,n){if(t!=null&&typeof t!="object")throw Error(R(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",pe=!0);for(var l in t)i=t[l],t.hasOwnProperty(l)&&n[l]!==i&&(vh(e,l,i),pe=!0)}else for(var a in t)t.hasOwnProperty(a)&&vh(e,a,t[a])}function Kf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jr(e){return fS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bn(){}var Ys=null;function Qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,sa=null;function Sh(e){var t=Da(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var l=i[Bt]||null;if(!l)throw Error(R(90));Gs(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&mg(i)}break e;case"textarea":pg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ca(e,!!n.multiple,t,!1)}}}var ls=!1;function bg(e,t,n){if(ls)return e(t,n);ls=!0;try{var i=e(t);return i}finally{if(ls=!1,(Wl!==null||sa!==null)&&(lc(),Wl&&(t=Wl,e=sa,sa=Wl=null,Sh(t),e)))for(t=0;t<e.length;t++)Sh(e[t])}}function Ao(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Bt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qs=!1;if(fi)try{jl={},Object.defineProperty(jl,"passive",{get:function(){qs=!0}}),window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch{qs=!1}var jl,_i=null,Zf=null,Fr=null;function vg(){if(Fr)return Fr;var e,t=Zf,n=t.length,i,l="value"in _i?_i.value:_i.textContent,a=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(i=1;i<=o&&t[n-i]===l[a-i];i++);return Fr=l.slice(e,1<i?1-i:void 0)}function $r(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lr(){return!0}function xh(){return!1}function zt(e){function t(n,i,l,a,o){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(a):a[r]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Lr:xh,this.isPropagationStopped=xh,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lr)},persist:function(){},isPersistent:Lr}),t}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xu=zt(el),Io=Re({},el,{view:0,detail:0}),dS=zt(Io),as,os,lo,Ku=Re({},Io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:If,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lo&&(lo&&e.type==="mousemove"?(as=e.screenX-lo.screenX,os=e.screenY-lo.screenY):os=as=0,lo=e),as)},movementY:function(e){return"movementY"in e?e.movementY:os}}),wh=zt(Ku),mS=Re({},Ku,{dataTransfer:0}),hS=zt(mS),pS=Re({},Io,{relatedTarget:0}),rs=zt(pS),gS=Re({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),yS=zt(gS),bS=Re({},el,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vS=zt(bS),SS=Re({},el,{data:0}),Mh=zt(SS),xS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},MS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ES(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MS[e])?!!t[e]:!1}function If(){return ES}var TS=Re({},Io,{key:function(e){if(e.key){var t=xS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$r(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:If,charCode:function(e){return e.type==="keypress"?$r(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$r(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NS=zt(TS),RS=Re({},Ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eh=zt(RS),CS=Re({},el,{submitter:0}),AS=zt(CS),zS=Re({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:If}),OS=zt(zS),DS=Re({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),LS=zt(DS),_S=Re({},Ku,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),HS=zt(_S),US=Re({},el,{newState:0,oldState:0,source:0}),PS=zt(US),kS=[9,13,27,32],Jf=fi&&"CompositionEvent"in window,po=null;fi&&"documentMode"in document&&(po=document.documentMode);var VS=fi&&"TextEvent"in window&&!po,Sg=fi&&(!Jf||po&&8<po&&11>=po),Th=" ",Nh=!1;function xg(e,t){switch(e){case"keyup":return kS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function BS(e,t){switch(e){case"compositionend":return wg(t);case"keypress":return t.which!==32?null:(Nh=!0,Th);case"textInput":return e=t.data,e===Th&&Nh?null:e;default:return null}}function GS(e,t){if(ea)return e==="compositionend"||!Jf&&xg(e,t)?(e=vg(),Fr=Zf=_i=null,ea=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sg&&t.locale!=="ko"?null:t.data;default:return null}}var YS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YS[e.type]:t==="textarea"}function Mg(e,t,n,i){Wl?sa?sa.push(i):sa=[i]:Wl=i,t=Bu(t,"onChange"),0<t.length&&(n=new Xu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var go=null,zo=null;function qS(e){bb(e,0)}function Qu(e){var t=fo(e);if(mg(t))return e}function Ch(e,t){if(e==="change")return t}var Eg=!1;fi&&(fi?(Hr="oninput"in document,Hr||(us=document.createElement("div"),us.setAttribute("oninput","return;"),Hr=typeof us.oninput=="function"),_r=Hr):_r=!1,Eg=_r&&(!document.documentMode||9<document.documentMode));var _r,Hr,us;function Ah(){go&&(go.detachEvent("onpropertychange",Tg),zo=go=null)}function Tg(e){if(e.propertyName==="value"&&Qu(zo)){var t=[];Mg(t,zo,e,Qf(e)),bg(qS,t)}}function jS(e,t,n){e==="focusin"?(Ah(),go=t,zo=n,go.attachEvent("onpropertychange",Tg)):e==="focusout"&&Ah()}function XS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qu(zo)}function KS(e,t){if(e==="click")return Qu(t)}function QS(e,t){if(e==="input"||e==="change")return Qu(t)}function ZS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:ZS;function Oo(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!Vs.call(t,l)||!tn(e[l],t[l]))return!1}return!0}function js(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oh(e,t){var n=zh(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zh(n)}}function Ng(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ng(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=js(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=js(e.document)}return t}function Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var IS=fi&&"documentMode"in document&&11>=document.documentMode,ta=null,Xs=null,yo=null,Ks=!1;function Dh(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ks||ta==null||ta!==js(i)||(i=ta,"selectionStart"in i&&Ff(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),yo&&Oo(yo,i)||(yo=i,i=Bu(Xs,"onSelect"),0<i.length&&(t=new Xu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ta)))}function sl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var na={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},cs={},Cg={};fi&&(Cg=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function Dl(e){if(cs[e])return cs[e];if(!na[e])return e;var t=na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cg)return cs[e]=t[n];return e}var Ag=Dl("animationend"),zg=Dl("animationiteration"),Og=Dl("animationstart"),JS=Dl("transitionrun"),FS=Dl("transitionstart"),$S=Dl("transitioncancel"),Dg=Dl("transitionend"),Lg=new Map,Qs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qs.push("scrollEnd");function wn(e,t){Lg.set(e,t),Ol(t,[e])}var WS=0;function di(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=xn.identifierPrefix;var n=WS++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Lh(e){if(e==null||typeof e=="string")return e;var t=null,n=ya;if(n!==null)for(var i=0;i<n.length;i++){var l=e[n[i]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function bi(e,t){return e=Lh(e),t=Lh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var vu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rn=[],ia=0,$f=0;function Zu(){for(var e=ia,t=$f=ia=0;t<e;){var n=rn[t];rn[t++]=null;var i=rn[t];rn[t++]=null;var l=rn[t];rn[t++]=null;var a=rn[t];if(rn[t++]=null,i!==null&&l!==null){var o=i.pending;o===null?l.next=l:(l.next=o.next,o.next=l),i.pending=l}a!==0&&_g(n,l,a)}}function Iu(e,t,n,i){rn[ia++]=e,rn[ia++]=t,rn[ia++]=n,rn[ia++]=i,$f|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Wf(e,t,n,i){return Iu(e,t,n,i),Su(e)}function Ll(e,t){return Iu(e,null,null,t),Su(e)}function _g(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var l=!1,a=e.return;a!==null;)a.childLanes|=n,i=a.alternate,i!==null&&(i.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(l=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,l&&t!==null&&(l=31-Wt(n),e=a.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=n|536870912),a):null}function Su(e){if(50<Ro)throw Ro=0,uu=null,Error(R(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var la={};function ex(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new ex(e,t,n,i)}function ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ci(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wr(e,t,n,i,l,a){var o=0;if(i=e,typeof i=="function")ed(i)&&(o=1);else if(typeof i=="string")o=Nw(e,n,qn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case _s:return e=Pt(31,n,t,l),e.elementType=_s,e.lanes=a,e;case Fl:return bl(n.children,l,a,t);case $p:o=8,l|=24;break;case Os:return e=Pt(12,n,t,l|2),e.elementType=Os,e.lanes=a,e;case Ds:return e=Pt(13,n,t,l),e.elementType=Ds,e.lanes=a,e;case Ls:return e=Pt(19,n,t,l),e.elementType=Ls,e.lanes=a,e;case G1:case Hs:return e=l|32,e=Pt(30,n,t,e),e.elementType=Hs,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Vn:o=10;break e;case Wp:o=9;break e;case Gf:o=11;break e;case Yf:o=14;break e;case zi:o=16,i=null;break e}o=29,n=Error(R(130,e===null?"null":typeof e,"")),i=null}return t=Pt(o,n,t,l),t.elementType=e,t.type=i,t.lanes=a,t}function bl(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function ss(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ug(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function fs(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _h=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var n=_h.get(e);return n!==void 0?n:(t={value:e,source:t,stack:dh(t)},_h.set(e,t),t)}return{value:e,source:t,stack:dh(t)}}var aa=[],oa=0,xu=null,Do=0,un=[],cn=0,Ii=null,Gn=1,Yn="";function ri(e,t){aa[oa++]=Do,aa[oa++]=xu,xu=e,Do=t}function Pg(e,t,n){un[cn++]=Gn,un[cn++]=Yn,un[cn++]=Ii,Ii=e;var i=Gn;e=Yn;var l=32-Wt(i)-1;i&=~(1<<l),n+=1;var a=32-Wt(t)+l;if(30<a){var o=l-l%5;a=(i&(1<<o)-1).toString(32),i>>=o,l-=o,Gn=1<<32-Wt(t)+l|n<<l|i,Yn=a+e}else Gn=1<<a|n<<l|i,Yn=e}function Ju(e){e.return!==null&&(ri(e,1),Pg(e,1,0))}function td(e){for(;e===xu;)xu=aa[--oa],aa[oa]=null,Do=aa[--oa],aa[oa]=null;for(;e===Ii;)Ii=un[--cn],un[cn]=null,Yn=un[--cn],un[cn]=null,Gn=un[--cn],un[cn]=null}function kg(e,t){un[cn++]=Gn,un[cn++]=Yn,un[cn++]=Ii,Gn=t.id,Yn=t.overflow,Ii=e}var ot=null,ze=null,oe=!1,Bi=null,dn=!1,Zs=Error(R(519));function Ji(e){var t=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Lo(fn(t,e)),Zs}function Hh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Bt]=i,n){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(n=0;n<Po.length;n++)ce(Po[n],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),hg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),gg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Sb(t.textContent,n)?(i.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),i.onScroll!=null&&ce("scroll",t),i.onScrollEnd!=null&&ce("scrollend",t),i.onClick!=null&&(t.onclick=Bn),t=!0):t=!1,t||Ji(e,!0)}function wu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:ot=ot.return}}function Xl(e){if(e!==ot)return!1;if(!oe)return wu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lf(e.type,e.memoizedProps)),n=!n),n&&ze&&Ji(e),wu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=Op(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=Op(e)}else t===27?(t=ze,tl(e.type)?(e=Pf,Pf=null,ze=e):ze=t):ze=ot?mn(e.stateNode.nextSibling):null;return!0}function wl(){ze=ot=null,oe=!1}function ds(){var e=Bi;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),Bi=null),e}function Lo(e){Bi===null?Bi=[e]:Bi.push(e)}var Is=Kn(null),_l=null,ui=null;function Hi(e,t,n){Oe(Is,t._currentValue),t._currentValue=n}function si(e){e._currentValue=Is.current,st(Is)}function eu(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Js(e,t,n,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var a=l.dependencies;if(a!==null){var o=l.child;a=a.firstContext;e:for(;a!==null;){var r=a;a=l;for(var u=0;u<t.length;u++)if(r.context===t[u]){a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),eu(a.return,n,e),i||(o=null);break e}a=r.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),eu(o,n,e),o=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),eu(l.return,n,e),o=l.child,o=o!==null?o.sibling:null):o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function Ml(e,t,n,i){e=null;for(var l=t,a=!1;l!==null;){if(!a){if((l.flags&524288)!==0)a=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(R(387));if(o=o.memoizedProps,o!==null){var r=l.type;tn(l.pendingProps.value,o.value)||(e!==null?e.push(r):e=[r])}}else if(l===hu.current){if(o=l.alternate,o===null)throw Error(R(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ca):e=[Ca])}l=l.return}return e!==null&&Js(t,e,n,i),t.flags|=262144,e!==null}function Mu(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){_l=e,ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Vg(_l,e)}function Ur(e,t){return _l===null&&El(e),Vg(e,t)}function Vg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ui===null){if(e===null)throw Error(R(308));ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ui=ui.next=t;return n}var tx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},nx=Fe.unstable_scheduleCallback,ix=Fe.unstable_NormalPriority,Qe={$$typeof:Vn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nd(){return{controller:new tx,data:new Map,refCount:0}}function Jo(e){e.refCount--,e.refCount===0&&nx(ix,function(){e.controller.abort()})}function Uh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var mo=null;function lx(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var bo=null,Fs=0,Tl=0,fa=null;function ax(e,t){if(bo===null){var n=bo=[];Fs=0,Tl=zd(),fa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fs++,t.then(Ph,Ph),t}function Ph(){if(--Fs===0&&(mo=null,bo!==null)){fa!==null&&(fa.status="fulfilled");var e=bo;bo=null,Tl=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ox(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var kh=Q.S;Q.S=function(e,t){if(ib=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ax(e,t),mo!==null)for(var n=Ta;n!==null;)Uh(n,mo),n=n.next;if(n=e.types,n!==null){for(var i=Ta;i!==null;)Uh(i,n),i=i.next;if(Tl!==0){i=mo,i===null&&(i=mo=[]);for(var l=0;l<n.length;l++){var a=n[l];i.indexOf(a)===-1&&i.push(a)}}}kh!==null&&kh(e,t)};var vl=Kn(null);function id(){var e=vl.current;return e!==null?e:Ne.pooledCache}function tu(e,t){t===null?Oe(vl,vl.current):Oe(vl,t.pool)}function Bg(){var e=id();return e===null?null:{parent:Qe._currentValue,pool:e}}var La=Error(R(460)),ld=Error(R(474)),Fu=Error(R(542)),Eu={then:function(){}};function Vh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Bn,Bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e===void 0&&!("reason"in t)?Error(R(600)):e;default:if(typeof t.status=="string")t.then(Bn,Bn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(R(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=i}},function(i){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e}throw Sl=t,La}}function ml(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sl=n,La):n}}var Sl=null;function Bh(){if(Sl===null)throw Error(R(459));var e=Sl;return Sl=null,e}function Gh(e){if(e===La||e===Fu)throw Error(R(483))}var da=null,_o=0;function Pr(e){var t=_o;return _o+=1,da===null&&(da=[]),Gg(da,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kr(e,t){throw t.$$typeof===B1?Error(R(525)):(e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yg(e){function t(m,d){if(e){var g=m.deletions;g===null?(m.deletions=[d],m.flags|=16):g.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function i(m){for(var d=new Map;m!==null;)m.key===null?d.set(m.index,m):d.set(m.key,m),m=m.sibling;return d}function l(m,d){return m=ci(m,d),m.index=0,m.sibling=null,m}function a(m,d,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<d?(m.flags|=2,d):g):(m.flags|=134217730,d)):(m.flags|=1048576,d)}function o(m){return e&&m.alternate===null&&(m.flags|=134217730),m}function r(m,d,g,x){return d===null||d.tag!==6?(d=ss(g,m.mode,x),d.return=m,d):(d=l(d,g),d.return=m,d)}function u(m,d,g,x){var M=g.type;return M===Fl?(m=f(m,d,g.props.children,x,g.key),Ri(m,g),m):d!==null&&(d.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zi&&ml(M)===d.type)?(d=l(d,g.props),Ri(d,g),d.return=m,d):(d=Wr(g.type,g.key,g.props,null,m.mode,x),Ri(d,g),d.return=m,d)}function c(m,d,g,x){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=fs(g,m.mode,x),d.return=m,d):(d=l(d,g.children||[]),d.return=m,d)}function f(m,d,g,x,M){return d===null||d.tag!==7?(d=bl(g,m.mode,x,M),d.return=m,d):(d=l(d,g),d.return=m,d)}function p(m,d,g){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=ss(""+d,m.mode,g),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Cr:return g=Wr(d.type,d.key,d.props,null,m.mode,g),Ri(g,d),g.return=m,g;case co:return d=fs(d,m.mode,g),d.return=m,d;case zi:return d=ml(d),p(m,d,g)}if(so(d)||io(d))return d=bl(d,m.mode,g,null),d.return=m,d;if(typeof d.then=="function")return p(m,Pr(d),g);if(d.$$typeof===Vn)return p(m,Ur(m,d),g);kr(m,d)}return null}function s(m,d,g,x){var M=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return M!==null?null:r(m,d,""+g,x);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Cr:return g.key===M?u(m,d,g,x):null;case co:return g.key===M?c(m,d,g,x):null;case zi:return g=ml(g),s(m,d,g,x)}if(so(g)||io(g))return M!==null?null:f(m,d,g,x,null);if(typeof g.then=="function")return s(m,d,Pr(g),x);if(g.$$typeof===Vn)return s(m,d,Ur(m,g),x);kr(m,g)}return null}function h(m,d,g,x,M){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return m=m.get(g)||null,r(d,m,""+x,M);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Cr:return m=m.get(x.key===null?g:x.key)||null,u(d,m,x,M);case co:return m=m.get(x.key===null?g:x.key)||null,c(d,m,x,M);case zi:return x=ml(x),h(m,d,g,x,M)}if(so(x)||io(x))return m=m.get(g)||null,f(d,m,x,M,null);if(typeof x.then=="function")return h(m,d,g,Pr(x),M);if(x.$$typeof===Vn)return h(m,d,g,Ur(d,x),M);kr(d,x)}return null}function S(m,d,g,x){for(var M=null,T=null,w=d,N=d=0,V=null;w!==null&&N<g.length;N++){w.index>N?(V=w,w=null):V=w.sibling;var E=s(m,w,g[N],x);if(E===null){w===null&&(w=V);break}e&&w&&E.alternate===null&&t(m,w),d=a(E,d,N),T===null?M=E:T.sibling=E,T=E,w=V}if(N===g.length)return n(m,w),oe&&ri(m,N),M;if(w===null){for(;N<g.length;N++)w=p(m,g[N],x),w!==null&&(d=a(w,d,N),T===null?M=w:T.sibling=w,T=w);return oe&&ri(m,N),M}for(w=i(w);N<g.length;N++)V=h(w,m,N,g[N],x),V!==null&&(e&&(E=V.alternate,E!==null&&w.delete(E.key===null?N:E.key)),d=a(V,d,N),T===null?M=V:T.sibling=V,T=V);return e&&w.forEach(function(k){return t(m,k)}),oe&&ri(m,N),M}function b(m,d,g,x){if(g==null)throw Error(R(151));for(var M=null,T=null,w=d,N=d=0,V=null,E=g.next();w!==null&&!E.done;N++,E=g.next()){w.index>N?(V=w,w=null):V=w.sibling;var k=s(m,w,E.value,x);if(k===null){w===null&&(w=V);break}e&&w&&k.alternate===null&&t(m,w),d=a(k,d,N),T===null?M=k:T.sibling=k,T=k,w=V}if(E.done)return n(m,w),oe&&ri(m,N),M;if(w===null){for(;!E.done;N++,E=g.next())E=p(m,E.value,x),E!==null&&(d=a(E,d,N),T===null?M=E:T.sibling=E,T=E);return oe&&ri(m,N),M}for(w=i(w);!E.done;N++,E=g.next())E=h(w,m,N,E.value,x),E!==null&&(e&&(V=E.alternate,V!==null&&w.delete(V.key===null?N:V.key)),d=a(E,d,N),T===null?M=E:T.sibling=E,T=E);return e&&w.forEach(function(L){return t(m,L)}),oe&&ri(m,N),M}function v(m,d,g,x){if(typeof g=="object"&&g!==null&&g.type===Fl&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Cr:e:{for(var M=g.key;d!==null;){if(d.key===M){if(M=g.type,M===Fl){if(d.tag===7){n(m,d.sibling),x=l(d,g.props.children),Ri(x,g),x.return=m,m=x;break e}}else if(d.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zi&&ml(M)===d.type){n(m,d.sibling),x=l(d,g.props),Ri(x,g),x.return=m,m=x;break e}n(m,d);break}else t(m,d);d=d.sibling}g.type===Fl?(x=bl(g.props.children,m.mode,x,g.key),Ri(x,g),x.return=m,m=x):(x=Wr(g.type,g.key,g.props,null,m.mode,x),Ri(x,g),x.return=m,m=x)}return o(m);case co:e:{for(M=g.key;d!==null;){if(d.key===M)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),x=l(d,g.children||[]),x.return=m,m=x;break e}else{n(m,d);break}else t(m,d);d=d.sibling}x=fs(g,m.mode,x),x.return=m,m=x}return o(m);case zi:return g=ml(g),v(m,d,g,x)}if(so(g))return S(m,d,g,x);if(io(g)){if(M=io(g),typeof M!="function")throw Error(R(150));return g=M.call(g),b(m,d,g,x)}if(typeof g.then=="function")return v(m,d,Pr(g),x);if(g.$$typeof===Vn)return v(m,d,Ur(m,g),x);kr(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),x=l(d,g),x.return=m,m=x):(n(m,d),x=ss(g,m.mode,x),x.return=m,m=x),o(m)):n(m,d)}return function(m,d,g,x){try{_o=0;var M=v(m,d,g,x);return da=null,M}catch(w){if(w===La||w===Fu)throw w;var T=Pt(29,w,null,m.mode);return T.lanes=x,T.return=m,T}finally{}}}var Nl=Yg(!0),qg=Yg(!1),Oi=!1;function ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $s(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ge&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=Su(e),_g(e,null,n),t}return Iu(e,i,t,n),Su(e)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,og(e,n)}}function ms(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?l=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?l=a=t:a=a.next=t}else l=a=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ws=!1;function So(){if(Ws){var e=fa;if(e!==null)throw e}}function xo(e,t,n,i){Ws=!1;var l=e.updateQueue;Oi=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,r=l.shared.pending;if(r!==null){l.shared.pending=null;var u=r,c=u.next;u.next=null,o===null?a=c:o.next=c,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==o&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(a!==null){var p=l.baseState;o=0,f=c=u=null,r=a;do{var s=r.lane&-536870913,h=s!==r.lane;if(h?(de&s)===s:(i&s)===s){s!==0&&s===Tl&&(Ws=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var S=e,b=r;s=t;var v=n;switch(b.tag){case 1:if(S=b.payload,typeof S=="function"){p=S.call(v,p,s);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=b.payload,s=typeof S=="function"?S.call(v,p,s):S,s==null)break e;p=Re({},p,s);break e;case 2:Oi=!0}}s=r.callback,s!==null&&(e.flags|=64,h&&(e.flags|=8192),h=l.callbacks,h===null?l.callbacks=[s]:h.push(s))}else h={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=h,u=p):f=f.next=h,o|=s;if(r=r.next,r===null){if(r=l.shared.pending,r===null)break;h=r,r=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);f===null&&(u=p),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,a===null&&(l.shared.lanes=0),Wi|=o,e.lanes=o,e.memoizedState=p}}function jg(e,t){if(typeof e!="function")throw Error(R(191,e));e.call(t)}function Xg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jg(n[e],t)}var Fi=Kn(null),Tu=Kn(0);function Yh(e,t){e=gi,Oe(Tu,e),Oe(Fi,t),gi=e|t.baseLanes}function ef(){Oe(Tu,gi),Oe(Fi,Fi.current)}function od(){gi=Tu.current,st(Fi),st(Tu)}var mt=Kn(null),bt=null;function qi(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(mt,e),bt===null&&(t===null||Fi.current!==null||t.memoizedState!==null)&&(bt=e)}function tf(e){Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)}function Kg(e){e.tag===22?(Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)):ji()}function ji(){Oe(ft,ft.current),Oe(mt,mt.current)}function Zt(e){st(mt),bt===e&&(bt=null),st(ft)}var ft=Kn(0);function Ho(e,t){Oe(mt,mt.current),Oe(ft,t)}function rd(e){st(ft),st(mt),bt===e&&(bt=null)}function Nu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Uf(n)||_d(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mi=0,ne=null,Me=null,Ke=null,Ru=!1,ma=!1,Rl=!1,Cu=0,Uo=0,ha=null,rx=0;function Ve(){throw Error(R(321))}function ud(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function cd(e,t,n,i,l,a){return mi=a,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?My:Ey,Rl=!1,a=n(i,l),Rl=!1,ma&&(a=Zg(t,n,i,l)),Qg(e),a}function Qg(e){Q.H=Au;var t=Me!==null&&Me.next!==null;if(mi=0,Ke=Me=ne=null,Ru=!1,Uo=0,ha=null,t)throw Error(R(300));e===null||Ze||(e=e.dependencies,e!==null&&Mu(e)&&(Ze=!0))}function Zg(e,t,n,i){ne=e;var l=0;do{if(ma&&(ha=null),Uo=0,ma=!1,25<=l)throw Error(R(301));if(l+=1,Ke=Me=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Q.H=px,a=t(n,i)}while(ma);return a}function ux(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?Fo(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(ne.flags|=1024),t}function sd(){var e=Cu!==0;return Cu=0,e}function fd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function dd(e){if(Ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ru=!1}mi=0,Ke=Me=ne=null,ma=!1,Uo=Cu=0,ha=null}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ye(){if(Me===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ke===null?ne.memoizedState:Ke.next;if(t!==null)Ke=t,Me=e;else{if(e===null)throw ne.alternate===null?Error(R(467)):Error(R(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=Uo;return Uo+=1,ha===null&&(ha=[]),e=Gg(ha,e,t),t=ne,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?My:Ey),e}function Wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fo(e);if(e.$$typeof===q1)return;if(e.$$typeof===Vn)return ct(e)}throw Error(R(438,String(e)))}function md(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ne.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=$u(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=Y1;return t.index++,n}function hi(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=Ye();return hd(t,Me,e)}function hd(e,t,n){var i=e.queue;if(i===null)throw Error(R(311));i.lastRenderedReducer=n;var l=e.baseQueue,a=i.pending;if(a!==null){if(l!==null){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,i.pending=null}if(a=e.baseState,l===null)e.memoizedState=a;else{t=l.next;var r=o=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(de&p)===p:(mi&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Tl&&(f=!0);else if((mi&s)===s){c=c.next,s===Tl&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,o=a):u=u.next=p,ne.lanes|=s,Wi|=s;p=c.action,Rl&&n(a,p),a=c.hasEagerState?c.eagerState:n(a,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,o=a):u=u.next=s,ne.lanes|=p,Wi|=p;c=c.next}while(c!==null&&c!==t);if(u===null?o=a:u.next=r,!tn(a,e.memoizedState)&&(Ze=!0,f&&(n=fa,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=u,i.lastRenderedState=a}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function hs(e){var t=Ye(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,a=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tn(a,t.memoizedState)||(Ze=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Ig(e,t,n){var i=ne,l=Ye(),a=oe;if(a){if(n===void 0)throw Error(R(407));n=n()}else n=t();var o=!tn((Me||l).memoizedState,n);if(o&&(l.memoizedState=n,Ze=!0),l=l.queue,pd($g.bind(null,i,l,e),[e]),e=l.getSnapshot!==t||o||Ke!==null&&(Ke.memoizedState.tag&1)!==0,xa(e?9:8,{destroy:void 0},Fg.bind(null,i,l,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(R(349));a||(mi&127)!==0||Jg(i,t,n)}return n}function Jg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=$u(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fg(e,t,n,i){t.value=n,t.getSnapshot=i,Wg(t)&&ey(e)}function $g(e,t,n){return n(function(){Wg(t)&&ey(e)})}function Wg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function ey(e){var t=Ll(e,2);t!==null&&kt(t,e,2)}function nf(e){var t=At();if(typeof e=="function"){var n=e;if(e=n(),Rl){Li(!0);try{n()}finally{Li(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t}function ty(e,t,n,i){return e.baseState=n,hd(e,Me,typeof i=="function"?i:hi)}function cx(e,t,n,i,l){if(tc(e))throw Error(R(485));if(e=t.action,e!==null){var a={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};Q.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,ny(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ny(e,t){var n=t.action,i=t.payload,l=e.state;if(t.isTransition){var a=Q.T,o={};o.types=a!==null?a.types:null,Q.T=o;try{var r=n(l,i),u=Q.S;u!==null&&u(o,r),qh(e,t,r)}catch(c){lf(e,t,c)}finally{a!==null&&o.types!==null&&(a.types=o.types),Q.T=a}}else try{a=n(l,i),qh(e,t,a)}catch(c){lf(e,t,c)}}function qh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){jh(e,t,i)},function(i){return lf(e,t,i)}):jh(e,t,n)}function jh(e,t,n){t.status="fulfilled",t.value=n,iy(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ny(e,n)))}function lf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,iy(t),t=t.next;while(t!==i)}e.action=null}function iy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ly(e,t){return t}function Xh(e,t){if(oe){var n=Ne.formState;if(n!==null){e:{var i=ne;if(oe){if(ze){t:{for(var l=ze,a=dn;l.nodeType!==8;){if(!a){l=null;break t}if(l=mn(l.nextSibling),l===null){l=null;break t}}a=l.data,l=a==="F!"||a==="F"?l:null}if(l){ze=mn(l.nextSibling),i=l.data==="F!";break e}}Ji(i)}i=!1}i&&(t=n[0])}}return n=At(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ly,lastRenderedState:t},n.queue=i,n=Sy.bind(null,ne,i),i.dispatch=n,i=nf(!1),a=vd.bind(null,ne,!1,i.queue),i=At(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,n=cx.bind(null,ne,l,a,n),l.dispatch=n,i.memoizedState=e,[t,n,!1]}function Kh(e){var t=Ye();return ay(t,Me,e)}function ay(e,t,n){if(t=hd(e,t,ly)[0],e=nu(hi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Fo(t)}catch(o){throw o===La?Fu:o}else i=t;t=Ye();var l=t.queue,a=l.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,xa(9,{destroy:void 0},sx.bind(null,l,n),null)),[i,a,e]}function sx(e,t){e.action=t}function Qh(e){var t=Ye(),n=Me;if(n!==null)return ay(t,n,e);Ye(),t=t.memoizedState,n=Ye();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function xa(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ne.updateQueue,t===null&&(t=$u(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function oy(){return Ye().memoizedState}function iu(e,t,n,i){var l=At();ne.flags|=e,l.memoizedState=xa(1|t,{destroy:void 0},n,i===void 0?null:i)}function ec(e,t,n,i){var l=Ye();i=i===void 0?null:i;var a=l.memoizedState.inst;Me!==null&&i!==null&&ud(i,Me.memoizedState.deps)?l.memoizedState=xa(t,a,n,i):(ne.flags|=e,l.memoizedState=xa(1|t,a,n,i))}function Zh(e,t){iu(8390656,8,e,t)}function pd(e,t){ec(2048,8,e,t)}function fx(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=$u(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ry(e){var t=Ye().memoizedState;return fx({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(R(440));return t.impl.apply(void 0,arguments)}}function uy(e,t){return ec(4,2,e,t)}function cy(e,t){return ec(4,4,e,t)}function sy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fy(e,t,n){n=n!=null?n.concat([e]):null,ec(4,4,sy.bind(null,t,e),n)}function gd(){}function dy(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&ud(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function my(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&ud(t,i[1]))return i[0];if(i=e(),Rl){Li(!0);try{e()}finally{Li(!1)}}return n.memoizedState=[i,t],i}function yd(e,t,n){return n===void 0||(mi&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ab(),ne.lanes|=e,Wi|=e,n)}function hy(e,t,n,i){return tn(n,t)?n:Fi.current!==null?(e=yd(e,n,i),tn(e,t)||(Ze=!0),e):(mi&106)===0||(mi&1073741824)!==0&&(de&261930)===0?(Ze=!0,e.memoizedState=n):(e=ab(),ne.lanes|=e,Wi|=e,t)}function py(e,t,n,i,l){var a=ye.p;ye.p=a!==0&&8>a?a:8;var o=Q.T,r={};r.types=o!==null?o.types:null,Q.T=r,vd(e,!1,t,n);try{var u=l(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=ox(u,i);wo(e,t,f,en(e))}else wo(e,t,i,en(e))}catch(p){wo(e,t,{then:function(){},status:"rejected",reason:p},en())}finally{ye.p=a,o!==null&&r.types!==null&&(o.types=r.types),Q.T=o}}function dx(){}function af(e,t,n,i){if(e.tag!==5)throw Error(R(476));var l=gy(e).queue;py(e,l,t,yl,n===null?dx:function(){return yy(e),n(i)})}function gy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:yl,baseState:yl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:yl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yy(e){var t=gy(e);t.next===null&&(t=e.alternate.memoizedState),wo(e,t.next.queue,{},en())}function bd(){return ct(Ca)}function by(){return Ye().memoizedState}function vy(){return Ye().memoizedState}function mx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=en();e=Gi(n);var i=Yi(t,e,n);i!==null&&(kt(i,t,n),vo(i,t,n)),t={cache:nd()},e.payload=t;return}t=t.return}}function hx(e,t,n){var i=en();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tc(e)?xy(t,n):(n=Wf(e,t,n,i),n!==null&&(kt(n,e,i),wy(n,t,i)))}function Sy(e,t,n){var i=en();wo(e,t,n,i)}function wo(e,t,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(tc(e))xy(t,l);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,r=a(o,n);if(l.hasEagerState=!0,l.eagerState=r,tn(r,o))return Iu(e,t,l,0),Ne===null&&Zu(),!1}catch{}finally{}if(n=Wf(e,t,l,i),n!==null)return kt(n,e,i),wy(n,t,i),!0}return!1}function vd(e,t,n,i){if(i={lane:2,revertLane:zd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tc(e)){if(t)throw Error(R(479))}else t=Wf(e,n,i,2),t!==null&&kt(t,e,2)}function tc(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function xy(e,t){ma=Ru=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,og(e,n)}}var Au={readContext:ct,use:Wu,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve,useEffectEvent:Ve},My={readContext:ct,use:Wu,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,iu(4194308,4,sy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return iu(4194308,4,e,t)},useInsertionEffect:function(e,t){iu(4,2,e,t)},useMemo:function(e,t){var n=At();t=t===void 0?null:t;var i=e();if(Rl){Li(!0);try{e()}finally{Li(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=At();if(n!==void 0){var l=n(t);if(Rl){Li(!0);try{n(t)}finally{Li(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=hx.bind(null,ne,e),[i.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=nf(e);var t=e.queue,n=Sy.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gd,useDeferredValue:function(e,t){var n=At();return yd(n,e,t)},useTransition:function(){var e=nf(!1);return e=py.bind(null,ne,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ne,l=At();if(oe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ne===null)throw Error(R(349));(de&127)!==0||Jg(i,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,Zh($g.bind(null,i,a,e),[e]),i.flags|=2048,xa(9,{destroy:void 0},Fg.bind(null,i,a,n,t),null),n},useId:function(){var e=At(),t=Ne.identifierPrefix;if(oe){var n=Yn,i=Gn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Cu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=rx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bd,useFormState:Xh,useActionState:Xh,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=vd.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:md,useCacheRefresh:function(){return At().memoizedState=mx.bind(null,ne)},useEffectEvent:function(e){var t=At(),n={impl:e};return t.memoizedState=n,function(){if((ge&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},Ey={readContext:ct,use:Wu,useCallback:dy,useContext:ct,useEffect:pd,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:my,useReducer:nu,useRef:oy,useState:function(){return nu(hi)},useDebugValue:gd,useDeferredValue:function(e,t){var n=Ye();return hy(n,Me.memoizedState,e,t)},useTransition:function(){var e=nu(hi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fo(e),t]},useSyncExternalStore:Ig,useId:by,useHostTransitionStatus:bd,useFormState:Kh,useActionState:Kh,useOptimistic:function(e,t){var n=Ye();return ty(n,Me,e,t)},useMemoCache:md,useCacheRefresh:vy,useEffectEvent:ry},px={readContext:ct,use:Wu,useCallback:dy,useContext:ct,useEffect:pd,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:my,useReducer:hs,useRef:oy,useState:function(){return hs(hi)},useDebugValue:gd,useDeferredValue:function(e,t){var n=Ye();return Me===null?yd(n,e,t):hy(n,Me.memoizedState,e,t)},useTransition:function(){var e=hs(hi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fo(e),t]},useSyncExternalStore:Ig,useId:by,useHostTransitionStatus:bd,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,t){var n=Ye();return Me!==null?ty(n,Me,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:md,useCacheRefresh:vy,useEffectEvent:ry};function ps(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var of={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=en(),l=Gi(i);l.payload=t,n!=null&&(l.callback=n),t=Yi(e,l,i),t!==null&&(kt(t,e,i),vo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=en(),l=Gi(i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Yi(e,l,i),t!==null&&(kt(t,e,i),vo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=en(),i=Gi(n);i.tag=2,t!=null&&(i.callback=t),t=Yi(e,i,n),t!==null&&(kt(t,e,n),vo(t,e,n))}};function Ih(e,t,n,i,l,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,o):t.prototype&&t.prototype.isPureReactComponent?!Oo(n,i)||!Oo(l,a):!0}function Jh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&of.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Re({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function Ty(e){vu(e)}function Ny(e){console.error(e)}function Ry(e){vu(e)}function zu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Fh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function rf(e,t,n){return n=Gi(n),n.tag=3,n.payload={element:null},n.callback=function(){zu(e,t)},n}function Cy(e){return e=Gi(e),e.tag=3,e}function Ay(e,t,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var a=i.value;e.payload=function(){return l(a)},e.callback=function(){Fh(t,n,i)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Fh(t,n,i),typeof l!="function"&&(Xi===null?Xi=new Set([this]):Xi.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function gx(e,t,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ml(t,n,l,!0),n=mt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?ku():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Eu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ws(e,i,l)),!1;case 22:return n.flags|=65536,i===Eu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ws(e,i,l)),!1}throw Error(R(435,n.tag))}return ws(e,i,l),ku(),!1}if(oe)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==Zs&&(e=Error(R(422),{cause:i}),Lo(fn(e,n)))):(i!==Zs&&(t=Error(R(423),{cause:i}),Lo(fn(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=fn(i,n),l=rf(e.stateNode,i,l),ms(e,l),Be!==4&&(Be=2)),!1;var a=Error(R(520),{cause:i});if(a=fn(a,n),No===null?No=[a]:No.push(a),Be!==4&&(Be=2),t===null)return!0;i=fn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=rf(n.stateNode,i,e),ms(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Xi===null||!Xi.has(a))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Cy(l),Ay(l,e,n,i),ms(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Sd=Error(R(461)),Ze=!1;function Ie(e,t,n,i){t.child=e===null?qg(t,null,n,i):Nl(t,e.child,n,i)}function $h(e,t,n,i,l){n=n.render;var a=t.ref;if("ref"in i){var o={};for(var r in i)r!=="ref"&&(o[r]=i[r])}else o=i;return El(t),i=cd(e,t,n,o,a,l),r=sd(),e!==null&&!Ze?(fd(e,t,l),pi(e,t,l)):(oe&&r&&Ju(t),t.flags|=1,Ie(e,t,i,l),t.child)}function Wh(e,t,n,i,l){if(e===null){var a=n.type;return typeof a=="function"&&!ed(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,zy(e,t,a,i,l)):(e=Wr(n.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wd(e,l)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Oo,n(o,i)&&e.ref===t.ref)return pi(e,t,l)}return t.flags|=1,e=ci(a,i),e.ref=t.ref,e.return=t,t.child=e}function zy(e,t,n,i,l){if(e!==null){var a=e.memoizedProps;if(Oo(a,i)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=i=a,wd(e,l))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,pi(e,t,l)}return uf(e,t,n,i,l)}function Oy(e,t,n,i){var l=i.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~a}else i=0,t.child=null;return ep(e,t,a,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&tu(t,a!==null?a.cachePool:null),a!==null?Yh(t,a):ef(),Kg(t);else return i=t.lanes=536870912,ep(e,t,a!==null?a.baseLanes|n:n,n,i)}else a!==null?(tu(t,a.cachePool),Yh(t,a),ji(),t.memoizedState=null):(e!==null&&tu(t,null),ef(),ji());return Ie(e,t,l,n),t.child}function Mo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ep(e,t,n,i,l){var a=id();return a=a===null?null:{parent:Qe._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&tu(t,null),ef(),Kg(t),e!==null&&Ml(e,t,i,!0),t.childLanes=l,null}function lu(e,t){return t=nc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tp(e,t,n){return Nl(t,e.child,null,n),e=lu(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function yx(e,t,n){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=lu(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Mo(null,e);if(tf(t),(e=ze)?(e=Ob(e,dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ii!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ug(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Ji(t);return t.lanes=536870912,null}return lu(t,i)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(tf(t),l)if(t.flags&256)t.flags&=-257,t=tp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(R(558));else if(Ze||Ml(e,t,n,!1),l=(n&e.childLanes)!==0,Ze||l){if(Fi.current===null){if(i=Ne,i!==null&&(o=rg(i,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Ll(e,o),kt(i,e,o),Sd;ku()}t=tp(e,t,n)}else e=a.treeContext,ze=mn(o.nextSibling),ot=t,oe=!0,Bi=null,dn=!1,e!==null&&kg(t,e),t=lu(t,i),t.flags|=134221824;return t}return e=ci(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ql(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uf(e,t,n,i,l){return El(t),n=cd(e,t,n,i,void 0,l),i=sd(),e!==null&&!Ze?(fd(e,t,l),pi(e,t,l)):(oe&&i&&Ju(t),t.flags|=1,Ie(e,t,n,l),t.child)}function np(e,t,n,i,l,a){return El(t),t.updateQueue=null,n=Zg(t,i,n,l),Qg(e),i=sd(),e!==null&&!Ze?(fd(e,t,a),pi(e,t,a)):(oe&&i&&Ju(t),t.flags|=1,Ie(e,t,n,a),t.child)}function ip(e,t,n,i,l){if(El(t),t.stateNode===null){var a=la,o=n.contextType;typeof o=="object"&&o!==null&&(a=ct(o)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=of,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},ad(t),o=n.contextType,a.context=typeof o=="object"&&o!==null?ct(o):la,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(ps(t,n,o,i),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(o=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&of.enqueueReplaceState(a,a.state,null),xo(t,i,a,l),So(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){a=t.stateNode;var r=t.memoizedProps,u=Cl(n,r);a.props=u;var c=a.context,f=n.contextType;o=la,typeof f=="object"&&f!==null&&(o=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(r||c!==o)&&Jh(t,a,i,o),Oi=!1;var s=t.memoizedState;a.state=s,xo(t,i,a,l),So(),c=t.memoizedState,r||s!==c||Oi?(typeof p=="function"&&(ps(t,n,p,i),c=t.memoizedState),(u=Oi||Ih(t,n,u,i,s,c,o))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=o,i=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,$s(e,t),o=t.memoizedProps,f=Cl(n,o),a.props=f,p=t.pendingProps,s=a.context,c=n.contextType,u=la,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==p||s!==u)&&Jh(t,a,i,u),Oi=!1,s=t.memoizedState,a.state=s,xo(t,i,a,l),So();var h=t.memoizedState;o!==p||s!==h||Oi||e!==null&&e.dependencies!==null&&Mu(e.dependencies)?(typeof r=="function"&&(ps(t,n,r,i),h=t.memoizedState),(f=Oi||Ih(t,n,f,i,s,h,u)||e!==null&&e.dependencies!==null&&Mu(e.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,h,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,h,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=u,i=f):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,Ql(e,t),i=(t.flags&128)!==0,a||i?(a=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&i?(t.child=Nl(t,e.child,null,l),t.child=Nl(t,null,n,l)):Ie(e,t,n,l),t.memoizedState=a.state,e=t.child):e=pi(e,t,l),e}function lp(e,t,n,i){return wl(),t.flags|=256,Ie(e,t,n,i),t.child}var cf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sf(e){return{baseLanes:e,cachePool:Bg()}}function ff(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function Dy(e,t,n){var i=t.pendingProps,l=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(l?qi(t):ji(),(e=ze)?(e=Ob(e,dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ii!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ug(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Ji(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}return a=i.children,i=i.fallback,l?(ji(),l=t.mode,a=nc({mode:"hidden",children:a},l),i=bl(i,l,n,null),a.return=t,i.return=t,a.sibling=i,t.child=a,i=t.child,i.memoizedState=sf(n),i.childLanes=ff(e,o,n),t.memoizedState=cf,Mo(null,i)):(qi(t),xd(t,a))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return bx(e,t,a,o,i,u,r,n)}return l?(ji(),l=i.fallback,a=t.mode,r=e.child,u=r.sibling,i=ci(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?l=ci(u,l):(l=bl(l,a,n,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,Mo(null,i),i=t.child,l=e.child.memoizedState,l===null?l=sf(n):(a=l.cachePool,a!==null?(r=Qe._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=Bg(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=ff(e,o,n),t.memoizedState=cf,Mo(e.child,i)):(qi(t),n=e.child,e=n.sibling,n=ci(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function xd(e,t){return t=nc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nc(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Vr(e,t,n){return Nl(t,e.child,null,n),e=xd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bx(e,t,n,i,l,a,o,r){if(n)return t.flags&256?(qi(t),t.flags&=-257,Vr(e,t,r)):t.memoizedState!==null?(ji(),t.child=e.child,t.flags|=128,null):(ji(),a=l.fallback,o=t.mode,l=nc({mode:"visible",children:l.children},o),a=bl(a,o,r,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,Nl(t,e.child,null,r),l=t.child,l.memoizedState=sf(r),l.childLanes=ff(e,i,r),t.memoizedState=cf,Mo(null,l));if(qi(t),_d(a)){if(i=a.nextSibling&&a.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(l=Error(R(419)),l.stack="",l.digest=i,Lo({value:l,source:null,stack:null})),Vr(e,t,r)}if(Ze||Ml(e,t,r,!1),i=(r&e.childLanes)!==0,Ze||i){if(Fi.current!==null)return Vr(e,t,r);if(i=Ne,i!==null&&(l=rg(i,r),l!==0&&l!==o.retryLane))throw o.retryLane=l,Ll(e,l),kt(i,e,l),Sd;return Uf(a)||ku(),Vr(e,t,r)}return Uf(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,ze=mn(a.nextSibling),ot=t,oe=!0,Bi=null,dn=!1,e!==null&&kg(t,e),t=xd(t,l.children),t.flags|=134221824,t)}function ap(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),eu(e.return,t,n)}function op(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Nu(n)===null&&(t=e),e=e.sibling}return t}function Br(e,t,n,i,l,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=l,o.treeForkCount=a)}function gs(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function df(e,t,n){var i=t.pendingProps,l=i.revealOrder,a=i.tail;i=i.children;var o=ft.current;if(t.flags&128)return Ho(t,o),null;var r=(o&2)!==0;if(r?(o=o&1|2,t.flags|=128):o&=1,Ho(t,o),l==="backwards"&&e!==null?(gs(e),Ie(e,t,i,n),gs(e)):Ie(e,t,i,n),i=oe?Do:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ap(e,n,t);else if(e.tag===19)ap(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":n=op(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null,gs(t)),Br(t,!0,l,null,a,i);break;case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Nu(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Br(t,!0,n,null,a,i);break;case"together":Br(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=op(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Br(t,!1,l,n,a,i)}return t.child}function rp(e,t,n){var i=t.pendingProps;return Hi(t,t.type,i.value),Ie(e,t,i.children,n),t.child}function pi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ml(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mu(e)))}function vx(e,t,n){switch(t.tag){case 3:pu(t,t.stateNode.containerInfo),Hi(t,Qe,e.memoizedState.cache),wl();break;case 27:case 5:ks(t);break;case 4:pu(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return qi(t),t.flags|=128,null;i=Ml(e,t,n,!1);var l=t.child.childLanes;return i||(n&l)!==0?Dy(e,t,n):(qi(t),e=pi(e,t,n),e!==null?e.sibling:null)}qi(t);break;case 19:if(t.flags&128)return df(e,t,n);if(l=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(Ml(e,t,n,!1),i=(n&t.childLanes)!==0),l){if(i)return df(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ho(t,ft.current),i)break;return null;case 22:return t.lanes=0,Oy(e,t,n,t.pendingProps);case 24:Hi(t,Qe,e.memoizedState.cache)}return pi(e,t,n)}function Ly(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!wd(e,n)&&(t.flags&128)===0)return Ze=!1,vx(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,oe&&(t.flags&1048576)!==0&&Pg(t,Do,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ml(t.elementType),t.type=e,typeof e=="function")ed(e)?(i=Cl(e,i),t.tag=1,t=ip(null,t,e,i,n)):(t.tag=0,t=uf(null,t,e,i,n));else{if(e!=null){var l=e.$$typeof;if(l===Gf){t.tag=11,t=$h(null,t,e,i,n);break e}else if(l===Yf){t.tag=14,t=Wh(null,t,e,i,n);break e}else if(l===Vn){t.tag=10,t.type=e,t=rp(null,t,n);break e}}throw t=Us(e)||e,Error(R(306,t,""))}}return t;case 0:return uf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,l=Cl(i,t.pendingProps),ip(e,t,i,l,n);case 3:e:{if(pu(t,t.stateNode.containerInfo),e===null)throw Error(R(387));i=t.pendingProps;var a=t.memoizedState;l=a.element,$s(e,t),xo(t,i,null,n);var o=t.memoizedState;if(i=o.cache,Hi(t,Qe,i),i!==a.cache&&Js(t,[Qe],n,!0),So(),i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=lp(e,t,i,n);break e}else if(i!==l){l=fn(Error(R(424)),t),Lo(l),t=lp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=mn(e.firstChild),ot=t,oe=!0,Bi=null,dn=!0,n=qg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(wl(),i===l){t=pi(e,t,n);break e}Ie(e,t,i,n)}t=t.child}return t;case 26:return Ql(e,t),e===null?(n=_p(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=wb(t.type,t.pendingProps,Vi.current,t)):t.memoizedState=_p(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ks(t),e===null&&oe&&(i=t.stateNode=Db(t.type,t.pendingProps,Vi.current),ot=t,dn=!0,l=ze,tl(t.type)?(Pf=l,ze=mn(i.firstChild)):ze=l),Ie(e,t,t.pendingProps.children,n),Ql(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((l=i=ze)&&(i=fw(i,t.type,t.pendingProps,dn),i!==null?(t.stateNode=i,ot=t,ze=mn(i.firstChild),dn=!1,l=!0):l=!1),l||Ji(t)),ks(t),l=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Lf(l,a)?i=null:o!==null&&Lf(l,o)&&(t.flags|=32),t.memoizedState!==null&&(l=cd(e,t,ux,null,null,n),Ca._currentValue=l),Ql(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=ze)&&(n=dw(n,t.pendingProps,dn),n!==null?(t.stateNode=n,ot=t,ze=null,e=!0):e=!1),e||Ji(t)),null;case 13:return Dy(e,t,n);case 4:return pu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Nl(t,null,i,n):Ie(e,t,i,n),t.child;case 11:return $h(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Ql(e,t),Ie(e,t,i,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:return rp(e,t,n);case 9:return l=t.type._context,i=t.pendingProps.children,El(t),l=ct(l),i=i(l),t.flags|=1,Ie(e,t,i,n),t.child;case 14:return Wh(e,t,t.type,t.pendingProps,n);case 15:return zy(e,t,t.type,t.pendingProps,n);case 19:return df(e,t,n);case 31:return yx(e,t,n);case 22:return Oy(e,t,n,t.pendingProps);case 24:return El(t),i=ct(Qe),e===null?(l=id(),l===null&&(l=Ne,a=nd(),l.pooledCache=a,a.refCount++,a!==null&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:i,cache:l},ad(t),Hi(t,Qe,l)):((e.lanes&n)!==0&&($s(e,t),xo(t,null,null,n),So()),l=e.memoizedState,a=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Hi(t,Qe,i)):(i=a.cache,Hi(t,Qe,i),i!==l.cache&&Js(t,[Qe],n,!0))),Ie(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&Ju(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Ql(e,t),Ie(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(R(156,t.tag))}function oi(e){e.flags|=4}function ys(e,t,n,i,l){var a;if((a=(e.mode&32)!==0)&&(a=n===null?Pp(t,i):Pp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(ub())e.flags|=8192;else throw Sl=Eu,ld}else e.flags&=-16777217}function up(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ub(t))if(ub())e.flags|=8192;else throw Sl=Eu,ld}function Gr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lg():536870912,e.lanes|=t,wa|=t)}function ao(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&1206910976,i|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Sx(e,t,n){var i=t.pendingProps;switch(td(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),si(Qe),ba(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?oi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ds())),Ae(t),null;case 26:var l=t.type,a=t.memoizedState;return e===null?(oi(t),a!==null?(Ae(t),up(t,a)):(Ae(t),ys(t,l,null,i,n))):a?a!==e.memoizedState?(oi(t),Ae(t),up(t,a)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&oi(t),Ae(t),ys(t,l,e,i,n)),null;case 27:if(gu(t),n=Vi.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=qn.current,Xl(t)?Hh(t,e):(e=Db(l,i,n),t.stateNode=e,oi(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(gu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(a=qn.current,Xl(t))Hh(t,a);else{var o=Vo(Vi.current);switch(a){case 1:a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=o.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof i.is=="string"?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a=typeof i.is=="string"?o.createElement(l,{is:i.is}):o.createElement(l)}}a[ut]=t,a[Bt]=i;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;e:switch(dt(a,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&oi(t)}}return Ae(t),t.subtreeFlags&=-33554433,ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(R(166));if(e=Vi.current,Xl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,l=ot,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Sb(e.nodeValue,n)),e||Ji(t,!0)}else e=Vo(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Xl(t),n!==null){if(e===null){if(!i)throw Error(R(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(557));e[ut]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=ds(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(R(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Xl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[ut]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),l=!1}else l=ds(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Gr(t,t.updateQueue),Ae(t),null);case 4:return ba(),e===null&&Od(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return si(t.type),Ae(t),null;case 19:if(rd(t),i=t.memoizedState,i===null)return Ae(t),null;if(l=(t.flags&128)!==0,a=i.rendering,a===null)if(l)ao(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Nu(e),a!==null){for(t.flags|=128,ao(i,!1),e=a.updateQueue,t.updateQueue=e,Gr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hg(n,e),n=n.sibling;return Ho(t,ft.current&1|2),oe&&ri(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>Uu&&(t.flags|=128,l=!0,ao(i,!1),t.lanes=4194304)}else{if(!l)if(e=Nu(a),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Gr(t,e),ao(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!a.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>Uu&&n!==536870912&&(t.flags|=128,l=!0,ao(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,a=ft.current,a=l?a&1|2:a&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Ho(t,a):(n=a,Oe(mt,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ri(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Zt(t),od(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&Gr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(vl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),si(Qe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(R(156,t.tag))}function xx(e,t){switch(td(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return si(Qe),ba(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gu(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(R(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ba(),null;case 10:return si(t.type),null;case 22:case 23:return Zt(t),od(),e!==null&&st(vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return si(Qe),null;case 25:return null;default:return null}}function _y(e,t){switch(td(t),t.tag){case 3:si(Qe),ba();break;case 26:case 27:case 5:gu(t);break;case 4:ba();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:rd(t);break;case 10:si(t.type);break;case 22:case 23:Zt(t),od(),e!==null&&st(vl);break;case 24:si(Qe)}}function $o(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&e)===e){i=void 0;var a=n.create,o=n.inst;i=a(),o.destroy=i}n=n.next}while(n!==l)}}catch(r){xe(t,t.return,r)}}function $i(e,t,n){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var a=l.next;i=a;do{if((i.tag&e)===e){var o=i.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,l=t;var u=n,c=r;try{c()}catch(f){xe(l,u,f)}}}i=i.next}while(i!==a)}}catch(f){xe(t,t.return,f)}}function Hy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xg(t,n)}catch(i){xe(e,e.return,i)}}}function Uy(e,t,n){n.props=Cl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function Pn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var l=e.stateNode,a=di(e.memoizedProps,l);(l.ref===null||l.ref.name!==a)&&(l.ref=Nb(a)),i=l.ref;break;case 7:if(e.stateNode===null){var o=new nn(e);Vt(e.child,!1,cw,o,void 0,void 0),e.stateNode=o}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){xe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){xe(e,t,l)}else n.current=null}function Ou(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)zb(e.stateNode,t[n])}function cp(e){for(var t=e.return;t!==null&&(Ed(t)&&zb(e.stateNode,t.stateNode),!Md(t));)t=t.return}function Eo(e){for(var t=e.return;t!==null&&(Ed(t)&&sw(e.stateNode,t.stateNode),!Md(t));)t=t.return}function Md(e){return e.tag===5||e.tag===3||e.tag===27}function Ed(e){return e&&e.tag===7&&e.stateNode!==null}function mf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){xe(e,e.return,l)}}function bs(e,t,n){try{var i=e.stateNode;Xx(i,e.type,n,t),i[Bt]=t}catch(l){xe(e,e.return,l)}}function Py(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tl(e.type)||e.tag===4}function vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Py(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hf(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(l),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bn)),Ou(e,i),pe=!0;else if(l!==4&&(l===27&&(Ou(e,i),i=null,tl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(hf(e,t,n,i),e=e.sibling;e!==null;)hf(e,t,n,i),e=e.sibling}function Du(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?n.insertBefore(l,t):n.appendChild(l),Ou(e,i),pe=!0;else if(l!==4&&(l===27&&(Ou(e,i),i=null,tl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Du(e,t,n,i),e=e.sibling;e!==null;)Du(e,t,n,i),e=e.sibling}function ky(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,i,n),t[ut]=e,t[Bt]=n}catch(a){xe(e,e.return,a)}}var Lu=!1,It=null;function sp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Lu=!0)}var kn=null;function fp(){var e=kn;return kn=null,e}var Ut=0;function _a(e,t,n,i,l){return Ut=0,Vy(e.child,t,n,i,l)}function Vy(e,t,n,i,l){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(i!==null){var r=_f(o);i.push(r),r.view&&(a=!0)}else a||_f(o).view&&(a=!0);Lu=!0,Mb(o,Ut===0?t:t+"_"+Ut,n),Ut++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||Vy(e.child,t,n,i,l)&&(a=!0));e=e.sibling}return a}function Xn(e,t){for(;e!==null;)e.tag===5?Eb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Xn(e.child,t)),e=e.sibling}function au(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(au(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(R(544));var n=t.name;t=bi(t.default,t.share),t!=="none"&&(_a(e,n,t,null,!1)||Xn(e.child,!1))}e=e.sibling}}function pf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,l=di(i,n),a=bi(i.default,n.paired?i.share:i.enter);a!=="none"?_a(e,l,a,null,!1)?(au(e),n.paired||t||Ma(e,i.onEnter)):Xn(e.child,!1):au(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)pf(e,t),e=e.sibling;else au(e)}function gf(e){if(It!==null&&It.size!==0){var t=It;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var l=t.get(i);if(l!==void 0){var a=bi(n.default,n.share);if(a!=="none"&&(_a(e,i,a,null,!1)?(a=e.stateNode,l.paired=a,a.paired=l,Ma(e,n.onShare)):Xn(e.child,!1)),t.delete(i),t.size===0)break}}}gf(e)}e=e.sibling}}}function yf(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),i=It!==null?It.get(n):void 0,l=bi(t.default,i!==void 0?t.share:t.exit);l!=="none"&&(_a(e,n,l,null,!1)?i!==void 0?(l=e.stateNode,i.paired=l,l.paired=i,It.delete(n),Ma(e,t.onShare)):Ma(e,t.onExit):Xn(e.child,!1)),It!==null&&gf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)yf(e),e=e.sibling;else It!==null&&gf(e)}function By(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=bi(t.default,t.update),e.flags&=-5,t!=="none"&&_a(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&By(e);e=e.sibling}}function bf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xn(e.child,!1))}bf(e)}e=e.sibling}}function ou(e){if(e.tag===30)e.stateNode.paired=null,Xn(e.child,!1),bf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ou(e),e=e.sibling;else bf(e)}function Gy(e){for(e=e.child;e!==null;)e.tag===30?Xn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Gy(e),e=e.sibling}function Td(e,t,n,i,l,a,o){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(a!==null&&Ut<a.length){var c=a[Ut],f=_f(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Mb(u,Ut===0?n:n+"_"+Ut,l),r&&(e.flags&4)!==0||(kn===null&&(kn=[]),kn.push(u,Ut===0?i:i+"_"+Ut,t.memoizedProps)),Ut++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Td(e,t.child,n,i,l,a,o)&&(r=!0));t=t.sibling}return r}function Yy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,l=di(n,i),a=bi(n.default,n.update);if(t){i=i.clones;var o=i===null?null:i.map(Fx)}else o=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;Ut=0,l=Td(i,r,l,l,a,o,!1),(e.flags&4)!==0&&l&&(t||Ma(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Yy(e,t);e=e.sibling}}var it=!1,be=!1,_n=!1,Ss=!1,dp=typeof WeakSet=="function"?WeakSet:Set,lt=null,Hn=!1,ho=!1,_u=!1,vf=!1;function wx(e,t,n){if(e=e.containerInfo,Of=Aa,e=Rg(e),Ff(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var a=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{i.nodeType,o.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,h=null;t:for(;;){for(var S;s!==i||a!==0&&s.nodeType!==3||(u=r+a),s!==o||l!==0&&s.nodeType!==3||(c=r+l),s.nodeType===3&&(r+=s.nodeValue.length),(S=s.firstChild)!==null;)h=s,s=S;for(;;){if(s===e)break t;if(h===i&&++f===a&&(u=r),h===o&&++p===l&&(c=r),(S=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=S}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},Aa=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(a=0;a<i.length;a++)n&&yf(i[a]);if(e.alternate===null&&(e.flags&2)!==0)n&&sp(e),Yr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&yf(i),Yr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&sp(e),Yr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&By(e),Yr(n))}}It=null}function Yr(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&i!==null){n=void 0,l=i.memoizedProps,i=i.memoizedState;var a=t.stateNode;try{var o=Cl(t.type,l);n=a.getSnapshotBeforeUpdate(o,i),a.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((l&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Hf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=di(i.memoizedProps,i.stateNode),l=t.memoizedProps,l=bi(l.default,l.update),l!=="none"&&_a(i,n,l,i.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(R(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function qy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),i&4&&$o(5,n);break;case 1:if(Un(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){xe(n,n.return,o)}else{var l=Cl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){xe(n,n.return,o)}}i&64&&Hy(n),i&512&&Pn(n,n.return);break;case 3:if(Un(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xg(e,t)}catch(o){xe(n,n.return,o)}}break;case 27:t===null&&i&4&&ky(n);case 26:case 5:Un(e,n),t===null&&i&4&&mf(n),i&512&&Pn(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),i&4&&Qy(e,n);break;case 13:Un(e,n),i&4&&Zy(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_x.bind(null,n),mw(e,n))));break;case 22:if(i=n.memoizedState!==null||it,!i){var a=t!==null&&t.memoizedState!==null||be;t=it,l=be,it=i,(be=a)&&!l?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),bn(e,n,i)):Un(e,n),it=t,be=l}break;case 30:Un(e,n),i&512&&Pn(n,n.return);break;case 7:i&512&&Pn(n,n.return);default:Un(e,n)}}function Sf(e,t){for(e=e.child;e!==null;)jy(e,t),e=e.sibling}function jy(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var l=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null;l.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(u){xe(e,e.return,u)}xf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,pe=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Cp(r,!0):Cp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Sf(e,t);break;default:Sf(e,t)}}function xf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:jy(n,i);break e;case 22:n.memoizedState===null&&xf(n,i);break e;default:xf(n,i)}}e=e.sibling}}function Xy(e){var t=e.alternate;t!==null&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ju(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function yn(e,t,n){for(n=n.child;n!==null;)Ky(e,t,n),n=n.sibling}function Ky(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Xo,n)}catch{}switch(n.tag){case 26:be||rt(n,t),yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),Eo(n);var i=Ue,l=_t;tl(n.type)&&(Ue=n.stateNode,_t=!1),yn(e,t,n),Lb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=l;break;case 5:be||rt(n,t),Eo(n);case 6:if(n.tag===6&&Eo(n),i=Ue,l=_t,Ue=null,yn(e,t,n),Ue=i,_t=l,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}else try{Ue.removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}break;case 18:Ue!==null&&(_t?(e=Ue,Rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),za(e)):Rp(Ue,n.stateNode));break;case 4:i=Ue,l=_t,Ue=n.stateNode.containerInfo,_t=!0,yn(e,t,n),Ue=i,_t=l;break;case 0:case 11:case 14:case 15:$i(2,n,t),be||$i(4,n,t),yn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Uy(n,t,i)),yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,yn(e,t,n),be=i;break;case 30:rt(n,t),yn(e,t,n);break;case 7:be||rt(n,t),yn(e,t,n);break;default:yn(e,t,n)}}function Qy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{za(e)}catch(n){xe(t,t.return,n)}}}function Zy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{za(e)}catch(n){xe(t,t.return,n)}}function Mx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dp),t;default:throw Error(R(435,e.tag))}}function qr(e,t){var n=Mx(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var l=Hx.bind(null,e,i);i.then(l,l)}})}function Rt(e,t,n){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var a=i[l],o=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(tl(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(R(160));Ky(o,r,a),Ue=null,_t=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Iy(t,e,n),t=t.sibling}var vn=null;function Iy(e,t,n){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var a=0;a<i.length;a++){var o=i[a];o.ref.impl=o.nextImpl}Rt(t,e,n),Ct(e),l&4&&($i(3,e,e.return),$o(3,e),$i(5,e,e.return));break;case 1:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&64&&it&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(a=vn,Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&4)if(l=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(it)e.stateNode=wb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,l=a.ownerDocument||a;t:switch(t){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Zo]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(t),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(a=Up("link","href",l).get(t+(n.href||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;case"meta":if(a=Up("meta","content",l).get(t+(n.content||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;default:throw Error(R(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else it||kf(a,e.type,e.stateNode);else e.stateNode=Hp(a,n,e.memoizedProps);else l!==n?(l===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):l.count--,n===null?it||kf(a,e.type,e.stateNode):Hp(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&bs(e,e.memoizedProps,i.memoizedProps);break;case 27:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),i!==null&&l&4&&bs(e,e.memoizedProps,i.memoizedProps);break;case 5:if(a=_n,_n=!1,Rt(t,e,n),_n=a,Ct(e),l&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{Sa(t,""),pe=!0}catch(f){xe(e,e.return,f)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,bs(e,t,i!==null?i.memoizedProps:t)),l&1024&&(Ss=!0);break;case 6:if(Rt(t,e,n),Ct(e),l&4){if(e.stateNode===null)throw Error(R(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,pe=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(pe=!1,su=null,a=vn,vn=Bo(t.containerInfo),Rt(t,e,n),vn=a,Ct(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{za(t.containerInfo)}catch(f){xe(e,e.return,f)}Ss&&(Ss=!1,Jy(e)),pe=!1;break;case 4:l=_n,_n=it,i=bh(),a=vn,vn=Bo(e.stateNode.containerInfo),Rt(t,e,n),Ct(e),vn=a,pe&&ho&&(_u=!0),pe=i,_n=l;break;case 12:Rt(t,e,n),Ct(e);break;case 31:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 13:Rt(t,e,n),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ic=Ft()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 22:a=e.memoizedState!==null,o=i!==null&&i.memoizedState!==null;var r=it,u=be,c=_n;it=r||a,_n=c||a,be=u||o,Rt(t,e,n),be=u,_n=c,it=r,Ct(e),l&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||i===null||o||it||be||(t=o||be,n=it,i=be,it=a||it,be=t,Ai(e,2),it=n,be=i),!a&&_n||Sf(e,a)),l&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,qr(e,n))));break;case 19:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 30:l&512&&(be||i===null||rt(i,i.return)),l=bh(),a=ho,o=(n&335544064)===n,r=e.memoizedProps,ho=o&&bi(r.default,r.update)!=="none",Rt(t,e,n),Ct(e),o&&i!==null&&pe&&(e.flags|=4),ho=a,pe=l;break;case 21:break;case 7:l&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Rt(t,e,n),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Py(i)){n=i;break}i=i.return}i=null;for(var l=e.return;l!==null;){if(Ed(l)){var a=l.stateNode;i===null?i=[a]:i.push(a)}if(Md(l))break;l=l.return}var o=i;if(n==null)throw Error(R(160));switch(n.tag){case 27:var r=n.stateNode,u=vs(e);Du(e,u,r,o);break;case 5:var c=n.stateNode;n.flags&32&&(Sa(c,""),n.flags&=-33);var f=vs(e);Du(e,f,c,o);break;case 3:case 4:var p=n.stateNode.containerInfo,s=vs(e);hf(e,s,p,o);break;default:throw Error(R(161))}}catch(h){xe(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Aa=!0,t.reset(),Aa=!1),e=e.sibling}}function Kl(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fy(t,e),t=t.sibling;else Yy(t,!1)}function Fy(e,t){var n=e.alternate;if(n===null)pf(e,!1);else switch(e.tag){case 3:if(vf=Hn=!1,fp(),Kl(t,e),!Hn&&!_u){if(e=kn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var l=e[i+1];Eb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),vf=!0}kn=null;break;case 5:Kl(t,e);break;case 4:i=Hn,Hn=!1,Kl(t,e),Hn&&(_u=!0),Hn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?pf(e,!1):Kl(t,e));break;case 30:i=Hn,l=fp(),Hn=!1,Kl(t,e),Hn&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var r=bi(a.default,a.update);r==="none"?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ut=0,t=Td(e,n,t,o,r,a,!0),Ut!==(a===null?0:a.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ma(e,e.memoizedProps.onUpdate),kn=l):l!==null&&(l.push.apply(l,kn),kn=l),Hn=(e.flags&32)!==0?!0:i;break;default:Kl(t,e)}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qy(e,t.alternate,t),t=t.sibling}function Ai(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:$i(4,n,n.return),Ai(n,i);break;case 1:rt(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&Uy(n,n.return,l),Ai(n,i);break;case 27:(i&2)!==0&&Lb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||Eo(n),Ai(n,i);break;case 6:Eo(n);break;case 26:rt(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||be||l.parentNode.removeChild(l),Ai(n,i);break;case 22:n.memoizedState===null&&Ai(n,i);break;case 30:rt(n,n.return),Ai(n,i);break;case 7:rt(n,n.return);default:Ai(n,i)}e=e.sibling}}function bn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,l=e,a=t,o=a.flags,r=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:bn(l,a,n),$o(4,a);break;case 1:if(bn(l,a,n),i=a,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=a,l=i.updateQueue,l!==null){var u=i.stateNode;try{var c=l.shared.hiddenCallbacks;if(c!==null)for(l.shared.hiddenCallbacks=null,l=0;l<c.length;l++)jg(c[l],u)}catch(f){xe(i,i.return,f)}}r&&o&64&&Hy(a),Pn(a,a.return);break;case 27:(n&2)!==0&&ky(a);case 5:a.tag!==5&&a.tag!==27||cp(a),bn(l,a,n),r&&i===null&&o&4&&mf(a),Pn(a,a.return);break;case 6:cp(a);break;case 26:u=a.stateNode,a.memoizedState!==null||u===null||it||kf(Bo(u.ownerDocument),a.type,u),bn(l,a,n),r&&i===null&&o&4&&mf(a),Pn(a,a.return);break;case 12:bn(l,a,n);break;case 31:bn(l,a,n),r&&o&4&&Qy(l,a);break;case 13:bn(l,a,n),r&&o&4&&Zy(l,a);break;case 22:a.memoizedState===null&&bn(l,a,n),Pn(a,a.return);break;case 30:bn(l,a,n),Pn(a,a.return);break;case 7:Pn(a,a.return);default:bn(l,a,n)}t=t.sibling}}function Nd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Jo(n))}function Rd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jo(e))}function on(e,t,n,i){var l=(n&335544064)===n;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)$y(e,t,n,i),t=t.sibling;else l&&Gy(t)}function $y(e,t,n,i){var l=(n&335544064)===n;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ou(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),a&2048&&$o(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),l&&vf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Jo(a)));break;case 12:if(a&2048){on(e,t,n,i),a=t.stateNode;try{var o=t.memoizedProps,r=o.id,u=o.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(c){xe(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,t.memoizedState!==null?(l&&r!==null&&r.memoizedState===null&&ou(r),o._visibility&2?on(e,t,n,i):To(e,t)):(l&&r!==null&&r.memoizedState!==null&&ou(t),o._visibility&2?on(e,t,n,i):(o._visibility|=2,Zl(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),a&2048&&Nd(r,t);break;case 24:on(e,t,n,i),a&2048&&Rd(t.alternate,t);break;case 30:l&&(a=t.alternate,a!==null&&(Xn(a.child,!0),Xn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function Zl(e,t,n,i,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,o=t,r=n,u=i,c=o.flags;switch(o.tag){case 0:case 11:case 15:Zl(a,o,r,u,l),$o(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Zl(a,o,r,u,l):To(a,o):(f._visibility|=2,Zl(a,o,r,u,l)),l&&c&2048&&Nd(o.alternate,o);break;case 24:Zl(a,o,r,u,l),l&&c&2048&&Rd(o.alternate,o);break;default:Zl(a,o,r,u,l)}t=t.sibling}}function To(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,l=i.flags;switch(i.tag){case 22:To(n,i),l&2048&&Nd(i.alternate,i);break;case 24:To(n,i),l&2048&&Rd(i.alternate,i);break;default:To(n,i)}t=t.sibling}}var hl=8192;function fl(e,t,n){if(e.subtreeFlags&hl)for(e=e.child;e!==null;)Wy(e,t,n),e=e.sibling}function Wy(e,t,n){switch(e.tag){case 26:fl(e,t,n),e.flags&hl&&(e.memoizedState!==null?Rw(n,vn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&kp(n,e)));break;case 5:fl(e,t,n),e.flags&hl&&(e=e.stateNode,(t&335544128)===t&&kp(n,e));break;case 3:case 4:var i=vn;vn=Bo(e.stateNode.containerInfo),fl(e,t,n),vn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=hl,hl=16777216,fl(e,t,n),hl=i):fl(e,t,n));break;case 30:if((e.flags&hl)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var l=e.stateNode;l.paired=null,It===null&&(It=new Map),It.set(i,l)}fl(e,t,n);break;default:fl(e,t,n)}}function eb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function oo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,nb(i,e)}eb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tb(e),e=e.sibling}function tb(e){switch(e.tag){case 0:case 11:case 15:oo(e),e.flags&2048&&$i(9,e,e.return);break;case 3:oo(e);break;case 12:oo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ru(e)):oo(e);break;default:oo(e)}}function ru(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,nb(i,e)}eb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$i(8,t,t.return),ru(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ru(t));break;default:ru(t)}e=e.sibling}}function nb(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:$i(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Jo(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var l=i.sibling,a=i.return;if(Xy(i),i===n){lt=null;break e}if(l!==null){l.return=a,lt=l;break e}lt=a}}}var Ex={getCacheForType:function(e){var t=ct(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Qe).controller.signal}},Tx=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ne=null,se=null,de=0,ve=0,Kt=null,Ui=!1,Ha=!1,Cd=!1,gi=0,Be=0,Wi=0,xl=0,Hu=0,Jt=0,wa=0,No=null,Ht=null,wf=!1,ic=0,ib=0,Uu=1/0,Pu=null,Xi=null,ke=0,xn=null,Al=null,jn=0,Mf=0,Ef=null,lb=null,pa=null,ga=null,ya=null,Ro=0,uu=null;function en(){return(ge&2)!==0&&de!==0?de&-de:Q.T!==null?zd():ug()}function ab(){if(Jt===0)if((de&536870912)===0||oe){var e=zr;zr<<=1,(zr&3932160)===0&&(zr=262144),Jt=e}else Jt=536870912;return e=mt.current,e!==null&&(e.flags|=32),Jt}function Ma(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Nb(di(e.memoizedProps,n))),ga===null&&(ga=[]),ga.push(t.bind(null,i))}}function kt(e,t,n){(e===Ne&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),Pi(e,de,Jt,!1)),Qo(e,n),((ge&2)===0||e!==Ne)&&(e===Ne&&((ge&2)===0&&(xl|=n),Be===4&&Pi(e,de,Jt,!1)),Qn(e))}function ob(e,t,n){if((ge&6)!==0)throw Error(R(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ko(e,t),l=i?Cx(e,t):xs(e,t,!0),a=i;do{if(l===0){Ha&&!i&&Pi(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!Nx(n)){l=xs(e,t,!1),a=!1;continue}if(l===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var r=e;l=No;var u=r.current.memoizedState.isDehydrated;if(u&&(Ea(r,o).flags|=256),o=xs(r,o,!1),o!==2&&o!==6){if(Cd&&!u){r.errorRecoveryDisabledLanes|=a,xl|=a,l=4;break e}a=Ht,Ht=l,a!==null&&(Ht===null?Ht=a:Ht.push.apply(Ht,a))}l=o}if(a=!1,l!==2)continue}}if(l===1){Ea(e,0),Pi(e,t,0,!0);break}e:{switch(i=e,a=l,a){case 0:case 1:throw Error(R(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Pi(i,t,Jt,!Ui);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(R(329))}if((t&62914560)===t&&(l=ic+300-Ft(),10<l)){if(Pi(i,t,Jt,!Ui),qu(i,0,!0)!==0)break e;jn=t,i.timeoutHandle=Dd(mp.bind(null,i,n,Ht,Pu,wf,t,Jt,xl,wa,Ui,a,"Throttled",-0,0),l);break e}mp(i,n,Ht,Pu,wf,t,Jt,xl,wa,Ui,a,null,-0,0)}}break}while(!0);Qn(e)}function mp(e,t,n,i,l,a,o,r,u,c,f,p,s,h){e.timeoutHandle=-1;var S=t.subtreeFlags,b=(a&335544064)===a;if(p=null,(b||S&8192||(S&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bn},It=null,Wy(t,a,p),b&&(S=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(S.count++,S.waitingForViewTransition=!0,S=Go.bind(S),b.finished.then(S,S))),S=(a&62914560)===a?ic-Ft():(a&4194048)===a?ib-Ft():0,S=Cw(p,S),S!==null)){jn=a,e.cancelPendingCommit=S(pp.bind(null,e,t,a,n,i,l,o,r,u,c,f,p,null,s,h)),Pi(e,a,o,!c);return}pp(e,t,a,n,i,l,o,r,u,c,f,p)}function Nx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],a=l.getSnapshot;l=l.value;try{if(!tn(a(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pi(e,t,n,i){t=ig(e,t),t&=~Hu,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var a=31-Wt(l),o=1<<a;i[a]=-1,l&=~o}n!==0&&ag(e,n,t)}function lc(){return(ge&6)===0?(Wo(0,!1),!1):!0}function Ad(){if(se!==null){if(ve===0)var e=se.return;else e=se,ui=_l=null,dd(e),da=null,_o=0,e=se;for(;e!==null;)_y(e.alternate,e),e=e.return;se=null}}function Ea(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Zx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jn=0,Ad(),Ne=e,se=n=ci(e.current,null),de=t,ve=0,Kt=null,Ui=!1,Ha=Ko(e,t),Cd=!1,wa=Jt=Hu=xl=Wi=Be=0,Ht=No=null,wf=!1,gi=ig(e,t),Zu(),n}function rb(e,t){ne=null,Q.H=Au,t===La||t===Fu?(t=Bh(),ve=3):t===ld?(t=Bh(),ve=4):ve=t===Sd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,se===null&&(Be=1,zu(e,fn(t,e.current)))}function ub(){var e=mt.current;return e===null?!0:(de&4194048)===de?bt===null:(de&62914560)===de||(de&536870912)!==0?e===bt:!1}function cb(){var e=Q.H;return Q.H=Au,e===null?Au:e}function sb(){var e=Q.A;return Q.A=Ex,e}function ku(){Be=4,Ui||(de&4194048)!==de&&mt.current!==null||(Ha=!0),(Wi&134217727)===0&&(xl&134217727)===0||Ne===null||Pi(Ne,de,Jt,!1)}function xs(e,t,n){var i=ge;ge|=2;var l=cb(),a=sb();(Ne!==e||de!==t)&&(Pu=null,Ea(e,t)),t=!1;var o=Be;e:do try{if(ve!==0&&se!==null){var r=se,u=Kt;switch(ve){case 8:Ad(),o=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var c=ve;if(ve=0,Kt=null,ra(e,r,u,c),n&&Ha){o=0;break e}break;default:c=ve,ve=0,Kt=null,ra(e,r,u,c)}}Rx(),o=Be;break}catch(f){rb(e,f)}while(!0);return t&&e.shellSuspendCounter++,ui=_l=null,ge=i,Q.H=l,Q.A=a,se===null&&(Ne=null,de=0,Zu()),o}function Rx(){for(;se!==null;)fb(se)}function Cx(e,t){var n=ge;ge|=2;var i=cb(),l=sb();Ne!==e||de!==t?(Pu=null,Uu=Ft()+500,Ea(e,t)):Ha=Ko(e,t);e:do try{if(ve!==0&&se!==null){t=se;var a=Kt;t:switch(ve){case 1:ve=0,Kt=null,ra(e,t,a,1);break;case 2:case 9:if(Vh(a)){ve=0,Kt=null,hp(t);break}t=function(){ve!==2&&ve!==9||Ne!==e||(ve=7),Qn(e)},a.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Vh(a)?(ve=0,Kt=null,hp(t)):(ve=0,Kt=null,ra(e,t,a,7));break;case 5:var o=null;switch(se.tag){case 26:o=se.memoizedState;case 5:case 27:var r=se;if(o?Ub(o):r.stateNode.complete){ve=0,Kt=null;var u=r.sibling;if(u!==null)se=u;else{var c=r.return;c!==null?(se=c,ac(c)):se=null}break t}}ve=0,Kt=null,ra(e,t,a,5);break;case 6:ve=0,Kt=null,ra(e,t,a,6);break;case 8:Ad(),Be=6;break e;default:throw Error(R(462))}}Ax();break}catch(f){rb(e,f)}while(!0);return ui=_l=null,Q.H=i,Q.A=l,ge=n,se!==null?0:(Ne=null,de=0,Zu(),Be)}function Ax(){for(;se!==null&&!K1();)fb(se)}function fb(e){var t=Ly(e.alternate,e,gi);e.memoizedProps=e.pendingProps,t===null?ac(e):se=t}function hp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=np(n,t,t.pendingProps,t.type,void 0,de);break;case 11:t=np(n,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:dd(t);var i=t;i===ot&&(oe?(wu(i),i.tag===5&&i.stateNode!=null&&(ze=i.stateNode)):(wu(i),oe=!0));default:_y(n,t),t=se=Hg(t,gi),t=Ly(n,t,gi)}e.memoizedProps=e.pendingProps,t===null?ac(e):se=t}function ra(e,t,n,i){ui=_l=null,dd(t),da=null,_o=0;var l=t.return;try{if(gx(e,l,t,n,de)){Be=1,zu(e,fn(n,e.current)),se=null;return}}catch(a){if(l!==null)throw se=l,a;Be=1,zu(e,fn(n,e.current)),se=null;return}t.flags&32768?(oe||i===1?e=!0:Ha||(de&536870912)!==0?e=!1:(Ui=e=!0,(i===2||i===9||i===3||i===6)&&(i=mt.current,i!==null&&i.tag===13&&(i.flags|=16384))),db(t,e)):ac(t)}function ac(e){var t=e;do{if((t.flags&32768)!==0){db(t,Ui);return}e=t.return;var n=Sx(t.alternate,t,gi);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Be===0&&(Be=5)}function db(e,t){do{var n=xx(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);Be=6,se=null}function pp(e,t,n,i,l,a,o,r,u,c,f,p){e.cancelPendingCommit=null;do oc();while(ke!==0);if((ge&6)!==0)throw Error(R(327));if(t!==null){if(t===e.current)throw Error(R(177));e===Ne&&(se=Ne=null,de=0),Al=t,xn=e,jn=n,Ef=l,lb=i,zx(e,t,n,o,r,u,p)}}function zx(e,t,n,i,l,a,o){var r=t.lanes|t.childLanes;if(Mf=r,r|=$f,nS(e,n,r,i,l,a),ga=null,(n&335544064)===n?(ya=lx(e),i=10262):(ya=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Ux(yu,function(){return Cf(),null})):(e.callbackNode=null,e.callbackPriority=0),Lu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,l=ye.p,ye.p=2,a=ge,ge|=4;try{wx(e,t,n)}finally{ge=a,ye.p=l,Q.T=i}}ke=1,Lu?pa=ew(o,e.containerInfo,ya,Tf,Nf,Dx,Rf,Cf,Ox,null,null):(Tf(),Nf(),Rf())}function Ox(e){if(ke!==0){var t=xn.onRecoverableError;t(e,{componentStack:null})}}function Dx(){ke===3&&(ke=0,Fy(Al,xn),ke=4)}function Tf(){if(ke===1){ke=0;var e=xn,t=Al,n=jn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var l=ye.p;ye.p=2;var a=ge;ge|=4;try{ho=_u=!1,Iy(t,e,n),n=Df;var o=Rg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(o!==r&&r&&r.ownerDocument&&Ng(r.ownerDocument.documentElement,r)){if(u!==null&&Ff(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var h=s.getSelection(),S=r.textContent.length,b=Math.min(u.start,S),v=u.end===void 0?b:Math.min(u.end,S);!h.extend&&b>v&&(o=v,v=b,b=o);var m=Oh(r,b),d=Oh(r,v);if(m&&d&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==d.node||h.focusOffset!==d.offset)){var g=p.createRange();g.setStart(m.node,m.offset),h.removeAllRanges(),b>v?(h.addRange(g),h.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),h.addRange(g))}}}}for(p=[],h=r;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var x=p[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Aa=!!Of,Df=Of=null}finally{ge=a,ye.p=l,Q.T=i}}e.current=t,ke=2}}function Nf(){if(ke===2){ke=0;var e=xn,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ye.p;ye.p=2;var l=ge;ge|=4;try{qy(e,t.alternate,t)}finally{ge=l,ye.p=i,Q.T=n}}ke=3}}function Rf(){if(ke===4||ke===3){ke=0;var e=pa;pa=null,Q1();var t=xn,n=Al,i=jn,l=lb,a=(i&335544064)===i?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?ke=5:(ke=0,Al=xn=null,mb(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Xi=null),Xf(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Xo,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=Q.T,a=ye.p,ye.p=2,Q.T=null;try{for(var o=t.onRecoverableError,r=0;r<l.length;r++){var u=l[r];o(u.value,{componentStack:u.stack})}}finally{Q.T=n,ye.p=a}}if(l=ga,o=ya,ya=null,l!==null&&(ga=null,o===null&&(o=[]),e!==null))for(u=0;u<l.length;u++)n=(0,l[u])(o),n!==void 0&&e.finished.finally(n);(jn&3)!==0&&oc(),Qn(t),a=t.pendingLanes,(i&261930)!==0&&(a&42)!==0?t===uu?Ro++:(Ro=0,uu=t):(Ro=0,uu=null),Wo(0,!1)}}function mb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jo(t)))}function oc(){return pa!==null&&(pa.skipTransition(),pa=null),Tf(),Nf(),Rf(),Cf()}function Cf(){if(ke!==5)return!1;var e=xn,t=Mf;Mf=0;var n=Xf(jn),i=Q.T,l=ye.p;try{ye.p=32>n?32:n,Q.T=null,n=Ef,Ef=null;var a=xn,o=jn;if(ke=0,Al=xn=null,jn=0,(ge&6)!==0)throw Error(R(331));var r=ge;if(ge|=4,tb(a.current),$y(a,a.current,o,n),ge=r,Wo(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Xo,a)}catch{}return!0}finally{ye.p=l,Q.T=i,mb(e,t)}}function gp(e,t,n){t=fn(n,t),t=rf(e.stateNode,t,2),e=Yi(e,t,2),e!==null&&(Qo(e,2),Qn(e))}function xe(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Xi===null||!Xi.has(i))){e=fn(n,e),n=Cy(2),i=Yi(t,n,2),i!==null&&(Ay(n,i,t,e),Qo(i,2),Qn(i));break}}t=t.return}}function ws(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Tx;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(n)||(Cd=!0,l.add(n),e=Lx.bind(null,e,t,n),t.then(e,e))}function Lx(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(de&n)===n&&((Be===4||Be===3&&(de&62914560)===de&&300>Ft()-ic)&&(ge&2)===0?Ea(e,0):Hu|=n,wa===de&&(wa=0)),Qn(e)}function hb(e,t){t===0&&(t=lg()),e=Ll(e,t),e!==null&&(Qo(e,t),Qn(e))}function _x(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hb(e,n)}function Hx(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(R(314))}i!==null&&i.delete(t),hb(e,n)}function Ux(e,t){return qf(e,t)}var Ta=null,Il=null,Af=!1,Vu=!1,Ms=!1,ki=0;function Qn(e){e!==Il&&e.next===null&&(Il===null?Ta=Il=e:Il=Il.next=e),Vu=!0,Af||(Af=!0,kx())}function Wo(e,t){if(!Ms&&Vu){Ms=!0;do for(var n=!1,i=Ta;i!==null;){if(!t)if(e!==0){var l=i.pendingLanes;if(l===0)var a=0;else{var o=i.suspendedLanes,r=i.pingedLanes;a=(1<<31-Wt(42|e)+1)-1,a&=l&~(o&~r),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,yp(i,a))}else a=de,a=qu(i,i===Ne?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(a&3)===0||Ko(i,a)||(n=!0,yp(i,a));i=i.next}while(n);Ms=!1}}function Px(){pb()}function pb(){Vu=Af=!1;var e=0;ki!==0&&Qx()&&(e=ki);for(var t=Ft(),n=null,i=Ta;i!==null;){var l=i.next,a=gb(i,t);a===0?(i.next=null,n===null?Ta=l:n.next=l,l===null&&(Il=n)):(n=i,(e!==0||(a&3)!==0)&&(Vu=!0)),i=l}ke!==0&&ke!==5||Wo(e,!1),ki!==0&&(ki=0)}function gb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Wt(a),r=1<<o,u=l[o];u===-1?((r&n)===0||(r&i)!==0)&&(l[o]=tS(r,t)):u<=t&&(e.expiredLanes|=r),a&=~r}if(t=Ne,n=de,n=qu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ts(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ko(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&ts(i),Xf(n)){case 2:case 8:n=tg;break;case 32:n=yu;break;case 268435456:n=ng;break;default:n=yu}return i=yb.bind(null,e),n=qf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&ts(i),e.callbackPriority=2,e.callbackNode=null,2}function yb(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(oc()&&e.callbackNode!==n)return null;var i=de;return i=qu(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(ob(e,i,t),gb(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?yb.bind(null,e):null)}function yp(e,t){if(oc())return null;ob(e,t,!0)}function kx(){Ix(function(){(ge&6)!==0?qf(eg,Px):pb()})}function zd(){if(ki===0){var e=Tl;e===0&&(e=Ar,Ar<<=1,(Ar&261888)===0&&(Ar=256)),ki=e}return ki}function bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jr(e)}function Vx(e,t,n,i,l){if(t==="submit"&&n&&n.stateNode===l){var a=bp((l[Bt]||null).action),o=i.submitter;o&&(t=(t=o[Bt]||null)?bp(t.formAction):o.getAttribute("formAction"),t!==null&&(a=t,o=null));var r=new Xu("action","action",null,i,l);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ki!==0){var u=new FormData(l,o);af(n,{pending:!0,data:u,method:l.method,action:a},null,u)}}else typeof a=="function"&&(r.preventDefault(),u=new FormData(l,o),af(n,{pending:!0,data:u,method:l.method,action:a},a,u))},currentTarget:l}]})}}for(jr=0;jr<Qs.length;jr++)Xr=Qs[jr],vp=Xr.toLowerCase(),Sp=Xr[0].toUpperCase()+Xr.slice(1),wn(vp,"on"+Sp);var Xr,vp,Sp,jr;wn(Ag,"onAnimationEnd");wn(zg,"onAnimationIteration");wn(Og,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(JS,"onTransitionRun");wn(FS,"onTransitionStart");wn($S,"onTransitionCancel");wn(Dg,"onTransitionEnd");va("onMouseEnter",["mouseout","mouseover"]);va("onMouseLeave",["mouseout","mouseover"]);va("onPointerEnter",["pointerout","pointerover"]);va("onPointerLeave",["pointerout","pointerover"]);Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Po));function bb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],l=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var r=i[o],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){vu(f)}l.currentTarget=null,a=u}else for(o=0;o<i.length;o++){if(r=i[o],u=r.instance,c=r.currentTarget,r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){vu(f)}l.currentTarget=null,a=u}}}}function ce(e,t){var n=t[hh];n===void 0&&(n=t[hh]=new Set);var i=e+"__bubble";n.has(i)||(vb(t,e,2,!1),n.add(i))}function Es(e,t,n){var i=0;t&&(i|=4),vb(n,e,i,t)}var Kr="_reactListening"+Math.random().toString(36).slice(2);function Od(e){if(!e[Kr]){e[Kr]=!0,sg.forEach(function(n){n!=="selectionchange"&&(Bx.has(n)||Es(n,!1,e),Es(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kr]||(t[Kr]=!0,Es("selectionchange",!1,t))}}function vb(e,t,n,i){switch(qb(t)){case 2:var l=Dw;break;case 8:l=Lw;break;default:l=kd}n=l.bind(null,t,n,e),l=void 0,!qs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ts(e,t,n,i,l){var a=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var r=i.stateNode.containerInfo;if(r===l)break;if(o===4)for(o=i.return;o!==null;){var u=o.tag;if((u===3||u===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;r!==null;){if(o=pl(r),o===null)return;if(u=o.tag,u===5||u===6||u===26||u===27){i=a=o;continue e}r=r.parentNode}}i=i.return}bg(function(){var c=a,f=Qf(n),p=[];e:{var s=Lg.get(e);if(s!==void 0){var h=Xu,S=e;switch(e){case"keypress":if($r(n)===0)break e;case"keydown":case"keyup":h=NS;break;case"focusin":S="focus",h=rs;break;case"focusout":S="blur",h=rs;break;case"beforeblur":case"afterblur":h=rs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=hS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=OS;break;case Ag:case zg:case Og:h=yS;break;case Dg:h=LS;break;case"scroll":case"scrollend":h=dS;break;case"wheel":h=HS;break;case"copy":case"cut":case"paste":h=vS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Eh;break;case"submit":h=AS;break;case"toggle":case"beforetoggle":h=PS}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),m=b?s!==null?s+"Capture":null:s;b=[];for(var d=c,g;d!==null;){var x=d;if(g=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||g===null||m===null||(x=Ao(d,m),x!=null&&b.push(ko(d,x,g))),v)break;d=d.return}0<b.length&&(s=new h(s,S,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",h&&n!==Ys&&(S=n.relatedTarget||n.fromElement)&&(pl(S)||S[Oa]))break e;(s||h)&&(S=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,s?(h=n.relatedTarget||n.toElement,s=c,h=h?pl(h):null,h!==null&&(v=jo(h),b=h.tag,h!==v||b!==5&&b!==27&&b!==6)&&(h=null)):(s=null,h=c),s!==h&&(b=wh,x="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(b=Eh,x="onPointerLeave",m="onPointerEnter",d="pointer"),v=s==null?S:fo(s),g=h==null?S:fo(h),S=new b(x,d+"leave",s,n,f),S.target=v,S.relatedTarget=g,x=null,pl(f)===c&&(b=new b(m,d+"enter",h,n,f),b.target=g,b.relatedTarget=v,x=b),v=x,b=s&&h?zs(s,h,Gx):null,s!==null&&xp(p,S,s,b,!1),h!==null&&v!==null&&xp(p,v,h,b,!0)))}e:{if(s=c?fo(c):window,h=s.nodeName&&s.nodeName.toLowerCase(),h==="select"||h==="input"&&s.type==="file")var M=Ch;else if(Rh(s))if(Eg)M=QS;else{M=XS;var T=jS}else h=s.nodeName,!h||h.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Kf(c.elementType)&&(M=Ch):M=KS;if(M&&(M=M(e,c))){Mg(p,M,n,f);break e}T&&T(e,s,c)}switch(T=c?fo(c):window,e){case"focusin":(Rh(T)||T.contentEditable==="true")&&(ta=T,Xs=c,yo=null);break;case"focusout":yo=Xs=ta=null;break;case"mousedown":Ks=!0;break;case"contextmenu":case"mouseup":case"dragend":Ks=!1,Dh(p,n,f);break;case"selectionchange":if(IS)break;case"keydown":case"keyup":Dh(p,n,f)}var w;if(Jf)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ea?xg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Sg&&n.locale!=="ko"&&(ea||N!=="onCompositionStart"?N==="onCompositionEnd"&&ea&&(w=vg()):(_i=f,Zf="value"in _i?_i.value:_i.textContent,ea=!0)),T=Bu(c,N),0<T.length&&(N=new Mh(N,e,null,n,f),p.push({event:N,listeners:T}),w?N.data=w:(w=wg(n),w!==null&&(N.data=w)))),(w=VS?BS(e,n):GS(e,n))&&(N=Bu(c,"onBeforeInput"),0<N.length&&(T=new Mh("onBeforeInput","beforeinput",null,n,f),p.push({event:T,listeners:N}),T.data=w)),Vx(p,e,c,n,f)}bb(p,t)})}function ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bu(e,t){for(var n=t+"Capture",i=[];e!==null;){var l=e,a=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||a===null||(l=Ao(e,n),l!=null&&i.unshift(ko(e,l,a)),l=Ao(e,t),l!=null&&i.push(ko(e,l,a))),e.tag===3)return i;e=e.return}return[]}function Gx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xp(e,t,n,i,l){for(var a=t._reactName,o=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,l?(c=Ao(n,a),c!=null&&o.unshift(ko(n,c,u))):l||(c=Ao(n,a),c!=null&&o.push(ko(n,c,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Yx=/\r\n?/g,qx=/\u0000|\uFFFD/g;function wp(e){return(typeof e=="string"?e:""+e).replace(Yx,`
9
+ `).replace(qx,"")}function Sb(e,t){return t=wp(t),wp(e)===t}function Se(e,t,n,i,l,a){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Sa(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Sa(e,""+i);else return;break;case"className":Dr(e,"class",i);break;case"tabIndex":Dr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Dr(e,n,i);break;case"style":yg(e,i,a);return;case"data":if(t!=="object"){Dr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jr(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Se(e,t,"name",l.name,l,null),Se(e,t,"formEncType",l.formEncType,l,null),Se(e,t,"formMethod",l.formMethod,l,null),Se(e,t,"formTarget",l.formTarget,l,null)):(Se(e,t,"encType",l.encType,l,null),Se(e,t,"method",l.method,l,null),Se(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jr(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Bn);return;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Jr(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Ir(e,"popover",i);break;case"xlinkActuate":ai(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ai(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ai(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ai(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ai(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ai(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ai(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ai(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ai(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ir(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=sS.get(n)||n,Ir(e,n,i);else return}pe=!0}function zf(e,t,n,i,l,a){switch(n){case"style":yg(e,i,a);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")Sa(e,i);else if(typeof i=="number"||typeof i=="bigint")Sa(e,""+i);else return;break;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Bn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!fg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),a=n.slice(2,l?n.length-7:void 0),t=e[Bt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(a,t,l),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,i,l);break e}pe=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ir(e,n,i)}return}pe=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var i=!1,l=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,a,o,n,null)}}l&&Se(e,t,"srcSet",n.srcSet,n,null),i&&Se(e,t,"src",n.src,n,null);return;case"input":ce("invalid",e);var r=a=o=l=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":l=f;break;case"type":o=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":a=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(R(137,t));break;default:Se(e,t,i,f,n,null)}}hg(e,a,r,u,c,o,l,!1);return;case"select":ce("invalid",e),i=o=a=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":a=r;break;case"defaultValue":o=r;break;case"multiple":i=r;default:Se(e,t,l,r,n,null)}t=a,n=o,e.multiple=!!i,t!=null?ca(e,!!i,t,!1):n!=null&&ca(e,!!i,n,!0);return;case"textarea":ce("invalid",e),a=l=i=null;for(o in n)if(n.hasOwnProperty(o)&&(r=n[o],r!=null))switch(o){case"value":i=r;break;case"defaultValue":l=r;break;case"children":a=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(R(91));break;default:Se(e,t,o,r,n,null)}gg(e,i,l,a);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Se(e,t,u,i,n,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(i=0;i<Po.length;i++)ce(Po[i],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,c,i,n,null)}return;default:if(Kf(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&zf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&Se(e,t,r,i,n,null))}var jx={};function Xx(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,r=null,u=null,c=null,f=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(h)||Se(e,t,h,null,i,p)}}for(var s in i){var h=i[s];if(p=n[s],i.hasOwnProperty(s)&&(h!=null||p!=null))switch(s){case"type":h!==p&&(pe=!0),a=h;break;case"name":h!==p&&(pe=!0),l=h;break;case"checked":h!==p&&(pe=!0),c=h;break;case"defaultChecked":h!==p&&(pe=!0),f=h;break;case"value":h!==p&&(pe=!0),o=h;break;case"defaultValue":h!==p&&(pe=!0),r=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(R(137,t));break;default:h!==p&&Se(e,t,s,h,i,p)}}Gs(e,o,r,u,c,f,a,l);return;case"select":h=o=r=s=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":h=u;default:i.hasOwnProperty(a)||Se(e,t,a,null,i,u)}for(l in i)if(a=i[l],u=n[l],i.hasOwnProperty(l)&&(a!=null||u!=null))switch(l){case"value":a!==u&&(pe=!0),s=a;break;case"defaultValue":a!==u&&(pe=!0),r=a;break;case"multiple":a!==u&&(pe=!0),o=a;default:a!==u&&Se(e,t,l,a,i,u)}t=r,n=o,i=h,s!=null?ca(e,!!n,s,!1):!!i!=!!n&&(t!=null?ca(e,!!n,t,!0):ca(e,!!n,n?[]:"",!1));return;case"textarea":h=s=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Se(e,t,r,null,i,l)}for(o in i)if(l=i[o],a=n[o],i.hasOwnProperty(o)&&(l!=null||a!=null))switch(o){case"value":l!==a&&(pe=!0),s=l;break;case"defaultValue":l!==a&&(pe=!0),h=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(R(91));break;default:l!==a&&Se(e,t,o,l,i,a)}pg(e,s,h);return;case"option":for(var S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:Se(e,t,S,null,i,s)}for(u in i)if(s=i[u],h=n[u],i.hasOwnProperty(u)&&s!==h&&(s!=null||h!=null))switch(u){case"selected":s!==h&&(pe=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Se(e,t,u,s,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&Se(e,t,b,null,i,s);for(c in i)if(s=i[c],h=n[c],i.hasOwnProperty(c)&&s!==h&&(s!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(R(137,t));break;default:Se(e,t,c,s,i,h)}return;default:if(Kf(t)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!i.hasOwnProperty(v)&&zf(e,t,v,void 0,i,s);for(f in i)s=i[f],h=n[f],!i.hasOwnProperty(f)||s===h||s===void 0&&h===void 0||zf(e,t,f,s,i,h);return}}for(var m in n)s=n[m],n.hasOwnProperty(m)&&s!=null&&!i.hasOwnProperty(m)&&Se(e,t,m,null,i,s);for(p in i)s=i[p],h=n[p],!i.hasOwnProperty(p)||s===h||s==null&&h==null||Se(e,t,p,s,i,h)}function Mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],a=l.transferSize,o=l.initiatorType,r=l.duration;if(a&&r&&Mp(o)){for(o=0,r=l.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&Mp(p)&&(u=u.responseEnd,o+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(a+o)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Of=null,Df=null;function Vo(e){return e.nodeType===9?e:e.ownerDocument}function Ep(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wb(e,t,n,i){return n=Vo(n).createElement(e),n[ut]=i,n[Bt]=t,dt(n,e,t),at(n),n}function Lf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ns=null;function Qx(){var e=window.event;return e&&e.type==="popstate"?e===Ns?!1:(Ns=e,!0):(Ns=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Zx=typeof clearTimeout=="function"?clearTimeout:void 0,Tp=typeof Promise=="function"?Promise:void 0,Np=typeof requestAnimationFrame=="function"?requestAnimationFrame:Dd,Ix=typeof queueMicrotask=="function"?queueMicrotask:typeof Tp<"u"?function(e){return Tp.resolve(null).then(e).catch(Jx)}:Dd;function Jx(e){setTimeout(function(){throw e})}function tl(e){return e==="head"}function Rp(e,t){var n=t,i=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(l),za(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Cs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Cs(n);for(var a=n.firstChild;a;){var o=a.nextSibling,r=a.nodeName;a[Zo]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}else n==="body"&&Cs(e.ownerDocument.body);n=l}while(n);za(t)}function Cp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Mb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var l=i=0;l<t.length;l++){var a=t[l];0<a.width&&0<a.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Eb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Tb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function _f(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Tb(t,n,e)}function Fx(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Tb(t,n,e)}function $x(e){return e.documentElement.clientHeight}function Wx(e){this.addEventListener("load",e),this.addEventListener("error",e)}function ew(e,t,n,i,l,a,o,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,h=s.navigation&&s.navigation.transition,S=c.fonts.status;i();var b=[];if(S==="loaded"&&($x(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),S=b.length,e!==null)for(var v=e.suspenseyImages,m=0,d=0;d<v.length;d++){var g=v[d];if(!g.complete){var x=g.getBoundingClientRect();if(0<x.bottom&&0<x.right&&x.top<s.innerHeight&&x.left<s.innerWidth){if(m+=Pb(g),m>fu){b.length=S;break}g=new Promise(Wx.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(M){return setTimeout(M,500)})]).then(l,l),(h?Promise.allSettled([h.finished,s]):s).then(a,a);if(l(),h)return h.finished.then(a,a);a()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),h=0;h<s.length;h++){var S=s[h],b=S.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(S),S=b.getKeyframes();for(var m=v=void 0,d=!0,g=0;g<S.length;g++){var x=S[g],M=x.width;if(v===void 0)v=M;else if(v!==M){d=!1;break}if(M=x.height,m===void 0)m=M;else if(m!==M){d=!1;break}delete x.width,delete x.height,x.transform==="none"&&delete x.transform}d&&v!==void 0&&m!==void 0&&(b.setKeyframes(S),d=getComputedStyle(b.target,b.pseudoElement),d.width!==v||d.height!==m)&&(d=S[0],d.width=v,d.height=m,d=S[S.length-1],d.width=v,d.height=m,b.setKeyframes(S))}}o()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),l(),o()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),l(),o(),null}}function gl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}gl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Re({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};gl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],l=0;l<n.length;l++){var a=n[l].effect;a!==null&&a.target===e&&a.pseudoElement===t&&i.push(n[l])}return i};gl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Nb(e){return{name:e,group:new gl("group",e),imagePair:new gl("image-pair",e),old:new gl("old",e),new:new gl("new",e)}}function nn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}nn.prototype.addEventListener=function(e,t,n){var i=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Rb(a,e,t,n)===-1){var o=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){o.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(l=o.removeEventListener.bind(o,e,t,n),i.addEventListener("abort",l,{once:!0}),l=i.removeEventListener.bind(i,"abort",l)),i=Na(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:l}),Vt(this._fragmentFiber.child,!1,tw,e,r,i)}this._eventListeners=a}};function tw(e,t,n,i){return Je(e).addEventListener(t,n,i),!1}nn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Rb(i,e,t,n),t!==-1)){var l=i[t];n=l.attachedListener;var a=l.cleanup;l=Na(l.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,nw,e,n,l),i.splice(t,1),a!==null&&a()}};function nw(e,t,n,i){return Je(e).removeEventListener(t,n,i),!1}function Na(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Ap(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Rb(e,t,n,i){if(e.length===0)return-1;i=Ap(i);for(var l=0;l<e.length;l++){var a=e[l];if(a.type===t&&a.listener===n&&Ap(a.optionsOrUseCapture)===i)return l}return-1}nn.prototype.dispatchEvent=function(e){var t=zl(this._fragmentFiber);if(t===null)return!0;t=Je(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var a=n[l];i.addEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(l=0;l<n.length;l++)a=n[l],i.removeEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};nn.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Cb,e,void 0,void 0)};function Cb(e,t){return e.tag===6?!1:(e=Je(e),hw(e,t))}nn.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Ld,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Cb(t[n],e);n--);};function Ld(e,t){return t.push(e),!1}nn.prototype.blur=function(){var e=zl(this._fragmentFiber);e!==null&&(e=Je(e),e=Vo(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,iw,e,void 0,void 0))};function iw(e,t){return e.tag===6?!1:(e=Je(e),e===t||e.contains(t)?(t.blur(),!0):!1)}nn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,lw,e,void 0,void 0)};function lw(e,t){return e.tag===6||(e=Je(e),t.observe(e)),!1}nn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,aw,e,void 0,void 0);for(var n=t=0;n<Sn.length;n++){var i=Sn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Sn[t++]=i}Sn.length=t}};function aw(e,t){return e.tag===6||(e=Je(e),t.unobserve(e)),!1}var Sn=[],Rs=!1;function ow(e,t,n){Sn.push({fragmentInstance:e,observer:t,instance:n}),Rs||(Rs=!0,pw(function(){Rs=!1;var i=Sn;Sn=[];for(var l=0;l<i.length;l++){var a=i[l];a.observer.unobserve(a.instance)}}))}nn.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,rw,e,void 0,void 0),e};function rw(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Je(e),t.push.apply(t,e.getClientRects());return!1}nn.prototype.getRootNode=function(e){var t=zl(this._fragmentFiber);return t===null?this:Je(t).getRootNode(e)};nn.prototype.compareDocumentPosition=function(e){var t=zl(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Ld,n,void 0,void 0);var i=Je(t);if(n.length===0){if(n=i,uh(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var l=i=n.compareDocumentPosition(e);return n===e?l=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Jp(t)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=Je(n).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Je(n[0]),l=Je(n[n.length-1]);var a=uh(this._fragmentFiber)?t.parentElement:i;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),r=l.compareDocumentPosition(e),u=o&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||a&&l===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!a&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||uw(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function uw(e,t,n,i,l){var a=pl(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=l.ownerDocument,l===a||l===a.documentElement||l===a.body;e:{for(a=t,t=zl(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=zs(n,a,ch),t===null?t=!1:(Vt(t,!0,k1,a,n),a=Jl,Jl=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===i)&&(t=zs(i,a,ch),t===null?t=!1:(Vt(t,!0,V1,a,i),a=Jl,As=Jl=null,t=a!==null)),t):!1}function zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}nn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(R(566));var t=[];Vt(this._fragmentFiber.child,!1,Ld,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=Jp(this._fragmentFiber);if(i=n?i[1]||i[0]||zl(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Je(i),zp(e,n);return}if(i=Je(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var l=t[i];l.tag===6?(l=Je(l),zp(l,n)):Je(l).scrollIntoView(e),i+=n?-1:1}};function cw(e,t){return e=Je(e),Ab(e,t),!1}function Ab(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function zb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.addEventListener(l.type,l.attachedListener,Na(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){for(var o=0,r=0;r<Sn.length;r++){var u=Sn[r];(u.fragmentInstance!==t||u.observer!==a||u.instance!==e)&&(Sn[o++]=u)}Sn.length=o,a.observe(e)}),Ab(e,t))}function sw(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.removeEventListener(l.type,l.attachedListener,Na(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?ow(t,a,e):a.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Hf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Hf(n),ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function fw(e,t,n,i){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Zo])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=mn(e.nextSibling),e===null)break}return null}function dw(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=mn(e.nextSibling),e===null))return null;return e}function Ob(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function Uf(e){return e.data==="$?"||e.data==="$~"}function _d(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mw(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Pf=null;function Op(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return mn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function hw(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function pw(e){Np(function(){Np(function(t){return e(t)})})}function Db(e,t,n){switch(t=Vo(n),e){case"html":if(e=t.documentElement,!e)throw Error(R(452));return e;case"head":if(e=t.head,!e)throw Error(R(453));return e;case"body":if(e=t.body,!e)throw Error(R(454));return e;default:throw Error(R(451))}}function Lb(e,t,n){for(var i in n){var l=n[i];n.hasOwnProperty(i)&&l!=null&&Se(e,t,i,null,jx,l)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Bn&&(e.onclick=null),ju(e)}function Cs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ju(e)}var hn=new Map,Lp=new Set;function Bo(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var vi=ye.d;ye.d={f:gw,r:yw,D:bw,C:vw,L:Sw,m:xw,X:Mw,S:ww,M:Ew};function gw(){var e=vi.f(),t=lc();return e||t}function yw(e){var t=Da(e);t!==null&&t.tag===5&&t.type==="form"?yy(t):vi.r(e)}var Ua=typeof document>"u"?null:document;function _b(e,t,n){var i=Ua;if(i&&typeof t=="string"&&t){var l=sn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Lp.has(l)||(Lp.add(l),e={rel:e,crossOrigin:n,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function bw(e){vi.D(e),_b("dns-prefetch",e,null)}function vw(e,t){vi.C(e,t),_b("preconnect",e,t)}function Sw(e,t,n){vi.L(e,t,n);var i=Ua;if(i&&e&&t){var l='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+sn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+sn(n.imageSizes)+'"]')):l+='[href="'+sn(e)+'"]';var a=l;switch(t){case"style":a=Ra(e);break;case"script":a=Pa(e)}if(!(hn.has(a)||(e=Re({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(a,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(er(a))||t==="script"&&i.querySelector(tr(a))))){var o=i.createElement("link");dt(o,"link",e),t==="style"&&(o[bu]=!0,o.onload=o.onerror=function(){cg(o)}),at(o),i.head.appendChild(o)}}}function xw(e,t){vi.m(e,t);var n=Ua;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+sn(i)+'"][href="'+sn(e)+'"]',a=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Pa(e)}if(!hn.has(a)&&(e=Re({rel:"modulepreload",href:e},t),hn.set(a,e),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(tr(a)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function ww(e,t,n){vi.S(e,t,n);var i=Ua;if(i&&e){var l=ua(i).hoistableStyles,a=Ra(e);t=t||"default";var o=l.get(a);if(!o){var r={loading:0,preload:null};if(o=i.querySelector(er(a)))r.loading=5;else{e=Re({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(a))&&Hd(e,n);var u=o=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,cu(o,t,i)}o={type:"stylesheet",instance:o,count:1,state:r},l.set(a,o)}}}function Mw(e,t){vi.X(e,t);var n=Ua;if(n&&e){var i=ua(n).hoistableScripts,l=Pa(e),a=i.get(l);a||(a=n.querySelector(tr(l)),a||(e=Re({src:e,async:!0},t),(t=hn.get(l))&&Ud(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function Ew(e,t){vi.M(e,t);var n=Ua;if(n&&e){var i=ua(n).hoistableScripts,l=Pa(e),a=i.get(l);a||(a=n.querySelector(tr(l)),a||(e=Re({src:e,async:!0,type:"module"},t),(t=hn.get(l))&&Ud(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function _p(e,t,n,i){var l=(l=Vi.current)?Bo(l):null;if(!l)throw Error(R(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ra(n.href),t=ua(l).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ra(n.href);var a=ua(l).hoistableStyles,o=a.get(e);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=l.querySelector(er(e)))?a._p||(o.instance=a,o.state.loading=5):(a=hn.get(e),a||(a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,a)),Tw(l,e,a,o.state))),t&&i===null)throw Error(R(528,""));return o}if(t&&i!==null)throw Error(R(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Pa(n),t=ua(l).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,e))}}function Ra(e){return'href="'+sn(e)+'"'}function er(e){return'link[rel="stylesheet"]['+e+"]"}function Hb(e){return Re({},e,{"data-precedence":e.precedence,precedence:null})}function Tw(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[bu]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[bu]=!0,t.onload=t.onerror=cg.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Pa(e){return'[src="'+sn(e)+'"]'}function tr(e){return"script[async]"+e}function Hp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+sn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var l=Re({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",l),cu(i,n.precedence,e),t.instance=i;case"stylesheet":l=Ra(n.href);var a=e.querySelector(er(l));if(a)return t.state.loading|=4,t.instance=a,at(a),a;i=Hb(n),(l=hn.get(l))&&Hd(i,l),a=(e.ownerDocument||e).createElement("link"),at(a);var o=a;return o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),t.state.loading|=4,cu(a,n.precedence,e),t.instance=a;case"script":return a=Pa(n.src),(l=e.querySelector(tr(a)))?(t.instance=l,at(l),l):(i=n,(l=hn.get(a))&&(i=Re({},n),Ud(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),at(l),dt(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(R(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,cu(i,n.precedence,e));return t.instance}function cu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,a=l,o=0;o<i.length;o++){var r=i[o];if(r.dataset.precedence===t)a=r;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var su=null;function Up(e,t,n){if(su===null){var i=new Map,l=su=new Map;l.set(n,i)}else l=su,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[Zo]||a[ut]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var o=a.getAttribute(t)||"";o=e+o;var r=i.get(o);r?r.push(a):i.set(o,[a])}}return i}function kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Nw(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Ub(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Pb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function kp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Pb(t),e.suspenseyImages.push(t)),e=Aw.bind(e),t.decode().then(e,e))}function Rw(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Ra(i.href),a=t.querySelector(er(l));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Go.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,at(a);return}a=t.ownerDocument||t,i=Hb(i),(l=hn.get(l))&&Hd(i,l),a=a.createElement("link"),at(a);var o=a;o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Go.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var fu=0;function Cw(e,t){return e.stylesheets&&e.count===0&&du(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&du(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&fu===0&&(fu=62500*Kx());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&du(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>fu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function kb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)du(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Go(){this.count--,kb(this)}function Aw(){this.imgCount--,kb(this)}var Gu=null;function du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gu=new Map,t.forEach(zw,e),Gu=null,Go.call(e))}function zw(e,t){if(!(t.state.loading&4)){var n=Gu.get(e);if(n)var i=n.get(null);else{n=new Map,Gu.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var o=l[a];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),i=o)}i&&n.set(null,i)}l=t.instance,o=l.getAttribute("data-precedence"),a=n.get(o)||i,a===i&&n.set(null,l),n.set(o,l),this.count++,i=Go.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),a?a.parentNode.insertBefore(l,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Ca={$$typeof:Vn,Provider:null,Consumer:null,_currentValue:yl,_currentValue2:yl,_threadCount:0};function Ow(e,t,n,i,l,a,o,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.hiddenUpdates=ns(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Vb(e,t,n,i,l,a,o,r,u,c,f,p){return e=new Ow(e,t,n,o,u,c,f,p,r),t=1,a===!0&&(t|=24),a=Pt(3,null,null,t),e.current=a,a.stateNode=e,t=nd(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},ad(a),e}function Bb(e){return e?(e=la,e):la}function Gb(e,t,n,i,l,a){l=Bb(l),i.context===null?i.context=l:i.pendingContext=l,i=Gi(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=Yi(e,i,t),n!==null&&(kt(n,e,t),vo(n,e,t))}function Vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pd(e,t){Vp(e,t),(e=e.alternate)&&Vp(e,t)}function Yb(e){if(e.tag===13||e.tag===31){var t=Ll(e,67108864);t!==null&&kt(t,e,67108864),Pd(e,67108864)}}function Bp(e){if(e.tag===13||e.tag===31){var t=en();t=jf(t);var n=Ll(e,t);n!==null&&kt(n,e,t),Pd(e,t)}}var Aa=!0;function Dw(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=2,kd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function Lw(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=8,kd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function kd(e,t,n,i){if(Aa){var l=Vf(i);if(l===null)Ts(e,t,i,Yu,n),Gp(e,i);else if(Hw(l,e,t,n,i))i.stopPropagation();else if(Gp(e,i),t&4&&-1<_w.indexOf(e)){for(;l!==null;){var a=Da(l);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=dl(a.pendingLanes);if(o!==0){var r=a;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var u=1<<31-Wt(o);r.entanglements[1]|=u,o&=~u}Qn(a),(ge&6)===0&&(Uu=Ft()+500,Wo(0,!1))}}break;case 31:case 13:r=Ll(a,2),r!==null&&kt(r,a,2),lc(),Pd(a,2)}if(a=Vf(i),a===null&&Ts(e,t,i,Yu,n),a===l)break;l=a}l!==null&&i.stopPropagation()}else Ts(e,t,i,null,n)}}function Vf(e){return e=Qf(e),Vd(e)}var Yu=null;function Vd(e){if(Yu=null,e=pl(e),e!==null){var t=jo(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Qp(t),e!==null)return e;e=null}else if(n===31){if(e=Zp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Yu=e,null}function qb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Z1()){case eg:return 2;case tg:return 8;case yu:case I1:return 32;case ng:return 268435456;default:return 32}default:return 32}}var Bf=!1,Ki=null,Qi=null,Zi=null,Yo=new Map,qo=new Map,Di=[],_w="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gp(e,t){switch(e){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Yo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qo.delete(t.pointerId)}}function ro(e,t,n,i,l,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[l]},t!==null&&(t=Da(t),t!==null&&Yb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Hw(e,t,n,i,l){switch(t){case"focusin":return Ki=ro(Ki,e,t,n,i,l),!0;case"dragenter":return Qi=ro(Qi,e,t,n,i,l),!0;case"mouseover":return Zi=ro(Zi,e,t,n,i,l),!0;case"pointerover":var a=l.pointerId;return Yo.set(a,ro(Yo.get(a)||null,e,t,n,i,l)),!0;case"gotpointercapture":return a=l.pointerId,qo.set(a,ro(qo.get(a)||null,e,t,n,i,l)),!0}return!1}function jb(e){var t=pl(e.target);if(t!==null){var n=jo(t);if(n!==null){if(t=n.tag,t===13){if(t=Qp(n),t!==null){e.blockedOn=t,mh(e.priority,function(){Bp(n)});return}}else if(t===31){if(t=Zp(n),t!==null){e.blockedOn=t,mh(e.priority,function(){Bp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ys=i,n.target.dispatchEvent(i),Ys=null}else return t=Da(n),t!==null&&Yb(t),e.blockedOn=n,!1;t.shift()}return!0}function Yp(e,t,n){mu(e)&&n.delete(t)}function Uw(){Bf=!1,Ki!==null&&mu(Ki)&&(Ki=null),Qi!==null&&mu(Qi)&&(Qi=null),Zi!==null&&mu(Zi)&&(Zi=null),Yo.forEach(Yp),qo.forEach(Yp)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,Bf||(Bf=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,Uw)))}var Zr=null;function qp(e){Zr!==e&&(Zr=e,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,function(){Zr===e&&(Zr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if(Vd(i||n)===null)continue;break}var a=Da(n);a!==null&&(e.splice(t,3),t-=3,af(a,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function za(e){function t(u){return Qr(u,e)}Ki!==null&&Qr(Ki,e),Qi!==null&&Qr(Qi,e),Zi!==null&&Qr(Zi,e),Yo.forEach(t),qo.forEach(t);for(var n=0;n<Di.length;n++){var i=Di[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Di.length&&(n=Di[0],n.blockedOn===null);)jb(n),n.blockedOn===null&&Di.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],a=n[i+1],o=l[Bt]||null;if(typeof a=="function")o||qp(n);else if(o){var r=null;if(a&&a.hasAttribute("formAction")){if(l=a,o=a[Bt]||null)r=o.formAction;else if(Vd(l)!==null)continue}else r=o.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),qp(n)}}}function Xb(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Bd(e){this._internalRoot=e}rc.prototype.render=Bd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));var n=t.current,i=en();Gb(n,i,e,t,null,null)};rc.prototype.unmount=Bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gb(e.current,2,null,e,null,null),lc(),t[Oa]=null}};function rc(e){this._internalRoot=e}rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ug();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Di.length&&t!==0&&t<Di[n].priority;n++);Di.splice(n,0,e),n===0&&jb(e)}};var jp=Xp.version;if(jp!=="19.3.0")throw Error(R(527,jp,"19.3.0"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=P1(t),e=e!==null?Ip(e):null,e=e===null?null:e.stateNode,e};var Pw={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(uo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!uo.isDisabled&&uo.supportsFiber))try{Xo=uo.inject(Pw),$t=uo}catch{}var uo;uc.createRoot=function(e,t){if(!Kp(e))throw Error(R(299));var n=!1,i="",l=Ty,a=Ny,o=Ry;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Vb(e,1,!1,null,null,n,i,null,l,a,o,Xb),e[Oa]=t.current,Od(e),new Bd(t)};uc.hydrateRoot=function(e,t,n){if(!Kp(e))throw Error(R(299));var i=!1,l="",a=Ty,o=Ny,r=Ry,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Vb(e,1,!0,t,n??null,i,l,u,a,o,r,Xb),t.context=Bb(null),n=t.current,i=en(),i=jf(i),l=Gi(i),l.callback=null,Yi(n,l,i),n=i,t.current.lanes=n,Qo(t,n),Qn(t),e[Oa]=t.current,Od(e),new rc(t)};uc.version="19.3.0"});var Ib=Dn((OM,Zb)=>{"use strict";function Qb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qb)}catch(e){console.error(e)}}Qb(),Zb.exports=Kb()});var p0=Dn(vc=>{"use strict";var Ww=Symbol.for("react.transitional.element"),e2=Symbol.for("react.fragment");function h0(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var l in t)l!=="key"&&(n[l]=t[l])}else n=t;return t=n.ref,{$$typeof:Ww,type:e,key:i,ref:t!==void 0?t:null,props:n}}vc.Fragment=e2;vc.jsx=h0;vc.jsxs=h0});var me=Dn((uE,g0)=>{"use strict";g0.exports=p0()});var a1=X(Ib(),1);var F=X(nt(),1);var Mn=e=>e;var kw=["path","circle","ellipse","line","polyline","polygon","rect","g"],Vw={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},Bw=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Fb=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,$b=1024;function Gd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Jb(e){let t=Gd(e),n={};for(let[i,l]of Object.entries(Vw)){let a=t[i],o=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof a=="string"&&a.length<=o&&l.test(a)&&(n[i]=a)}for(let i of Bw){let l=t[i];typeof l=="string"&&l.length<=32&&Fb.test(l)&&Math.abs(Number(l))<=1e5&&(n[i]=l)}return n}function Wb(e){let{viewBox:t,attrs:n,shapes:i}=Gd(e);if(typeof t!="string"||t.length>100)return;let l=t.trim().split(/[\s,]+/);if(l.length!==4||!l.every(u=>Fb.test(u)&&Math.abs(Number(u))<=1e5)||Number(l[2])<=0||Number(l[3])<=0)return;let a=64;function o(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(a--<=0)break;let{tag:s,attrs:h,shapes:S}=Gd(p),b=kw.find(v=>v===s);b&&f.push({tag:b,attrs:Jb(h),shapes:b==="g"?o(S,c+1):[]})}return f}let r=o(i,0);return r.length?{viewBox:l.join(" "),attrs:Jb(n),shapes:r}:void 0}var e0=["siblings","ontology","crosslinks","sidecar"],Yd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},cc=["view",...e0,"dock","theme"],qd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function sc(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=Yd.view.find(o=>o===t.view),l=Yd.dock.find(o=>o===t.dock),a=Yd.theme.find(o=>o===t.theme);i&&(n.view=i),l&&(n.dock=l),a&&(n.theme=a);for(let o of e0){let r=t[o];typeof r=="boolean"&&(n[o]=r)}return Object.keys(n).length?n:void 0}var dc=1e4,Gw=25e4,Yw=256*1024*1024,i0=24*1024*1024,Xd="data/search.json",Kd="theme/publication.css",VM=48*1024,Qd=["parent","child","left","right","previous","next"],qw=["document","drawing","attachment","folder","tag","url"],jw=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,Xw=/^[a-f0-9]{64}$/,t0=["none","arrow","triangle","bar","dot"],Kw=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,Qw=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Zd(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function Si(e){return typeof e=="string"&&Qw.test(e)}function Id(e){if(!Si(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Jd(e){return typeof e=="string"&&e.length<=180&&jw.test(e)}function En(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function Hl(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Zn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function l0(e,t){return Zn(e,0,t-1)&&Number.isInteger(e)}function fc(e,t){let n=En(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:l,gateRadius:a,icon:o}=n;if(l!==void 0&&!Zn(l,6,96))throw new Error("Invalid publication font size");if(a!==void 0&&!Zn(a,0,40))throw new Error("Invalid publication gate radius");if(o!=null&&!l0(o,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:l,gateRadius:a,...o===void 0?{}:{icon:o}}}function Zw(e,t){let{center:n,sibling:i,inferred:l}=En(e);return{center:n===void 0?void 0:fc(n,t),sibling:i===void 0?void 0:fc(i,t),inferred:l===void 0?void 0:fc(l,t)}}function Iw(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:a,endHead:o,labelColor:r,labelSize:u}=En(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Zn(n,.25,20)||i!==void 0&&typeof i!="boolean"||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication link style");let c=t0.find(p=>p===a),f=t0.find(p=>p===o);if(a!==void 0&&!c||o!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Zn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:c,endHead:f,labelColor:r,labelSize:u}}function Jw(e){let t=En(e),n={};if(t.maximum!==void 0){if(!Zn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=En(t.geometry),l={},a=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let o of a){let r=i[o];if(r!==void 0){if(!Zn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(l,{[o]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...l,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}=En(t.typography);if(i!==void 0&&!Zn(i,6,48)||a!==void 0&&!Zn(a,6,48)||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}}return n}function Fw(e){let t=Object.entries(En(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,l]of t){if(!Hl(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(Hl(l,1e3)||typeof l=="boolean"||typeof l=="number"&&Number.isFinite(l))n.set(i,l);else if(Array.isArray(l)&&l.length<=48&&l.every(a=>Hl(a,1e3)))n.set(i,[...l]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function a0(e){let t=En(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!Kw.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!Si(t.id)||!Si(t.entry)||!Hl(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>dc||!Array.isArray(t.relations)||t.relations.length>Gw||!Array.isArray(t.resources)||t.resources.length>dc*4)throw new Error("Invalid publication manifest");let i=0,l=new Set,a=t.resources.map(b=>{let{path:v,bytes:m,sha256:d}=En(b);if(!Jd(v)||l.has(v)||!Zn(m,0,32*1024*1024)||!Number.isInteger(m)||typeof d!="string"||!Xw.test(d))throw new Error("Invalid publication resource");if(l.add(v),i+=m,i>Yw)throw new Error("Publication exceeds package limit");return{path:v,bytes:m,sha256:d}}),o;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>$b)throw new Error("Invalid publication icons");o=t.icons.map(b=>{let v=Wb(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=o?.length??0,u=new Set,c=new Set,f=t.nodes.map(b=>{let v=En(b),{id:m,title:d,aliases:g,asset:x,url:M,trailIcon:T}=v,w=qw.find(N=>N===v.kind);if(!Si(m)||u.has(m)||!Hl(d,512)||!w)throw new Error("Invalid publication node");if(u.add(m),w==="document"||w==="drawing"){let N=Id(m);if(!l.has(N))throw new Error("Missing publication note resource");c.add(N)}if(x!==void 0&&(typeof x!="string"||!x.startsWith("assets/")||!l.has(x)))throw new Error("Missing publication asset");if(M!==void 0&&(w!=="url"||!Zd(M)))throw new Error("Invalid publication web link");if(T!==void 0&&!l0(T,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>Hl(N,512))))throw new Error("Invalid publication aliases");return{id:m,title:d,kind:w,...g===void 0?{}:{aliases:[...g]},...x===void 0?{}:{asset:x},...M===void 0?{}:{url:M},...T===void 0?{}:{trailIcon:T},...v.style===void 0?{}:{style:fc(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:Zw(v.roleStyles,r)},...v.properties===void 0?{}:{properties:Fw(v.properties)}}});if(!u.has(t.entry)||[...l].some(b=>b.startsWith("notes/")&&!c.has(b))||t.fullText!==l.has(Xd))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let s=new Set,h=t.relations.map(b=>{let{source:v,target:m,relationType:d,direction:g,definition:x,role:M,style:T}=En(b),w=Qd.find(V=>V===M);if(typeof v!="string"||typeof m!="string"||v===m||!u.has(v)||!u.has(m)||!w||d!==1&&d!==2||g!==null&&g!==1&&g!==2&&g!==3||x!==void 0&&!Hl(x,192))throw new Error("Invalid publication relationship");let N=`${v}/${m}/${w}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:v,target:m,role:w,relationType:d,direction:g,...x===void 0?{}:{definition:x},...T===void 0?{}:{style:Iw(T)}}}),S=sc(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:h,resources:a,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...S&&{canvasDefaults:S},...o===void 0?{}:{icons:o},...t.appearance===void 0?{}:{appearance:Jw(t.appearance)}}}var nr={key:"F4"};function o0(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(l,a)=>a<=8&&(!l||typeof l!="object"||Object.values(l).every(o=>i(o,a+1)));return i(n,0)?n:null}catch{return null}}var ht={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},mc={min:.1,max:4,step:.05};function ka(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var hc={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:ka(96,40,240),verticalSpacing:ka(24,12,80),parentColumns:ka(2,1,3),initialGenerations:ka(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=mc.min&&e<=mc.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=mc.min&&e<=mc.max},maximumDepth:ka(10,1,ht.depth),maximumOccurrences:ka(500,16,ht.occurrences)}};function pc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=l=>Object.prototype.hasOwnProperty.call(t,l)?t[l]:hc.fields[l].defaultValue;for(let[l,a]of Object.entries(hc.fields))if(!a.validate(n(l)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var Fd={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},gc={version:0,unavailable:!0};function Ul(e){return typeof e=="string"&&e.length>0&&e.length<=ht.occurrenceCharacters}function nl(e){if(e==null)return{...Fd,expanded:[],collapsed:[],sides:{}};let t=o0(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return gc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),l=Reflect.get(t,"expanded"),a=Reflect.get(t,"collapsed"),o=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ul(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(l)||!Array.isArray(a)||l.length>256||a.length>256||!l.every(Ul)||!a.every(Ul)||!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).length>256)return gc;let r=[];for(let[c,f]of Object.entries(o)){let p=f;if(!Ul(c)||p!==-1&&p!==1)return gc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:Mn(n),initialGenerations:i,expanded:[...new Set(l)].sort(),collapsed:[...new Set(a)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=ht.stateCharacters?u:gc}function r0(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function ir(e){let t=nl(e);return t.version===1?t:null}function yc(e,t,n){let i=nl(e),l=i.version===1&&i.scope===t.layoutRoot?i:nl(t.stateSuggestion);if(l.version!==1||l.scope!==t.layoutRoot)return null;let a=new Set(l.expanded),o=new Set(l.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(o.delete(u.id),a.add(u.id)):(a.delete(u.id),o.add(u.id));return ir({...l,expanded:[...a],collapsed:[...o]})}var D={licenses:"Runtime licenses",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",theme:"Theme",about:"About",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},il={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",system:"System",trigger:e=>`Color theme (${e})`},In={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};var bc=class{constructor(t,n,i,l=750,a){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=l;this.modifierFeedback=a;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function u0(e,t){let n=e.ownerDocument,i=n.defaultView,l=r=>t.modifier(r.altKey,r.isTrusted),a=()=>t.clear(),o=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",l),i.addEventListener("keyup",l),i.addEventListener("blur",a),n.addEventListener("visibilitychange",o),()=>{i.removeEventListener("keydown",l),i.removeEventListener("keyup",l),i.removeEventListener("blur",a),n.removeEventListener("visibilitychange",o),t.clear()}}var $d={min:8,max:20,step:1,default:12};function Wd(e){return typeof e=="number"&&Number.isFinite(e)?Math.max($d.min,Math.min($d.max,e)):$d.default}var lr=(e,t,n)=>Math.max(t,Math.min(n,e));function c0(e){return Math.max(5,(e.gateRadius??5)*1.05)}function em(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function ar(e,t,n=12.4){return(t?lr(e*.72,13,24):lr(e*.62,10,16))*lr(Number.isFinite(n)?n:12.4,8,28)/12.4}function $w(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((l,a)=>l+(a.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function s0(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function f0(e,t){return e.reduce((n,i)=>Math.max(n,32+$w(i,t)),0)}function d0(e,t,n,i=!1,l=30,a,o=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,em(l,i)),f=i?180:112,s=Math.max(f,a??(i?370:286)),h=i?ar(t,!0,n.baseFontSize)*.55:t*u*.29,S=lr(70+c*Math.max(4.8,h),f,s),b=(i?16:8)+2*Math.max(0,o),v=ar(t,i,n.baseFontSize),m=Math.max(i?48:26,Math.ceil(v*1.6+b)),d=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(m,d):m,x=Wd(n.propertyFontSize),M=f0(r,x);return{width:r.length?lr(Math.max(S,M),f,s):S,height:g+s0(r,x)}}function m0(e,t,n,i,l=1,a=[]){if(t===1)return e;let o=Wd(i.propertyFontSize),r=f0(a,o),u=ar(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,l))+s0(a,o))}}var qe=X(me(),1);function y0({bounds:e,semanticRole:t,className:n,style:i,...l}){return(0,qe.jsx)("div",{...l,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function b0({label:e,maximum:t,center:n}){let i=em(t??30,n),l=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,qe.jsx)("span",{className:"kplex-thought-text",title:e,children:l})}function v0({wrap:e,children:t}){return(0,qe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function S0({side:e,connected:t,highlighted:n,disabled:i,count:l,...a}){return(0,qe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,qe.jsx)("span",{...a,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),l!==null&&(0,qe.jsx)("span",{className:"kplex-gate-count",children:l})]})}function x0(e){return(0,qe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function w0({label:e,midpoint:t,fontSize:n,color:i,background:l,opacity:a}){if(!e)return null;let o=n??10,r=Math.max(20,e.length*o*.58+10),u=o+6;return(0,qe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:a,children:[(0,qe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:l}),(0,qe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:o,children:e})]})}function tm(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function M0({prefix:e="kplex"}){return(0,qe.jsxs)("defs",{children:[(0,qe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,qe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,qe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}var E0={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function or(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function T0(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=or(e,n);return i.length===1&&i[0]===t?n:void 0}function nm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Va(e){return typeof e=="string"&&e.trim().length>0}function t2(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(E0,e)!==void 0}function N0(e){let t=nm(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return n2(a0(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Va(t.title)||!Va(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,l=Object.freeze([]);for(let u of t.nodes){let c=nm(u);if(!c||!Va(c.id)||!Va(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=Mn(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:l,tags:l,styleTags:l,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let a=n.get(t.entry)?.id;if(!a)throw new Error("Missing publication entry node");let o=new Map,r=new Set;for(let u of t.relations){let c=nm(u);if(!c||!Va(c.source)||!Va(c.target)||!t2(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=E0[c.role],h=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(h))throw new Error("Invalid or duplicate publication relationship");r.add(h),r.add(JSON.stringify([p.id,s,f.id])),im(o,f,p,c.role,1,1,c.label),im(o,p,f,s,1,2,c.label)}return{title:t.title,entry:a,read:R0(n,o),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function im(e,t,n,i,l,a,o){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:l,direction:a,definition:o}))}function n2(e){let t=new Map,n=new Map,i=new Map,l=new Map,a=new Map;for(let o of e.nodes){let r=Mn(o.id),u=o.id.slice(0,8),c=l.get(u);c?c.push(r):l.set(u,[r]);let f=o.kind==="folder"?"container":o.kind==="drawing"?"document":o.kind;t.set(r,Object.freeze({id:r,name:o.title,kind:f,resolution:"resolved",url:o.url??null,aliases:o.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,o)}for(let o of e.relations)im(i,t.get(o.source),t.get(o.target),o.role,o.relationType,o.direction,o.definition),o.style&&a.set(`${o.source}/${o.target}/${o.role}`,o.style);return{title:e.title,entry:Mn(e.entry),read:R0(t,i),nodes:t,shortIds:l,manifest:e,published:n,body:()=>{},linkStyle:(o,r,u)=>a.get(`${o}/${r}/${u}`)}}function R0(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(a,o)=>n.compare(a.name,o.name)||(a.id<o.id?-1:a.id>o.id?1:0);for(let a of t.values())for(let o of a.values())Object.freeze(o.sort((r,u)=>i(r.node,u.node)));let l=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:a=>e.get(a)??null,scope:a=>({coverage:e.has(a)?"local":"unavailable",complete:e.has(a),prepared:e.has(a),pending:!1}),relations(a,o,r){if(!e.has(a))return{items:l,coverage:"unavailable",truncated:!1};let u=t.get(a)?.get(o)??l,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}var Pl=X(nt(),1);function C0(e,t){let n=cc.map(i=>{let l=t?.get(i)??e.get(i);return[i,l==="1"?!0:l==="0"?!1:l]});return sc(Object.fromEntries(n))??{}}function lm(e,t){for(let n of cc){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function am(e,t){return cc.every(n=>e?.[n]===t?.[n])}var i2=80;function Sc(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-i2)}function rm(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function rr(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),l=i===null?[]:or(e,i),a=l.length===1?l[0]:void 0,o=rm(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=C0(t.searchParams,n);return{location:{id:a??e.entry,fragment:a||i===null?o:void 0,canvas:r},addressProblem:i===null||a?void 0:l.length?"ambiguous":"missing",matches:l}}function l2(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),lm(i,n),`#${i}`}function A0(e,t,n,i){try{let l=new URL(e,t);if(l.origin!==t.origin||l.pathname!==t.pathname&&l.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=rr(n,l);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:rm(l.hash)};if(!(l.searchParams.get("node")??l.searchParams.get("node-id")))return;let{location:o,addressProblem:r}=rr(n,l);return r?void 0:o}catch{return}}function Ba(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=l2(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),lm(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function z0(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let l=a=>a.endsWith("/")?a+"index.html":a;return l(i.pathname)!==l(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:rr(n,i)}catch{return}}function om(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function O0(e,t,n){let i=(0,Pl.useRef)(n);i.current=n;let l=e.manifest?.id,[a,o]=(0,Pl.useState)(()=>{let S=t?rr(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&l?om(t.history.state,l)??{position:0,last:0}:void 0;return{entries:[S.location],index:0,addressProblem:S.addressProblem,browser:b,visits:[S.location]}}),r=a.entries[a.index],u=(0,Pl.useRef)(a.browser?.last??0);(0,Pl.useEffect)(()=>{if(!t||!l)return;let S=t.history,b=m=>{let{location:d,addressProblem:g}=rr(e,new URL(t.location.href)),x=om(m.state,l),M=x?{...x,last:Math.max(x.position,u.current)}:{position:0,last:0};u.current=M.last,S.replaceState({kplexPublication:l,...M},""),i.current(d.id),o(T=>({entries:[d],index:0,addressProblem:g,browser:M,visits:Sc(T.visits,d)}))},v=om(S.state,l)??{position:0,last:0};return S.replaceState({kplexPublication:l,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,l]);function c(S){let b={...S,canvas:{...r.canvas,...S.canvas}};if(!e.nodes.has(b.id)||!a.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&am(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&l&&a.browser){let m=a.browser.position+1,d={position:m,last:m};return t.history.pushState({kplexPublication:l,...d},"",Ba(new URL(t.location.href),b)),u.current=m,o({entries:[b],index:0,browser:d,visits:Sc(a.visits,b)}),!0}let v=a.index+1;return o({entries:[...a.entries.slice(0,v),b],index:v,visits:Sc(a.visits,b)}),!0}function f(S){let b={...r.canvas,...S};if(am(r.canvas,b))return;let v={...r,canvas:b};t&&l&&a.browser&&t.history.replaceState(t.history.state,"",Ba(new URL(t.location.href),v));let m=[...a.entries];m[a.index]=v,o({...a,entries:m})}let p=a.browser?a.browser.position>0:a.index>0,s=a.browser?a.browser.position<a.browser.last:a.index+1<a.entries.length;function h(S){if(S===-1?p:s)if(t&&a.browser)t.history.go(S);else{let b=a.index+S,v=a.entries[b];i.current(v.id),o({...a,index:b,addressProblem:void 0,visits:Sc(a.visits,v)})}}return{attention:r,activate:c,changeCanvas:f,move:h,visits:a.visits,addressProblem:a.addressProblem,canGoBack:p,canGoForward:s}}var ll=X(nt(),1);var Ga=X(nt(),1),_0=X(Rr(),1);var a2="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function o2(){}function r2(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function u2(e,t){let i=r2(e)?.closest(a2)??null;return!!(i&&t.contains(i))}function D0(e,t,n,i,l){let a=t+l,o=Math.max(a,t+n-i-l);return Math.min(o,Math.max(a,e))}function c2(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function L0({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let l=e.ownerDocument,a=l.defaultView;if(!a||t.ownerDocument!==l)return o2;let o=null,r=!1,u=!1,c=!1,f=a.visualViewport,p=(M,T)=>{let w=e.getBoundingClientRect(),N=c2(a),V=D0(M,N.left,N.width,w.width,n),E=D0(T,N.top,N.height,w.height,n);e.style.setProperty("--kplex-dialog-left",`${V}px`),e.style.setProperty("--kplex-dialog-top",`${E}px`),e.classList.add("is-positioned"),u=!0,i?.({left:V,top:E})},s=()=>{if(!u||c)return;let M=e.getBoundingClientRect();p(M.left,M.top)},h=()=>{l.removeEventListener("pointermove",b,!0),l.removeEventListener("pointerup",v,!0),l.removeEventListener("pointercancel",v,!0)},S=()=>{if(!o)return;let M=o.pointerId;o=null,r=!1,h(),t.hasPointerCapture(M)&&t.releasePointerCapture(M),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(M){let T=o;if(!T||M.pointerId!==T.pointerId)return;M.preventDefault(),M.stopPropagation();let w=M.clientX-T.startClientX,N=M.clientY-T.startClientY;if(!r){if(Math.hypot(w,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(T.startLeft+w,T.startTop+N)}function v(M){!o||M.pointerId!==o.pointerId||(M.preventDefault(),M.stopPropagation(),S())}let m=M=>{o?.pointerId===M.pointerId&&S()},d=()=>{S()},g=M=>{if(c||o||M.button!==0||u2(M.target,t))return;let T=e.getBoundingClientRect();o={pointerId:M.pointerId,startClientX:M.clientX,startClientY:M.clientY,startLeft:T.left,startTop:T.top},l.addEventListener("pointermove",b,!0),l.addEventListener("pointerup",v,!0),l.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(M.pointerId)}catch{}M.preventDefault(),M.stopPropagation()},x=()=>{c||(c=!0,S(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",m),a.removeEventListener("blur",d),a.removeEventListener("resize",s),a.removeEventListener("pagehide",x),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",m),a.addEventListener("blur",d),a.addEventListener("resize",s),a.addEventListener("pagehide",x),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),x}function s2(e,t){let n=e.target,i=e.composedPath();return t.some(l=>l?i.includes(l)?!0:n?l.contains(n):!1:!1)}function xc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:l,insideRoots:a,onDismiss:o,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,h]=(0,Ga.useState)({}),S=(0,Ga.useRef)({insideRoots:a,onDismiss:o,handleEscape:u});S.current={insideRoots:a,onDismiss:o,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,m=b?.closest("[data-floating-layer-boundary]")??null,d=e&&v?m??c(v):null,g=n?.x,x=n?.y;return(0,Ga.useLayoutEffect)(()=>{if(!e)return;let M=t.current;if(!M)return;let T=M.ownerDocument,w=T.defaultView;if(!w)return;let N=!1,V=null,E=()=>{if(N)return;let J=t.current;if(!J||J.ownerDocument!==T)return;let C=J.getBoundingClientRect();if(r&&(!J.getClientRects().length||!C.width||!C.height)){S.current.onDismiss("anchor-hidden");return}let P=w.visualViewport,z=m?.getBoundingClientRect(),Y=z&&m?z.left+m.clientLeft-m.scrollLeft:0,ee=z&&m?z.top+m.clientTop-m.scrollTop:0,te=Math.max(P?.offsetLeft??0,z?.left??0),H=Math.max(P?.offsetTop??0,z?.top??0),Z=Math.min((P?.offsetLeft??0)+Math.min(w.innerWidth,P?.width??w.innerWidth),z?.right??1/0),ue=Math.min((P?.offsetTop??0)+Math.min(w.innerHeight,P?.height??w.innerHeight),z?.bottom??1/0),fe=Math.min(f.viewportMargin,Math.max(0,(Z-te)/2)),wt=g??C.left,we=x??C.top,Mt=x??C.bottom,je=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-te-fe*2)),Rn=Math.max(te+fe,Math.min(V?.left??wt,Z-je-fe)),et=ue-Mt-f.anchorGap-fe,Et=we-H-f.anchorGap-fe,pn=et<f.minimumMaxHeight&&Et>et?we-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Et):Mt+f.anchorGap,Dt=Math.max(H+fe,Math.min(V?.top??pn,ue-Math.min(f.minimumMaxHeight,Math.max(0,ue-H-fe*2))-fe));h({position:m?"absolute":"fixed",left:Rn-Y,top:Dt-ee,width:je,maxHeight:Math.max(0,ue-Dt-fe)})},k=J=>{s2(J,S.current.insideRoots())||S.current.onDismiss("outside-pointer")},L=J=>{if(J.key!=="Escape"||S.current.handleEscape?.(J)===!1)return;J.preventDefault(),J.stopPropagation(),S.current.onDismiss("escape");let C=t.current;C?.ownerDocument===T&&C.isConnected&&C.focus({preventScroll:!0})},_=w.ResizeObserver,q=_?new _(E):null;q?.observe(M),m&&q?.observe(m),i.current&&q?.observe(i.current),w.addEventListener("resize",E),w.visualViewport?.addEventListener("resize",E),w.visualViewport?.addEventListener("scroll",E),T.addEventListener("scroll",E,!0),T.addEventListener("pointerdown",k,!0),T.addEventListener("keydown",L,!0);let W=i.current,ie=l?.current,I=W&&ie?L0({modalEl:W,handleEl:ie,viewportMargin:f.viewportMargin,onPositionChange:J=>{V=J,E()}}):void 0,ae=()=>{N||(N=!0,I?.(),q?.disconnect(),w.removeEventListener("resize",E),w.visualViewport?.removeEventListener("resize",E),w.visualViewport?.removeEventListener("scroll",E),T.removeEventListener("scroll",E,!0),T.removeEventListener("pointerdown",k,!0),T.removeEventListener("keydown",L,!0),w.removeEventListener("pagehide",ae))};return w.addEventListener("pagehide",ae),E(),ae},[e,r,t,g,x,i,l,v,m,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),d?(0,_0.createPortal)(p(s),d):null}var Tn=X(me(),1),f2={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function H0({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:l}){let a=(0,ll.useRef)(e),o=(0,ll.useRef)(null),r=(0,ll.useRef)(!0),[u,c]=(0,ll.useState)();a.current=e,(0,ll.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let h=e.ownerDocument.defaultView?.navigator.clipboard;if(!h)throw new Error("Clipboard unavailable");await h.writeText(s),r.current&&(l(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[h,S]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?h:s.key==="End"||s.target===h?S:h;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(xc,{open:!0,anchorRef:a,panelRef:o,insideRoots:()=>[o.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:f2,children:s=>(0,Tn.jsx)("div",{ref:o,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":D.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":D.address,value:u,onFocus:h=>h.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:D.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:D.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:D.ambiguousAddress})]})})})}var U0=X(nt(),1);var al=X(nt(),1);var O=X(me(),1),d2={"arrow-left":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,O.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M5 12h14"}),(0,O.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,O.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,O.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,O.jsx)("path",{d:"M3 15h18"})]}),sun:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,O.jsx)("path",{d:"M12 2v2"}),(0,O.jsx)("path",{d:"M12 20v2"}),(0,O.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,O.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,O.jsx)("path",{d:"M2 12h2"}),(0,O.jsx)("path",{d:"M20 12h2"}),(0,O.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,O.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,O.jsx)(O.Fragment,{children:(0,O.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M12 2v2"}),(0,O.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,O.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,O.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,O.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,O.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,O.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,O.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,O.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,O.jsx)(O.Fragment,{children:(0,O.jsx)("path",{d:"M5 12h14"})}),plus:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M5 12h14"}),(0,O.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,O.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,O.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,O.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,O.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,O.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M18 6 6 18"}),(0,O.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,O.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,O.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,O.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,O.jsx)("path",{d:"M12 12V8"})]})};function um({icon:e}){return(0,O.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:d2[e]})}function vt({icon:e,label:t,title:n=t,type:i="button",...l}){return(0,O.jsx)("button",{...l,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,O.jsx)(um,{icon:e})})}var ln=X(me(),1),cm={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},m2={...cm,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},h2={...cm,preferredWidth:280,minimumMaxHeight:235},p2={canvas:{label:D.graphOptions,positioning:cm},theme:{label:il.label,positioning:m2},brand:{label:In.label,positioning:h2}};function g2(e){e?.focus({preventScroll:!0})}function ur({anchor:e,point:t,choices:n,onDismiss:i,variant:l="canvas"}){let a=(0,al.useRef)(e),o=(0,al.useRef)(null),r=(0,al.useRef)(null),[u,c]=(0,al.useState)(null),f=p2[l];a.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("[role^=menuitem]"))?.focus()}(0,al.useLayoutEffect)(()=>{u&&p()},[u]);function s(){c(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function h(){i(),e.focus({preventScroll:!0})}function S(v){if(v.key==="Tab"){h();return}let m=v.target,d=m.closest("[role=menu]");if(d){if(v.key==="ArrowRight"&&m.getAttribute("aria-haspopup")==="menu")m.getAttribute("aria-expanded")==="true"?p():m.click();else if(v.key==="ArrowLeft"&&d!==o.current)s();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(d.querySelectorAll("[role^=menuitem]")).filter(T=>T.closest("[role=menu]")===d),x=g.indexOf(m),M=v.key==="Home"?0:v.key==="End"?g.length-1:(x+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[M]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b(v,m=!1){if("href"in v)return(0,ln.jsx)("a",{role:"menuitem",ref:m?g2:void 0,href:v.href,target:"_blank",rel:"noopener noreferrer",onClick:h,children:v.label},v.href);let{label:d,icon:g,kind:x,checked:M,select:T}=v;return(0,ln.jsxs)("button",{type:"button",role:x,"aria-checked":M,autoFocus:m,onClick:()=>{h(),T()},children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:M?"✓":""}),g&&(0,ln.jsx)(um,{icon:g}),d]},d)}return(0,ln.jsx)(xc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),s(),!1):!0,children:v=>(0,ln.jsx)("div",{ref:o,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:S,children:n.map((m,d)=>"choices"in m?(0,ln.jsxs)("div",{role:"none",children:[(0,ln.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===m.label,onClick:()=>u===m.label?s():c(m.label),children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),m.label,(0,ln.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===m.label&&(0,ln.jsx)("div",{ref:r,role:"menu","aria-label":m.label,children:m.choices.map(g=>b(g))})]},m.label):b(m,l==="theme"?"checked"in m&&m.checked:d===0))})})}var Gt=X(me(),1),sm=[{label:In.github,href:"https://github.com/zsviczian/kplex"},{label:In.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:In.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:In.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:In.book,href:"https://community.sketch-your-mind.com/sym"}];function P0(){let[e,t]=(0,U0.useState)(null);return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":In.label,title:In.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,Gt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Gt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Gt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Gt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Gt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,Gt.jsx)(ur,{anchor:e,variant:"brand",choices:sm,onDismiss:()=>t(null)})]})}var k0=X(nt(),1),V0=X(me(),1);function fm({icon:e,size:t,className:n}){function i(l,a){return(0,k0.createElement)(l.tag,{...l.attrs,key:a},l.shapes.length?l.shapes.map(i):void 0)}return(0,V0.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}var sr=X(nt(),1);function B0(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let l=e[i],a=e[i-1];if(n>l.offset&&i<e.length-1)continue;let o=l.offset>a.offset?(n-a.offset)/(l.offset-a.offset):1,r=(u,c)=>u+(c-u)*o;return{offset:n,x:r(a.x,l.x),y:r(a.y,l.y),scaleX:r(a.scaleX,l.scaleX),scaleY:r(a.scaleY,l.scaleY),originX:r(a.originX,l.originX),originY:r(a.originY,l.originY)}}return null}var wc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,l){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let a=t.animate(n,{...i,fill:"none"});if(!a)return null;this.animations.set(t,a),l&&this.poses.set(t,{animation:a,frames:l});let o=()=>{this.animations.get(t)===a&&(this.animations.delete(t),this.poses.delete(t))};return a.finished.then(o,o),a}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?B0(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};function G0(e,t,n,i){let l=Math.max(.01,n),a=(e.left-t.left)/l,o=(e.top-t.top)/l,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(a,o),f=Math.min(24/l,c*.08),p=c?-o/c:0,s=c?a/c:0;return[0,.35,.65,.85,1].map(h=>{let S=h===0||h===1?0:Math.sin(Math.PI*h),b=a*(1-h)+p*f*S,v=o*(1-h)+s*f*S,m=1+.055*S;return i?.push({offset:h,x:b,y:v,scaleX:(r+(1-r)*h)*m,scaleY:(u+(1-u)*h)*m,originX:0,originY:0}),{offset:h,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*h)*m}, ${(u+(1-u)*h)*m})`,opacity:1}})}var cr=X(nt(),1),Mc=X(me(),1),kl="[data-publication-strip-scroll]";function Y0({id:e,label:t,panel:n,start:i,onScroll:l,children:a}){let o=(0,cr.useRef)(null),r=(0,cr.useRef)(i);return(0,cr.useLayoutEffect)(()=>{o.current&&(o.current.scrollTop=r.current)},[]),(0,Mc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Mc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:o,role:"region","aria-label":t,tabIndex:0,onScroll:u=>l(u.currentTarget.scrollTop),children:(0,Mc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:a})})})}var Ec={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function q0(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(kl),l=>[l,l.getBoundingClientRect()])),i=[];for(let l of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let a=l.getBoundingClientRect(),o=l.closest(kl),r=o?n.get(o)??t:t;a.left>=Math.min(t.right,r.right)||a.right<=Math.max(t.left,r.left)||a.top>=Math.min(t.bottom,r.bottom)||a.bottom<=Math.max(t.top,r.top)||i.push({element:l,id:l.dataset.publicationNode,occurrence:l.dataset.publicationOccurrence,rect:a,clipped:r!==t&&(a.top<r.top||a.bottom>r.bottom)})}return i}function y2(e,t){let n=new Set(e),i=new Map(e.map(o=>[o.occurrence,o])),l=new Map;for(let o of e){let r=l.get(o.id);r?r.push(o):l.set(o.id,[o])}let a=new Map;for(let o of t){let r=i.get(o.occurrence);r?.id===o.id&&(a.set(o,r),n.delete(r))}for(let o of t){if(a.has(o))continue;let r,u=1/0;for(let c of l.get(o.id)??[]){if(!n.has(c))continue;let f=Math.hypot(o.rect.x-c.rect.x,o.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(a.set(o,r),n.delete(r))}return{pairs:a,remaining:n}}function j0(e,t){let n=(0,sr.useRef)(new wc).current,i=(0,sr.useRef)(null);function l(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,sr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",l),()=>{r?.removeEventListener("change",l),l()}},[]);function a(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){l();return}i.current={id:r,cards:q0(u)}}}function o(r,u){let c=e.current,f=t.current,p=i.current;if(l(),!c||!f||p?.id!==r)return;let s=q0(c),{pairs:h,remaining:S}=y2(p.cards,s);for(let m of s){let d=h.get(m)?.rect;d?(Math.abs(d.left-m.rect.left)>.5||Math.abs(d.top-m.rect.top)>.5||Math.abs(d.width-m.rect.width)>.5||Math.abs(d.height-m.rect.height)>.5)&&n.play(m.element,G0(d,m.rect,u),Ec):n.play(m.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],Ec)}let b=f.getBoundingClientRect();for(let m of S){if(m.clipped||m.element.isConnected)continue;let d=m.element.cloneNode(!0);d.removeAttribute("role"),d.removeAttribute("tabindex"),d.removeAttribute("data-publication-node"),d.removeAttribute("data-publication-occurrence"),d.removeAttribute("data-publication-center"),d.style.left=`${m.rect.left-b.left}px`,d.style.top=`${m.rect.top-b.top}px`;let g=m.rect.width/parseFloat(d.style.width),x=m.rect.height/parseFloat(d.style.height);f.append(d);let M=n.play(d,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${x})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${x*.95})`}],{...Ec,duration:200});M?M.finished.then(()=>d.remove(),()=>d.remove()):d.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],Ec)}return{capture:a,play:o,cancel:l}}var Ot=X(nt(),1);var fr=X(me(),1);function X0({label:e,controlId:t,children:n,layout:i="stacked",actions:l,className:a=""}){return(0,fr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${l?" has-actions":""} ${a}`,children:[(0,fr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,l?(0,fr.jsx)("div",{className:"kplex-field-actions",children:l}):null]})}var Tc=X(nt(),1);var De=X(nt(),1),Q0=X(Rr(),1),St=X(me(),1);function b2(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),l=i.indexOf(n);if(l>=0)return new Set(Array.from({length:n.length},(r,u)=>l+u));let a=new Set,o=0;for(let r of n){let u=i.indexOf(r,o);if(u<0)return new Set;a.add(u),o=u+1}return a}function K0(e,t){let n=b2(e,t);if(!n.size)return e;let i=[],l=0,a=n.has(0);for(let o=1;o<=e.length;o+=1){let r=o<e.length&&n.has(o);if(o<e.length&&r===a)continue;let u=e.slice(l,o);i.push(a?(0,St.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${l}:m`):(0,St.jsx)("span",{children:u},`${l}:t`)),l=o,a=r}return(0,St.jsx)(St.Fragment,{children:i})}function Z0({value:e,onChange:t,results:n,getResults:i,onChoose:l,getKey:a,getLabel:o,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:h=!1,disabled:S=!1,floating:b=!1,floatingMode:v="app",portalSelector:m,appTopbarSelector:d,maxFloatingHeight:g=440,minFloatingWidth:x=0,resultsClassName:M="",matchingQuery:T,resultsOwnerId:w,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:V,onEnterWithoutResult:E,onCtrlEnter:k,openResultsOnFocus:L=!0,onFocusChange:_,onDismiss:q,focusRequest:W,inputTitle:ie,inputKeyShortcuts:I,className:ae="",highlightMatches:J=!0,closeOnChoose:C=!0,closeOnBlur:P=!1,combobox:z=!1,advanceOnChoose:Y=!1,disclosure:ee}){let te=(0,De.useId)(),[H,Z]=(0,De.useState)(!1),[ue,fe]=(0,De.useState)(!1),[wt,we]=(0,De.useState)(!1),[Mt,je]=(0,De.useState)(!1),[Rn,et]=(0,De.useState)(0),[Et,pn]=(0,De.useState)(null),Dt=(0,De.useRef)(null),wi=(0,De.useRef)(null),Fn=(0,De.useRef)(null),rl=H&&!wt&&(Mt||L||ue&&e.trim().length>0),he=(0,De.useMemo)(()=>rl?i?.(e)??n??[]:[],[rl,i,n,e]),tt=he.length?Math.max(0,Math.min(he.length-1,Rn)):0,Lt=Dt.current?.ownerDocument??null,Te=Lt?.defaultView??null,Cn=b?v==="viewport"?Lt?.body??null:m?Dt.current?.closest(m)??null:null:null,An=H&&he.length>0&&(!b||!!(Cn&&Et)),$n=()=>{je(!1),we(!0),et(0),q?.()},Yt=()=>{ee&&(ee.onOpen(),Fn.current?.focus({preventScroll:!0}),Z(!0),je(!0),we(!1),et(0))},ul=U=>{je(!1),Z(!U),fe(!1),we(!U),et(0);let le=Fn.current;U&&le&&le.ownerDocument.activeElement===le&&le.blur(),_?.(!1)},Wn=()=>ul(!0),zn=U=>{if(l(U),C){ul(!z);return}Y&&he.length>0&&et(le=>(Math.max(0,Math.min(he.length-1,le))+1)%he.length)};(0,De.useEffect)(()=>{et(0)},[e]);let Pe=(0,De.useCallback)(()=>{let U=Fn.current;U&&(Z(!0),fe(!1),we(!1),U.focus({preventScroll:!0}),_?.(!0))},[_]);(0,De.useEffect)(()=>{h&&Pe()},[h,Pe]),(0,De.useEffect)(()=>{W&&Pe()},[W,Pe]),(0,De.useEffect)(()=>{let U=Dt.current;if(!U)return;let le=()=>$n();return U.addEventListener("kplex-dismiss-suggestions",le),()=>U.removeEventListener("kplex-dismiss-suggestions",le)},[q]),(0,De.useEffect)(()=>{if(!H||!Lt||!Te)return;let U=Dt.current;if(!U)return;let le=gn=>{let Tt=gn.target;Tt&&(U.contains(Tt)||wi.current?.contains(Tt))||Wn()},Ge=()=>Lt.removeEventListener("pointerdown",le,!0);return Lt.addEventListener("pointerdown",le,!0),Te.addEventListener("pagehide",Ge,{once:!0}),()=>{Ge(),Te.removeEventListener("pagehide",Ge)}},[H,Lt,Te]),(0,De.useLayoutEffect)(()=>{if(!b||!H||!he.length){pn(null);return}let U=Dt.current;if(!U||!Te)return;let le=Te.visualViewport,Ge=()=>{let ni=U.getBoundingClientRect(),qt=8,Qa=6;if(v==="viewport"){let Sr=le?.offsetLeft??0,y=le?.offsetTop??0,A=le?.width??Te.innerWidth,B=y+(le?.height??Te.innerHeight),K=Math.min(Math.max(ni.width,x),Math.max(0,A-qt*2)),re=Math.max(Sr+qt,Math.min(ni.left,Sr+A-qt-K)),j=Math.max(ni.bottom+Qa,y+qt),_e=Math.min(ni.top-Qa,B-qt),pt=Math.max(0,B-qt-j),Xe=Math.max(0,_e-y-qt),Le=pt>=Math.min(180,g)||pt>=Xe,jt=Math.max(0,Math.min(g,Le?pt:Xe)),Xt={position:"fixed",left:re,width:K,maxHeight:jt,zIndex:1e4};Le?Xt.top=j:Xt.bottom=Te.innerHeight-_e,pn(Xt);return}let hr=m?U.closest(m)??null:null,pr=d?U.closest(d)??null:null;if(!hr||!pr)return;let On=hr.getBoundingClientRect(),gr=pr.getBoundingClientRect(),Za=Math.max(0,On.width-qt*2),yr=Math.min(780,Math.max(ni.width,Math.min(620,Za)),Za),Ia=qt,br=Math.max(Ia,On.width-qt-yr),vr=Math.min(br,Math.max(Ia,ni.left-On.left)),Ja=Math.max(0,gr.bottom-On.top+Qa),Fa=Math.max(0,Math.min(g,On.height-Ja-qt));pn({left:vr,top:Ja,width:yr,maxHeight:Fa})};Ge();let gn=Te.ResizeObserver,Tt=gn?new gn(Ge):null,ti=v==="app"&&m?U.closest(m):null,Ka=v==="app"&&d?U.closest(d):null;ti&&Tt?.observe(ti),Ka&&Tt?.observe(Ka),Tt?.observe(U);let cl=()=>{Tt?.disconnect(),Te.removeEventListener("resize",Ge),Te.removeEventListener("scroll",Ge,!0),le?.removeEventListener("resize",Ge),le?.removeEventListener("scroll",Ge)};return Te.addEventListener("resize",Ge),Te.addEventListener("scroll",Ge,!0),le?.addEventListener("resize",Ge),le?.addEventListener("scroll",Ge),Te.addEventListener("pagehide",cl,{once:!0}),()=>{cl(),Te.removeEventListener("pagehide",cl)}},[d,b,v,H,he.length,g,x,Lt,Te,m]),(0,De.useEffect)(()=>{let U=wi.current;!U||!he.length||U.querySelector(`[data-kplex-fuzzy-index="${tt}"]`)?.scrollIntoView({block:"nearest"})},[tt,he.length]);let ei=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){$n(),Z(!1),_?.(!1);return}if(U.key==="Escape"){he.length&&(U.preventDefault(),U.stopPropagation(),$n());return}if(z&&ee&&U.key==="ArrowDown"&&!he.length){U.preventDefault(),Yt();return}if(U.key==="ArrowDown"&&he.length){U.preventDefault(),et(le=>Math.min(he.length-1,le+1));return}if(U.key==="ArrowUp"&&he.length){U.preventDefault(),et(le=>Math.max(0,le-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&he.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let le=he[tt];le&&zn(le);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&k){U.preventDefault(),U.stopPropagation(),k();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!k)&&U.key==="Enter"){U.preventDefault();let le=he[tt];le?zn(le):E?.()}}},Mi=H&&he.length>0?(0,St.jsx)("div",{ref:wi,id:z?te:void 0,role:z?"listbox":void 0,"aria-labelledby":z?p:void 0,"aria-label":z&&!p?c:void 0,"data-fuzzy-owner":w,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${M?` ${M}`:""}`,style:b?Et??void 0:void 0,children:he.map((U,le)=>{let Ge=o(U),gn=r?.(U),Tt=J?T??e:"";return(0,St.jsxs)("button",{id:z?`${te}-option-${le}`:void 0,role:z?"option":void 0,"aria-selected":z?le===tt:void 0,tabIndex:z?-1:void 0,"data-kplex-fuzzy-index":le,className:`kplex-search-result${V?" has-prefix":""}${le===tt?" is-selected":""}`,"aria-label":gn?`${Ge}
10
+ ${gn}`:Ge,onMouseDown:ti=>ti.preventDefault(),onMouseEnter:()=>et(le),onClick:()=>zn(U),children:[V?(0,St.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:V(U)}):null,(0,St.jsx)("span",{children:K0(Ge,Tt)}),gn?(0,St.jsx)("small",{children:K0(gn,Tt)}):null]},a(U))})}):null,Xa=b&&Cn&&Et&&Mi?(0,Q0.createPortal)(Mi,Cn):b?null:Mi;return(0,St.jsxs)("div",{ref:Dt,className:`kplex-search-shell kplex-fuzzy-search${ae?` ${ae}`:""}`,children:[s?(0,St.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,St.jsx)("input",{ref:Fn,type:"text",role:z?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:S,onChange:U=>{je(!1),fe(!0),we(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),fe(!1),we(!1),_?.(!0)},onBlur:P?Wn:void 0,onKeyDown:ei,placeholder:u,"aria-label":p?void 0:c,title:ie,"aria-keyshortcuts":I,"aria-labelledby":p,"aria-expanded":z?An:H&&he.length>0,"aria-haspopup":z?"listbox":void 0,"aria-autocomplete":z?"list":void 0,"aria-controls":z&&An?te:void 0,"aria-activedescendant":z&&An?`${te}-option-${tt}`:void 0,autoComplete:"off"}),ee?(0,St.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:z?-1:void 0,disabled:S,"aria-label":ee.label,"aria-expanded":z?An:H&&he.length>0,"aria-haspopup":z?"listbox":void 0,"aria-controls":z&&An?te:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(H&&Mt&&!wt){$n();return}Yt()},children:ee.icon}):null,Xa]})}var J0=X(me(),1);function I0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:l,revision:a,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:h}){let[S,b]=(0,Tc.useState)(""),v=(0,Tc.useCallback)(m=>e.search(m,24),[e,a]);return(0,J0.jsx)(Z0,{value:S,onChange:b,getResults:v,onChoose:m=>{l(m.node.id),p&&b("")},getKey:m=>m.node.id,getLabel:m=>m.label,getDetail:m=>m.detail,resultPrefix:h,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}var v2=1e5,S2=8*1024*1024,F0=1e6,x2=/[\p{L}\p{N}]+/gu,w2=/^[\p{L}\p{N}]{1,128}$/u;function $0(e){return[...new Set(e.normalize("NFC").toLowerCase().match(x2))].filter(t=>t.length<=128)}function M2(e,t){if(!Array.isArray(e)||e.length>dc)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(l=>{if(!l||typeof l!="object"||!("id"in l)||!Si(l.id)||n.has(l.id)||t&&!t.has(l.id)||!("text"in l)||typeof l.text!="string"||l.text.length>v2)throw new Error("Invalid publication search row");if(n.add(l.id),i+=l.text.length,i>S2)throw new Error("Publication search exceeds its text budget");return{id:l.id,text:l.text}})}function W0(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>F0)throw new Error("Invalid publication search index");let n=M2(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let l="",a=0,o=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!w2.test(u)||u!==u.normalize("NFC").toLowerCase()||l>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(l=u,a+=c.length,a>F0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:o}}function Vl(e){return e.trim().normalize("NFC").toLowerCase()}function ev(e,t){let n=new Set([...t.published.values()].filter(l=>l.kind==="document"||l.kind==="drawing").map(l=>l.id)),i=W0(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:l},a)=>[l,a])),postings:new Map(i.terms)}}function E2(e,t){let n=Math.max(0,Vl(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function tv(e,t){let n=new Map,i=[...e.nodes.values()].map(a=>{let o=Vl(a.name),r=a.aliases.map(Vl),u=Object.values(e.published.get(a.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Vl);for(let c of[o,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(a.id)}return{node:a,title:o,aliases:r,properties:u}});return{graph:{search(a,o){let r=Vl(a.slice(0,128));if(!r)return[];let u=$0(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:h,properties:S})=>{let b=t?.positions.get(p.id),v=s===r?1:h.includes(r)?2:s.startsWith(r)?3:h.some(m=>m.startsWith(r))?4:s.includes(r)?5:h.some(m=>m.includes(r))||S.some(m=>m.includes(r))?6:b!==void 0&&f?.every(m=>m.has(b))?7:0;return v?[{score:v,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,o).map(({score:p,node:s,position:h,title:S})=>{let b=p===7&&h!==void 0?t?.rows[h]?.text:void 0,v=b&&c?E2(b,c):n.get(S).size>1?s.id:s.aliases.find(m=>Vl(m).includes(r))??"";return{node:s,label:s.name,detail:v}})}},address(a){let o=Vl(a),r=or(e,o);return r.length?r:[...n.get(o)??[]]}}}var $e=X(me(),1);function nv({publication:e,resources:t,page:n,searchFocus:i,onChoose:l}){let a=(0,Ot.useRef)(null),o=(0,Ot.useId)(),[r,u]=(0,Ot.useState)(""),[c,f]=(0,Ot.useState)([]),[p,s]=(0,Ot.useState)(!1),[h,S]=(0,Ot.useState)(!1),[b,v]=(0,Ot.useState)(null),[m,d]=(0,Ot.useState)(!1),g=(0,Ot.useMemo)(()=>tv(e,h?b:null),[e,h,b]);(0,Ot.useEffect)(()=>{let M=a.current?.ownerDocument.defaultView;if(!h||!M||b)return;let T=new M.AbortController,w=T.signal;return d(!1),t.text(Xd,w).then(N=>{w.aborted||v(ev(JSON.parse(N),e))}).catch(()=>{w.aborted||d(!0)}),()=>T.abort()},[h,e,t,b]);function x(M){M.preventDefault();let T=z0(r.trim(),n(),e),w=T?T.matches:g.address(r);if(w.length!==1){f(w),s(!w.length);return}f([]),s(!1),l(T?.location??{id:w[0]})}return(0,$e.jsxs)("div",{className:"kplex-publication-tools",ref:a,children:[(0,$e.jsxs)("div",{className:"kplex-publication-search",children:[(0,$e.jsx)(I0,{graph:g.graph,revision:b&&h?1:0,onActivate:M=>l({id:M}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:D.find,ariaLabel:D.find,focusRequest:i,inputTitle:`${D.find} (${nr.key})`,inputKeyShortcuts:nr.key}),e.manifest?.fullText&&(0,$e.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,$e.jsx)(vt,{icon:"file-search",label:D.fullText,"aria-pressed":h,onClick:()=>S(M=>!M)}),h&&(m||!b)&&(0,$e.jsx)("span",{role:"status",children:m?D.searchUnavailable:D.searchLoading})]})]}),(0,$e.jsxs)("form",{className:"kplex-publication-address",onSubmit:x,children:[(0,$e.jsx)(X0,{label:D.address,layout:"inline",controlId:o,actions:(0,$e.jsx)(vt,{icon:"corner-down-left",label:D.open,type:"submit"}),children:(0,$e.jsx)("input",{id:o,type:"text",placeholder:D.address,autoComplete:"off",maxLength:512,value:r,onChange:M=>{u(M.currentTarget.value),f([]),s(!1)}})}),p&&(0,$e.jsx)("span",{role:"status",children:D.nodeUnavailable}),c.length>1&&(0,$e.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,$e.jsx)("p",{children:D.chooseNote}),(0,$e.jsx)("ul",{children:c.slice(0,24).map(M=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("button",{type:"button",onClick:()=>{f([]),l({id:M})},children:[e.nodes.get(M)?.name," · ",M]})},M))}),c.length>24&&(0,$e.jsx)("p",{children:D.chooseAddress})]})]})]})}var xt=X(nt(),1);var T2="https://api.github.com",N2="https://github.com",R2=/^[a-z\d][a-z\d-]{0,38}$/i,C2=/^[a-z\d_.-]{1,100}$/i;function iv(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function lv(e){if(!Zd(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,l="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let a;try{a=l.slice(1).replace(/\/$/,"").split("/").map(h=>decodeURIComponent(h))}catch{return{}}let[o,r,u,...c]=a;if(!o||!r||!R2.test(o)||!C2.test(r)||r==="."||r==="..")return{};let f=`${o}/${r}`,p=`${T2}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let h=s.split("...");if(h.length===2&&h.every(iv))return{repository:f,preview:{api:`${p}/compare/${h.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let h=c.slice(1).join("/");if(iv(h))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(h)}`,caption:h,comparison:!1}}}return{repository:f}}function dm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function mm(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function av(e,t,n){let i=dm(n);if(!t.comparison)return{title:mm(i.title??i.name??i.full_name,240)??t.caption,description:mm(i.body??i.description,16e3)};let l=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(a=>{let{sha:o,commit:r}=dm(a);if(typeof o!="string"||!/^[a-f\d]{40}$/i.test(o))return[];let u=mm(dm(r).message,240);return[{sha:o.slice(0,7),title:u?.split(/\r?\n/,1)[0]??o.slice(0,7),href:`${N2}/${e}/commit/${o}`}]}):[];return{title:t.caption,commits:l,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=l.length?i.total_commits:l.length}}var Nc="http://www.w3.org/1999/xhtml",Ya="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xlink",ov="http://www.w3.org/XML/1998/namespace",z2=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),O2=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),D2=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),L2=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),_2=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),rv=/^[-a-z0-9_]{1,96}$/i,H2=/^[\d\s+.,%()a-z-]+$/i,U2=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,P2=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,k2=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,V2=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,uv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,cv=4*1024*1024;function Rc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function B2(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function G2(e,t=""){if(!Si(e)||t&&!Rc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function sv(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!Si(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!Rc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let l=G2(n[1],i);return t.siteURL?new URL(l,t.siteURL).href:l}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return Rc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return fv(e,t)??(t.allowExternalLinks===!1?null:B2(e))}function fv(e,t){let n=e.slice(2);return!V2.test(e)||!Jd(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function Y2(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let l=i.getAttribute("id");l&&/^[a-z0-9_.:-]{1,160}$/i.test(l)&&!n.has(l)&&n.set(l,`${t}-${n.size+1}`)}return n}function dv(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function mv(e,t,n,i){let l=fv(n,i);l&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,l))}function q2(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let l=`data-publication-${i}`,a=e.getAttribute(l)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(a)&&(t.setAttribute(l,a),t.style.setProperty(`--kplex-published-drawing-${i}`,a.endsWith("%")?a:`${a}px`))}}function j2(e,t,n){let i=e.localName,l=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(l&&Rc(l)&&(t.id=n.idPrefix?`${n.idPrefix}-${l}`:l,t.setAttribute("data-publication-fragment",l)),i==="a"&&dv(t,sv(e.getAttribute("href")??"",n)),i==="figure"&&q2(e,t),i==="img"||i==="audio"||i==="video"){let a=e.getAttribute("src")??"";(i==="img"?uv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(a)&&mv(t,"src",a,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let a=e.getAttribute("data-callout");a&&rv.test(a)&&t.setAttribute("data-callout",a)}if(i==="ol"){let a=e.getAttribute("start");a&&/^\d{1,7}$/.test(a)&&t.setAttribute("start",a)}}var X2=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,K2=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,Q2=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,Z2=new Set(["text","tspan","textPath"]),I2={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},J2=512*1024;function F2(e,t){let n=new Map,i=[],l=0;for(let a of Array.from(e.children))if(!(a.namespaceURI!==Ya||a.localName!=="defs"))for(let o of Array.from(a.children)){if(o.namespaceURI!==Ya||o.localName!=="style"||o.childElementCount)continue;let r=o.textContent??"";if(l+=r.length,l>J2)return{families:new Map,rules:[]};for(let u of r.matchAll(X2)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(I2[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let h=new Map;for(let b of u[6].split(";")){let[v,m]=b.split(":").map(d=>d.trim().toLowerCase());m&&(v==="unicode-range"&&m.length<=8192&&Q2.test(m)||v==="font-weight"&&K2.test(m)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(m))&&h.set(v,m)}let S=[...h].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${S}}`)}}return{families:n,rules:i}}function $2(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function W2(e,t,n,i,l){for(let a of Array.from(e.attributes)){let{localName:o,value:r}=a;if(!(r.length>65536)){if(Z2.has(e.localName)&&(o==="style"&&!a.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||o==="space"&&a.namespaceURI===ov&&r==="preserve")){t.setAttributeNS(ov,"xml:space","preserve");continue}if(o==="href"&&(a.namespaceURI===null||a.namespaceURI===A2)){if(e.localName==="a")dv(t,sv(r,i));else if(e.localName==="image"&&uv.test(r))mv(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!a.namespaceURI)if(o==="id"){let u=n.get(r);u&&t.setAttribute(o,u)}else if(_2.has(o)){let u=k2.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(o,`url(#${c})`):P2.test(r)&&t.setAttribute(o,r)}else D2.has(o)&&H2.test(r)?t.setAttribute(o,r):L2.has(o)&&U2.test(r)&&t.setAttribute(o,o==="font-family"?$2(r,l?.families):r)}}}function eM(e,t,n){if(n.idPrefix&&!rv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=n.siteURL?t:t.implementation.createDocument(null,null),a=l.adoptNode(new i.DocumentFragment),o=0,r=0,u=0,c=new Set,f=(p,s,h,S,b)=>{if(++o>1e5||h>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let m=p.nodeValue??"";if(u+=m.length,u>cv)throw new Error("Publication content too large");s.appendChild(l.createTextNode(m));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===Ya&&O2.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;S=Y2(v,g),b=n.allowDrawingFonts?F2(v,g):void 0}if(!S)return;let m=l.createElementNS(Ya,v.localName);W2(v,m,S,n,b);let d=m.getAttribute("id");if(d&&c.has(d)?m.removeAttribute("id"):d&&c.add(d),s.appendChild(m),v.localName==="svg"&&b?.rules.length){let g=l.createElementNS(Ya,"defs"),x=l.createElementNS(Ya,"style");x.textContent=b.rules.join(`
11
+ `),g.appendChild(x),m.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,m,h+1,S,b)}else if(!S&&v.namespaceURI===Nc&&z2.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let d=v.getAttribute("data-publication-drawing-mode");if((d==="light"||d==="dark")&&d!==n.drawingMode)return}let m=l.createElementNS(Nc,v.localName);j2(v,m,n),s.appendChild(m);for(let d of Array.from(v.childNodes))f(d,m,h+1,null)}};for(let p of e)f(p,a,0,null);return a}function hv(e,t,n){if(e.length>cv||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=new i.DOMParser().parseFromString(`<article xmlns="${Nc}">${e}</article>`,"application/xhtml+xml");if(l.documentElement.namespaceURI!==Nc||l.querySelector("parsererror"))throw new Error("Invalid publication markup");return eM(Array.from(l.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}function pv(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function gv(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=pv(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let l=t.searchParams.get("start")??t.searchParams.get("t");return l&&/^\d+s?$/.test(l)&&i.searchParams.set("start",l.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}var qa=X(nt(),1);async function yv(e,t,n,i){let l=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),a=l.body?.getReader();if(!l.ok||!a||Number(l.headers.get("Content-Length"))>n)throw await a?.cancel(),new Error("Publication resource unavailable");let o=[],r=0;try{for(;;){let f=await a.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");o.push(f.value)}}catch(f){throw await a.cancel().catch(()=>{}),f}finally{a.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of o)u.set(f,c),c+=f.byteLength;return u}async function hm(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await yv(e,t,n,i)))}async function gT(e,t,n){return hm(e,t,i0,n)}function bv(e,t,n,i,l){let a=new URL("./",t),o=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...o.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=o.get(c),s=new URL(c,a);if(!p||s.origin!==a.origin||s.pathname!==`${a.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let h=i?await i(c,p.bytes,f):await yv(e,s,p.bytes,f);if(h.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let S=await e.crypto.subtle.digest("SHA-256",h);if(f.throwIfAborted(),Array.from(new Uint8Array(S),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return h}return{siteURL:a,assetPaths:r,bytes:u,nodeAddress:l,has:c=>o.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var We=X(me(),1);function vv({page:e}){let t=(0,qa.useRef)(null),[n,i]=(0,qa.useState)(),{repository:l,preview:a}=e;return(0,qa.useEffect)(()=>{let o=t.current?.ownerDocument.defaultView;if(!o||!l||!a)return;let r=new o.AbortController;return hm(o,new o.URL(a.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(av(l,a,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[l,a]),(0,We.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:a?n===void 0?(0,We.jsx)("p",{role:"status",children:D.githubLoading}):n===null?(0,We.jsx)("p",{role:"status",children:D.githubPreviewUnavailable}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)("h3",{children:n.title}),n.description&&(0,We.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,We.jsxs)(We.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,We.jsx)("p",{children:D.githubCommitCount(n.commits.length,n.total)}),(0,We.jsx)("ol",{children:n.commits.map(o=>(0,We.jsx)("li",{children:(0,We.jsxs)("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",children:[(0,We.jsx)("code",{children:o.sha})," ",o.title]})},o.href))})]}):(0,We.jsx)("p",{children:D.githubNoCommits}))]}):(0,We.jsx)("p",{children:D.githubOpenOriginal})})}var Ee=X(me(),1),Sv="http://www.w3.org/2000/svg",tM={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function pm(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function xv({publication:e,resources:t,location:n,id:i,contentScope:l,colorMode:a,onClose:o,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,xt.useRef)(null),p=(0,xt.useRef)(null),s=(0,xt.useRef)(!1),h=(0,xt.useRef)(n.fragment);h.current=n.fragment;let[S,b]=(0,xt.useState)(0),[v,m]=(0,xt.useState)("loading"),[d,g]=(0,xt.useState)(0),x=e.published.get(n.id),M=x.kind==="url"?x.url:void 0,T=(0,xt.useMemo)(()=>lv(M),[M]),w=(0,xt.useMemo)(()=>M?gv(M):null,[M]),N=w&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(w.url).origin!==t.siteURL.origin;(0,xt.useEffect)(()=>{let E=f.current,k=E?.ownerDocument.defaultView;if(!E||!k||M)return;let L=new k.AbortController,_=L.signal,q=new Map;g(0),E.replaceChildren();let W=async I=>{let ae=q.get(I);if(ae)return ae;let J=tM[I.slice(I.lastIndexOf(".")+1)];if(!J)throw new Error("Unsupported publication media");let C=await t.bytes(I,_);_.throwIfAborted();let P=k.URL.createObjectURL(new k.Blob([C],{type:J}));return q.set(I,P),P},ie=async()=>{if(x.kind!=="document"&&x.kind!=="drawing"){if(!x.asset){m("unavailable");return}let P=await W(x.asset);_.throwIfAborted();let z=E.ownerDocument.createElement("a");z.href=P,z.download=x.asset.slice(7),z.textContent=D.downloadAsset,E.replaceChildren(z),m("ready");return}let I=await t.text(Id(x.id),_),ae=hv(I,E.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:l,deferMedia:!0,drawingMode:a}),J=Array.from(ae.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let P of Array.from(ae.querySelectorAll("a[href]"))){let z=new URL(P.getAttribute("href"),t.siteURL);if(z.origin!==C.origin||!z.pathname.startsWith(C.pathname))continue;let Y=z.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==Sv&&t.assetPaths.has(Y)&&J.push({element:P,path:Y,download:!0})}_.throwIfAborted(),E.replaceChildren(ae),m("ready"),pm(E,h.current)?.scrollIntoView({block:"start"});for(let{element:P,path:z,download:Y}of J)try{let ee=await W(z);_.throwIfAborted(),P.setAttribute(Y||P.namespaceURI===Sv?"href":"src",ee),Y&&P.setAttribute("download",z.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(_.aborted)return;g(ee=>ee+1)}};return m("loading"),ie().catch(()=>{_.aborted||m("failed")}),()=>{L.abort(),E.replaceChildren();for(let I of q.values())k.URL.revokeObjectURL(I)}},[S,x,e,t,l,a,M]),(0,xt.useEffect)(()=>{f.current&&pm(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,xt.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function V(E){if(E.defaultPrevented||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey)return;let k=E.target;if(!(k instanceof E.currentTarget.ownerDocument.defaultView.Element))return;let L=k.closest("a")?.getAttribute("href");if(!L)return;let _=A0(L,t.siteURL,e,n.id);if(!_)return;E.preventDefault();let q=L.startsWith("#")&&_.id===n.id&&f.current?pm(f.current,_.fragment):null;s.current=E.detail===0&&_.id!==n.id,r(q?{..._,fragment:q.getAttribute("data-publication-fragment")??void 0}:_)}return(0,Ee.jsxs)("aside",{id:i,className:`kplex-publication-note${M?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Ee.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Ee.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:x.title}),(0,Ee.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Ee.jsx)(vt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:c,label:u==="bottom"?D.dockSidecarRight:D.dockSidecarBottom}),(0,Ee.jsx)(vt,{icon:"x",onClick:o,label:D.closeSidecar})]})]}),M?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Ee.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",children:D.openWebsite}),!T&&!w&&(0,Ee.jsx)("p",{children:D.webFrameHelp})]}),T?(0,Ee.jsx)(vv,{page:T},M):w?N&&(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:x.title,src:w.url,style:{aspectRatio:w.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},w.url):(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame",title:x.title,src:M,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},M)]}):(0,Ee.jsxs)(Ee.Fragment,{children:[v==="loading"&&(0,Ee.jsx)("p",{role:"status",children:D.loadingNote}),v==="failed"&&(0,Ee.jsxs)("div",{role:"alert",children:[(0,Ee.jsx)("p",{children:D.noteUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:D.retry})]}),v==="unavailable"&&(0,Ee.jsx)("p",{children:D.noDocument}),(0,Ee.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:V}),d>0&&(0,Ee.jsxs)("div",{role:"status",children:[(0,Ee.jsx)("p",{children:D.mediaUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:D.retry})]})]})]})}var Jn=X(nt(),1);var xi=X(me(),1),Mv=736,wv=6;function nM({dock:e,sidecarId:t,size:n,minimum:i,maximum:l,onSize:a}){let o=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(d){return u?d.clientX:d.clientY}function p(d){a(Math.max(i,Math.min(l,Math.round(d))))}function s(d,g){r.current?.pointer===g&&(r.current=null,d.hasPointerCapture(g)&&d.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let d=o.current;return()=>{d&&r.current&&s(d,r.current.pointer)}},[e]);function h(d){d.button!==0||r.current||(d.preventDefault(),d.currentTarget.focus({preventScroll:!0}),d.currentTarget.setPointerCapture(d.pointerId),r.current={pointer:d.pointerId,origin:f(d),size:n})}function S(d){let g=r.current;g?.pointer===d.pointerId&&p(g.size+c*(f(d)-g.origin))}function b(d){S(d),s(d.currentTarget,d.pointerId)}function v(d){s(d.currentTarget,d.pointerId)}function m(d){if(d.altKey||d.ctrlKey||d.metaKey)return;let[g,x]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],M=d.shiftKey?1:10,T;if(d.key==="Home")T=i;else if(d.key==="End")T=l;else if(d.key===g)T=n+M;else if(d.key===x)T=n-M;else return;d.preventDefault(),p(T)}return(0,xi.jsx)("div",{ref:o,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":D.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":n,onPointerDown:h,onPointerMove:S,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:m})}function Ev({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:l,onDock:a,renderSidecar:o}){let r=(0,Jn.useRef)(null),[u,c]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),s=i!=="bottom",h=s?u.width:u.height,S=Math.max(0,h-(s?260:160)-wv),b=Math.min(S,s?240:120),v=f[i]??Math.round(h*(s?.34:.43)),m=Math.max(b,Math.min(S,v)),d=n?{"--kplex-publication-sidecar-size":`${m}px`,"--kplex-publication-divider-size":`${wv}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let M=r.current,T=M?.ownerDocument.defaultView;if(!M||!T)return;let w=M;function N(){let E=w.clientWidth,k=w.clientHeight;c(L=>L.width===E&&L.height===k?L:{width:E,height:k})}let V=new T.ResizeObserver(N);return V.observe(M),N(),()=>V.disconnect()},[]);function g(M){p(T=>T[i]===M?T:{...T,[i]:M})}function x(){a(i==="bottom"?"right":"bottom")}return(0,xi.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:d,children:[e,n?(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(nM,{dock:i,sidecarId:t,size:m,minimum:b,maximum:S,onSize:g}),o(i,l?x:void 0)]}):(0,xi.jsx)("div",{id:t,hidden:!0})]})}function Cc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function Tv(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function iM(e,t,n,i,l){let a=1-l,o=a*a,r=l*l;return{x:o*a*e.x+3*o*l*t.x+3*a*r*n.x+r*l*i.x,y:o*a*e.y+3*o*l*t.y+3*a*r*n.y+r*l*i.y}}function gm(e,t,n,i,l){if(l==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let a=Math.hypot(t.x-e.x,t.y-e.y),o=Math.max(20,Math.min(108,a*.2)),r=Tv(n),u=Tv(i),c={x:e.x+r.x*o,y:e.y+r.y*o},f={x:t.x+u.x*o,y:t.y+u.y*o};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:iM(e,c,f,t,.5)}}var ym=["parent","child","left","right","previous","next"];function Nv(e,t,n,i){let l=t.neighbours(e,"parent").slice(0,n),a=t.neighbours(e,"child").slice(0,n),o=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...l,...a,...o,...r].map(p=>t.identity(p.page))]),c=new Map([...l,...a,...o,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of ym)for(let h of t.neighbours(p,s)){let S=t.identity(h.page);if(u.has(S))continue;let b=f.get(S);(!b||b.relationType!==1)&&f.set(S,{...h,role:"sibling"})}return{center:e,parents:l,children:a,leftFriends:o,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}var ol=(e,t,n)=>Math.max(t,Math.min(n,e));function zv(e){return e.horizontalCompactingFactor??e.compactingFactor}function lM(e){let t=e.compactView?.82:1;return{horizontal:ol(1.35/zv(e),.38,1.35)*t,vertical:ol(1.35/e.compactingFactor,.38,1.35)*t,spacing:ol(e.minLinkLength/18,.72,1.7)}}function Rv(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function Oc(e){return ol(e.siblingRelativeSize/100,.3,.85)}function Cv(e,t){let n=ol(zv(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*ol(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function Ac(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function zc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Nn(e,t,n=!1){let i=[...e];for(let l of e){let a=t.mini(l,n);a&&i.push({...l,width:a.width,height:a.viewportHeight,y:l.y+l.height/2+a.topGap+a.viewportHeight/2})}return i}function Av(e,t,n,i,l,a,o){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let h=r.slice(s,s+i);u.push({nodes:h,height:Math.max(...h.map(S=>S.height)),reserve:Math.max(0,...h.map(S=>o.reserve(S)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,h)=>{let S;if(h===0){let d=Math.max(0,s.height-26)/2;S=n===-1?t-s.reserve-d:t+d}else n===1?S=c+f/2+p+a+s.height/2:S=c-f/2-a-s.reserve-s.height/2;let b=s.nodes.map(d=>o.width(d)),m=-(b.reduce((d,g)=>d+g,0)+l*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((d,g)=>{let x=b[g];d.x=m+x/2,d.y=S,m+=x+l}),c=S,f=s.height,p=s.reserve}),r}function bm(e,t,n,i){let l=e;return Ov(l,t,n,i),l}function Ov(e,t,n,i){if(!e.length)return;let l=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+l[c-1]+n+p.height/2}let a=e[0].y-e[0].height/2,o=e.length-1,r=e[o].y+e[o].height/2+l[o],u=-(a+r)/2;for(let c of e)c.y+=u}function vm(e,t,n,i,l="center"){if(!e.length)return;let a=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-a,u=Math.max(1,n-t),f=(r>u?t:l==="midline"?ol(a,t,n-r):l==="bottom"?n-r:l==="top"?t:t+(u-r)/2)-a;for(let p of e)p.y+=f}function dr(e,t,n,i,l,a,o){let c=l.centerX-l.width/2,f=l.centerX+l.width/2,p=l.fixedEdgeY,s=l.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let h=o!==void 0&&a!==void 0?Math.max(72,a-o):Math.max(72,n),S=o!==void 0&&a!==void 0?o:i==="top"?(t.length?s+16:l.fixedEdgeY)-h:t.length?p-16:l.fixedEdgeY;return{key:e,left:c,top:S,width:f-c,height:h,resizeEdge:i}}function mr(e,t,n,i,l,a){if(!t.length)return null;let o=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,h=p+r,S=h-s,b=a!==void 0&&l!==void 0?Math.max(72,l-a):l===void 0?Number.POSITIVE_INFINITY:Math.max(72,l-s),v=Math.min(S,Math.max(72,n),b);if(S<=v+.5)return null;let m=s,d=0;return a!==void 0&&l!==void 0?(m=a,d=Math.max(0,m-s)):l!==void 0?(m=l-v,d=Math.max(0,m-s)):(i==="bottom"?m=h-v:i==="center"&&(m=ol(-v/2,s,h-v)),d=Math.max(0,m-s)),{key:e,left:u-o,top:m,width:c-u+o*2,height:v,contentTop:s,contentHeight:S,initialScrollTop:d}}function Dv(e,t,n,i=!1){let l=Pe=>Math.max(0,...Pe.filter(ei=>ei.editor).map(ei=>ei.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,l(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,l(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,l([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,l(e.siblings))});let a=e.center,{horizontal:o,vertical:r,spacing:u}=lM(t),c=50*o*u,f=36*r*u,p=66*r*u,s=18*r*u,h=26,S=-(a.height/2+h/2+p),b=Math.max(42,52*r*u),v=a.height/2+h/2+p+b,m=Av(e.parents,S,-1,Rv(t,"parent"),c,f,n),d=Av(e.children,v,1,Rv(t,"child"),c,f,n),g=a.width/2,x=g+205*o*u,M=bm(e.leftFriends,-x,s,n),T=t.lateralArrangement==="left",w=bm(e.rightFriends,T?-x:x,s,n),N=T?[...M,...w]:M;T&&Ov(N,-x,s,n);let V=!T&&w.length>0,E=V?Math.max(...w.map(Pe=>Pe.x+Pe.width/2)):g,k=V?285:205,L=V?190:120,_=Math.max(x+k*o*u,E+L*o*u),q=bm(e.siblings,_,s,n),W=d.length?Math.min(...d.map(Pe=>Pe.y-Pe.height/2)):a.height/2+p+b+12,ie=Math.max(30,36*r*u),I=Math.max(120,t.friendMaxHeight),ae=Math.max(120,t.siblingMaxHeight),J=i?T?Math.min(I/2,W-ie):I/2:W-ie,C=J-I,P=C,z=J,Y=C,ee=J;vm(N,P,z,n,"midline"),T||vm(w,Y,ee,n,"midline");let te=Math.max(58,72*r*u),H=t.alignSiblingsToFirstParent?m[0]:void 0,Z=i?ae/2:H?H.y+H.height/2:J-te,ue=i?-ae/2:Z-ae;vm(q,ue,Z,n,i?"midline":"center");let fe=Nn(m,n,!0),wt=Nn(q,n,!0),we=m.length?Ac(fe,a.width/2+24):170,Mt=zc(fe,a.width/2),je=Math.max(Ac(Nn(M,n,!0),115,-x),Ac(Nn(w,n,!0),115,T?-x:x)),Rn=Math.max(zc(Nn(M,n,!0),0,-x),zc(Nn(w,n,!0),0,T?-x:x)),et=Ac(wt,110,_),Et=zc(wt,0,_),pn=T?Math.max(0,Cv(t,we*2)):Cv(t,we*2);m.length&&(x=we+je+pn),x=Math.max(x,Mt+Rn+4);for(let Pe of M)Pe.x=-x;for(let Pe of w)Pe.x=T?-x:x;(m.length||V)&&(_=V?x+je+et+Math.max(0,pn):we+et+pn),_=Math.max(_,Mt+Et+4,V?x+Rn+Et+4:0);for(let Pe of q)Pe.x=_;let Dt=Nn(m,n),wi=Nn(d,n),Fn=Nn(N,n),rl=Nn(T?[]:w,n),he=Nn(q,n),tt={},Lt=mr("parent",Dt,t.parentMaxHeight,"bottom"),Te=mr("child",wi,t.childMaxHeight,"top"),Cn=mr("left",Fn,t.friendMaxHeight,"top",z,P),An=mr("right",rl,t.friendMaxHeight,"top",ee,Y),$n=mr("sibling",he,t.siblingMaxHeight,"top",Z,ue);Lt&&(Lt.left=-we,Lt.width=we*2,tt.parent=Lt),Te&&(tt.child=Te),Cn&&(tt.left=Cn),An&&(tt.right=An),$n&&(tt.sibling=$n);let Yt={},ul=S+h/2+16,Wn=v-h/2-16;Yt.parent=dr("parent",Dt,t.parentMaxHeight,"top",{centerX:0,width:we*2,fixedEdgeY:ul}),Yt.child=dr("child",wi,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:Wn}),Yt.left=dr("left",Fn,t.friendMaxHeight,"top",{centerX:-x,width:je*2,fixedEdgeY:z},z,P),T||(Yt.right=dr("right",rl,t.friendMaxHeight,"top",{centerX:x,width:je*2,fixedEdgeY:ee},ee,Y)),Yt.sibling=dr("sibling",he,t.siblingMaxHeight,"top",{centerX:_,width:et*2,fixedEdgeY:Z},Z,ue);let zn=[a,...m,...d,...M,...w,...q];return t.flipEastWest&&aM(zn,Yt,tt),{nodes:zn,zoneViewports:tt,zoneAreas:Yt}}function aM(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}var Lv={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Dc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Lc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function _v(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var oM={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var rM={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function uM(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(l=>{let a=Reflect.get(e,l);return typeof a=="number"&&Number.isFinite(a)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var Hv={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:Lv,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,l=(f,p)=>{let s=JSON.stringify([f.id,p]),h=i.get(s)??e.read.relations(f.id,p);return i.set(s,h),n||=h.truncated||h.coverage==="unavailable",h.items.map(S=>({page:S.node,role:S.role,relationType:S.relationType,value:S}))},a=Nv(t,{identity:f=>f.id,neighbours:l,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),o=Dc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...o?{ports:Lc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,h)=>{let S=JSON.stringify([p,s.page.id,h]),b=_v(p,Dc(e.configuration));r.push({id:S,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...o?{ports:Lc(!0)}:{}}),p!=="sibling"&&u.push({id:S,kind:"semantic",source:"attention",target:S,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(a.parents,"parent"),c(a.children,"child"),c(a.leftFriends,"left"),c(a.rightFriends,"right"),c(a.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=ym.flatMap(h=>l(p,h));for(let h of r.filter(S=>S.role==="sibling")){let S=s.find(v=>v.page.id===h.nodeId),b=S?_v(S.role,o):null;S&&b&&u.push({id:JSON.stringify([f.id,h.id]),kind:"semantic",source:f.id,target:h.id,sourceNode:f.nodeId,targetNode:S.page.id,sourcePort:b.source,targetPort:b.target,relation:S.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[a.parents,a.children,a.leftFriends,a.rightFriends,a.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,l){if(!uM(n))throw new Error("Missing Classic geometry preferences");let a={...n,flipEastWest:n.flipEastWest??Dc(l?.configuration)},o=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let h=o.get(s.id);if(!h)throw new Error("Missing occurrence measurement");return{...h,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(h=>h.areaId===s),f=Dv({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},a,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?Oc(a):1),width:s=>s.expandedWidth,mini:(s,h)=>s[h?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let h=rM[s.key];return{id:s.key,labelKey:oM[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:h.key,minimum:h.min,maximum:h.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};var cM={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function Pv(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,l])=>l===i)?.[0]}function Uv(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function kv(e,t,n,i,l,a){let o=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(Uv(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],o)){if(++u>16384||c>=4096)return!0;let h=i(s),S=e.get(h);if(!S||h===f)continue;let b=Uv(f,h);if(r.has(b))continue;let v,m=1/0;for(let d of p)for(let g of S){if(++u>16384)return!0;let x=l(d,s.role),M=l(g,cM[s.role]);if(!x||!M)continue;let T=(d.x-g.x)**2+(d.y-g.y)**2;T<m&&(v={source:d,target:g,sourcePort:x,targetPort:M},m=T)}v&&(r.add(b),c++,a(v,s))}}return!1}function ja(e){let t=e.length===1?"root":JSON.stringify(e);return Ul(t)?t:null}function Vv(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let l=JSON.parse(i.occurrenceId);if(!Array.isArray(l)||l.length<2||l.length>ht.depth+1||!l.every(Ul)||l[0]!==t||l[l.length-1]!==i.nodeId||ja(l.map(Mn))!==i.occurrenceId)continue;n.set(i.occurrenceId,l.map(Mn))}catch{}}return n}function Bv(e){let t=pc(e.configuration),n=nl(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let l=ir(r0(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!l)return null;let a=l,o=Math.min(t.maximumOccurrences,ht.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(a.expanded),u=new Set(a.collapsed),c=Vv(e,i),f=new Set,p=new Map,s=new Set;for(let w of c.values())for(let N=1;N<=w.length;N++){let V=ja(w.slice(0,N));if(V&&(f.add(V),N<w.length)){let E=p.get(V)??new Set;E.add(w[N]),p.set(V,E),N>1&&s.add(w[N-1])}}let h=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(w=>w!==i)),S=new Set,b=new Set,v=[],m=[],d=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,x=(w,N,V)=>{let k=(V?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(_=>e.read.relations(w,_,N)),L=new Map;for(let _ of k)for(let q of _.items)L.has(q.node.id)||L.set(q.node.id,q);return{items:[...L.values()],truncated:k.some(_=>_.truncated),coverage:k.some(_=>_.coverage==="unavailable")?"unavailable":k.every(_=>_.coverage==="local")?"local":"cached"}},M=w=>{if(w===i||S.has(w))return!0;if(S.size>=ht.scopes)return!1;let N=[...h].filter(V=>!S.has(V)&&V!==w).length;return!h.has(w)&&S.size+N>=ht.scopes?!1:(S.add(w),!0)};for(;d.length&&v.length<o;){let w=d.shift(),N=w.lineage[w.lineage.length-1];if(b.has(w.id))continue;b.add(w.id);let V=e.read.node(N);if(!V||V.id!==N||!e.read.isCurrent())return null;let E=w.lineage.slice(0,-1).includes(N),k=p.has(w.id)?Math.max(t.maximumDepth,w.depth+1):t.maximumDepth,L=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},_=E?{items:[],truncated:!1,coverage:"cached"}:x(N,1,w.depth===0),q=!E&&w.depth<k&&!u.has(w.id)&&(r.has(w.id)||w.depth<a.initialGenerations),W=!E&&w.depth<k&&!(L.complete&&_.coverage!=="unavailable"&&_.items.length===0&&!_.truncated),ie=q&&W&&M(N),I=ie?x(N,Math.min(e.maximum,128),w.depth===0):_,ae=E||!q?"ready":L.pending?"loading":I.coverage==="unavailable"?"unavailable":L.complete?"ready":L.prepared||I.items.length>0?"partial":"unavailable";(q&&W&&!ie||ie&&I.truncated||!E&&w.depth>=k&&(I.items.length>0||!L.complete))&&(ae="limited",g=!0);let J=[];if(ie){let Y=new Map(I.items.map(H=>[H.node.id,H]));for(let H of p.get(w.id)??[])if(!Y.has(H)){let ue=(w.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(fe=>e.read.relation?.(N,H,fe)?.items??[]).find(fe=>fe.node.id===H);ue&&e.read.isCurrent()&&Y.set(H,ue)}if(w.depth===0&&L.complete&&!I.truncated&&I.coverage!=="unavailable"){let H=new Set([...Y.keys()].map(Z=>ja([i,Z])));a={...a,sides:Object.fromEntries(Object.entries(a.sides).filter(([Z])=>H.has(Z)))}}let ee=[...Y.values()].map(H=>{let Z=[...w.lineage,H.node.id],ue=ja(Z);return ue?{id:ue,lineage:Z,relation:H}:(g=!0,ae="limited",null)}).filter(H=>H!==null);ee.sort((H,Z)=>Number(f.has(Z.id))-Number(f.has(H.id))||e.read.compare(H.relation.node,Z.relation.node));let te=o-v.length-1-d.length;for(let H of ee){let Z=[...f].filter(ue=>ue!==w.id&&!b.has(ue)&&!d.some(fe=>fe.id===ue)&&!J.some(fe=>fe.id===ue)&&ue!==H.id).length;if(te<=0||!f.has(H.id)&&te<=Z){g=!0,ae="limited";continue}if(w.depth===0&&H.relation.role==="child"&&a.sides[H.id]===void 0){let ue=[...Y.keys()].flatMap(we=>{let Mt=ja([i,we]),je=Mt?a.sides[Mt]:void 0;return je===-1||je===1?[je]:[]}),fe=ue.filter(we=>we===-1).length<ue.filter(we=>we===1).length?-1:1,wt=ir({...a,sides:{...a.sides,[H.id]:fe}});if(!wt){g=!0,ae="limited";continue}a=wt}J.push(H),te--}J.sort((H,Z)=>e.read.compare(H.relation.node,Z.relation.node))}let C={parent:w.parent,depth:w.depth,side:w.side,expanded:ie,canExpand:W,reference:E,status:ae},P=w.depth===0||w.side===-1?"left":"right";v.push({id:w.id,nodeId:N,areaId:w.areaId,representation:"thought",role:w.relation?.role,relation:w.relation,branch:C,ports:w.depth===0?{top:"parent",bottom:"child",left:"left"}:w.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:P,count:new Set(I.items.filter(Y=>["left","right","previous","next"].includes(Y.role)).map(Y=>Y.node.id)).size,complete:L.complete&&I.coverage!=="unavailable"&&!I.truncated&&!E},...!ie&&!E&&w.parent?{groupingPartition:JSON.stringify([w.parent,w.side])}:{}}),w.parent&&w.relation&&m.push({id:w.id,kind:"semantic",source:w.parent,target:w.id,sourceNode:w.lineage[w.lineage.length-2],targetNode:N,relation:w.relation,sourcePort:w.relation.role==="child"?"bottom":w.relation.role==="parent"?"top":w.side===1?"right":"left",targetPort:w.parent==="root"&&w.relation.role==="parent"?"bottom":w.side===1?"left":"right"});let z=0;for(let Y of J){let ee=Y.relation.role==="parent"&&t.parentColumns>1&&z++%t.parentColumns===0?-1:1,te=w.depth?w.side:Y.relation.role==="parent"?ee:Y.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:a.sides[Y.id],H=w.depth?w.areaId:Y.relation.role==="parent"?"parent":Y.relation.role==="child"?te===-1?"child-left":"child-right":"left";d.push({...Y,parent:w.id,depth:w.depth+1,side:te,areaId:H})}}if(!e.read.isCurrent())return null;g||=d.length>0;let T=JSON.stringify(a)===JSON.stringify(n)?void 0:a;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:m,truncated:g,coverage:e.read.coverage,preparation:{parents:[...S]},stateSuggestion:T}}function sM(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let l=i.insets?.top??0,a=i.insets?.right??0,o=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[l,a,o,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:l,right:a,bottom:o,left:r,width:i.width+r+a,height:i.height+l+o})}return n}function fM(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function Gv(e,t,n,i,l=24,a=42,o=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,l,a,o].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=sM(e),u=Math.min(t,e.length),c=fM(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],s=[],h=l,S=a;for(let v of c)p.push(h+v/2),h+=v+n;for(let v of f)s.push(S+v/2),S+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let m=r[v];b.set(m.item.id,{x:p[v%u]+(m.left-m.right)/2,y:s[Math.floor(v/u)]+(m.top-m.bottom)/2,width:m.item.width,height:m.item.height})}return{positions:b,width:h-n+l,height:S-i+o}}function Yv(e,t,n,i={}){let l=n.horizontalSpacing/n.horizontalDensity,a=n.verticalSpacing/n.verticalDensity,o=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,P)=>C?c.get(C)?.controlReserve?.[P]??0:0;if(r.length>ht.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let P=c.get(C.id);if(!P||![P.width,P.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(P.controlReserve&&![P.controlReserve.right,P.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===o){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let z=C.branch.parent;if(!z||!c.has(z))throw new Error("Missing hierarchy parent");let Y=p.get(z)??[];Y.push(C),p.set(z,Y)}let s=new Map,h=new Set,S=(C,P)=>{let z=s.get(C);if(z!==void 0)return z;if(P>ht.depth||h.has(C))throw new Error("Invalid hierarchy ancestry");h.add(C);let Y=p.get(C)??[],ee=Y.reduce((H,Z)=>H+S(Z.id,P+1),0)+Math.max(0,Y.length-1)*a,te=Math.max(c.get(C).height+f(C,"bottom"),ee);return h.delete(C),s.set(C,te),te};for(let C of r)S(C.id,0);let b=c.get(o);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[o,{x:0,y:0,width:b.width,height:b.height}]]),m=(C,P,z,Y)=>{let ee=C.reduce((H,Z)=>H+s.get(Z.id),0)+Math.max(0,C.length-1)*a,te=P.y+f(Y,"bottom")/2-ee/2;for(let H of C){let Z=c.get(H.id),ue=s.get(H.id),fe={width:Z.width,height:Z.height,x:P.x+z*(P.width/2+l+Z.width/2+f(z===1?Y:H.id,"right")),y:te+ue/2-f(H.id,"bottom")/2};if(v.has(H.id))throw new Error("Repeated hierarchy parent");v.set(H.id,fe),m(p.get(H.id)??[],fe,z,H.id),te+=ue+a}},d=p.get(o)??[],g=d.filter(C=>C.role==="parent"),x=d.filter(C=>C.role!=="parent"),M=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?l+Math.max(...p.get(C).map(P=>M(P.id))):0),T=g.filter(C=>C.branch.side===-1),w=g.filter(C=>C.branch.side===1),N=n.parentColumns,V=[];for(;T.length||w.length;)for(let C=0;C<N;C++)V.push(N>1&&C===0?T.shift():w.shift()??(N===1?T.shift():void 0));let E=Gv(V.map((C,P)=>C?{id:C.id,width:M(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${P}`,width:1,height:1}),n.parentColumns,l,a),k=u.map(C=>{let P=c.get(C.id);if(!P)throw new Error("Missing measured section");return P}),L=Math.max(b.width+f(o,"right")*2,E.width,...k.map(C=>C.width)),_=Math.max(140,Math.min(800,i.parentHeight??300)),q=Math.max(_,E.height),W={x:-L/2,y:-b.height/2-a-q,width:L,height:q};if(!Number.isFinite(q))throw new Error("Invalid parent area height");for(let C of g){let P=E.positions.get(C.id),z=c.get(C.id),Y=N===1?1:C.branch.side,ee={x:W.x+(L-E.width)/2+P.x+Y*(-P.width/2+z.width/2)-(Y===-1?f(C.id,"right"):0),y:W.y+q-E.height+P.y-f(C.id,"bottom")/2,width:z.width,height:z.height};v.set(C.id,ee),m(p.get(C.id)??[],ee,Y,C.id)}let ie={...v.get(o),width:L};for(let C of[-1,1]){let P=x.filter(z=>z.branch?.side===C);m([...P.filter(z=>z.role!=="child"),...P.filter(z=>z.role==="child")],ie,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let I=b.height/2+f(o,"bottom")+Math.min(24,a);for(let C of k)v.set(C.id,{x:0,y:I+C.height/2,width:C.width,height:C.height}),I+=C.height+Math.min(24,a);let ae=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...W,height:q},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:_},dropRole:"parent",viewport:{...W,height:q,contentTop:W.y,contentHeight:q,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:l,rowGap:a,filterLayout:"keep"}}],J=Math.min(8,a/4,l/4);for(let[C,P]of[["child-left","child"],["child-right","child"],["left","left"]]){let z=r.filter(te=>te.areaId===C).map(te=>{let H=v.get(te.id),Z=f(te.id,"right"),ue=f(te.id,"bottom");return{...H,x:H.x+Z/2,y:H.y+ue/2,width:H.width+Z,height:H.height+ue}});if(!z.length)continue;let Y=Math.min(...z.map(te=>te.x-te.width/2))-J,ee=Math.min(...z.map(te=>te.y-te.height/2))-J;ae.push({id:C,labelKey:P==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:P,bounds:{x:Y,y:ee,width:Math.max(...z.map(te=>te.x+te.width/2))+J-Y,height:Math.max(...z.map(te=>te.y+te.height/2))+J-ee}})}return{positions:v,areas:ae}}function dM(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function mM(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let l=new Map(e.rows.map(c=>[c.id,c])),a=new Set(e.visible),o=c=>{let f=[];for(let p=0;c&&p<256;p++)a.has(c)&&f.push(c),c=l.get(c)?.parent??"";return f},r=i.map(c=>o(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function qv(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!dM(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let l=new Set(t.visible),a=t.rows.filter(r=>l.has(r.id)),o=a.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...o],truncated:e.truncated||o.length<a.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=mM(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var jv={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:Fd,hierarchy:{maximumScopes:ht.scopes,maximumDepth:ht.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:yc},configuration:hc,restoreState:nl,project(e){let t=Bv(e);return t&&e.sections?.status==="available"?qv(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,l){let a=pc(l?.configuration);if(!a)throw new Error("Mind Map configuration unavailable");return Yv(e,t,a,l?.areaHeights)}};var hM={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Sm={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function Xv(e){return e==="left"||e==="right"||e==="sibling"}function Qv(e,t,n=!0,i="compass",l,a=!1,o){let{read:r}=e,u=e.manifest?.appearance,c=u?.flip??!1,f={...hM,...u?.geometry,flipEastWest:c};o!==void 0&&(f.childColumns=Math.min(f.childColumns,o)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Sm.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Sm.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Sm.propertyFontSize},s=Lc(c),h=i==="mindmap",S=h?jv:Hv,b=S.project({attention:t,read:r,maximum:u?.maximum??100,...h?{layoutRoot:t,state:l}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:c}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(E=>{let k=E.nodeId&&r.node(E.nodeId);if(!k)throw new Error("Publication occurrence is unavailable");let L=E.id===b.entry,_=E.role==="sibling",q=_?Oc(f):1,W=e.published.get(k.id),ie=W?.roleStyles,I=E.relation?.relationType===2?ie?.inferred:void 0,ae=L?ie?.center:_?ie?.sibling:void 0,J={...W?.style,...I,...ae},C=ae?.fontSize??I?.fontSize??W?.style?.fontSize??(L?30:_?15:20),P=ae?.gateRadius??I?.gateRadius??W?.style?.gateRadius??5,z=ar(C*q,L,p.baseFontSize)*(_&&e.manifest?.7:1),Y=d0(k.name,C,p,L,k.maxLabelLength);J.icon!=null&&(Y.width+=L?22:17);let ee=m0(Y,q,C*q,p);return{occurrence:E,node:k,center:L,fontSize:z,style:J,gateSize:c0({gateRadius:P*q}),measurement:{id:E.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:E.branch?.canExpand?{right:0,bottom:23}:void 0}}}),m=S.layout(b,v.map(E=>E.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),d=[],g=!1;if(a){let E=new Map;for(let{node:L,occurrence:_,center:q}of v){if(!h&&q)continue;let W=E.get(L.id)??[];W.push({...m.positions.get(_.id),node:L.id,occurrence:_}),E.set(L.id,W)}let k=b.edges.flatMap(L=>L.kind==="semantic"?[[L.sourceNode,L.targetNode]]:[]);g=kv(E,k,function*(L){for(let _ of Qd)yield*r.relations(L.node,_).items},L=>L.node.id,(L,_)=>Pv(h?L.occurrence.ports:s,L.occurrence.peerPort?.side,_),({source:L,target:_,sourcePort:q,targetPort:W},ie)=>{d.push({id:JSON.stringify(["cross",L.occurrence.id,_.occurrence.id]),kind:"semantic",source:L.occurrence.id,target:_.occurrence.id,sourceNode:L.node,targetNode:_.node,sourcePort:q,targetPort:W,relation:ie})})}let x=[...b.edges,...d],M=new Map;if(h){let E=(k,L)=>{let _=M.get(k)??new Map;_.set(L,(_.get(L)??0)+1),M.set(k,_)};for(let k of x)E(k.source,k.sourcePort),E(k.target,k.targetPort)}let T=new Map;if(!h)for(let{id:E,viewport:k}of m.areas)k&&Xv(E)&&T.set(E,k);let w=v.map(({occurrence:E,node:k,center:L,fontSize:_,gateSize:q,style:W})=>{let ie=E.areaId==="right"&&f.lateralArrangement==="left"?"left":E.areaId;return{id:E.id,node:k,center:L,fontSize:_,gateSize:q,style:W,role:E.role??"center",bounds:m.positions.get(E.id),branch:E.branch,strip:Xv(ie)&&T.has(ie)?ie:void 0,gates:h?[...M.get(E.id)??[]].map(([I,ae])=>({side:I,count:ae})):Object.keys(s).map(I=>{let ae=s[I],J=ae==="left"?"previous":ae==="right"?"next":null,C=r.relations(k.id,ae).items,P=J?new Set([...C,...r.relations(k.id,J).items].map(z=>z.node.id)).size:C.length;return{side:I,count:P}})}}),N=new Map(w.map(E=>[E.id,E])),V=x.map((E,k)=>{let L=N.get(E.source),_=N.get(E.target),q=gm(Cc(L.bounds,E.sourcePort,L.gateSize),Cc(_.bounds,E.targetPort,_.gateSize),E.sourcePort,E.targetPort,"bezier"),W=E.kind==="semantic"?E.relation.direction:null,ie=E.kind==="semantic"?e.linkStyle(E.sourceNode,E.targetNode,E.relation.role):void 0,I=E.kind==="semantic"?E.relation.definition??null:null;return{id:E.id,source:E.source,target:E.target,route:q,label:I,labelSize:ie?.labelSize,labelColor:ie?.labelColor,crossLink:k>=b.edges.length,sourcePort:E.sourcePort,targetPort:E.targetPort,stroke:ie?.stroke,strokeWidth:ie?.width,startHead:ie?.startHead??(ie?.arrowStart??(W===2||W===3)?"arrow":void 0),endHead:ie?.endHead??(ie?.arrowEnd??(W===1||W===3)?"arrow":void 0)}});return{cards:w,cardById:N,edges:V,strips:T,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function _c(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function Kv(e,t,n,i){let l=Cc(_c(e,t,i),n,t.gateSize);if(!t.strip)return l;let{y:a,height:o}=e.strips.get(t.strip);return l.y>=a&&l.y<=a+o?l:null}function Zv(e,t,n){let i=e.cardById.get(t.source),l=e.cardById.get(t.target);if(!i.strip&&!l.strip)return t.route;let a=Kv(e,i,t.sourcePort,n),o=Kv(e,l,t.targetPort,n);return a&&o?gm(a,o,t.sourcePort,t.targetPort,"bezier"):null}function Hc(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Uc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),l=i.includes(","),a=l?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(a.length<3||a.length>4||l&&i.includes("/")||!l&&a.length===4&&!i.includes("/"))return null;let o=Hc(a[0],255),r=Hc(a[1],255),u=Hc(a[2],255),c=a.length===4?Hc(a[3],1):1;return o===null||r===null||u===null||c===null?null:{red:o,green:r,blue:u,alpha:c}}function wm(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(l,a)=>(l*e.alpha+a*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function xm(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Iv(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=wm(e,t),i=o=>.2126*xm(o.red)+.7152*xm(o.green)+.0722*xm(o.blue),l=i(n),a=i(t);return(Math.max(l,a)+.05)/(Math.min(l,a)+.05)}var pM=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),gM=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),yM=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function bM(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let l=i.trim(),a=/^(['"])(.*?)\1$/u.exec(l),o=a?.[2]??l;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(o)&&o!=="-apple-system"||yM.has(o.toLowerCase()))return;n.push(!a&&gM.has(o.toLowerCase())?o.toLowerCase():JSON.stringify(o))}return n.join(", ")}function Jv(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function Fv(e,t){let n=t.trim();if(!(!n||n.length>320))switch(pM.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return bM(n);case"length":return Jv(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):Jv(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Mm=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function $v(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Mm.lastIndex=i;let l=Mm.exec(e);if(!l)throw new Error("Unsupported publication theme");i=Mm.lastIndex;let a=(l[1]??l[3]).split(";").map(u=>u.trim()).filter(Boolean),o=a.filter(u=>u.startsWith("color-scheme"));if(o.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(o[0])?.[1];if(!u||o.length!==1||l[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=o.length?"author":l[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of a){if(u===o[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&Fv(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function Wv(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,l=e??{},a=Uc(l[n+"text-normal"]),o=Uc(l[n+"background-secondary"]??l[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(l)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(a&&(f==="interactive-normal"||f==="interactive-hover")&&c===l[i+f]){let p=Uc(c),s=p&&Iv(a,o?wm(p,o):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var G=X(me(),1),e1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Em={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},vM={left:D.friends,right:D.challengers,sibling:D.siblings},Tm=[["light",il.light,"sun"],["dark",il.dark,"moon"],["system",il.auto,"sun-moon"]],SM=[["right",D.sidecarRight],["left",D.sidecarLeft],["bottom",D.sidecarBottom]],xM={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},t1=600,n1={};function Nm(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(kl))}function i1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function l1({publication:e,markerPrefix:t,resources:n,browser:i}){let l=(0,F.useRef)(null),a=(0,F.useRef)(null),o=(0,F.useRef)(null),r=j0(a,o),u=O0(e,i,r.capture),c=u.attention.id,f={...qd,crosslinks:e.manifest?.appearance?.showCrossLinks??qd.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:s,crosslinks:h,ontology:S,sidecar:b}=f,[v,m]=(0,F.useState)(),[d,g]=(0,F.useState)(null),x=(0,F.useRef)(null),[M,T]=(0,F.useState)(),[w,N]=(0,F.useState)(!0),V=w?f.dock:"bottom",E=(0,F.useMemo)(()=>Qv(e,c,s,p,v,h,M),[e,c,s,p,v,h,M]),k=p==="mindmap"?D.mindMap:D.view,L=E.cards.find(y=>y.center),[_,q]=(0,F.useState)(),W=_?.attention===c?_.offsets:n1,ie=(0,F.useRef)(null),I=(0,F.useRef)(null),ae=(0,F.useRef)({x:0,y:0,scale:1}),J=(0,F.useRef)(!1),C=(0,F.useRef)({points:new Map,origin:null,moved:!1}),P=(0,F.useRef)(!1),z=(0,F.useId)(),Y=(0,F.useRef)(null),[ee,te]=(0,F.useState)(0),[H,Z]=(0,F.useState)(null),[ue,fe]=(0,F.useState)(null),[wt,we]=(0,F.useState)(null),[Mt,je]=(0,F.useState)(!1),Rn=(0,F.useRef)(()=>{}),et=(0,F.useRef)(null),[Et,pn]=(0,F.useState)(),[Dt,wi]=(0,F.useState)(!1),[Fn,rl]=(0,F.useState)("light"),he=e.manifest?.colorMode,tt=e.manifest?.pins,Lt=Et?.colorScheme==="dark"?"dark":Et?.colorScheme==="light"?"light":void 0,Te=he==="both"?f.theme:he??Lt??"system",Cn=Te==="system"?Fn:Te,[,An,$n]=Tm.find(([y])=>y===Te),Yt=()=>u.changeCanvas({sidecar:!b}),ul=(0,F.useMemo)(()=>E.edges.flatMap(y=>{let A=Zv(E,y,W);return A?[{edge:y,route:A}]:[]}),[E,W]),Wn=new Set,zn=new Set;if(d)for(let{edge:y}of ul)(y.source===d.occurrence&&(!d.port||y.sourcePort===d.port)||y.target===d.occurrence&&(!d.port||y.targetPort===d.port))&&(Wn.add(y.id),zn.add(y.source),zn.add(y.target));let Pe=y=>y?" is-highlighted":Wn.size?" is-dimmed":"";(0,F.useLayoutEffect)(()=>{let y=l.current,A=a.current,B=y?.ownerDocument.defaultView;if(!y||!A||!B)return;let K=()=>{let j=A.clientWidth;N(y.clientWidth>=Mv),T(j<360?1:j<t1?2:j<880?3:void 0)},re=new B.ResizeObserver(K);return re.observe(y),re.observe(A),K(),()=>re.disconnect()},[]),(0,F.useLayoutEffect)(()=>{let y=a.current,A=y?.ownerDocument.defaultView;if(!y||!A)return;let B=new bc(A,!0,g);x.current=B;let K=u0(y,B);return()=>{x.current=null,K()}},[]),(0,F.useLayoutEffect)(()=>{x.current?.clear()},[E]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!Mt||!y)return;let A=y.setTimeout(()=>je(!1),3500);return()=>y.clearTimeout(A)},[Mt]),Rn.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===nr.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||te(B=>B+1);return}let A=y.target;!y.altKey||A?.isContentEditable||A?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||Yt()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,F.useEffect)(()=>{if(!i)return;let y=A=>Rn.current(A);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,F.useLayoutEffect)(()=>{let y=et.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let A=()=>rl(y.matches?"dark":"light");return A(),y.addEventListener("change",A),()=>y.removeEventListener("change",A)},[]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!y||!n?.has(Kd))return;let A=new y.AbortController,B=A.signal;return n.text(Kd,B).then(K=>{B.aborted||pn($v(K))}).catch(()=>{B.aborted||wi(!0)}),()=>A.abort()},[n]);function ei(y){ae.current=y,ie.current&&(ie.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Mi(){let y=a.current;if(!y)return;let A=1/0,B=-1/0,K=1/0,re=-1/0,j=(Le,jt,Xt,ii)=>{A=Math.min(A,Le),B=Math.max(B,Le+Xt),K=Math.min(K,jt),re=Math.max(re,jt+ii)};for(let{bounds:Le,strip:jt}of E.cards)jt||j(Le.x-Le.width/2,Le.y-Le.height/2,Le.width,Le.height);for(let{x:Le,y:jt,width:Xt,height:ii}of E.strips.values())j(Le,jt,Xt,ii);if(J.current=!1,y.clientWidth<t1){let Le=I.current?I.current.offsetHeight+10:0,jt=y.clientWidth-32,Xt=y.clientHeight-32-Le,ii=B-A,$a=re-K,Ei=Math.max(.25,Math.min(1,jt/ii,Xt/$a)),xr=ii*Ei<=jt?(A+B)/2:L.bounds.x,r1=$a*Ei<=Xt?(K+re)/2:L.bounds.y;ei({x:-xr*Ei,y:-r1*Ei-Le/2,scale:Ei});return}let _e=Math.max(L.bounds.x-A,B-L.bounds.x),pt=Math.max(L.bounds.y-K,re-L.bounds.y),Xe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/_e,(y.clientHeight/2-22)/pt));ei({x:-L.bounds.x*Xe,y:-L.bounds.y*Xe,scale:Xe})}function Xa(y,A,B){r.cancel(),x.current?.clear();let{x:K,y:re,scale:j}=ae.current,_e=Math.max(.25,Math.min(3,j*B));J.current=!0,ei({x:A.x-(y.x-K)*_e/j,y:A.y-(y.y-re)*_e/j,scale:_e})}function U(y){Xa({x:0,y:0},{x:0,y:0},y)}function le(y,A,B){let K=y.getBoundingClientRect();return{x:A-K.left-K.width/2,y:B-K.top-K.height/2}}(0,F.useLayoutEffect)(()=>{let y=a.current;if(!y)return;Mi(),r.play(c,ae.current.scale),P.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),P.current=!1);let A=re=>{if(Nm(re,y))return;re.preventDefault();let j=le(y,re.clientX,re.clientY),_e=re.deltaY*(re.deltaMode===1?16:re.deltaMode===2?y.clientHeight:1);Xa(j,j,Math.exp(-Math.max(-200,Math.min(200,_e))/350))},B=y.ownerDocument.defaultView,K=B?new B.ResizeObserver(()=>{J.current||Mi()}):null;return K?.observe(y),y.addEventListener("wheel",A,{passive:!1}),()=>{K?.disconnect(),y.removeEventListener("wheel",A)}},[e,c,p,s,v,M]);function Ge(y,A){let B=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:B})&&y!==c&&(P.current=A)}function gn(){u.changeCanvas({sidecar:!1}),Y.current?.focus()}function Tt(y){u.activate(y)}function ti(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let A=new URL(y);return A.search="",A.hash="",A}function Ka(y,A){fe(null),we(null),je(!1),Z({id:y,anchor:A})}function cl(y,A){Z(null),we(null),x.current?.clear(),fe({anchor:y,point:A})}function ni(y,A,B=!1){return(0,G.jsxs)("nav",{className:`kplex-publication-trail ${B?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":A,children:[(0,G.jsx)("span",{children:A}),(0,G.jsx)("ol",{ref:B?et:void 0,children:y.map(K=>{let re=e.published.get(K.id),j=re?.style,_e=j?.icon??re?.trailIcon,pt=_e===void 0?void 0:e.manifest?.icons?.[_e];return(0,G.jsx)("li",{children:(0,G.jsxs)("a",{href:Ba(ti(),{...K,canvas:{...u.attention.canvas,...K.canvas}}).href,"aria-current":K.id===c?"location":void 0,style:{backgroundColor:j?.fill,color:j?.color,"--kplex-publication-trail-border":j?.stroke},onClick:Xe=>{Xe.altKey||Xe.ctrlKey||Xe.metaKey||Xe.shiftKey||(Xe.preventDefault(),Tt(K))},children:[pt&&(0,G.jsx)(fm,{icon:pt,size:12}),(0,G.jsx)("span",{children:e.nodes.get(K.id)?.name})]})},K.id)})})]})}function qt(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:A,top:B}=y.currentTarget.getBoundingClientRect();cl(y.currentTarget,{x:A+12,y:B+12});return}if(!(y.target.matches?.(kl)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Mi();else if(y.key==="+"||y.key==="=")U(1.25);else if(y.key==="-")U(.8);else if(Object.prototype.hasOwnProperty.call(e1,y.key)){let[A,B]=e1[y.key],K=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),re=K.find(Le=>Le===y.target)?.dataset.publicationOccurrence,j=_c(E,re?E.cardById.get(re)??L:L,W),_e=-1,pt=1/0;for(let[Le,jt]of K.entries()){let Xt=_c(E,E.cardById.get(jt.dataset.publicationOccurrence),W),ii=Xt.x-j.x,$a=Xt.y-j.y,Ei=ii*A+$a*B,xr=Ei+2*Math.abs(ii*B-$a*A);Ei>0&&xr<pt&&(_e=Le,pt=xr)}let Xe=K[_e];Xe?.focus({preventScroll:!Xe.closest(kl)})}else return;y.preventDefault()}}}function Qa(y){let A=y.currentTarget.ownerDocument.defaultView?.Element;if(!A||!(y.target instanceof A)||C.current.points.size)return;let B=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),K=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;B?x.current?.enter({occurrence:B,port:K},y):x.current?.clear()}function hr(y){if(y.button!==0||(ue&&fe(null),H&&Z(null),Nm(y,y.currentTarget)))return;let A=C.current;if(A.points.size>=2)return;let B={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.size===0&&(A.origin=B,A.moved=!1),A.points.set(y.pointerId,B)}function pr(y){let A=C.current;if(!A.points.has(y.pointerId))return;let[B,K]=A.points.values(),re=i1(B,K),j={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.set(y.pointerId,j);let[_e,pt]=A.points.values(),Xe=i1(_e,pt);if(!(!A.moved&&!pt&&A.origin&&Math.hypot(j.x-A.origin.x,j.y-A.origin.y)<5)){if(A.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{A.moved=!0;for(let Le of A.points.keys())y.currentTarget.setPointerCapture(Le)}Xa(re,Xe,Xe.distance/re.distance)}}function On(y){C.current.points.delete(y.pointerId)}let gr=e.body(c),Za=()=>u.changeCanvas({siblings:!s}),yr=(0,G.jsx)(vt,{icon:"network",label:D.showSiblings,"data-publication-siblings-toggle":!0,title:s?D.hideSiblings:D.showSiblings,"aria-pressed":s,onClick:Za}),Ia=(0,G.jsxs)(G.Fragment,{children:[p==="compass"&&yr,(0,G.jsx)(vt,{icon:"minus",label:D.zoomOut,onClick:()=>U(.8)}),(0,G.jsx)(vt,{icon:"plus",label:D.zoomIn,onClick:()=>U(1.25)}),(0,G.jsx)(vt,{icon:"maximize",label:D.fit,onClick:()=>{r.cancel(),Mi()}}),(0,G.jsx)(vt,{icon:"ellipsis",label:D.graphOptions,"aria-haspopup":"menu","aria-expanded":!!ue,onClick:y=>cl(y.currentTarget)})]});function br(y,A){let B=A?{...y.bounds,x:y.bounds.x-A.x,y:y.bounds.y-A.contentTop}:y.bounds,K=e.manifest?.icons,re=y.style?.icon!=null?K?.[y.style.icon]:void 0;return(0,G.jsxs)(F.Fragment,{children:[(0,G.jsxs)(y0,{bounds:B,semanticRole:y.role,className:Pe(zn.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:j=>Ge(y.node.id,j.detail===0),onContextMenu:j=>{n&&(j.preventDefault(),Ka(y.node.id,j.currentTarget))},onKeyDown:j=>{n&&(j.key==="ContextMenu"||j.shiftKey&&j.key==="F10")?(j.preventDefault(),Ka(y.node.id,j.currentTarget)):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),Ge(y.node.id,!0))},children:[(0,G.jsxs)(v0,{wrap:E.wrap,children:[re&&(0,G.jsx)(fm,{icon:re,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,G.jsx)(b0,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:j,count:_e})=>(0,G.jsx)(S0,{side:j,connected:_e>0,count:_e?String(_e):null,highlighted:Wn.size>0&&d?.occurrence===y.id&&d.port===j,"aria-hidden":"true"},j))]}),y.branch?.canExpand&&(0,G.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?D.collapseBranch:D.expandBranch} · ${y.node.name}`,style:{left:B.x+16,top:B.y+B.height/2+3},onClick:()=>m(j=>yc(j,E.projection,{kind:"toggle",occurrenceId:y.id})??j),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let vr=(0,G.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":k,tabIndex:0,onKeyDown:qt,onPointerOver:Qa,onPointerDown:hr,onPointerMove:pr,onPointerUp:On,onPointerCancel:On,onLostPointerCapture:On,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),cl(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{x.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||On(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!Nm(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,G.jsxs)("div",{className:"kplex-camera",ref:ie,children:[(0,G.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,G.jsx)(M0,{prefix:t}),ul.map(({edge:y,route:A})=>{let{id:B,source:K,target:re,label:j,stroke:_e,strokeWidth:pt,startHead:Xe,endHead:Le}=y;return(0,G.jsxs)("g",{className:`kplex-edge${Pe(Wn.has(B))}`,"data-publication-source":K,"data-publication-target":re,"data-publication-crosslink":y.crossLink||void 0,children:[(0,G.jsx)(x0,{d:A.d,stroke:_e??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:tm(Xe,t),markerEnd:tm(Le,t)}),S&&(0,G.jsx)(w0,{label:j,midpoint:A.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},B)})]}),(0,G.jsx)("div",{className:"kplex-nodes",children:E.cards.map(y=>y.strip?null:br(y))}),[...E.strips].map(([y,A])=>(0,G.jsx)(Y0,{id:y,panel:A,start:W[y]??A.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?D.lateral:vM[y],onScroll:B=>q(K=>{let re=K?.attention===c?K.offsets:n1;return re[y]===B?K:{attention:c,offsets:{...re,[y]:B}}}),children:E.cards.map(B=>B.strip===y?br(B,A):null)},JSON.stringify([c,y])))]}),(0,G.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Ja=H?T0(e,H.id):void 0,Fa=H&&{id:H.id,canvas:{...f,theme:Te}},Sr=he==="both"?Wv(Et,Cn):he?{...Et,colorScheme:Cn}:Et;return(0,G.jsxs)("main",{ref:l,className:`kplex-publication${n?" kplex-publication-production":""}`,style:Sr,onKeyDown:i?void 0:y=>Rn.current(y.nativeEvent),children:[(0,G.jsxs)("header",{className:"kplex-publication-header",children:[(0,G.jsxs)("div",{className:"kplex-publication-heading",children:[(0,G.jsx)(P0,{}),(0,G.jsx)("h1",{children:e.title})]}),(0,G.jsxs)("div",{className:"kplex-publication-controls",children:[(0,G.jsx)(vt,{icon:"arrow-left",label:D.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Em.back,title:D.backTooltip}),(0,G.jsx)(vt,{icon:"arrow-right",label:D.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Em.forward,title:D.forwardTooltip}),n?(0,G.jsx)(vt,{ref:Y,icon:xM[V],label:b?D.hideSidecar:D.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${z}`,"aria-keyshortcuts":Em.sidecar,title:b?D.hideSidecarTooltip:D.showSidecarTooltip,onClick:Yt}):Ia,he==="both"&&(0,G.jsx)(vt,{icon:$n,label:il.trigger(An),"aria-haspopup":"menu","aria-expanded":!!wt,onClick:y=>{fe(null),Z(null),we(wt?null:y.currentTarget)}})]}),n&&(0,G.jsx)(nv,{publication:e,resources:n,page:ti,searchFocus:ee,onChoose:Tt}),n&&tt?.length?ni(tt.map(y=>({id:Mn(y)})),D.pins):null]}),n?(0,G.jsx)(Ev,{sidecarId:`sidecar-${z}`,sidecarOpen:b,dock:V,canDockLaterally:w,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,G.jsxs)("div",{className:"kplex-publication-canvas",children:[vr,(0,G.jsx)("div",{ref:I,className:"kplex-publication-controls kplex-publication-camera-actions",children:Ia}),(0,G.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,G.jsx)("p",{children:u.addressProblem==="ambiguous"?D.ambiguousAddress:D.nodeUnavailable}),E.truncated&&(0,G.jsx)("p",{children:D.sceneLimited}),Dt&&(0,G.jsx)("p",{children:D.themeUnavailable}),Mt&&(0,G.jsx)("p",{children:D.addressCopied})]})]}),renderSidecar:(y,A)=>(0,G.jsx)(xv,{publication:e,resources:n,id:`sidecar-${z}`,contentScope:`${t}-document`,location:u.attention,colorMode:Cn,onClose:gn,onNavigate:Tt,dock:y,onSwitchDock:A})}):(0,G.jsxs)(G.Fragment,{children:[vr,(0,G.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":z,"aria-live":"polite",children:[(0,G.jsx)("h2",{id:z,children:L.node.name}),gr&&(0,G.jsx)("p",{children:gr})]})]}),n&&u.visits.length>1&&ni(u.visits,D.history,!0),wt&&(0,G.jsx)(ur,{anchor:wt,variant:"theme",onDismiss:()=>we(null),choices:Tm.map(([y,A,B])=>({label:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}),ue&&(0,G.jsx)(ur,{anchor:ue.anchor,point:ue.point,onDismiss:()=>fe(null),choices:[{label:D.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:D.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:D.crossLinks,kind:"menuitemcheckbox",checked:h,select:()=>u.changeCanvas({crosslinks:!h})},...p==="compass"?[{label:D.showSiblings,kind:"menuitemcheckbox",checked:s,select:Za}]:[],{label:D.linkOntology,kind:"menuitemcheckbox",checked:S,select:()=>u.changeCanvas({ontology:!S})},...n?[{label:D.sidecar,choices:[{label:D.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...SM.filter(([y])=>w||y==="bottom").map(([y,A])=>({label:A,kind:"menuitemradio",checked:b&&V===y,select:()=>u.changeCanvas(w?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...he==="both"?[{label:D.theme,choices:Tm.map(([y,A,B])=>({label:y==="system"?il.system:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}]:[],{label:D.about,choices:sm}]}),n&&H&&Fa&&(0,G.jsx)(H0,{anchor:H.anchor,address:Ba(ti(),Fa).href,shortAddress:Ja&&Ba(ti(),Fa,Ja).href,onDismiss:y=>{Z(null),y&&H.anchor.isConnected&&H.anchor.focus({preventScroll:!0})},onCopied:()=>je(!0)},H.id)]})}var o1=X(me(),1),Rm=new WeakSet,wM=0;function FN(e,t,{publicationUrl:n}={}){return Cm(e,t,n)}function $N(e,t,n){return Cm(e,t,n,!0)}function WN(e,t,n){return Cm(e,t,void 0,!0,n)}function Cm(e,t,n,i=!1,l){let a=e.ownerDocument.defaultView,o=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=S=>{let b=N0(S);if(b.manifest&&(!a?.crypto.subtle||!l&&o.origin!==a.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&a?l?.(b.manifest)??bv(a,o,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(Rm.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++wM}`,f=(0,a1.createRoot)(e,{identifierPrefix:c});Rm.add(e);let p=0,s=!1,h=({publication:S,resources:b})=>{i&&(e.ownerDocument.title=S.title),f.render((0,o1.jsx)(l1,{publication:S,markerPrefix:c,resources:b,browser:i&&b&&a?a:void 0},p++))};return h(u),{update(S){if(s)throw new Error("Publication mount has been disposed");h(r(S))},dispose(){if(!s){s=!0;try{f.unmount()}finally{Rm.delete(e)}}}}}export{D as a,gT as b,FN as c,$N as d,WN as e};
769
12
  /*! For license information please see chunk.js.LEGAL.txt */