yt-chat-components 1.2.8 → 1.2.9

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.
@@ -2,6 +2,7 @@
2
2
  import { useRef, useState } from 'react';
3
3
  import ChatWindow from './chatWindow';
4
4
  import { ChatMessageType } from './chatWindow/types/chatWidget';
5
+ import { styles, yt_style, markdownBody } from "./style"
5
6
 
6
7
  export default function ChatWidget({
7
8
  is_enable_call,
@@ -106,2443 +107,6 @@ export default function ChatWidget({
106
107
 
107
108
  const triggerRef = useRef<HTMLButtonElement>(null);
108
109
 
109
- const styles = `
110
-
111
- *,
112
- ::before,
113
- ::after {
114
- box-sizing: border-box;
115
- border-width: 0;
116
- border-style: solid;
117
- border-color: #e5e7eb;
118
- }
119
-
120
- abbr:where([title]) {
121
- -webkit-text-decoration: underline dotted;
122
- text-decoration: underline dotted;
123
- }
124
-
125
- b,
126
- strong {
127
- font-weight: bolder;
128
- }
129
-
130
- code,
131
- kbd,
132
- samp,
133
- pre {
134
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
135
- /* 1 */
136
- font-size: 1em;
137
- /* 2 */
138
- }
139
-
140
- small {
141
- font-size: 80%;
142
- }
143
-
144
- sub,
145
- sup {
146
- font-size: 75%;
147
- line-height: 0;
148
- position: relative;
149
- vertical-align: baseline;
150
- }
151
-
152
- sub {
153
- bottom: -0.25em;
154
- }
155
-
156
- sup {
157
- top: -0.5em;
158
- }
159
-
160
- button,
161
- input,
162
- optgroup,
163
- select,
164
- textarea {
165
- font-family: inherit;
166
- /* 1 */
167
- font-size: 100%;
168
- /* 1 */
169
- font-weight: inherit;
170
- /* 1 */
171
- line-height: inherit;
172
- /* 1 */
173
- color: inherit;
174
- /* 1 */
175
- margin: 0;
176
- /* 2 */
177
- padding: 0;
178
- /* 3 */
179
- }
180
-
181
- /*
182
- Remove the inheritance of text transform in Edge and Firefox.
183
- */
184
-
185
- button,
186
- select {
187
- text-transform: none;
188
- }
189
-
190
- /*
191
- 1. Correct the inability to style clickable types in iOS and Safari.
192
- 2. Remove default button styles.
193
- */
194
-
195
- button,
196
- [type='button'],
197
- [type='reset'],
198
- [type='submit'] {
199
- -webkit-appearance: button;
200
- /* 1 */
201
- // background-color: transparent;
202
- /* 2 */
203
- background-image: none;
204
- /* 2 */
205
- }
206
-
207
- /*
208
- Use the modern Firefox focus style for all focusable elements.
209
- */
210
-
211
- :-moz-focusring {
212
- outline: auto;
213
- }
214
-
215
- /*
216
- Remove the additional ':invalid' styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
217
- */
218
-
219
- :-moz-ui-invalid {
220
- box-shadow: none;
221
- }
222
-
223
- /*
224
- Add the correct vertical alignment in Chrome and Firefox.
225
- */
226
-
227
- progress {
228
- vertical-align: baseline;
229
- }
230
-
231
- /*
232
- Correct the cursor style of increment and decrement buttons in Safari.
233
- */
234
-
235
- ::-webkit-inner-spin-button,
236
- ::-webkit-outer-spin-button {
237
- height: auto;
238
- }
239
-
240
- /*
241
- 1. Correct the odd appearance in Chrome and Safari.
242
- 2. Correct the outline style in Safari.
243
- */
244
-
245
- [type='search'] {
246
- -webkit-appearance: textfield;
247
- /* 1 */
248
- outline-offset: -2px;
249
- /* 2 */
250
- }
251
-
252
- /*
253
- Remove the inner padding in Chrome and Safari on macOS.
254
- */
255
-
256
- ::-webkit-search-decoration {
257
- -webkit-appearance: none;
258
- }
259
-
260
- /*
261
- 1. Correct the inability to style clickable types in iOS and Safari.
262
- 2. Change font properties to 'inherit' in Safari.
263
- */
264
-
265
- ::-webkit-file-upload-button {
266
- -webkit-appearance: button;
267
- /* 1 */
268
- font: inherit;
269
- /* 2 */
270
- }
271
-
272
- /*
273
- Add the correct display in Chrome and Safari.
274
- */
275
-
276
- summary {
277
- display: list-item;
278
- }
279
-
280
- /*
281
- Removes the default spacing and border for appropriate elements.
282
- */
283
-
284
- fieldset {
285
- margin: 0;
286
- padding: 0;
287
- }
288
-
289
- legend {
290
- padding: 0;
291
- }
292
-
293
-
294
- /*
295
- Prevent resizing textareas horizontally by default.
296
- */
297
-
298
- textarea {
299
- resize: vertical;
300
- }
301
-
302
- /*
303
- 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
304
- 2. Set the default placeholder color to the user's configured gray 400 color.
305
- */
306
-
307
- input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
308
- opacity: 1;
309
- /* 1 */
310
- color: #9ca3af;
311
- /* 2 */
312
- }
313
-
314
- input::placeholder,
315
- textarea::placeholder {
316
- opacity: 1;
317
- /* 1 */
318
- color: #9ca3af;
319
- /* 2 */
320
- }
321
-
322
- /*
323
- Set the default cursor for buttons.
324
- */
325
-
326
- button,
327
- [role="button"] {
328
- cursor: pointer;
329
- }
330
-
331
- /*
332
- Make sure disabled buttons don't get the pointer cursor.
333
- */
334
-
335
- :disabled {
336
- cursor: default;
337
- }
338
-
339
- /*
340
- 1. Make replaced elements 'display: block' by default. (https://github.com/mozdevs/cssremedy/issues/14)
341
- 2. Add 'vertical-align: middle' to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
342
- This can trigger a poorly considered lint error in some tools but is included by design.
343
- */
344
-
345
-
346
- /*
347
- Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
348
- */
349
-
350
- img,
351
- video {
352
- max-width: 100%;
353
- height: auto;
354
- }
355
-
356
- /* Make elements with the HTML hidden attribute stay hidden by default */
357
-
358
- [hidden] {
359
- display: none;
360
- }
361
-
362
- .cl-window {
363
- border-radius: 1rem;
364
- padding-top: 1.8rem;
365
- padding-bottom: 1.2rem;
366
- }
367
-
368
- .cl-middle-container{
369
- height:100%;
370
- display: flex;
371
- flex-direction: column;
372
- overflow: hidden;
373
- border-left:0.5px solid #3850FF2E;
374
- border-right:0.5px solid #3850FF2E;
375
- padding-left:1.6rem;
376
- padding-right:1.6rem;
377
- }
378
-
379
-
380
- .cl-scale-100 {
381
- --tw-scale-x: 1;
382
- --tw-scale-y: 1;
383
- -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
384
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
385
- }
386
-
387
- .cl-scale-0 {
388
- --tw-scale-x: 0;
389
- --tw-scale-y: 0;
390
- -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
391
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
392
- }
393
-
394
-
395
- .cl-chat-window {
396
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
397
- "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
398
- sans-serif;
399
- position: absolute;
400
- transition-property: all;
401
- transition-duration: 300ms;
402
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
403
- }
404
-
405
- .cl-online-message {
406
- height: 0.5rem;
407
- width: 0.5rem;
408
- border-radius: 9999px;
409
- --tw-bg-opacity: 1;
410
- background-color: rgb(34 197 94 / var(--tw-bg-opacity));
411
- }
412
-
413
- .cl-offline-message {
414
- height: 0.5rem;
415
- width: 0.5rem;
416
- border-radius: 9999px;
417
- --tw-bg-opacity: 1;
418
- background-color: rgb(239 68 68 / var(--tw-bg-opacity));
419
- }
420
-
421
- .cl-send-icon {
422
- margin-right: 1.25rem;
423
- height: 1.5rem;
424
- width: 1.5rem;
425
- }
426
-
427
- .cl-notsending-message {
428
- stroke: #3b82f6;
429
- }
430
-
431
- .cl-notsending-message:hover {
432
- stroke: #60a5fa;
433
- }
434
-
435
- .cl-sending-message {
436
- stroke: #9ca3af;
437
- }
438
-
439
- .cl-header-subtitle {
440
- display: flex;
441
- align-items: center;
442
- gap: 0.5rem;
443
- font-size: 0.875rem;
444
- line-height: 1.25rem;
445
- font-weight: 300;
446
- color: rgb(107 114 128);
447
- }
448
-
449
- .cl-header {
450
- position:relative;
451
- display: flex;
452
- flex-direction: column;
453
- --tw-bg-opacity: 1;
454
- font-size: 1.125rem;
455
- line-height: 1.75rem;
456
- font-weight: 400;
457
- color: rgb(17 24 39);
458
- }
459
-
460
- .cl-header .header-title{
461
- display: flex;
462
- align-items: center;
463
- margin-bottom: 16px;
464
- font-size: 22px;
465
- font-weight: 600;
466
- }
467
-
468
- .cl-header .diamond {
469
- position: relative;
470
- display: inline-block;
471
- width: 20px;
472
- height: 20px;
473
- }
474
-
475
- .cl-header .diamond::before {
476
- content: '';
477
- position: absolute;
478
- top: 5px;
479
- left: 0;
480
- width: 10px;
481
- height: 10px;
482
- background-color: blue;
483
- transform: rotate(45deg);
484
- border-radius: 3px;
485
- }
486
-
487
- .cl-tips-wrapper {
488
- width:100%;
489
- display:flex;
490
- margin-top:0.81rem;
491
- flex-direction: row;
492
- position: relative;
493
- padding-bottom: 100px;
494
- z-index: 1;
495
- }
496
-
497
- .cl-tips-wrapper .drop-man-img {
498
- width: 35%;
499
- }
500
- .cl-tips-wrapper .drop-down-title {
501
- margin-top: 45px;
502
- font-family: PingFangSC, PingFang SC;
503
- font-weight: 500;
504
- font-size: 18px;
505
- color: #333333;
506
- line-height: 28px;
507
- text-align: left;
508
- font-style: normal;
509
- > div {
510
- margin-top: 15px;
511
- font-size: 12px;
512
- color: # 999;
513
- }
514
- }
515
-
516
- .cl-tips-wrapper .cl-drop-down-mobile {
517
- position: absolute;
518
- width:100%;
519
- top: 120px;
520
- }
521
-
522
- .cl-tips-wrapper .drop-down-list-mobile {
523
- display: flex;
524
- flex-direction: column;
525
- margin-top: 2rem;
526
- width:100%;
527
- align-items: end;
528
- }
529
-
530
- .drop-down-item-card-mobile {
531
- width: 85%;
532
- height: 3.4rem;
533
- padding: 0 0.6rem 0;
534
- border-radius:20px;
535
- border-top-left-radius: 0;
536
- background: url("https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/ai/drop-down-item-card-bg.png");
537
- background-size: cover;
538
- background-position: center;
539
- background-repeat: no-repeat;
540
- margin-bottom: 20px;
541
-
542
- display:flex;
543
- align-items: center;
544
- }
545
- .drop-down-item-title-mobile {
546
- font-family: PingFangSC, PingFang SC;
547
- font-weight: 400;
548
- font-size: 13px;
549
- color: #000000;
550
- line-height: 17px;
551
- text-align: left;
552
- font-style: normal;
553
- width: 100%;
554
- margin-bottom:0 !important;
555
- }
556
-
557
- .drop-down-item-bottom-img-mobile{
558
- width:3.5rem;
559
- height:2.5rem;
560
- }
561
-
562
- .cl-drop-man{
563
- width:100%;
564
- display:flex;
565
- margin-top:0.81rem;
566
- }
567
- .cl-drop-man .drop-man-img{
568
- height:340px;
569
- margin-right: 4rem;
570
- margin-left: 3rem;
571
- }
572
-
573
- .cl-drop-man .cl-drop-down .drop-down-item-card .drop-down-item-bottom-img{
574
- height:3.4rem;
575
- margin-right:20px;
576
- }
577
-
578
- .cl-drop-man .drop-down-list{
579
- width:auto;
580
- display:flex;
581
- flex-direction:row;
582
- flex-wrap:wrap;
583
- }
584
-
585
- .cl-drop-man .cl-drop-down .drop-down-item-card{
586
- width:calc(50% - 0.65rem);
587
- }
588
-
589
- .cl-drop-man .cl-drop-down{
590
- flex:1;
591
- position:unset;
592
- border-bottom-left-radius: 0;
593
- }
594
-
595
- .cl-drop-horizontal{
596
- width:100%;
597
- display:flex;
598
- margin-top:0.81rem;
599
- }
600
-
601
- .cl-drop-horizontal .drop-man-img{
602
- height:340px;
603
- margin-right: 4rem;
604
- margin-left: 3rem;
605
- }
606
-
607
- .cl-drop-horizontal .drop-down-list{
608
- width:auto;
609
- display:flex;
610
- flex-direction:row;
611
- flex-wrap:wrap;
612
- }
613
-
614
- .cl-drop-horizontal .cl-drop-down .drop-down-item-card .drop-down-item-bottom-img{
615
- height:2.4rem;
616
- width:auto;
617
- margin-right:20px;
618
- }
619
-
620
- .cl-drop-horizontal .cl-drop-down{
621
- flex:1;
622
- position:unset;
623
- border-bottom-left-radius: 0;
624
- }
625
-
626
- .cl-drop-horizontal .cl-drop-down .drop-down-item-card{
627
- width:100%;
628
- height:unset;
629
- justify-content:unset;
630
- flex-direction:row;
631
- align-items: center;
632
- padding: 0.8rem 1.2rem 0.8rem;
633
- cursor:pointer;
634
- }
635
-
636
- .cl-drop-horizontal .drop-down-item-bottom-button{
637
- display:none;
638
- }
639
-
640
- .cl-drop-screen{
641
- width:100%;
642
- display:flex;
643
- margin-top:0.81rem;
644
- align-items: flex-start;
645
- }
646
-
647
- .cl-drop-screen .cl-drop-down .drop-down-item-card .drop-down-item-bottom-img{
648
- height:2.4rem;
649
- width:auto;
650
- margin-right:20px;
651
- }
652
-
653
- .cl-drop-screen .drop-man-img{
654
- height:340px;
655
- margin-right: 4rem;
656
- margin-left: 3rem;
657
- }
658
-
659
- .cl-drop-screen .cl-drop-down{
660
- flex:1;
661
- position:unset;
662
- border-bottom-left-radius: 0;
663
- }
664
-
665
- .cl-drop-screen .cl-drop-down .drop-down-item-card{
666
- width:calc(33% - 0.65rem);
667
- }
668
-
669
- .cl-drop-down {
670
- background: #FFFFFF;
671
- border-radius: 10px;
672
- box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.05);
673
- z-index: 1;
674
- width: 100%;
675
- min-height: 50px;
676
- position: absolute;
677
- bottom: -14.7rem;
678
- padding:1.3rem;
679
- }
680
-
681
- .drop-down-title {
682
- font-weight: 500;
683
- font-size: 18px;
684
- color: #000000;
685
- line-height: 1.1;
686
- text-align: left;
687
- }
688
- .drop-down-list {
689
- display:flex;
690
- gap:1.3rem;
691
- margin-top:2rem;
692
- }
693
- .drop-down-item-card {
694
- width: 33%;
695
- padding: 1.2rem 1.2rem 0.3rem;
696
- height:7.5rem;
697
- font-weight: 400;
698
- font-size: 14px;
699
- color: #FFFFFF;
700
- line-height: 14px;
701
- text-align: left;
702
- border-radius:10px;
703
- background: url("https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/ai/drop-down-item-card-bg.png");
704
- background-size: cover;
705
- background-position: center;
706
- background-repeat: no-repeat;
707
- cursor: pointer;
708
-
709
- display:flex;
710
- justify-content: space-between;
711
- flex-direction: column;
712
- }
713
- .drop-down-item-title {
714
- font-weight: 400;
715
- font-size: 16px;
716
- color: #000000;
717
- line-height: 20px;
718
- text-align: left;
719
- width: 100%;
720
- margin-bottom:0 !important;
721
- }
722
- .drop-down-item-bottom{
723
- display:flex;
724
- align-items: center;
725
- justify-content: space-between;
726
- flex-direction: row;
727
- // margin-top:1rem;
728
- align-items: center;
729
- }
730
-
731
- .drop-down-item-bottom-button{
732
- border-radius: 16px;
733
- line-height: 20px;
734
- text-align: left;
735
- width: 2rem;
736
- padding: 0.2rem 0.4rem 0.2rem 0.2rem;
737
- cursor: pointer;
738
- display: flex;
739
- justify-content: center;
740
- align-items: center
741
- }
742
-
743
- .drop-down-item-bottom-img{
744
- width:4rem;
745
- height:3.5rem;
746
- }
747
-
748
- @media screen and (max-width: 1000px){
749
- .drop-down-item-bottom-img {
750
- display:none;
751
- }
752
- .drop-down-item-bottom {
753
-
754
- margin-bottom:1rem;
755
- }
756
- }
757
-
758
- .cl-messages_container {
759
- position: relative;
760
- display: flex;
761
- height: 100%;
762
- flex-direction: column;
763
- overflow: scroll;
764
- overflow-x: clip;
765
- --tw-bg-opacity: 1;
766
- padding-left: 1rem;
767
- padding-right: 1rem;
768
- padding-top: 0.5rem;
769
- padding-bottom: 0.5rem;
770
- -ms-overflow-style: none;
771
- scrollbar-width: none;
772
- }
773
-
774
- .cl-messages_container::-webkit-scrollbar {
775
- display: none;
776
- }
777
-
778
- .cl-input_container {
779
- position: relative;
780
- display: flex;
781
- flex-direction: column;
782
- width: 100%;
783
- align-items: center;
784
- --tw-border-opacity: 1;
785
- --tw-bg-opacity: 1;
786
- border-top-right-radius: 50px;
787
- border-bottom-right-radius: 50px;
788
- }
789
-
790
- .cl-chat-message {
791
- display: flex;
792
- width: 100%;
793
- padding-top: 0.5rem;
794
- padding-bottom: 0.5rem;
795
- padding-left: 0.5rem;
796
- padding-right: 0.5rem;
797
- }
798
-
799
- @-webkit-keyframes pulse {
800
- 50% {
801
- opacity: .5;
802
- }
803
- }
804
-
805
- @keyframes pulse {
806
- 50% {
807
- opacity: .5;
808
- }
809
- }
810
-
811
- .cl-animate-pulse {
812
- -webkit-animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
813
- animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
814
- }
815
-
816
- .cl-justify-start {
817
- justify-content: flex-start;
818
- }
819
-
820
- .cl-justify-end {
821
- justify-content: flex-end;
822
- }
823
-
824
- .cl-input-element {
825
- height: 100%;
826
- width: 100%;
827
- padding-left: 1.25rem;
828
- padding-right: 1.25rem;
829
- padding-top: 0.25rem;
830
- padding-bottom: 0.25rem;
831
- font-weight: 300;
832
- background-color: #FFFFFF;
833
- color: rgb(17 24 39);
834
- border-top-left-radius: 50px;
835
- border-bottom-left-radius: 50px;
836
- transition: height 0.2s ease;
837
- }
838
- .cl-input-element::-webkit-scrollbar{
839
- width: 0 !important;
840
- }
841
-
842
- .cl-input-element::placeholder {
843
- line-height:45px;
844
- }
845
-
846
- .cl-input-element:focus {
847
- outline: 2px solid transparent;
848
- outline-offset: 2px;
849
- }
850
-
851
- .cl-input-element:focus::placeholder {
852
- line-height:unset;
853
- }
854
-
855
- .cl-user_message {
856
- width: -webkit-fit-content;
857
- width: -moz-fit-content;
858
- width: fit-content;
859
- -webkit-column-break-before: all;
860
- break-before: all;
861
- border-radius: 0.75rem;
862
- border-top-right-radius: 0.125rem;
863
- --tw-bg-opacity: 1;
864
- background-color: rgb(59 130 246 / var(--tw-bg-opacity));
865
- padding-left: 1rem;
866
- padding-right: 1rem;
867
- padding-top: 0.5rem;
868
- padding-bottom: 0.5rem;
869
- text-align: left;
870
- --tw-text-opacity: 1;
871
- color: rgb(255 255 255 / var(--tw-text-opacity));
872
- white-space: pre-line;
873
- }
874
-
875
- .cl-error_message {
876
- width: -webkit-fit-content;
877
- width: -moz-fit-content;
878
- width: fit-content;
879
- max-width: 90%;
880
- -webkit-column-break-before: all;
881
- break-before: all;
882
- border-radius: 0.75rem;
883
- border-top-left-radius: 0.125rem;
884
- --tw-bg-opacity: 1;
885
- background-color: rgb(248 113 113 / var(--tw-bg-opacity));
886
- padding-left: 1rem;
887
- padding-right: 1rem;
888
- padding-top: 0.5rem;
889
- padding-bottom: 0.5rem;
890
- text-align: left;
891
- --tw-text-opacity: 1;
892
- color: rgb(255 255 255 / var(--tw-text-opacity));
893
- }
894
-
895
- .cl-bot_message {
896
- width: -webkit-fit-content;
897
- width: -moz-fit-content;
898
- width: fit-content;
899
-
900
- -webkit-column-break-before: all;
901
- break-before: all;
902
- border-radius: 0.75rem;
903
- border-top-left-radius: 0.125rem;
904
- --tw-bg-opacity: 1;
905
- background-color: #FFFFFF;
906
- padding-left: 1rem;
907
- padding-right: 1rem;
908
- padding-top: 0.5rem;
909
- padding-bottom: 0.5rem;
910
- text-align: left;
911
- --tw-text-opacity: 1;
912
- color: rgb(31 41 55 / var(--tw-text-opacity));
913
- }
914
-
915
- .origin-bottom {
916
- -webkit-transform-origin: bottom;
917
- transform-origin: bottom;
918
- }
919
-
920
- .origin-bottom-left {
921
- -webkit-transform-origin: bottom left;
922
- transform-origin: bottom left;
923
- }
924
-
925
- .origin-bottom-right {
926
- -webkit-transform-origin: bottom right;
927
- transform-origin: bottom right;
928
- }
929
-
930
- .origin-center {
931
- -webkit-transform-origin: center;
932
- transform-origin: center;
933
- }
934
-
935
- .origin-top {
936
- -webkit-transform-origin: top;
937
- transform-origin: top;
938
- }
939
-
940
- .origin-top-left {
941
- -webkit-transform-origin: top left;
942
- transform-origin: top left;
943
- }
944
-
945
- .origin-top-right {
946
- -webkit-transform-origin: top right;
947
- transform-origin: top right;
948
- }
949
-
950
- .shadow {
951
- --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
952
- --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
953
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
954
- }
955
- input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
956
- color: rgb(156 163 175);
957
- opacity: 1; /* Firefox */
958
- }
959
-
960
- input:-ms-input-placeholder { /* Internet Explorer 10-11 */
961
- color: rgb(156 163 175);
962
- }
963
-
964
- input::-ms-input-placeholder { /* Microsoft Edge */
965
- color: rgb(156 163 175);
966
- }
967
- `;
968
-
969
- const markdownBody = `
970
-
971
- .markdown-body {
972
- max-width: 780px;
973
- --base-size-4: 0.25rem;
974
- --base-size-8: 0.5rem;
975
- --base-size-16: 1rem;
976
- --base-text-weight-normal: 400;
977
- --base-text-weight-medium: 500;
978
- --base-text-weight-semibold: 600;
979
- --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
980
- }
981
-
982
- @media (prefers-color-scheme: dark) {
983
- .markdown-body,
984
- [data-theme="dark"] {
985
- /*dark*/
986
- color-scheme: dark;
987
- --focus-outlineColor: #1f6feb;
988
- --fgColor-default: #e6edf3;
989
- --fgColor-muted: #8d96a0;
990
- --fgColor-accent: #4493f8;
991
- --fgColor-success: #3fb950;
992
- --fgColor-attention: #d29922;
993
- --fgColor-danger: #f85149;
994
- --fgColor-done: #ab7df8;
995
- --bgColor-default: #0d1117;
996
- --bgColor-muted: #161b22;
997
- --bgColor-neutral-muted: #6e768166;
998
- --bgColor-attention-muted: #bb800926;
999
- --borderColor-default: #30363d;
1000
- --borderColor-muted: #30363db3;
1001
- --borderColor-neutral-muted: #6e768166;
1002
- --borderColor-accent-emphasis: #1f6feb;
1003
- --borderColor-success-emphasis: #238636;
1004
- --borderColor-attention-emphasis: #9e6a03;
1005
- --borderColor-danger-emphasis: #da3633;
1006
- --borderColor-done-emphasis: #8957e5;
1007
- --color-prettylights-syntax-comment: #8b949e;
1008
- --color-prettylights-syntax-constant: #79c0ff;
1009
- --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
1010
- --color-prettylights-syntax-entity: #d2a8ff;
1011
- --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
1012
- --color-prettylights-syntax-entity-tag: #7ee787;
1013
- --color-prettylights-syntax-keyword: #ff7b72;
1014
- --color-prettylights-syntax-string: #a5d6ff;
1015
- --color-prettylights-syntax-variable: #ffa657;
1016
- --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
1017
- --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
1018
- --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
1019
- --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
1020
- --color-prettylights-syntax-carriage-return-text: #f0f6fc;
1021
- --color-prettylights-syntax-carriage-return-bg: #b62324;
1022
- --color-prettylights-syntax-string-regexp: #7ee787;
1023
- --color-prettylights-syntax-markup-list: #f2cc60;
1024
- --color-prettylights-syntax-markup-heading: #1f6feb;
1025
- --color-prettylights-syntax-markup-italic: #c9d1d9;
1026
- --color-prettylights-syntax-markup-bold: #c9d1d9;
1027
- --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
1028
- --color-prettylights-syntax-markup-deleted-bg: #67060c;
1029
- --color-prettylights-syntax-markup-inserted-text: #aff5b4;
1030
- --color-prettylights-syntax-markup-inserted-bg: #033a16;
1031
- --color-prettylights-syntax-markup-changed-text: #ffdfb6;
1032
- --color-prettylights-syntax-markup-changed-bg: #5a1e02;
1033
- --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
1034
- --color-prettylights-syntax-markup-ignored-bg: #1158c7;
1035
- --color-prettylights-syntax-meta-diff-range: #d2a8ff;
1036
- --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
1037
- }
1038
- }
1039
-
1040
- @media (prefers-color-scheme: light) {
1041
- .markdown-body,
1042
- [data-theme="light"] {
1043
- /*light*/
1044
- color-scheme: light;
1045
- --focus-outlineColor: #0969da;
1046
- --fgColor-default: #1f2328;
1047
- --fgColor-muted: #636c76;
1048
- --fgColor-accent: #0969da;
1049
- --fgColor-success: #1a7f37;
1050
- --fgColor-attention: #9a6700;
1051
- --fgColor-danger: #d1242f;
1052
- --fgColor-done: #8250df;
1053
- --bgColor-default: #ffffff;
1054
- --bgColor-muted: #f6f8fa;
1055
- --bgColor-neutral-muted: #afb8c133;
1056
- --bgColor-attention-muted: #fff8c5;
1057
- --borderColor-default: #d0d7de;
1058
- --borderColor-muted: #d0d7deb3;
1059
- --borderColor-neutral-muted: #afb8c133;
1060
- --borderColor-accent-emphasis: #0969da;
1061
- --borderColor-success-emphasis: #1a7f37;
1062
- --borderColor-attention-emphasis: #bf8700;
1063
- --borderColor-danger-emphasis: #cf222e;
1064
- --borderColor-done-emphasis: #8250df;
1065
- --color-prettylights-syntax-comment: #57606a;
1066
- --color-prettylights-syntax-constant: #0550ae;
1067
- --color-prettylights-syntax-constant-other-reference-link: #0a3069;
1068
- --color-prettylights-syntax-entity: #6639ba;
1069
- --color-prettylights-syntax-storage-modifier-import: #24292f;
1070
- --color-prettylights-syntax-entity-tag: #0550ae;
1071
- --color-prettylights-syntax-keyword: #cf222e;
1072
- --color-prettylights-syntax-string: #0a3069;
1073
- --color-prettylights-syntax-variable: #953800;
1074
- --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
1075
- --color-prettylights-syntax-brackethighlighter-angle: #57606a;
1076
- --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
1077
- --color-prettylights-syntax-invalid-illegal-bg: #82071e;
1078
- --color-prettylights-syntax-carriage-return-text: #f6f8fa;
1079
- --color-prettylights-syntax-carriage-return-bg: #cf222e;
1080
- --color-prettylights-syntax-string-regexp: #116329;
1081
- --color-prettylights-syntax-markup-list: #3b2300;
1082
- --color-prettylights-syntax-markup-heading: #0550ae;
1083
- --color-prettylights-syntax-markup-italic: #24292f;
1084
- --color-prettylights-syntax-markup-bold: #24292f;
1085
- --color-prettylights-syntax-markup-deleted-text: #82071e;
1086
- --color-prettylights-syntax-markup-deleted-bg: #ffebe9;
1087
- --color-prettylights-syntax-markup-inserted-text: #116329;
1088
- --color-prettylights-syntax-markup-inserted-bg: #dafbe1;
1089
- --color-prettylights-syntax-markup-changed-text: #953800;
1090
- --color-prettylights-syntax-markup-changed-bg: #ffd8b5;
1091
- --color-prettylights-syntax-markup-ignored-text: #eaeef2;
1092
- --color-prettylights-syntax-markup-ignored-bg: #0550ae;
1093
- --color-prettylights-syntax-meta-diff-range: #8250df;
1094
- --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
1095
- }
1096
- }
1097
-
1098
- .markdown-body {
1099
- -ms-text-size-adjust: 100%;
1100
- -webkit-text-size-adjust: 100%;
1101
- margin: 0;
1102
- font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
1103
- font-size: 16px;
1104
- line-height: 1.5;
1105
- word-wrap: break-word;
1106
- scroll-behavior: auto;
1107
- }
1108
-
1109
- .markdown-body .octicon {
1110
- display: inline-block;
1111
- fill: currentColor;
1112
- vertical-align: text-bottom;
1113
- }
1114
-
1115
- .markdown-body h1:hover .anchor .octicon-link:before,
1116
- .markdown-body h2:hover .anchor .octicon-link:before,
1117
- .markdown-body h3:hover .anchor .octicon-link:before,
1118
- .markdown-body h4:hover .anchor .octicon-link:before,
1119
- .markdown-body h5:hover .anchor .octicon-link:before,
1120
- .markdown-body h6:hover .anchor .octicon-link:before {
1121
- width: 16px;
1122
- height: 16px;
1123
- content: ' ';
1124
- display: inline-block;
1125
- background-color: currentColor;
1126
- -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");
1127
- mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");
1128
- }
1129
-
1130
- .markdown-body details,
1131
- .markdown-body figcaption,
1132
- .markdown-body figure {
1133
- display: block;
1134
- }
1135
-
1136
- .markdown-body summary {
1137
- display: list-item;
1138
- }
1139
-
1140
- .markdown-body [hidden] {
1141
- display: none !important;
1142
- }
1143
-
1144
- .markdown-body a {
1145
- background-color: transparent;
1146
- color: var(--fgColor-accent);
1147
- text-decoration: none;
1148
- }
1149
-
1150
- .markdown-body abbr[title] {
1151
- border-bottom: none;
1152
- -webkit-text-decoration: underline dotted;
1153
- text-decoration: underline dotted;
1154
- }
1155
-
1156
- .markdown-body b,
1157
- .markdown-body strong {
1158
- font-weight: var(--base-text-weight-semibold, 600);
1159
- }
1160
-
1161
- .markdown-body dfn {
1162
- font-style: italic;
1163
- }
1164
-
1165
- .markdown-body h1 {
1166
- margin: .67em 0;
1167
- font-weight: var(--base-text-weight-semibold, 600);
1168
- padding-bottom: .3em;
1169
- font-size: 2em;
1170
- border-bottom: 1px solid var(--borderColor-muted);
1171
- }
1172
-
1173
- .markdown-body mark {
1174
- background-color: var(--bgColor-attention-muted);
1175
- color: var(--fgColor-default);
1176
- }
1177
-
1178
- .markdown-body small {
1179
- font-size: 90%;
1180
- }
1181
-
1182
- .markdown-body sub,
1183
- .markdown-body sup {
1184
- font-size: 75%;
1185
- line-height: 0;
1186
- position: relative;
1187
- vertical-align: baseline;
1188
- }
1189
-
1190
- .markdown-body sub {
1191
- bottom: -0.25em;
1192
- }
1193
-
1194
- .markdown-body sup {
1195
- top: -0.5em;
1196
- }
1197
-
1198
- .markdown-body img {
1199
- border-style: none;
1200
- max-width: 100%;
1201
- box-sizing: content-box;
1202
- }
1203
-
1204
- .markdown-body code,
1205
- .markdown-body kbd,
1206
- .markdown-body pre,
1207
- .markdown-body samp {
1208
- font-family: monospace;
1209
- font-size: 1em;
1210
- }
1211
-
1212
- .markdown-body figure {
1213
- margin: 1em 40px;
1214
- }
1215
-
1216
- .markdown-body hr {
1217
- box-sizing: content-box;
1218
- overflow: hidden;
1219
- background: transparent;
1220
- border-bottom: 1px solid var(--borderColor-muted);
1221
- height: .25em;
1222
- padding: 0;
1223
- margin: 24px 0;
1224
- background-color: var(--borderColor-default);
1225
- border: 0;
1226
- }
1227
-
1228
- .markdown-body input {
1229
- font: inherit;
1230
- margin: 0;
1231
- overflow: visible;
1232
- font-family: inherit;
1233
- font-size: inherit;
1234
- line-height: inherit;
1235
- }
1236
-
1237
- .markdown-body [type=button],
1238
- .markdown-body [type=reset],
1239
- .markdown-body [type=submit] {
1240
- -webkit-appearance: button;
1241
- appearance: button;
1242
- }
1243
-
1244
- .markdown-body [type=checkbox],
1245
- .markdown-body [type=radio] {
1246
- box-sizing: border-box;
1247
- padding: 0;
1248
- }
1249
-
1250
- .markdown-body [type=number]::-webkit-inner-spin-button,
1251
- .markdown-body [type=number]::-webkit-outer-spin-button {
1252
- height: auto;
1253
- }
1254
-
1255
- .markdown-body [type=search]::-webkit-search-cancel-button,
1256
- .markdown-body [type=search]::-webkit-search-decoration {
1257
- -webkit-appearance: none;
1258
- appearance: none;
1259
- }
1260
-
1261
- .markdown-body ::-webkit-input-placeholder {
1262
- color: inherit;
1263
- opacity: .54;
1264
- }
1265
-
1266
- .markdown-body ::-webkit-file-upload-button {
1267
- -webkit-appearance: button;
1268
- appearance: button;
1269
- font: inherit;
1270
- }
1271
-
1272
- .markdown-body a:hover {
1273
- text-decoration: underline;
1274
- }
1275
-
1276
- .markdown-body ::placeholder {
1277
- color: var(--fgColor-muted);
1278
- opacity: 1;
1279
- }
1280
-
1281
- .markdown-body hr::before {
1282
- display: table;
1283
- content: "";
1284
- }
1285
-
1286
- .markdown-body hr::after {
1287
- display: table;
1288
- clear: both;
1289
- content: "";
1290
- }
1291
-
1292
- .markdown-body table {
1293
- border-spacing: 0;
1294
- border-collapse: collapse;
1295
- display: block;
1296
- width: max-content;
1297
- max-width: 100%;
1298
- overflow: auto;
1299
- }
1300
-
1301
- .markdown-body td,
1302
- .markdown-body th {
1303
- padding: 0;
1304
- }
1305
-
1306
- .markdown-body details summary {
1307
- cursor: pointer;
1308
- }
1309
-
1310
- .markdown-body details:not([open])>*:not(summary) {
1311
- display: none;
1312
- }
1313
-
1314
- .markdown-body a:focus,
1315
- .markdown-body [role=button]:focus,
1316
- .markdown-body input[type=radio]:focus,
1317
- .markdown-body input[type=checkbox]:focus {
1318
- outline: 2px solid var(--focus-outlineColor);
1319
- outline-offset: -2px;
1320
- box-shadow: none;
1321
- }
1322
-
1323
- .markdown-body a:focus:not(:focus-visible),
1324
- .markdown-body [role=button]:focus:not(:focus-visible),
1325
- .markdown-body input[type=radio]:focus:not(:focus-visible),
1326
- .markdown-body input[type=checkbox]:focus:not(:focus-visible) {
1327
- outline: solid 1px transparent;
1328
- }
1329
-
1330
- .markdown-body a:focus-visible,
1331
- .markdown-body [role=button]:focus-visible,
1332
- .markdown-body input[type=radio]:focus-visible,
1333
- .markdown-body input[type=checkbox]:focus-visible {
1334
- outline: 2px solid var(--focus-outlineColor);
1335
- outline-offset: -2px;
1336
- box-shadow: none;
1337
- }
1338
-
1339
- .markdown-body a:not([class]):focus,
1340
- .markdown-body a:not([class]):focus-visible,
1341
- .markdown-body input[type=radio]:focus,
1342
- .markdown-body input[type=radio]:focus-visible,
1343
- .markdown-body input[type=checkbox]:focus,
1344
- .markdown-body input[type=checkbox]:focus-visible {
1345
- outline-offset: 0;
1346
- }
1347
-
1348
- .markdown-body kbd {
1349
- display: inline-block;
1350
- padding: 3px 5px;
1351
- font: 11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);
1352
- line-height: 10px;
1353
- color: var(--fgColor-default);
1354
- vertical-align: middle;
1355
- background-color: var(--bgColor-muted);
1356
- border: solid 1px var(--borderColor-neutral-muted);
1357
- border-bottom-color: var(--borderColor-neutral-muted);
1358
- border-radius: 6px;
1359
- box-shadow: inset 0 -1px 0 var(--borderColor-neutral-muted);
1360
- }
1361
-
1362
- .markdown-body h1,
1363
- .markdown-body h2,
1364
- .markdown-body h3,
1365
- .markdown-body h4,
1366
- .markdown-body h5,
1367
- .markdown-body h6 {
1368
- margin-top: 24px;
1369
- margin-bottom: 16px;
1370
- font-weight: var(--base-text-weight-semibold, 600);
1371
- line-height: 1.25;
1372
- }
1373
-
1374
- .markdown-body h2 {
1375
- font-weight: var(--base-text-weight-semibold, 600);
1376
- padding-bottom: .3em;
1377
- font-size: 1.5em;
1378
- border-bottom: 1px solid var(--borderColor-muted);
1379
- }
1380
-
1381
- .markdown-body h3 {
1382
- font-weight: var(--base-text-weight-semibold, 600);
1383
- font-size: 1.25em;
1384
- }
1385
-
1386
- .markdown-body h4 {
1387
- font-weight: var(--base-text-weight-semibold, 600);
1388
- font-size: 1em;
1389
- }
1390
-
1391
- .markdown-body h5 {
1392
- font-weight: var(--base-text-weight-semibold, 600);
1393
- font-size: .875em;
1394
- }
1395
-
1396
- .markdown-body h6 {
1397
- font-weight: var(--base-text-weight-semibold, 600);
1398
- font-size: .85em;
1399
- color: var(--fgColor-muted);
1400
- }
1401
-
1402
- .markdown-body p {
1403
- margin-top: 0;
1404
- margin-bottom: 10px;
1405
- }
1406
-
1407
- .markdown-body blockquote {
1408
- margin: 0;
1409
- padding: 0 1em;
1410
- color: var(--fgColor-muted);
1411
- }
1412
-
1413
- .markdown-body ul,
1414
- .markdown-body ol {
1415
- margin-top: 0;
1416
- margin-bottom: 0;
1417
- padding-left: 2em;
1418
- }
1419
-
1420
- .markdown-body ol ol,
1421
- .markdown-body ul ol {
1422
- list-style-type: lower-roman;
1423
- }
1424
-
1425
- .markdown-body ul ul ol,
1426
- .markdown-body ul ol ol,
1427
- .markdown-body ol ul ol,
1428
- .markdown-body ol ol ol {
1429
- list-style-type: lower-alpha;
1430
- }
1431
-
1432
- .markdown-body dd {
1433
- margin-left: 0;
1434
- }
1435
-
1436
- .markdown-body tt,
1437
- .markdown-body code,
1438
- .markdown-body samp {
1439
- font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);
1440
- font-size: 12px;
1441
- }
1442
-
1443
- .markdown-body pre {
1444
- margin-top: 0;
1445
- margin-bottom: 0;
1446
- font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);
1447
- font-size: 12px;
1448
- word-wrap: normal;
1449
- }
1450
-
1451
- .markdown-body .octicon {
1452
- display: inline-block;
1453
- overflow: visible !important;
1454
- vertical-align: text-bottom;
1455
- fill: currentColor;
1456
- }
1457
-
1458
- .markdown-body input::-webkit-outer-spin-button,
1459
- .markdown-body input::-webkit-inner-spin-button {
1460
- margin: 0;
1461
- -webkit-appearance: none;
1462
- appearance: none;
1463
- }
1464
-
1465
- .markdown-body .mr-2 {
1466
- margin-right: var(--base-size-8, 8px) !important;
1467
- }
1468
-
1469
- .markdown-body::before {
1470
- display: table;
1471
- content: "";
1472
- }
1473
-
1474
- .markdown-body::after {
1475
- display: table;
1476
- clear: both;
1477
- content: "";
1478
- }
1479
-
1480
- .markdown-body>*:first-child {
1481
- margin-top: 0 !important;
1482
- }
1483
-
1484
- .markdown-body>*:last-child {
1485
- margin-bottom: 0 !important;
1486
- }
1487
-
1488
- .markdown-body a:not([href]) {
1489
- color: inherit;
1490
- text-decoration: none;
1491
- }
1492
-
1493
- .markdown-body .absent {
1494
- color: var(--fgColor-danger);
1495
- }
1496
-
1497
- .markdown-body .anchor {
1498
- float: left;
1499
- padding-right: 4px;
1500
- margin-left: -20px;
1501
- line-height: 1;
1502
- }
1503
-
1504
- .markdown-body .anchor:focus {
1505
- outline: none;
1506
- }
1507
-
1508
- .markdown-body p,
1509
- .markdown-body blockquote,
1510
- .markdown-body ul,
1511
- .markdown-body ol,
1512
- .markdown-body dl,
1513
- .markdown-body table,
1514
- .markdown-body pre,
1515
- .markdown-body details {
1516
- margin-top: 0;
1517
- margin-bottom: 16px;
1518
- }
1519
-
1520
- .markdown-body blockquote>:first-child {
1521
- margin-top: 0;
1522
- }
1523
-
1524
- .markdown-body blockquote>:last-child {
1525
- margin-bottom: 0;
1526
- }
1527
-
1528
- .markdown-body h1 .octicon-link,
1529
- .markdown-body h2 .octicon-link,
1530
- .markdown-body h3 .octicon-link,
1531
- .markdown-body h4 .octicon-link,
1532
- .markdown-body h5 .octicon-link,
1533
- .markdown-body h6 .octicon-link {
1534
- color: var(--fgColor-default);
1535
- vertical-align: middle;
1536
- visibility: hidden;
1537
- }
1538
-
1539
- .markdown-body h1:hover .anchor,
1540
- .markdown-body h2:hover .anchor,
1541
- .markdown-body h3:hover .anchor,
1542
- .markdown-body h4:hover .anchor,
1543
- .markdown-body h5:hover .anchor,
1544
- .markdown-body h6:hover .anchor {
1545
- text-decoration: none;
1546
- }
1547
-
1548
- .markdown-body h1:hover .anchor .octicon-link,
1549
- .markdown-body h2:hover .anchor .octicon-link,
1550
- .markdown-body h3:hover .anchor .octicon-link,
1551
- .markdown-body h4:hover .anchor .octicon-link,
1552
- .markdown-body h5:hover .anchor .octicon-link,
1553
- .markdown-body h6:hover .anchor .octicon-link {
1554
- visibility: visible;
1555
- }
1556
-
1557
- .markdown-body h1 tt,
1558
- .markdown-body h1 code,
1559
- .markdown-body h2 tt,
1560
- .markdown-body h2 code,
1561
- .markdown-body h3 tt,
1562
- .markdown-body h3 code,
1563
- .markdown-body h4 tt,
1564
- .markdown-body h4 code,
1565
- .markdown-body h5 tt,
1566
- .markdown-body h5 code,
1567
- .markdown-body h6 tt,
1568
- .markdown-body h6 code {
1569
- padding: 0 .2em;
1570
- font-size: inherit;
1571
- }
1572
-
1573
- .markdown-body summary h1,
1574
- .markdown-body summary h2,
1575
- .markdown-body summary h3,
1576
- .markdown-body summary h4,
1577
- .markdown-body summary h5,
1578
- .markdown-body summary h6 {
1579
- display: inline-block;
1580
- }
1581
-
1582
- .markdown-body summary h1 .anchor,
1583
- .markdown-body summary h2 .anchor,
1584
- .markdown-body summary h3 .anchor,
1585
- .markdown-body summary h4 .anchor,
1586
- .markdown-body summary h5 .anchor,
1587
- .markdown-body summary h6 .anchor {
1588
- margin-left: -40px;
1589
- }
1590
-
1591
- .markdown-body summary h1,
1592
- .markdown-body summary h2 {
1593
- padding-bottom: 0;
1594
- border-bottom: 0;
1595
- }
1596
-
1597
- .markdown-body ul.no-list,
1598
- .markdown-body ol.no-list {
1599
- padding: 0;
1600
- list-style-type: none;
1601
- }
1602
-
1603
- .markdown-body ol[type="a s"] {
1604
- list-style-type: lower-alpha;
1605
- }
1606
-
1607
- .markdown-body ol[type="A s"] {
1608
- list-style-type: upper-alpha;
1609
- }
1610
-
1611
- .markdown-body ol[type="i s"] {
1612
- list-style-type: lower-roman;
1613
- }
1614
-
1615
- .markdown-body ol[type="I s"] {
1616
- list-style-type: upper-roman;
1617
- }
1618
-
1619
- .markdown-body ol[type="1"] {
1620
- list-style-type: decimal;
1621
- }
1622
-
1623
- .markdown-body div>ol:not([type]) {
1624
- list-style-type: decimal;
1625
- }
1626
-
1627
- .markdown-body ul ul,
1628
- .markdown-body ul ol,
1629
- .markdown-body ol ol,
1630
- .markdown-body ol ul {
1631
- margin-top: 0;
1632
- margin-bottom: 0;
1633
- }
1634
-
1635
- .markdown-body li>p {
1636
- margin-top: 16px;
1637
- }
1638
-
1639
- .markdown-body li+li {
1640
- margin-top: .25em;
1641
- }
1642
-
1643
- .markdown-body dl {
1644
- padding: 0;
1645
- }
1646
-
1647
- .markdown-body dl dt {
1648
- padding: 0;
1649
- margin-top: 16px;
1650
- font-size: 1em;
1651
- font-style: italic;
1652
- font-weight: var(--base-text-weight-semibold, 600);
1653
- }
1654
-
1655
- .markdown-body dl dd {
1656
- padding: 0 16px;
1657
- margin-bottom: 16px;
1658
- }
1659
-
1660
- .markdown-body table th {
1661
- font-weight: var(--base-text-weight-semibold, 600);
1662
- }
1663
-
1664
- .markdown-body table th,
1665
- .markdown-body table td {
1666
- padding: 6px 13px;
1667
- border: 1px solid var(--borderColor-default);
1668
- }
1669
-
1670
- .markdown-body table td>:last-child {
1671
- margin-bottom: 0;
1672
- }
1673
-
1674
- .markdown-body table tr {
1675
- border-top: 1px solid var(--borderColor-muted);
1676
- }
1677
-
1678
- .markdown-body table img {
1679
- background-color: transparent;
1680
- }
1681
-
1682
- .markdown-body img[align=right] {
1683
- padding-left: 20px;
1684
- }
1685
-
1686
- .markdown-body img[align=left] {
1687
- padding-right: 20px;
1688
- }
1689
-
1690
- .markdown-body .emoji {
1691
- max-width: none;
1692
- vertical-align: text-top;
1693
- background-color: transparent;
1694
- }
1695
-
1696
- .markdown-body span.frame {
1697
- display: block;
1698
- overflow: hidden;
1699
- }
1700
-
1701
- .markdown-body span.frame>span {
1702
- display: block;
1703
- float: left;
1704
- width: auto;
1705
- padding: 7px;
1706
- margin: 13px 0 0;
1707
- overflow: hidden;
1708
- border: 1px solid var(--borderColor-default);
1709
- }
1710
-
1711
- .markdown-body span.frame span img {
1712
- display: block;
1713
- float: left;
1714
- }
1715
-
1716
- .markdown-body span.frame span span {
1717
- display: block;
1718
- padding: 5px 0 0;
1719
- clear: both;
1720
- color: var(--fgColor-default);
1721
- }
1722
-
1723
- .markdown-body span.align-center {
1724
- display: block;
1725
- overflow: hidden;
1726
- clear: both;
1727
- }
1728
-
1729
- .markdown-body span.align-center>span {
1730
- display: block;
1731
- margin: 13px auto 0;
1732
- overflow: hidden;
1733
- text-align: center;
1734
- }
1735
-
1736
- .markdown-body span.align-center span img {
1737
- margin: 0 auto;
1738
- text-align: center;
1739
- }
1740
-
1741
- .markdown-body span.align-right {
1742
- display: block;
1743
- overflow: hidden;
1744
- clear: both;
1745
- }
1746
-
1747
- .markdown-body span.align-right>span {
1748
- display: block;
1749
- margin: 13px 0 0;
1750
- overflow: hidden;
1751
- text-align: right;
1752
- }
1753
-
1754
- .markdown-body span.align-right span img {
1755
- margin: 0;
1756
- text-align: right;
1757
- }
1758
-
1759
- .markdown-body span.float-left {
1760
- display: block;
1761
- float: left;
1762
- margin-right: 13px;
1763
- overflow: hidden;
1764
- }
1765
-
1766
- .markdown-body span.float-left span {
1767
- margin: 13px 0 0;
1768
- }
1769
-
1770
- .markdown-body span.float-right {
1771
- display: block;
1772
- float: right;
1773
- margin-left: 13px;
1774
- overflow: hidden;
1775
- }
1776
-
1777
- .markdown-body span.float-right>span {
1778
- display: block;
1779
- margin: 13px auto 0;
1780
- overflow: hidden;
1781
- text-align: right;
1782
- }
1783
-
1784
- .markdown-body code,
1785
- .markdown-body tt {
1786
- padding: .2em .4em;
1787
- margin: 0;
1788
- font-size: 85%;
1789
- white-space: break-spaces;
1790
- background-color: var(--bgColor-neutral-muted);
1791
- border-radius: 6px;
1792
- }
1793
-
1794
- .markdown-body code br,
1795
- .markdown-body tt br {
1796
- display: none;
1797
- }
1798
-
1799
- .markdown-body del code {
1800
- text-decoration: inherit;
1801
- }
1802
-
1803
- .markdown-body samp {
1804
- font-size: 85%;
1805
- }
1806
-
1807
- .markdown-body pre code {
1808
- font-size: 100%;
1809
- }
1810
-
1811
- .markdown-body pre>code {
1812
- padding: 0;
1813
- margin: 0;
1814
- word-break: normal;
1815
- white-space: pre;
1816
- background: transparent;
1817
- border: 0;
1818
- }
1819
-
1820
- .markdown-body .highlight {
1821
- margin-bottom: 16px;
1822
- }
1823
-
1824
- .markdown-body .highlight pre {
1825
- margin-bottom: 0;
1826
- word-break: normal;
1827
- }
1828
-
1829
- .markdown-body .highlight pre,
1830
- .markdown-body pre {
1831
- padding: 16px;
1832
- overflow: auto;
1833
- font-size: 85%;
1834
- line-height: 1.45;
1835
- color: #000000 !important;
1836
- background-color: #ffffff !important;
1837
- <!-- color: var(&#45;&#45;fgColor-default);-->
1838
- <!-- background-color: var(&#45;&#45;bgColor-muted);-->
1839
- border-radius: 6px;
1840
- }
1841
-
1842
- .markdown-body pre code,
1843
- .markdown-body pre tt {
1844
- display: inline;
1845
- max-width: auto;
1846
- padding: 0;
1847
- margin: 0;
1848
- overflow: visible;
1849
- line-height: inherit;
1850
- word-wrap: normal;
1851
- background-color: transparent;
1852
- border: 0;
1853
- }
1854
-
1855
- .markdown-body .csv-data td,
1856
- .markdown-body .csv-data th {
1857
- padding: 5px;
1858
- overflow: hidden;
1859
- font-size: 12px;
1860
- line-height: 1;
1861
- text-align: left;
1862
- white-space: nowrap;
1863
- }
1864
-
1865
- .markdown-body .csv-data .blob-num {
1866
- padding: 10px 8px 9px;
1867
- text-align: right;
1868
- border: 0;
1869
- }
1870
-
1871
- .markdown-body .csv-data tr {
1872
- border-top: 0;
1873
- }
1874
-
1875
- .markdown-body .csv-data th {
1876
- font-weight: var(--base-text-weight-semibold, 600);
1877
- background: var(--bgColor-muted);
1878
- border-top: 0;
1879
- }
1880
-
1881
- .markdown-body [data-footnote-ref]::before {
1882
- content: "[";
1883
- }
1884
-
1885
- .markdown-body [data-footnote-ref]::after {
1886
- content: "]";
1887
- }
1888
-
1889
- .markdown-body .footnotes {
1890
- font-size: 12px;
1891
- color: var(--fgColor-muted);
1892
- border-top: 1px solid var(--borderColor-default);
1893
- }
1894
-
1895
- .markdown-body .footnotes ol {
1896
- padding-left: 16px;
1897
- }
1898
-
1899
- .markdown-body .footnotes ol ul {
1900
- display: inline-block;
1901
- padding-left: 16px;
1902
- margin-top: 16px;
1903
- }
1904
-
1905
- .markdown-body .footnotes li {
1906
- position: relative;
1907
- }
1908
-
1909
- .markdown-body .footnotes li:target::before {
1910
- position: absolute;
1911
- top: -8px;
1912
- right: -8px;
1913
- bottom: -8px;
1914
- left: -24px;
1915
- pointer-events: none;
1916
- content: "";
1917
- border: 2px solid var(--borderColor-accent-emphasis);
1918
- border-radius: 6px;
1919
- }
1920
-
1921
- .markdown-body .footnotes li:target {
1922
- color: var(--fgColor-default);
1923
- }
1924
-
1925
- .markdown-body .footnotes .data-footnote-backref g-emoji {
1926
- font-family: monospace;
1927
- }
1928
-
1929
- .markdown-body .pl-c {
1930
- color: var(--color-prettylights-syntax-comment);
1931
- }
1932
-
1933
- .markdown-body .pl-c1,
1934
- .markdown-body .pl-s .pl-v {
1935
- color: var(--color-prettylights-syntax-constant);
1936
- }
1937
-
1938
- .markdown-body .pl-e,
1939
- .markdown-body .pl-en {
1940
- color: var(--color-prettylights-syntax-entity);
1941
- }
1942
-
1943
- .markdown-body .pl-smi,
1944
- .markdown-body .pl-s .pl-s1 {
1945
- color: var(--color-prettylights-syntax-storage-modifier-import);
1946
- }
1947
-
1948
- .markdown-body .pl-ent {
1949
- color: var(--color-prettylights-syntax-entity-tag);
1950
- }
1951
-
1952
- .markdown-body .pl-k {
1953
- color: var(--color-prettylights-syntax-keyword);
1954
- }
1955
-
1956
- .markdown-body .pl-s,
1957
- .markdown-body .pl-pds,
1958
- .markdown-body .pl-s .pl-pse .pl-s1,
1959
- .markdown-body .pl-sr,
1960
- .markdown-body .pl-sr .pl-cce,
1961
- .markdown-body .pl-sr .pl-sre,
1962
- .markdown-body .pl-sr .pl-sra {
1963
- color: var(--color-prettylights-syntax-string);
1964
- }
1965
-
1966
- .markdown-body .pl-v,
1967
- .markdown-body .pl-smw {
1968
- color: var(--color-prettylights-syntax-variable);
1969
- }
1970
-
1971
- .markdown-body .pl-bu {
1972
- color: var(--color-prettylights-syntax-brackethighlighter-unmatched);
1973
- }
1974
-
1975
- .markdown-body .pl-ii {
1976
- color: var(--color-prettylights-syntax-invalid-illegal-text);
1977
- background-color: var(--color-prettylights-syntax-invalid-illegal-bg);
1978
- }
1979
-
1980
- .markdown-body .pl-c2 {
1981
- color: var(--color-prettylights-syntax-carriage-return-text);
1982
- background-color: var(--color-prettylights-syntax-carriage-return-bg);
1983
- }
1984
-
1985
- .markdown-body .pl-sr .pl-cce {
1986
- font-weight: bold;
1987
- color: var(--color-prettylights-syntax-string-regexp);
1988
- }
1989
-
1990
- .markdown-body .pl-ml {
1991
- color: var(--color-prettylights-syntax-markup-list);
1992
- }
1993
-
1994
- .markdown-body .pl-mh,
1995
- .markdown-body .pl-mh .pl-en,
1996
- .markdown-body .pl-ms {
1997
- font-weight: bold;
1998
- color: var(--color-prettylights-syntax-markup-heading);
1999
- }
2000
-
2001
- .markdown-body .pl-mi {
2002
- font-style: italic;
2003
- color: var(--color-prettylights-syntax-markup-italic);
2004
- }
2005
-
2006
- .markdown-body .pl-mb {
2007
- font-weight: bold;
2008
- color: var(--color-prettylights-syntax-markup-bold);
2009
- }
2010
-
2011
- .markdown-body .pl-md {
2012
- color: var(--color-prettylights-syntax-markup-deleted-text);
2013
- background-color: var(--color-prettylights-syntax-markup-deleted-bg);
2014
- }
2015
-
2016
- .markdown-body .pl-mi1 {
2017
- color: var(--color-prettylights-syntax-markup-inserted-text);
2018
- background-color: var(--color-prettylights-syntax-markup-inserted-bg);
2019
- }
2020
-
2021
- .markdown-body .pl-mc {
2022
- color: var(--color-prettylights-syntax-markup-changed-text);
2023
- background-color: var(--color-prettylights-syntax-markup-changed-bg);
2024
- }
2025
-
2026
- .markdown-body .pl-mi2 {
2027
- color: var(--color-prettylights-syntax-markup-ignored-text);
2028
- background-color: var(--color-prettylights-syntax-markup-ignored-bg);
2029
- }
2030
-
2031
- .markdown-body .pl-mdr {
2032
- font-weight: bold;
2033
- color: var(--color-prettylights-syntax-meta-diff-range);
2034
- }
2035
-
2036
- .markdown-body .pl-ba {
2037
- color: var(--color-prettylights-syntax-brackethighlighter-angle);
2038
- }
2039
-
2040
- .markdown-body .pl-sg {
2041
- color: var(--color-prettylights-syntax-sublimelinter-gutter-mark);
2042
- }
2043
-
2044
- .markdown-body .pl-corl {
2045
- text-decoration: underline;
2046
- color: var(--color-prettylights-syntax-constant-other-reference-link);
2047
- }
2048
-
2049
- .markdown-body [role=button]:focus:not(:focus-visible),
2050
- .markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),
2051
- .markdown-body button:focus:not(:focus-visible),
2052
- .markdown-body summary:focus:not(:focus-visible),
2053
- .markdown-body a:focus:not(:focus-visible) {
2054
- outline: none;
2055
- box-shadow: none;
2056
- }
2057
-
2058
- .markdown-body [tabindex="0"]:focus:not(:focus-visible),
2059
- .markdown-body details-dialog:focus:not(:focus-visible) {
2060
- outline: none;
2061
- }
2062
-
2063
- .markdown-body g-emoji {
2064
- display: inline-block;
2065
- min-width: 1ch;
2066
- font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
2067
- font-size: 1em;
2068
- font-style: normal !important;
2069
- font-weight: var(--base-text-weight-normal, 400);
2070
- line-height: 1;
2071
- vertical-align: -0.075em;
2072
- }
2073
-
2074
- .markdown-body g-emoji img {
2075
- width: 1em;
2076
- height: 1em;
2077
- }
2078
-
2079
- .markdown-body .task-list-item {
2080
- list-style-type: none;
2081
- }
2082
-
2083
- .markdown-body .task-list-item label {
2084
- font-weight: var(--base-text-weight-normal, 400);
2085
- }
2086
-
2087
- .markdown-body .task-list-item.enabled label {
2088
- cursor: pointer;
2089
- }
2090
-
2091
- .markdown-body .task-list-item+.task-list-item {
2092
- margin-top: var(--base-size-4);
2093
- }
2094
-
2095
- .markdown-body .task-list-item .handle {
2096
- display: none;
2097
- }
2098
-
2099
- .markdown-body .task-list-item-checkbox {
2100
- margin: 0 .2em .25em -1.4em;
2101
- vertical-align: middle;
2102
- }
2103
-
2104
- .markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox {
2105
- margin: 0 -1.6em .25em .2em;
2106
- }
2107
-
2108
- .markdown-body .contains-task-list {
2109
- position: relative;
2110
- }
2111
-
2112
- .markdown-body .contains-task-list:hover .task-list-item-convert-container,
2113
- .markdown-body .contains-task-list:focus-within .task-list-item-convert-container {
2114
- display: block;
2115
- width: auto;
2116
- height: 24px;
2117
- overflow: visible;
2118
- clip: auto;
2119
- }
2120
-
2121
- .markdown-body ::-webkit-calendar-picker-indicator {
2122
- filter: invert(50%);
2123
- }
2124
-
2125
- .markdown-body .markdown-alert {
2126
- padding: var(--base-size-8) var(--base-size-16);
2127
- margin-bottom: var(--base-size-16);
2128
- color: inherit;
2129
- border-left: .25em solid var(--borderColor-default);
2130
- }
2131
-
2132
- .markdown-body .markdown-alert>:first-child {
2133
- margin-top: 0;
2134
- }
2135
-
2136
- .markdown-body .markdown-alert>:last-child {
2137
- margin-bottom: 0;
2138
- }
2139
-
2140
- .markdown-body .markdown-alert .markdown-alert-title {
2141
- display: flex;
2142
- font-weight: var(--base-text-weight-medium, 500);
2143
- align-items: center;
2144
- line-height: 1;
2145
- }
2146
-
2147
- .markdown-body .markdown-alert.markdown-alert-note {
2148
- border-left-color: var(--borderColor-accent-emphasis);
2149
- }
2150
-
2151
- .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {
2152
- color: var(--fgColor-accent);
2153
- }
2154
-
2155
- .markdown-body .markdown-alert.markdown-alert-important {
2156
- border-left-color: var(--borderColor-done-emphasis);
2157
- }
2158
-
2159
- .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {
2160
- color: var(--fgColor-done);
2161
- }
2162
-
2163
- .markdown-body .markdown-alert.markdown-alert-warning {
2164
- border-left-color: var(--borderColor-attention-emphasis);
2165
- }
2166
-
2167
- .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {
2168
- color: var(--fgColor-attention);
2169
- }
2170
-
2171
- .markdown-body .markdown-alert.markdown-alert-tip {
2172
- border-left-color: var(--borderColor-success-emphasis);
2173
- }
2174
-
2175
- .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {
2176
- color: var(--fgColor-success);
2177
- }
2178
-
2179
- .markdown-body .markdown-alert.markdown-alert-caution {
2180
- border-left-color: var(--borderColor-danger-emphasis);
2181
- }
2182
-
2183
- .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
2184
- color: var(--fgColor-danger);
2185
- }
2186
-
2187
- .markdown-body>*:first-child>.heading-element:first-child {
2188
- margin-top: 0 !important;
2189
- }`;
2190
-
2191
- const yt_style = `
2192
- .msg_userMessageBox {
2193
- width: fit-content;
2194
- max-width: 90%;
2195
- display: flex;
2196
- flex-direction: column;
2197
- align-items: flex-end;
2198
- }
2199
-
2200
- .msg_userMessageBox .msg_messageImgBox {
2201
- width: 100%;
2202
- display: flex;
2203
- flex-wrap: wrap;
2204
- justify-content: flex-end;
2205
- }
2206
-
2207
- .msg_userMessageBox .msg_messageImgBox .msg_messageImg {
2208
- border-radius: 5px;
2209
- }
2210
-
2211
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox {
2212
- flex-shrink: 0;
2213
- pointer-events: auto;
2214
- position: relative;
2215
- width: 137px;
2216
- background-color: #f0f0f0;
2217
- border-radius: 10px;
2218
- margin: 3px 5px;
2219
- padding: 5px;
2220
- display: flex;
2221
- }
2222
-
2223
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox:hover .msg_fileRemove {
2224
- display: block;
2225
- }
2226
-
2227
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox .msg_fileInfoBox {
2228
- margin-left: 10px;
2229
- overflow: hidden;
2230
- display: flex;
2231
- align-items: center;
2232
- }
2233
-
2234
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox .msg_fileInfoBox .msg_fileInfoFileName {
2235
- overflow: hidden;
2236
- text-overflow: ellipsis;
2237
- white-space: nowrap;
2238
- width: 72px;
2239
- color: #242424;
2240
- user-select: none;
2241
- }
2242
-
2243
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox .msg_fileInfoBox .msg_fileInfoMeta {
2244
- user-select: none;
2245
- color: #a8a8a8;
2246
- }
2247
-
2248
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox .msg_fileRemove {
2249
- display: none;
2250
- position: absolute;
2251
- cursor: pointer;
2252
- top: -2px;
2253
- right: 0;
2254
- z-index: 99999;
2255
- }
2256
-
2257
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox .msg_fileRemove img {
2258
- width: 20px;
2259
- }
2260
-
2261
- .msg_userMessageBox .msg_messageImgBox .msg_fileBox .msg_upImg {
2262
- border-radius: 3px;
2263
- z-index: 510;
2264
- }
2265
-
2266
- .msg_operateBox {
2267
- display: flex;
2268
- margin-top: 5px;
2269
- user-select: none;
2270
- }
2271
-
2272
- .msg_operateBox img {
2273
- -webkit-user-drag: none;
2274
- margin-right: 3px;
2275
- cursor: pointer;
2276
- width: 16px;
2277
- }
2278
-
2279
- .plh_textBox {
2280
- display: flex;
2281
- justify-content: center;
2282
- align-content: center;
2283
- }
2284
-
2285
- .plh_textBox .plh_text {
2286
- font-weight: bold;
2287
- }
2288
-
2289
- .w_send_file_box {
2290
- height: 23px;
2291
- display: flex;
2292
- background: transparent;
2293
- align-items: center;
2294
- justify-content: center;
2295
- border-radius: 24px;
2296
- font-size: 12px;
2297
- color: #666666;
2298
- cursor: pointer;
2299
- }
2300
-
2301
- .w_file_preview {
2302
- width: 100%;
2303
- height: fit-content;
2304
- background-color: transparent;
2305
- z-index: 500;
2306
- display: flex;
2307
- justify-content: flex-start;
2308
- align-items: center;
2309
- padding: 0 5px;
2310
- overflow-x: hidden;
2311
- }
2312
-
2313
- .w_file_preview .w_directionBg {
2314
- position: absolute;
2315
- cursor: pointer;
2316
- width: 18px;
2317
- height: 18px;
2318
- background: #FFFFFF;
2319
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
2320
- border-radius: 5px;
2321
- border: 1px solid #F0F0F0;
2322
- z-index: 999999;
2323
- display: flex;
2324
- justify-content: center;
2325
- align-items: center;
2326
- }
2327
-
2328
- .w_file_preview .w_directionBg img {
2329
- width: 12px;
2330
- }
2331
-
2332
- .w_file_preview .w_toLeftBox {
2333
- position: absolute;
2334
- left: 0;
2335
- top: 6px;
2336
- height: 60px;
2337
- width: 80px;
2338
- background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 25%, rgba(255,255,255,0) 100%);
2339
- z-index: 99999;
2340
- }
2341
-
2342
- .w_file_preview .w_toLeftBox .w_toLeft {
2343
- position: absolute;
2344
- cursor: pointer;
2345
- width: 18px;
2346
- height: 18px;
2347
- background: #FFFFFF;
2348
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
2349
- border-radius: 5px;
2350
- border: 1px solid #F0F0F0;
2351
- z-index: 999999;
2352
- display: flex;
2353
- justify-content: center;
2354
- align-items: center;
2355
- top: 25px;
2356
- left: 5px;
2357
- }
2358
-
2359
- .w_file_preview .w_toRightBox {
2360
- position: absolute;
2361
- right: 0;
2362
- top: 6px;
2363
- height: 60px;
2364
- width: 80px;
2365
- background: linear-gradient(-90deg, #FFFFFF 0%, #FFFFFF 25%, rgba(255, 255, 255, 0) 100%);
2366
- z-index: 99999;
2367
- }
2368
-
2369
- .w_file_preview .w_toRightBox .w_toRight {
2370
- position: absolute;
2371
- cursor: pointer;
2372
- width: 18px;
2373
- height: 18px;
2374
- background: #FFFFFF;
2375
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
2376
- border-radius: 5px;
2377
- border: 1px solid #F0F0F0;
2378
- z-index: 999999;
2379
- display: flex;
2380
- justify-content: center;
2381
- align-items: center;
2382
- top: 25px;
2383
- right: 5px;
2384
- }
2385
-
2386
- .w_file_preview .w_fileBox {
2387
- position: relative;
2388
- min-width: fit-content;
2389
- background-color: #f0f0f0;
2390
- border-radius: 10px;
2391
- margin: 10px 5px;
2392
- padding: 5px;
2393
- display: flex;
2394
- }
2395
-
2396
- .w_file_preview .w_fileBox:hover .w_fileRemove {
2397
- display: block;
2398
- }
2399
-
2400
- .w_file_preview .w_fileBox .w_fileInfoBox {
2401
- width: fit-content;
2402
- margin-left: 10px;
2403
- }
2404
-
2405
- .w_file_preview .w_fileBox .w_fileInfoBox .w_fileInfoFileName {
2406
- overflow: hidden;
2407
- text-overflow: ellipsis;
2408
- white-space: nowrap;
2409
- width: 110px;
2410
- color: #242424;
2411
- user-select: none;
2412
- }
2413
-
2414
- .w_file_preview .w_fileBox .w_fileInfoBox .w_fileInfoMeta {
2415
- width: fit-content;
2416
- user-select: none;
2417
- color: #a8a8a8;
2418
- white-space: nowrap;
2419
- }
2420
-
2421
- .w_file_preview .w_fileBox .w_fileRemove {
2422
- display: none;
2423
- position: absolute;
2424
- cursor: pointer;
2425
- top: -2px;
2426
- right: 0;
2427
- z-index: 99999;
2428
- }
2429
-
2430
- .w_file_preview .w_fileBox .w_fileRemove img {
2431
- width: 20px;
2432
- }
2433
-
2434
- .w_file_preview .w_fileBox .w_upImg {
2435
- border-radius: 3px;
2436
- z-index: 510;
2437
- }
2438
-
2439
- .w_tagListClass {
2440
- width: 100%;
2441
- height: fit-content;
2442
- display: flex;
2443
- align-items: center;
2444
- padding: 8px 0 8px 10px;
2445
- flex-wrap: wrap;
2446
- gap: 8px;
2447
- }
2448
- .w_tagListClass::-webkit-scrollbar {
2449
- height: 0px;
2450
- display: none;
2451
- background: transparent;
2452
- }
2453
- .w_tagListClass .w_tagItemBox {
2454
- padding: 8px 12px;
2455
- display: flex;
2456
- align-items: center;
2457
- justify-content: center;
2458
- width: fit-content;
2459
- height: 30px;
2460
- background: #00000000;
2461
- border-radius: 15px;
2462
- border: 1px solid #4B4FFF;
2463
- cursor: pointer;
2464
-
2465
- }
2466
- .w_tagListClass .w_tagItemBox:hover, .w_tagListClass .w_tagItemBox:active {
2467
- background: linear-gradient( 270deg, #828EFE 0%, #4B4FFF 100%);
2468
- }
2469
- .w_tagListClass .w_tagItemBox:hover .w_tagImgh,.w_tagListClass .w_tagItemBox:active .w_tagImgh {
2470
- filter: brightness(100);
2471
- }
2472
-
2473
- .w_tagListClass .w_tagItemBox:hover .w_tagItemText, .w_tagListClass .w_tagItemBox:active .w_tagItemText {
2474
- color: #fff;
2475
- }
2476
- .w_tagListClass .w_tagItemBox .w_tagImgh{
2477
- width: 16px;
2478
- height: 16px;
2479
- }
2480
- .w_tagListClass .w_tagItemBox .w_tagItemText {
2481
- width: fit-content;
2482
- padding-top: 2px;
2483
- color: #1552FF;
2484
- font-size: 14px;
2485
- }
2486
- .w_tagListClass .w_tagItemBox .w_tagImg {
2487
- margin-left: 6px;
2488
- width: 12px;
2489
- height: 12px;
2490
- background-repeat: no-repeat;
2491
- background-size: cover;
2492
- }
2493
-
2494
- .w_inputBox {
2495
- width: calc(100% - 16px);
2496
- margin: 0 auto 8px;
2497
- display: flex;
2498
- align-items: center;
2499
- box-shadow: 0px 2px 15px 0px rgba(0,48,187,0.1);
2500
- border-radius: 30px;
2501
- background: #FFFFFF;
2502
- transition: height 0.2s ease;
2503
- }
2504
- .w_inputBox textarea {
2505
- resize: none;
2506
- min-height: 48px;
2507
- max-height: 96px;
2508
- border: 0;
2509
- box-shadow: none !important;
2510
- color: #333;
2511
- outline: 0;
2512
- width: 100%;
2513
-
2514
- box-sizing: border-box;
2515
- overflow-y: auto; /* 允许垂直滚动 */
2516
- scrollbar-width: none; /* Firefox */
2517
- -ms-overflow-style: none; /* IE and Edge */
2518
- border-top-left-radius: 50px;
2519
- border-bottom-left-radius: 50px;
2520
- }
2521
-
2522
- .w_inputBox textarea::-webkit-scrollbar {
2523
- display: none;
2524
- }
2525
-
2526
- .w_send_voice_box {
2527
- height: 23px;
2528
- display: flex;
2529
- background: transparent;
2530
- align-items: center;
2531
- justify-content: center;
2532
- border-radius: 24px;
2533
- font-size: 12px;
2534
- color: #666666;
2535
- cursor: pointer;
2536
- margin-right: 10px;
2537
- }
2538
-
2539
- .w_send_voice_box .w_recordIng {
2540
- padding: 4px;
2541
- background: #1552FF;
2542
- border-radius: 8px;
2543
- }
2544
- `
2545
-
2546
110
  return (
2547
111
  <div style={{ position: 'relative',height:'100%' }}>
2548
112
  <style dangerouslySetInnerHTML={{ __html: styles + markdownBody + yt_style }}></style>