PageSourceSearch

https://dashboard-ff-cdn.fireflies.ai/36724161323/_next/static/chunks/0openihs-5d2-.js

js fireflies.ai collected 2026-10-01 08:35:38 UTC 141,448 bytes, 1,534 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="6f4be68e-5ad7-7161-db87-9d7673c90512")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,660735,e=>{"use strict";var t=e.i(159080);let n=t.gql`
3	query fetchNotepadMeeting($meetingNoteId: String, $password: String, $shareSlug: String) {
4		meetingNote(_id: $meetingNoteId, password: $password, shareSlug: $shareSlug) {
5			_id
6			transcriptParseId
7			ownersList
8			privacyList {
9				email
10				actualPrivacy
11				domain
12			}
13			captions {
14				index
15				sentence
16				speaker_id
17				time
18				endTime
19				match
20				metrics {
21					word
22					category
23				}
24				sentiment
25				sentimentType
26				filterType
27			}
28			attendees {
29				email
30				name
31				picture
32				displayName
33			}
34			title
35			audio_url
36			date
37			parseId
38			processMeetingStatus
39			createdAt
40			hasCaptions
41			creator_email
42			waveformData
43			userPermission
44			privacy
45			retranscribeCount
46			owner
47			ownerProfile {
48				name
49				email
50				picture
51				canUseAICredits
52				tier
53			}
54			audioOnly
55			speakerMeta
56			sentenceMeta
57			paragraphMeta
58			labelMeta
59			topicMeta
60			isGuestAccessEnabled
61			video_url
62			recordingPreference
63			txService
64			puppetStates {
65				status
66				elapsedTime
67				timeSpent
68				time
69			}
70			joinedUsers {
71				participantName
72				timestamp
73				time
74				type
75			}
76			defaultChannelAccess
77			audioServiceMetadata {
78				silentMeeting
79				languageCode
80				preferredLanguage
81				numCaptions
82				skipSummaryReason
83				hasGeneratedInstantSummary
84				hasManualNotesMerged
85			}
86			addedBy
87			isScreenRecording
88			recorderMetadata {
89				recorder_type
90			}
91			allEmails
92			durationMins
93			meetingExpirySettings {
94				meetingTtl
95				unit
96				deletionTime
97			}
98			summary {
99				gist
100				shortSummary
101			}
102			summaryStatus
103			channel {
104				_id
105				title
106				isPrivate
107			}
108			channels {
109				_id
110				title
111				isPrivate
112			}
113			allEmailsProfiles {
114				email
115				name
116				picture
117			}
118			isVideoAvailable
119			expandSummaryItemCount
120			allEmailsSentTo
121			isOnPrivateStorage
122			manualNotes {
123				notes
124				shouldMerge
125			}
126		}
127	}
128`,a=t.gql`
129	query fetchMeetingInfo($meetingId: String!) {
130		meetingNote(_id: $meetingId) {
131			_id
132			id
133			parseId
134			attendees {
135				email
136				name
137				displayName
138				picture
139			}
140			title
141			date
142			startTime
143			createdAt
144			creator_email
145			privacy
146			owner
147			joinedUsers {
148				participantName
149				timestamp
150				time
151				type
152			}
153			ownerProfile {
154				name
155				email
156				picture
157			}
158			video_url
159			audio_url
160			audioOnly
161			hasCaptions
162			recordingPreference
163			summaryStatus
164			addedBy
165			isScreenRecording
166			audioServiceMetadata {
167				languageCode
168				preferredLanguage
169				hasGeneratedInstantSummary
170				hasManualNotesMerged
171			}
172			allEmails
173			summary {
174				gist
175				shortSummary
176			}
177			channelIds
178			channels {
179				_id
180				title
181				isPrivate
182			}
183			allEmailsProfiles {
184				email
185				name
186				picture
187			}
188		}
189	}
190`,o=t.gql`
191	mutation TranscribeMeeting($meetingId: ID!, $type: TranscribeType!) {
192		transcribeMeeting(meetingId: $meetingId, type: $type)
193	}
194`,r=t.gql`
195	mutation trackTranscriptView(
196		$meetingId: String!
197		$guestId: String
198		$showSummaryToGuest: String
199		$globalSearchSource: String
200	) {
201		trackTranscriptView(
202			meetingId: $meetingId
203			guestId: $guestId
204			showSummaryToGuest: $showSummaryToGuest
205			globalSearchSource: $globalSearchSource
206		)
207	}
208`,i=t.gql`
209	mutation transcribeCustomLang($meetingId: ID!, $customLanguage: String!) {
210		transcribeCustomLang(meetingId: $meetingId, customLanguage: $customLanguage)
211	}
212`,s=t.gql`
213	mutation setMeetingPrivacy($meetingId: String!, $privacy: String!) {
214		setMeetingPrivacy(meetingId: $meetingId, privacy: $privacy) {
215			_id
216			privacy
217		}
218	}
219`,l=t.gql`
220	mutation newMeetingNoteComment(
221		$meetingId: String!
222		$comment: String
223		$replyToCommentId: String
224		$timestamp: Int
225		$privacy: String!
226		$isBookmarked: Boolean
227		$source: String
228	) {
229		newMeetingNoteComment(
230			meetingId: $meetingId
231			comment: $comment
232			replyToCommentId: $replyToCommentId
233			timestamp: $timestamp
234			privacy: $privacy
235			isBookmarked: $isBookmarked
236			source: $source
237		) {
238			_id
239			userId
240			meetingId
241			comment
242			replyToCommentId
243			name
244			timestamp
245			createdAt
246			isPrivate
247			privacy
248			isBookmarked
249			source
250			picture
251			creatorProfile {
252				picture
253				name
254				lastName
255				firstName
256				email
257			}
258		}
259	}
260`,u=t.gql`
261	mutation updateMeetingNoteComment($commentId: String, $comment: String, $privacy: String!) {
262		updateMeetingNoteComment(commentId: $commentId, comment: $comment, privacy: $privacy) {
263			_id
264			meetingNoteId
265			meetingId
266			comment
267			replyToCommentId
268			name
269			timestamp
270			isPrivate
271			createdAt
272			privacy
273			picture
274			reactions {
275				reaction
276				unifiedId
277				userEmail
278			}
279		}
280	}
281`,c=t.gql`
282	mutation updateCommentReaction($commentId: String!, $reaction: ReactionInput!) {
283		updateCommentReaction(commentId: $commentId, reaction: $reaction) {
284			_id
285			meetingNoteId
286			meetingId
287			comment
288			replyToCommentId
289			name
290			timestamp
291			isPrivate
292			createdAt
293			privacy
294			reactions {
295				reaction
296				unifiedId
297				userEmail
298			}
299		}
300	}
301`,d=t.gql`
302	mutation deleteMeetingNoteComment($commentId: String) {
303		deleteMeetingNoteComment(commentId: $commentId)
304	}
305`,p=t.gql`
306	query comments($meetingId: String!) {
307		meetingNoteComments(meetingId: $meetingId) {
308			_id
309			comment
310			createdAt
311			updatedAt
312			creatorProfile {
313				picture
314				name
315				lastName
316				firstName
317				email
318			}
319			jsonComment {
320				key
321				value
322			}
323			meetingNoteId
324			meetingId
325			picture
326			userId
327			name
328			timestamp
329			replyToCommentId
330			isPrivate
331			privacy
332			isBookmarked
333			source
334			ownerId
335			reactions {
336				reaction
337				unifiedId
338				userEmail
339			}
340		}
341	}
342`,m=t.gql`
343	query fetchSummaryStatus($meetingId: ID!) {
344		fetchSummaryStatus(meetingId: $meetingId)
345	}
346`,h=t.gql`
347	mutation rateSummary(
348		$meetingId: String!
349		$score: Int!
350		$feedback: String
351		$commentId: String
352		$reason: String
353		$source: String
354		$platform: String
355		$appEngine: String
356		$isRefinedSummary: Boolean
357		$keyTakeawaysRemoved: Boolean
358	) {
359		rateSummary(
360			meetingId: $meetingId
361			score: $score
362			feedback: $feedback
363			commentId: $commentId
364			reason: $reason
365			source: $source
366			platform: $platform
367			appEngine: $appEngine
368			isRefinedSummary: $isRefinedSummary
369			keyTakeawaysRemoved: $keyTakeawaysRemoved
370		)
371	}
372`,g=t.gql`
373	mutation updateMeetingNoteSummary($meetingId: String!, $jsonComment: [SummarySectionsInput]) {
374		updateMeetingNoteSummary(meetingId: $meetingId, jsonComment: $
374jsonComment)
375	}
376`,y=t.gql`
377	query getReactions($meetingId: String!) {
378		getMeetingMarks(meetingId: $meetingId) {
379			createdAt
380			markType
381			markPinType
382			meetingOwnerId
383			meetingId
384			time
385			recentlyAdded
386			transcriptParseId
387			userFirstName
388			source
389			summary
390			_id
391			userId
392		}
393	}
394`,S=t.gql`
395	mutation createReaction(
396		$meetingId: String!
397		$time: Float
398		$markType: String!
399		$actionType: String
400		$markPinType: String
401		$captionText: String
402		$source: String!
403		$pastOffsetSeconds: Float
404		$futureOffsetSeconds: Float
405	) {
406		createMark(
407			meetingId: $meetingId
408			time: $time
409			markType: $markType
410			actionType: $actionType
411			markPinType: $markPinType
412			captionText: $captionText
413			source: $source
414			pastOffsetSeconds: $pastOffsetSeconds
415			futureOffsetSeconds: $futureOffsetSeconds
416		) {
417			_id
418			createdAt
419			markType
420			markPinType
421			meetingId
422			meetingOwnerId
423			time
424			summary
425			transcriptParseId
426			userFirstName
427			userPicture
428			source
429			userId
430			pastOffsetSeconds
431			futureOffsetSeconds
432		}
433	}
434`,T=t.gql`
435	mutation deleteMark($markId: String!, $meetingId: String!) {
436		deleteMark(markId: $markId, meetingId: $meetingId)
437	}
438`,f=t.gql`
439	mutation updateMeetingTitle($meetingId: String!, $title: String!) {
440		updateMeetingTitle(meetingId: $meetingId, title: $title)
441	}
442`,E=t.gql`
443	mutation requestMeetingAccess($meetingId: String!) {
444		requestMeetingAccess(meetingId: $meetingId)
445	}
446`,I=t.gql`
447	mutation expandSection($meetingId: String!, $sectionTitle: String!, $sectionStr: String!) {
448		expandSection(meetingId: $meetingId, sectionTitle: $sectionTitle, sectionStr: $sectionStr)
449	}
450`,C=t.gql`
451	mutation saveNotes(
452		$meetingId: String!
453		$speakerMeta: JSON
454		$sentenceMeta: JSON
455		$paragraphMeta: JSON
456		$labelMeta: JSON
457	) {
458		saveNotes(
459			meetingId: $meetingId
460			speakerMeta: $speakerMeta
461			sentenceMeta: $sentenceMeta
462			paragraphMeta: $paragraphMeta
463			labelMeta: $labelMeta
464		) {
465			speakerMeta
466			sentenceMeta
467			paragraphMeta
468			labelMeta
469		}
470	}
471`,v=t.gql`
472	query getTemplatesGroupedByCategory {
473		getTemplatesGroupedByCategory {
474			id
475			index
476			name
477			templates {
478				id
479				title
480				description
481				creationMethod
482				sampleFileName
483				sampleMimeType
484				sampleObjectKey
485				userId
486				teamId
487				extendedSections {
488					id
489					title
490					description
491					prompt
492					style
493					type
494				}
495			}
496		}
497	}
498`,b=`
499	id
500	title
501	description
502	creationMethod
503	sampleFileName
504	sampleMimeType
505	sampleObjectKey
506	userId
507	teamId
508	extendedSections {
509		id
510		title
511		description
512		prompt
513		style
514		type
515	}
516`,N=t.gql`
517	query getSummaryTemplateById($id: String!, $meetingId: String) {
518		getSummaryTemplateById(id: $id, meetingId: $meetingId) {
519			${b}
520		}
521	}
522`,M=t.gql`
523	query getTeamSummaryTemplate($userGroupIds: [String!]) {
524		getTeamSummaryTemplate(userGroupIds: $userGroupIds) {
525			${b}
526		}
527	}
528`,_=t.gql`
529	query getResolvedTeamSummaryTemplate {
530		getResolvedTeamSummaryTemplate {
531			templateId
532			template {
533				${b}
534			}
535		}
536	}
537`,A=t.gql`
538	mutation setTeamSummaryTemplate($input: SetTeamSummaryTemplateInput!) {
539		setTeamSummaryTemplate(input: $input) {
540			${b}
541		}
542	}
543`,R=t.gql`
544	mutation clearTeamSummaryTemplate($userGroupIds: [String!]) {
545		clearTeamSummaryTemplate(userGroupIds: $userGroupIds)
546	}
547`,w=t.gql`
548	query getSharedSections {
549		getSharedSections {
550			title
551			description
552			prompt
553			style
554			type
555			id
556		}
557	}
558`,O=`
559	id
560	email
561	userId
562	length
563	templateId
564	enabled
565	extendedSections {
566		id
567		enabled
568	}
569`,P=t.gql`
570	mutation CreateSummarySettings($input: CreateSummarySettingsInput!) {
571		createSummarySettings(input: $input) {
572			${O}
573		}
574	}
575`,k=t.gql`
576	mutation UpdateSummarySettings($input: UpdateSummarySettingsInput!) {
577		updateSummarySettings(input: $input) {
578			${O}
579		}
580	}
581`,D=t.gql`
582	query GetSummarySettingsList {
583		getSummarySettingsList {
584			${O}
585		}
586	}
587`,$=t.gql`
588	mutation runSummaryManually(
589		$meetingId: String!
590		$templateId: String
591		$mergeManualNotes: Boolean
592		$summaryLanguage: String
593	) {
594		runSummaryManually(
595			input: {
596				meetingId: $meetingId
597				templateId: $templateId
598				mergeManualNotes: $mergeManualNotes
599				summaryLanguage: $summaryLanguage
600			}
601		)
602	}
603`,x=t.gql`
604	query canRegenerateSummary($meetingId: String!) {
605		canRegenerateSummary(meetingId: $meetingId)
606	}
607`,L=t.gql`
608	query fetchTimeSpentBySummaryTemplate($templateId: String!) {
609		fetchTimeSpentBySummaryTemplate(templateId: $templateId) {
610			timeSpent
611			totalMeetingsNumber
612		}
613	}
614`,U=t.gql`
615	mutation refineSummaryPreview($input: RefineSummaryInput!) {
616		refineSummaryPreview(input: $input) {
617			summary
618			keywords
619			cost
620			basicSections
621			extendedSections
622		}
623	}
624`,G=t.gql`
625	mutation saveRefinedSummary($input: SaveRefinedSummaryInput!) {
626		saveRefinedSummary(input: $input)
627	}
628`,j=t.gql`
629	mutation createSummaryTemplate($input: CreateSummaryTemplateInput!) {
630		createSummaryTemplate(input: $input) {
631			id
632			title
633			description
634			creationMethod
635			userId
636			teamId
637			sampleFileName
638			sampleMimeType
639			sampleObjectKey
640			extendedSections {
641				id
642				title
643				description
644				prompt
645				style
646				type
647			}
648		}
649	}
650`,F=t.gql`
651	mutation updateSummaryTemplate($id: String!, $input: UpdateSummaryTemplateInput!) {
652		updateSummaryTemplate(id: $id, input: $input) {
653			id
654			title
655			description
656			creationMethod
657			userId
658			teamId
659			sampleFileName
660			sampleMimeType
661			sampleObjectKey
662			extendedSections {
663				id
664				title
665				description
666				prompt
667				style
668				type
669			}
670		}
671	}
672`,Y=t.gql`
673	mutation deleteSummaryTemplate($id: String!) {
674		deleteSummaryTemplate(id: $id) {
675			id
676		}
677	}
678`,V=t.gql`
679	mutation createSummaryTemplateFromSample($input: CreateSummaryTemplateFromSampleInput!) {
680		createSummaryTemplateFromSample(input: $input) {
681			id
682			title
683			description
684			creationMethod
685			userId
686			teamId
687			sampleFileName
688			sampleMimeType
689			sampleObjectKey
690			extendedSections {
691				id
692				title
693				description
694				prompt
695				style
696				type
697			}
698		}
699	}
700`,H=t.gql`
701	mutation GenerateSummaryTemplateStyleFromSample(
702		$input: GenerateSummaryTemplateStyleFromSampleInput!
703	) {
704		generateSummaryTemplateStyleFromSample(input: $input)
705	}
706`,q=t.gql`
707	mutation updateSummaryTemplateFromPrompt(
708		$id: String!
709		$input: UpdateSummaryTemplateFromPromptInput!
710	) {
711		updateSummaryTemplateFromPrompt(id: $id, input: $input) {
712			id
713			title
714			description
715			creationMethod
716			userId
717			teamId
718			sampleFileName
719			sampleMimeType
720			sampleObjectKey
721			extendedSections {
722				id
723				title
724				description
725				prompt
726				style
727				type
728			}
729		}
730	}
731`,W=t.gql`
732	mutation updateSummaryTemplateFromSample(
733		$id: String!
734		$input: UpdateSummaryTemplateFromSampleInput!
735	) {
736		updateSummaryTemplateFromSample(id: $id, input: $input) {
737			id
738			title
739			description
740			creationMethod
741			userId
742			teamId
743			sampleFileName
744			sampleMimeType
745			sampleObjectKey
746			extendedSections {
747				id
748				title
749				description
750				prompt
751				style
752				type
753			}
754		}
755	}
756`,B=t.gql`
757	mutation EnhanceSummaryTemplateDescription($input: EnhanceSummaryTemplateDescriptionInput!) {
758		enhanceSummaryTemplateDescription(input: $input)
759	}
760`;t.gql`
761	mutation generateSummaryTemplateUploadUrl($input: GenerateSummaryTemplateUploadUrlInput!) {
762		generateSummaryTemplateUploadUrl(input: $input) {
763			uploadUrl
764			objectKey
765		}
766	}
767`,t.gql`
768	mutation PreviewSummaryTemplate($input: PreviewSummaryTemplateInput!) {
769		previewSummaryTemplate(input: $input)
770	}
771`;let z=t.gql`
772	mutation ConfirmSummaryTemplate(
773		$templateId: String!
774		$meetingId: String
775		$basicSections: [JSON!]
776		$extendedSections: [JSON!]
777	) {
778		confirmSummaryTemplate(
779			templateId: $templateId
780			meetingId: $meetingId
781			basicSections: $basicSections
782			extendedSections: $extendedSections
783		)
784	}
785`;e.s(["CAN_REGENERATE_SUMMARY",0,x,"CLEAR_TEAM_SUMMARY_TEMPLATE",0,R,"CONFIRM_SUMMARY_TEMPLATE",0,z,"CREATE_REACTION",0,S,"CREATE_SUMMARY_SETTINGS",0,P,"CREATE_SUMMARY_TEMPLATE",0,j,"CREATE_SUMMARY_TEMPLATE_FROM_SAMPLE",0,V,"DELET
785E_COMMENT",0,d,"DELETE_MARK",0,T,"DELETE_SUMMARY_TEMPLATE",0,Y,"ENHANCE_SUMMARY_TEMPLATE_DESCRIPTION",0,B,"EXPAND_SECTION",0,I,"FETCH_COMMENTS",0,p,"FETCH_MEETING_INFO",0,a,"FETCH_NOTEPAD_MEETING",0,n,"FETCH_TIME_SPENT_BY_SUMMARY_TEMPLATE",0,L,"GENERATE_SUMMARY_FOR_TEMPLATE",0,$,"GENERATE_SUMMARY_TEMPLATE_STYLE_FROM_SAMPLE",0,H,"GET_OPTIONAL_SECTIONS",0,w,"GET_REACTIONS",0,y,"GET_RESOLVED_TEAM_SUMMARY_TEMPLATE",0,_,"GET_SUMMARY_SETTINGS",0,D,"GET_SUMMARY_TEMPLATE_BY_ID",0,N,"GET_TEAM_SUMMARY_TEMPLATE",0,M,"LIST_SUMMARY_TEMPLATES_GROUPED_BY_CATEGORY",0,v,"NEW_COMMENT",0,l,"RATE_SUMMARY",0,h,"REFINE_SUMMARY_PREVIEW",0,U,"REQUEST_MEETING_ACCESS",0,E,"SAVE_NOTES",0,C,"SAVE_REFINED_SUMMARY",0,G,"SET_PRIVACY",0,s,"SET_TEAM_SUMMARY_TEMPLATE",0,A,"SUMMARY_STATUS",0,m,"TRACK_TRANSCRIPT_VIEW",0,r,"TRANSCRIBE_CUSTOM_LANGUAGE_MEETING",0,i,"TRANSCRIBE_MEETING",0,o,"UPDATE_COMMENT",0,u,"UPDATE_COMMENT_REACTION",0,c,"UPDATE_MEETING_TITLE",0,f,"UPDATE_SUMMARY",0,g,"UPDATE_SUMMARY_SETTINGS",0,k,"UPDATE_SUMMARY_TEMPLATE",0,F,"UPDATE_SUMMARY_TEMPLATE_FROM_PROMPT",0,q,"UPDATE_SUMMARY_TEMPLATE_FROM_SAMPLE",0,W])},393485,e=>{"use strict";var t=e.i(18961),n=e.i(905003);e.s(["getMeetingNoteId",0,e=>{var a;if(!(null==e?void 0:e.match(t.NOTEPAD_REGEX)))return null;if(e.startsWith("/view/p/")){if(void 0===globalThis.sessionStorage)return null;let e=JSON.parse(globalThis.sessionStorage.getItem("protectedMeetingAccess")||"{}");return(null==e?void 0:e.meetingId)||null}let o=null==(a=(0,n.safeDecodeURIComponent)(e.split("/")[2]||""))?void 0:a.split("::").pop();return"default"===o||"demo"===o?t.DEMO_MEETING_ID:o}])},358475,e=>{"use strict";let t;e.s(["processMeeting",()=>I,"processMeetingForSmartSearchFilter",()=>b,"reprocessMeetingForSearch",()=>v,"reprocessSpeakers",()=>C],358475);let n=e.r(448327),{toHHMMSS:a}=e.r(909583),{categoryToDisplayName:o,classMap:r,computeClassNames:i,highlightCaptionMatch:s,labelSpeakersInWorkerThread:l,matchesCategory:u,matchesCustomCategory:c,punctuateSentence:d,addClassesToSmartSearch:p,smartSearchMap:m,captionsIntialBatchSize:h}=e.r(870201),{searchCaptionsByIndex:g}=e.r(809424);var y=e.i(236808);let S=0,T=0,f=()=>{let e=new Blob([(()=>{let{removeUmWords:e,cleanTranscriptParagraph:t,sortByLength:y,cutSpaces:S,spliceBeginningEndWords:T,spliceFillerWords:f,spliceRepeatWords:E,firstLetterCap:I,replaceInaudible:C,commonMidWordCorrections:v}=n;return`
786onmessage = e => {
787    if (e.data.type === 'FINAL') {
788        const result = computeNotes(e.data.params, e.data.workerID);
789        const payload = {
790            type: e.data.type,
791            payload: result,
792            workerID: e.data.workerID
793        };
794        postMessage(payload);
795    }
796    else if (e.data.type === 'SEARCH') {
797        const result = searchTextInCaptions(e.data.params);
798        result.visibleCaptions = JSON.stringify(result.captions);
799        const payload = {
800            type: e.data.type,
801            payload: result,
802        };
803        postMessage(payload);
804    } else if (e.data.type === 'SMART_SEARCH_FILTER') {
805        const { captions, smartSearchFiltersData } = e.data.params
806        const addClassesToSmartSearch = ${p};
807        const searchCaptionsByIndex = ${g};
808        const smartSearchMap = ${JSON.stringify(m)};
809        const classMap = ${JSON.stringify(r)};
810        const result = addClassesToSmartSearch(captions, smartSearchFiltersData, smartSearchMap, classMap, searchCaptionsByIndex);
811        result.visibleCaptions = JSON.stringify(result.captions);
812        const payload = {
813            type: e.data.type,
814            payload: result,
815            workerID: e.data.workerID
816        };
817        postMessage(payload);
818    }
819}
820
821function searchTextInCaptions(params) {
822    const { captions, searchText } = params;
823    const highlightCaptionMatch = ${s};
824    let totalMatches = { value: 0 };
825
826    captions.forEach(caption => {
827        highlightCaptionMatch({
828            className: 'is-search',
829            caption,
830            customPattern: searchText,
831            isSearch: true,
832            totalMatches
833        });
834    });
835
836    return {
837        captions,
838        searchMetadata: {
839            searchTerm: searchText,
840            totalMatches: totalMatches.value || 0,
841        }
842    };
843}
844
845function computeNotes(params, workerId) {
846    const display = ${o};
847    const toHHMMSS = ${a};
848    const matchesCustomCategory = ${c};
849    const punctuateSentence = ${d};
850    const matchesCategory = ${u};
851    const highlightCaptionMatch = ${s};
852    const labelSpeakersInWorkerThread = ${l};
853    const computeClassNames = ${i};
854
855    try {
856        ${S}
857        ${y}
858        ${e}
859        ${I}
860        ${C}
861        ${f}
862        ${E}
863        ${T}
864        ${v}
865        ${t}
866        const _firstLetterCap = ${I};
867        const _cleanTranscriptParagraph = ${t};
868
869        const spamWords = {};
870        const allClassNames = {};
871        let allSpeakers = [];
872        let speakerMetric = {};
873        let captions = params ? [] : null;
874        let toShow = captions ? [] : null;
875        let aiFilters = [];
876        const { isSmartSearchFilterRevampEnabled = false } = params || {};
877        let counter = 0;
878        let sentimentTotalPoints = 0;
879        let batchSize = ${h};
880        const { labelMeta, sentenceMeta, paragraphMeta, customCategories, topicMeta } = params;
881        const numOfLabels = Object.keys(labelMeta);
882        const ignoreTaskmatch = ['do you', 'none', 'fireflies', 'an'];
883
884         customCategories?.forEach((category) => {
885               category.property?.subProperties?.push(category.property?.name);
886           });
887
888        params.captions?.forEach((caption, currentIndex) => {
889            caption.index = currentIndex;
890            if (numOfLabels) caption = labelSpeakersInWorkerThread(numOfLabels, labelMeta, currentIndex, caption);
891
892            caption.classNames = [];
893            caption.matches = [];
894            caption.sentenceMap = new Map();
895            const talkTime = caption.endTime - caption.time;
896            const speakerId = caption?.newSpeakerId ?? caption?.speaker_id;
897            speakerMetric[speakerId] = (speakerMetric[speakerId] ?? 0) + talkTime;
898            caption.classNames.push('is-speaker-' + speakerId);
899
900      			const validSentenceRegex = /[\\p{L}\\d\\s.]/gu
901
902            if (sentenceMeta[caption.index] != null) caption.sentence = sentenceMeta[caption.index];
903            if (!caption.sentence || !validSentenceRegex.test(caption.sentence)) return;
904
905            if (paragraphMeta[caption.index]) {
906                const value = paragraphMeta?.[caption.index];
907                caption[value] = true;
908            }
909
910            const cleanedText = _cleanTranscriptParagraph(caption.sentence);
911            if (!validSentenceRegex.test(cleanedText)) return;
912
913            if (caption.speaker_id !== null && !allSpeakers.includes(caption.speaker_id)) allSpeakers.push(caption.speaker_id);
914
915            const letter = sentenceMeta[currentIndex]?.[0] || '';
916            if (/[a-z]/.test(letter)) {
917                caption.fullClean = punctuateSentence(sentenceMeta[currentIndex]);
918            } else {
919                caption.fullClean = punctuateSentence(_firstLetterCap(cleanedText));
920            }
921
922            if (!isSmartSearchFilterRevampEnabled) {
923                caption.match && !ignoreTaskmatch.includes(caption.match) &&
924                (caption.filterType === "taskNoteFilter" || caption.filterType === "taskOutgoingFilter") && highlightCaptionMatch({
925                    matches: caption.match,
926                    className: 'is-task',
927                    caption
928                });
929                caption.metrics?.length && matchesCategory(caption, display, highlightCaptionMatch);
930                caption.fullClean.includes('?') && highlightCaptionMatch({
931                    className: 'is-question',
932                    caption,
933                    customPattern: /\\w[^\\?\\.]*\\?/gi
934                });
935            }
936
937            matchesCustomCategory(caption, customCategories, highlightCaptionMatch);
938
939            if (caption.sentimentType) {
940                caption.classNames.push('is-' + caption.sentimentType + '-sentiment');
941                sentimentTotalPoints++;
942            }
943
944            computeClassNames(caption.classNames, allClassNames);
945            caption.captionIndex = counter++;
946            captions.push(caption);
947            toShow.push(caption);
948            if(currentIndex === batchSize ){
949                const payload = {
950                    type: 'INCREMENTAL',
951                    payload: { captions, toShow, speakerMetric, visibleCaptions: JSON.stringify(captions) },
952                    workerID: workerId
953                };
954                postMessage(payload);
955
956                batchSize = batchSize * 2
957            }
958        });
959
960        if (numOfLabels.length) {
961            numOfLabels.forEach(val => {
962                val = Number(val);
963                !allSpeakers.includes(val) && allSpeakers.push(val);
964            });
965        }
966
967        const topics = [];
968        const sentiments = [];
969        const classMap = ${JSON.stringify(r)};
970        let smartSearchCategories = [];
971        Object.keys(allClassNames).forEach(key => {
972            if (/^is-speaker-/ig.test(key)) return
973
974            if (/^is-custom-/ig.test(key)) {
975                topics.push(key.substring(10) + ' \xb7 ' + allClassNames[key]);
976            }
977            else if (/^is.*sentiment$/ig.test(key)) {
978                const percentagePoints = Math.round(Number(allClassNames[key]) / sentimentTotalPoints * 100)
979                sentiments.push(classMap[key] + ' \xb7 ' + percentagePoints + '%');
980            }
981            else {
982                smartSearchCategories.push(classMap[key] + ' \xb7 ' + allClassNames[key]);
983            }
984        });
985
986        return {
987            captions,
988            toShow,
989            visibleCaptions: JSON.stringify(toShow),
990            allSpeakers,
991            speakerMetric,
992            aiFilters,
993            spamWords,
994            sentiments,
995            smartSearchCategories,
996            filteredCustomCategories: topics.sort()
997        };
998    }
999    catch (err) {
1000        console.error(err);
1001    }
1002}
1003    `})()],{type:"text/javascript"});return new Worker(t=URL.createObjectURL(e))},E=(e,n,a)=>{let{speakerMeta:o,labelMeta:r,sentenceMeta:i,paragraphMeta:s,topicMeta:l,customCategories:u}=e,c=f(),d=++T,p=t,m=()=>{c.terminate(),URL.revokeObjectURL(p)};c.postMessage({type:"FINAL",params:e,workerID:d}),c.onmessage=e=>{if(d!==T)return void m();if("FINAL"===e.data.type){if(!e.data.payload)return void m();let{toShow:t,visibleCaptions:a,allSpeakers:c,speakerMetric:d,sentiments:p,smartSearchCategories:h,filteredCustomCategories:g}=e.data.payload,y=new CustomEvent(n,{detail:{captionsToShow:t,visibleCaptions:a,allSpeakers:c,speakerMetric:d,speakerMeta:o,labelMeta:r,sentenceMeta:i,topicMeta:l,paragraphMeta:s,sentiments:p,customCategories:u,topics:g,aiFilters:h}});window.dispatchEvent(y),m()}else if(a&&"INCREMENTAL"===e.data.type){let{toShow:t,allSpeakers:n,speakerMetric:a,visibleCaptions:u}=e.data.payload,c=new CustomEvent(y.CUSTOM_EVENTS.TRANSCRIPT_PROCESSED_INCREMENTAL,{detail:{captionsToShow:t,visibleCaptions:u,allSpeakers:n,speakerMetric:a,speakerMeta:o,labelMeta:r,sentenceMeta:i,paragraphMeta:s,topicMeta:l}});window.dispatchEvent(c)}},c.onerror=m},I=e=>E(e,y.CUSTOM_EVENTS.TRANSCRIPT_PROCESSED_FINAL,!0),C=e=>E(e,y.CUSTOM_EVENTS.SPEAKERS_REPROCESSED,!1),v=e=>{let n=f();S++,n.postMessage({type:"SEARCH",params:e,workerID:S}),n.onmessage=e=>{if("SEARCH"===e.data.type){var a;if(!e.data.payload)return;null==n||null==(a=n.terminate)||a.call(n),URL.revokeObjectURL(t);let o=new CustomEvent(y.CUSTOM_EVENTS.SET_TRANSCRIPT_SEARCH_RESULT,{detail:{captionsToShow:e.data.payload.captions||e.data.payload,searchMetadata:e.data.payload.searchMetadata}});window.dispatchEvent(o)}}},b=e=>{let n=f();S++,n.postMessage({type:"SMART_SEARCH_FILTER",params:e,workerID:S}),n.onmessage=e=>{if("SMART_SEARCH_FILTER"===e.data.type&&e.data.workerID===S){var a;if(!e.data.payload)return;null==n||null==(a=n.terminate)||a.call(n),URL.revokeObjectURL(t);let{captions:o,aiFilters:r}=e.data.payload;globalThis.dispatchEvent(new CustomEvent(y.CUSTOM_EVENTS.SET_CAPTIONS_TO_SHOW,{detail:{captionsToShow:o,aiFilters:r}}))}}}},809424,467500,26890,527889,609874,35762,201921,564210,838831,914816,601600,800624,e=>{"use strict";let t;e.s(["findCaptionByTime",()=>e1,"searchCaptionsByIndex",()=>e0,"useScrollToSentence",()=>e2],809424),e.s(["TranscriptEditorProvider",()=>eJ,"useTranscriptContext",()=>eZ],800624),e.s(["EDITOR_EVENTS",()=>ei,"emitEditStateEvent",()=>es,"useCanRedo",()=>eg,"useCanUndo",()=>eh,"useEditState",()=>eu,"useIsEditing",()=>ed,"useIsInitialized",()=>em,"useIsSaving",()=>ec,"useIsSearching",()=>ep],201921),e.s(["useIsClipLayout",()=>eB],601600);var n,a,o,r=e.i(191788),i=e.i(27118),s=e.i(391398),l=e.i(236808);let u=(e,t)=>{switch(t.type){case l.TRANSCRIPT_ACTIONS.TRANSCRIPT_PROCESSED_INCREMENTAL:let n={...e,transcriptProcessStatus:l.TRANSCRIPT_PROCESS_STATUS.INCREMENTAL,...t.payload};return n.captionsToShow.length&&(n.noTranscriptReason=l.NO_TRANSCRIPT_REASON.UNSET),{...n};case l.TRANSCRIPT_ACTIONS.TRANSCRIPT_PROCESSED_FINAL:let a={...e,transcriptProcessStatus:l.TRANSCRIPT_PROCESS_STATUS.COMPLETED,...t.payload};return a.captionsToShow.length&&(a.noTranscriptReason=l.NO_TRANSCRIPT_REASON.UNSET),{...a};case l.TRANSCRIPT_ACTIONS.SET_TRANSCRIPT_META:case l.TRANSCRIPT_ACTIONS.UPDATE_SPEA
1003KER_LABEL:case l.TRANSCRIPT_ACTIONS.SPEAKERS_REPROCESSED:case l.TRANSCRIPT_ACTIONS.SET_NO_TRANSCRIPT_REASON:case l.TRANSCRIPT_ACTIONS.UPDATE_ATTENDEES:case l.TRANSCRIPT_ACTIONS.UPDATE_SMART_SEARCH_FILTERS:case l.TRANSCRIPT_ACTIONS.TRANSCRIPT_SEARCH:case l.TRANSCRIPT_ACTIONS.SET_CAPTIONS_TO_SHOW:case l.TRANSCRIPT_ACTIONS.UPDATE_SOUNDBITE_CAPTIONS:case l.TRANSCRIPT_ACTIONS.SET_PARAGRAPHS:return{...e,...t.payload};default:return e}};var c=e.i(561519),d=e.i(203828),p=e.i(878715),m=e.i(582445),h=e.i(706008);let g=e=>e.split(" ").map(e=>parseInt(e,10)),y=e=>{let{keyMap:t,sentenceMap:n,lastSentenceIndex:a=0,sentenceEndIndex:o,smartSearchFilters:r,caption:i}=e;return t.map((e,l,u)=>{let c,d=[],p=n.get(e);if(!r.has(p.className))return null;let[m,h]=g(e);if(a>h)return null;let S=u.length-1;m>a&&(d.push(p.sentence.substring(a,m)),a=m);let T=t.slice(l+1).filter(e=>h>g(e)[1]);c=T.length?y({keyMap:T,sentenceMap:n,lastSentenceIndex:a,sentenceEndIndex:h,smartSearchFilters:r,caption:i}):p.sentence.substring(a,h);let f=/^is-custom-/ig.test(p.className)?"is-custom-cat":p.className,E={"caption-key":[null==i?void 0:i.index,null==i?void 0:i.toShowIndex,null==i?void 0:i.captionIndex],className:f};return r.has("is-search")&&p.id&&(E.id=`span-highlight-${p.id}`),d.push((0,s.jsx)("span",{...E,children:c},e)),a=h,o??(o=p.sentence.length-1),l===S&&h<o&&(d.push(p.sentence.substring(a,o+1)),a=o+1),d})},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=`Speaker ${n}`;return(null==t?void 0:t[n])&&(a=t[n]),(null==e?void 0:e.length)===1&&t&&(a=t[n]||"Speaker 1"),a},T=e=>{let{team:t,speakerMetric:n,speakerMeta:a,allSpeakers:o}=e;return{teamMemberNames:null==t?void 0:t.teammates.map(e=>null==e?void 0:e.name),attendeesNames:(n?Object.entries(n):[]).reduce((e,t)=>{let[n]=t,r=S(o,a,Number(n)+1);return -1===e.findIndex(e=>r===e)&&e.push(r),e},[])}},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body.querySelector(".in-focus");if(t){var n,a;null==(n=(a=globalThis).requestAnimationFrame)||n.call(a,()=>{t.scrollIntoView({behavior:e?"auto":"smooth",block:"center"})})}},E=(e,t)=>{if(!(null==e?void 0:e.length))return{end:0,start:0};let n=0,a=e.length-1,o=a,r=e=>{let o=Math.floor((a-n)/2)+n;return(e[o].time||0)>t?a=o:n=o,a-n};for(;o>1;)o=r(e);return{end:a,start:n}};e.s(["getIndexAndScroll",0,f,"getPaneContentHeight",0,function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return`calc(100vh - var(--notepad-navbar-height, 56px) - var(--notepad-media-bar-height, 72px) - ${e?"49px":"0px"} - var(--banner-height, 0px) - var(--impersonation-banner-height, 0px))`},"getSentence",0,(e,t)=>{let n,{fullClean:a,sentenceMap:o}=t;if(e.size&&o){var r,i;let a,s,l=["is-positive-sentiment","is-negative-sentiment","is-neutral-sentiment"];[...e.values()].some(e=>!l.includes(e))&&(i=r=o,a=new Map,(null==i?void 0:i.entries)&&[...i.entries()].forEach(t=>{let[n,o]=t;e.has(o.className)&&a.set(n,o)}),n=y({keyMap:(null==(s=r=a)?void 0:s.keys)&&[...s.keys()].sort((e,t)=>{let n=g(e),a=g(t);return n[0]-a[0]||a[1]-n[1]}),sentenceMap:r,smartSearchFilters:e,caption:t}))}return n&&(null==n?void 0:n.length)||(n=a),n},"getTeamAttendees",0,T,"labelSpeakers",0,(e,t,n)=>{for(let a=0;a<e.length;a++){let o=e[a],r=t[o]||[];for(let e=0;e<r.length;e++)r[e]===n.index&&(n.newSpeakerId=+o)}return n},"reduceCaptionArrayBySearch",0,E],467500);var I=e.i(870201);let C=`
1004	onmessage = e => {
1005				const {
1006					captionsToShow,
1007					allSpeakers,
1008					speakerMeta,
1009					smartSearchFilters,
1010					puppetStates,
1011				} = e.data.params;
1012				const otherFilters = [];
1013				const onlySentiments = [];
1014				const onlySpeakers = [];
1015				const classArray = ['is-task', 'is-metrics', 'is-pricing', 'is-question', 'is-topics', 'is-date'];
1016				const highlightSentenceMatch = ${I.highlightSentenceMatch};
1017
1018				// Filter out paused events
1019				const pauseEvents = (puppetStates || [])
1020					.filter(state => state.status === 'PAUSED')
1021					.sort((a, b) => a.time - b.time)
1022					.map(pauseEvent => ({
1023						type: 'PAUSE',
1024						pauseTime: pauseEvent.time,
1025						pauseEvent: pauseEvent,
1026						pauseTimeSpent: pauseEvent.timeSpent,
1027					}));
1028
1029				const groupedEvents = pauseEvents;
1030
1031				const filterMap = new Map();
1032				[...(smartSearchFilters || [])].forEach(filter => {
1033					if (/-sentiment$/.test(filter)) {
1034						onlySentiments.push(filter);
1035					} else if (/^is-speaker-/gi.test(filter)) {
1036						onlySpeakers.push(filter);
1037					} else {
1038						otherFilters.push(filter);
1039					}
1040					filterMap.set(filter, true);
1041				});
1042
1043				const getSpeaker = (params) => {
1044					const {
1045						allSpeakers = [],
1046						speakerMeta = {},
1047						speaker_id,
1048					} = params;
1049
1050					let speaker = 'Speaker ' + speaker_id;
1051					if (speakerMeta?.[speaker_id]) {
1052						speaker = speakerMeta[speaker_id];
1053					}
1054					if (allSpeakers?.length === 1 && speakerMeta) {
1055						speaker = speakerMeta[speaker_id] || 'Speaker 1';
1056					}
1057					return speaker;
1058				};
1059
1060				const getNumWords = (string = '') => string.split(" ")?.length;
1061				const MAX_NO_OF_SENTENCE_PER_PARAGRAPH = 4;
1062				const MAX_NO_OF_WORDS_PER_PARAGRAPH = 150;
1063				const isValidInParagraph = (params) => {
1064					const { sentences, text, sentenceCount, wordCount } = params;
1065					if (wordCount) {
1066						const total = sentences.reduce(
1067							(sum, obj) => (obj.fullClean ? sum + getNumWords(obj.fullClean) : sum),
1068							0
1069						);
1070
1071						if (total) {
1072							const totalWords = total + getNumWords(text);
1073							return totalWords < wordCount;
1074						}
1075
1076						return sentences.length < sentenceCount;
1077					}
1078					return true;
1079				};
1080
1081				// Pre-calculate separator insertion points
1082				const separatorInsertionPoints = new Map();
1083				let separatorIndex = 0;
1084				const hasWordCharacter = (text) => /[\\p{L}\\d_]/u.test(text);
1085
1086				const paragraphs = captionsToShow.reduce((reducedArray, captionObj, index) => {
1087					const speaker = captionObj.newSpeakerId ?? captionObj.speaker_id;
1088					const caption = { ...captionObj, toShowIndex: index };
1089					const currentTime = caption.time;
1090					if (!hasWordCharacter(caption.fullClean)) return reducedArray;
1091
1092					// Insert separators that should come before this caption
1093					const separators = [];
1094					while (!smartSearchFilters.size && separatorIndex < groupedEvents.length && groupedEvents[separatorIndex].pauseTime <= currentTime) {
1095						const groupedEvent = groupedEvents[separatorIndex];
1096
1097						// Check if this separator was already inserted
1098						if (!separatorInsertionPoints.has(groupedEvent.pauseTime)) {
1099							separatorInsertionPoints.set(groupedEvent.pauseTime, true);
1100							separators.push({
1101								position: 'pre',
1102								separatorType: groupedEvent.type,
1103								separatorTime: groupedEvent.pauseTime,
1104								separatorTimeSpent: groupedEvent.pauseTimeSpent,
1105							});
1106						}
1107						separatorIndex++;
1108					}
1109
1110					if (smartSearchFilters.size) {
1111						// Filter checking with Set for O(1) lookups
1112						const captionClasses = new Set(captionObj?.classNames || []);
1113
1114						// Check class-based filters
1115						for (const filter of classArray) {
1116							if (filterMap.has(filter)) {
1117								for (const className of captionClasses) {
1118									if (className.includes(filter)) {
1119										highlightSentenceMatch({
1120											className: filter,
1121											caption
1122										});
1123									}
1124								}
1125							}
1126						}
1127
1128						// Check speaker filters
1129						if (onlySpeakers.length &&
1130							!onlySpeakers.some(filter => captionClasses.has(filter))) {
1131							return reducedArray;
1132						}
1133
1134						// Check sentiment filters
1135						if (onlySentiments.length &&
1136							!onlySentiments.some(filter => captionClasses.has(filter))) {
1137							return reducedArray;
1138						}
1139
1140						// Check other filters
1141						if (otherFilters.length &&
1142							!otherFilters.some(filter => captionClasses.has(filter))) {
1143							return reducedArray;
1144						}
1145
1146						// Check search filter
1147						if (filterMap.has('is-search') && !captionClasses.has('is-search')) {
1148							return reducedArray;
1149						}
1150					} else if (reducedArray.length && !separators.length) {
1151						const last = reducedArray[reducedArray.length - 1].paragraph;
1152						const sameSpeaker = speaker === last.speaker;
1153						const isValid = isValidInParagraph({
1154							sentences: last.sentences,
1155							text: caption.fullClean,
1156							sentenceCount: MAX_NO_OF_SENTENCE_PER_PARAGRAPH,
1157							wordCount: MAX_NO_OF_WORDS_PER_PARAGRAPH,
1158						});
1159
1160						if (last && sameSpeaker && isValid && !caption.lineBreak && !last.sentences.at(-1).paragraphEnd) {
1161							last.sentences.push(caption);
1162							return reducedArray;
1163						}
1164					}
1165
1166					const speakerName = getSpeaker({ allSpeakers, speakerMeta, speaker_id: speaker + 1 });
1167					const paragraph = { speakerName, speaker, sentences: [caption], separators };
1168					reducedArray.push({
1169						id: reducedArray.length,
1170						key: captionObj.endTime+'-'+captionObj.time,
1171						paragraphIndex: index,
1172						paragraph,
1173					});
1174
1175					return reducedArray;
1176				}, []);
1177
1178				// Add remaining separators at the end
1179				if (!smartSearchFilters.size && paragraphs.length) {
1180					const { separators } = paragraphs.at(-1).paragraph;
1181					while (separatorIndex < groupedEvents.length) {
1182						const groupedEvent = groupedEvents[separatorIndex];
1183						if (!separatorInsertionPoints.has(groupedEvent.pauseTime)) {
1184							separators.push({
1185								position: 'post',
1186								separatorType: groupedEvent.type,
1187								separatorTime: groupedEvent.pauseTime,
1188								separatorTimeSpent: groupedEvent.pauseTimeSpent,
1189							})
1190						}
1191						separatorIndex++;
1192					}
1193				}
1194
1195				const payload = {
1196					type: e.data.type,
1197					payload: paragraphs,
1198					workerID: e.data.workerID
1199				};
1200				postMessage(payload);
1201			}
1202`,v=0,b=e=>{let{captionsToShow:n,allSpeakers:a,speakerMeta:o,smartSearchFilters:r,puppetStates:i=[]}=e;v++,null==t||t(void 0);let s=URL.createObjectURL(new Blob([C])),l=new Worker(s);return new Promise(e=>{t=n=>{var a;e(n),null==l||null==(a=l.terminate)||a.call(l),URL.revokeObjectURL(s),t=void 0},l.onerror=()=>null==t?void 0:t(void 0),l.onmessageerror=()=>null==t?void 0:t(void 0),l.postMessage({type:"PARSE",params:{captionsToShow:n,allSpeakers:a,speakerMeta:o,smartSearchFilters:r,puppetStates:i},workerID:v}),l.onmessage=e=>{"PARSE"===e.data.type&&e.data.workerID===v&&(null==t||t(e.data.payload))}})};e.s(["parseParagraphs",0,b],26890);let N=e=>{let{allSpeakers:t=[],speakerMeta:n={},speaker_id:a}=e,o=`Speaker ${a}`;return(null==n?void 0:n[a])&&(o=n[a]),(null==t?void 0:t.length)===1&&n&&(o=n[a]||"Speaker 1"),o},M=e=>{let{paragraphs:t,captionsToShow:n,allSpeakers:a,speakerMeta:o}=e,r=new Map(n.map(e=>[e.index,e]));return t.map(e=>{let t=e.paragraph.sentences.map(e=>r.get(e.index)??e),n=t[0],i=n?n.newSpeakerId??n.speaker_id:e.paragraph.speaker,s=N({allSpeakers:a,speakerMeta:o,speaker_id:i+1});return{...e,paragraph:{...e.paragraph,sentences:t,speaker:i,speakerName:s}}})};e.s(["getSpeaker",0,N,"getSpeakerId",0,e=>{let{speakerName:t,speakerMeta:n}=e;if(n&&Object.values(n).includes(t))return Number(Object.keys(n).find(e=>n[e]===t));let a=Number(t.split(" ")[1]);return a>-1?Number(a):-1},"relabelParagraphs",0,M],527889);var _=e.i(626500),A=((n={}).IMPORTANT="important",n.ACTION="action-item",n.POSITIVE="positive",n.CONCERN="concern",n.COMMENT="comment",n.PAUSED="paused",n),R=((a={}).ALL="All bookmarks",a.IMPORTANT="important",a.ACTION_ITEM="action-item",a.POSITIVE="positive",a.CONCERN="concern",a.PAUSED="paused",a),w=((o={}).VIDEO="video",o.NOTES="notes",o.TRANSCRIPT="transcript",o.ASK_FRED="ask-fred",o.AI_APPS="ai-apps",o.AI_SKILLS="ai-skills",o.COMMENTS="comments",o);e.s(["BOOKMARK_FILTERS",()=>R,"ReactionType",()=>A,"TabsValue",()=>w],609874);var O=e.i(776204);let P="idle",k="initialized",D="editing",$="searching",x="saving",L={MAX_SENTENCES_PER_PARAGRAPH:4,MAX_WORDS_PER_PARAGRAPH:1
120250,INPUT_THROTTLE_MS:500,FOCUS_DELAY_MS:50,MAX_HISTORY_LENGTH:50},U=["sentenceMeta","paragraphMeta","speakerMeta","labelMeta"],G={NO_CHANGES:"NO_CHANGES",NO_TEXT_OR_META:"NO_TEXT_OR_META",NO_SENTENCE_CHANGES:"NO_SENTENCE_CHANGES",NO_PARAGRAPH_CHANGES:"NO_PARAGRAPH_CHANGES",INVALID_CAPTION_INDEX:"INVALID_CAPTION_INDEX",NOT_IN_EDIT_MODE:"NOT_IN_EDIT_MODE",ALREADY_SET:"ALREADY_SET",NOT_IDLE:"NOT_IDLE",SEARCH_AND_REPLACE_IN_PROGRESS:"SEARCH_AND_REPLACE_IN_PROGRESS",EDITING_IN_PROGRESS:"EDITING_IN_PROGRESS",SAVING_IN_PROGRESS:"SAVING_IN_PROGRESS",INITIALIZATION_REQUIRED:"INITIALIZATION_REQUIRED",MISSING_ARGUMENTS:"MISSING_ARGUMENTS"},j=new Set([G.INVALID_CAPTION_INDEX,G.NO_TEXT_OR_META,G.NO_PARAGRAPH_CHANGES,G.NO_SENTENCE_CHANGES,G.INITIALIZATION_REQUIRED,G.NOT_IDLE,G.MISSING_ARGUMENTS]),F={[G.NO_CHANGES]:"No changes were saved",[G.NO_TEXT_OR_META]:"No text or metadata changes were provided",[G.NO_SENTENCE_CHANGES]:"No sentence-level changes were saved",[G.NO_PARAGRAPH_CHANGES]:"No paragraph-level changes were saved",[G.INVALID_CAPTION_INDEX]:"The caption index is out of range",[G.NOT_IN_EDIT_MODE]:"Cannot perform this action except in edit or search mode",[G.ALREADY_SET]:"This status has already been set",[G.NOT_IDLE]:"Cannot initialize when the editor is not idle",[G.SEARCH_AND_REPLACE_IN_PROGRESS]:"Cannot perform this action while search is in progress",[G.EDITING_IN_PROGRESS]:"Cannot perform this action while edit is in progress",[G.SAVING_IN_PROGRESS]:"Cannot perform this action while save is in progress",[G.INITIALIZATION_REQUIRED]:"The editor must be initialized before this action",[G.MISSING_ARGUMENTS]:"Missing required arguments"};function Y(e,t){let n,a;if(a=typeof e,null==e||"object"!==a&&"function"!==a)return e;let o=Array.isArray(e),r=o?"[object Array]":Object.prototype.toString.call(e);if(o)n=Array(e.length);else if("[object Object]"===r)n=function(e){if("function"==typeof e.constructor){let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype?{}:Object.create(t)}return{}}(e);else if("[object Date]"===r)return new Date(e.getTime());else if("[object RegExp]"===r)return new RegExp(e.source,e.flags);else if("[object Map]"===r){if(t||(t=new Map),t.has(e))return t.get(e);let n=new Map;return t.set(e,n),e.forEach((e,a)=>{n.set(a,Y(e,t))}),n}else if("[object Set]"===r){if(t||(t=new Map),t.has(e))return t.get(e);let n=new Set;return t.set(e,n),e.forEach(e=>{n.add(Y(e,t))}),n}else if("[object ArrayBuffer]"===r){let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}else{if(ArrayBuffer.isView(e)&&!(e instanceof DataView))return new e.constructor(e);if("[object DataView]"===r)return new DataView(Y(e.buffer,t),e.byteOffset,e.byteLength);if("[object Function]"===r||"[object GeneratorFunction]"===r||"[object Error]"===r)return e;n={}}t||(t=new Map);let i=t.get(e);if(i)return i;if(t.set(e,n),o){let a=n,o=-1,r=e.length;for(;++o<r;)a[o]=Y(e[o],t);return n}let s=n,l=Object.keys(e),u=-1,c=l.length;for(;++u<c;){let n=l[u];s[n]=Y(e[n],t)}let d=Object.getOwnPropertySymbols(e),p=-1,m=d.length;for(;++p<m;){let n=d[p];Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=Y(e[n],t))}return n}function V(e,t){"lineBreak"===t?e.lineBreak=!0:"paragraphEnd"===t?e.paragraphEnd=!0:(e.lineBreak=void 0,e.paragraphEnd=void 0)}function H(e,t,n){if(!t.sentenceChanges)return;let a=t.sentenceChanges;for(let t of Object.keys(a)){let o=a[t],r=e[n.globalToVisibleIndex(o.index)];r&&(r.fullClean=o.originalText)}}function q(e,t,n,a){let o=Y(e),[r,i]=a,s={};if(i>r)for(let e=r;e<i;e++)t[e]&&(!function(e,t,n){switch(t.action){case"edit-text":case"cut-text":case"delete-text":case"cut-and-paste-text":case"search-and-replace-text":!function(e,t,n){if(!t.sentenceChanges)return;let a=t.sentenceChanges;for(let t of Object.keys(a)){let o=a[t],r=e[n.globalToVisibleIndex(o.index)];r&&(r.fullClean=o.newText)}}(e,t,n);break;case"split-paragraph":case"merge-paragraphs":var a;let o=t.paragraphMeta||{};for(let r of new Set([...Object.keys((null==(a=t.oldMeta)?void 0:a.paragraphMeta)||{}),...Object.keys(o)])){let t=e[n.globalToVisibleIndex(+r)];t&&V(t,o[r])}break;case"delete-paragraph":!function(e,t,n){if(!t.paragraphChanges||3!==t.paragraphChanges.length)return;let[a,o,r]=t.paragraphChanges,i=n.globalToVisibleIndex(o),s=n.globalToVisibleIndex(a),l=n.globalToVisibleIndex(r);if(s>=0&&i>=0)for(let t=s;t<=i;t++)e[t]&&(e[t].fullClean="");let u=e[l];u&&(u.paragraphEnd=!0,u.lineBreak=void 0)}
1202(e,t,n)}}(o,t[e],n),function(e,t){U.forEach(n=>{t[n]&&(e[n]=t[n])})}(s,t[e]));else if(i<r)for(let e=r-1;e>=i;e--)t[e]&&(!function(e,t,n){switch(t.action){case"edit-text":case"delete-text":case"cut-text":case"cut-and-paste-text":case"search-and-replace-text":H(e,t,n);break;case"split-paragraph":case"merge-paragraphs":var a;let o=(null==(a=t.oldMeta)?void 0:a.paragraphMeta)||{},r=t.paragraphMeta||{};for(let t of new Set([...Object.keys(o),...Object.keys(r)])){let a=e[n.globalToVisibleIndex(+t)];a&&V(a,o[+t])}break;case"delete-paragraph":!function(e,t,n){if(H(e,t,n),!t.paragraphChanges||3!==t.paragraphChanges.length)return;let a=t.paragraphChanges[2],o=e[n.globalToVisibleIndex(a)];if(o){var r,i;V(o,null==(i=t.oldMeta)||null==(r=i.paragraphMeta)?void 0:r[a])}}(e,t,n)}}(o,t[e],n),function(e,t){U.forEach(n=>{var a;(null==(a=t.oldMeta)?void 0:a[n])&&(e[n]=t.oldMeta[n])})}(s,t[e]));return[o,s]}e.s(["BUG_ERRORS",0,j,"EDIT_DEFAULTS",0,L,"EDIT_ERROR",0,G,"EDIT_ERROR_MESSAGE",0,F,"META_KEYS",0,U],35762);let W=(e,t)=>{var n;B()&&(null==(n=window.__TRANSCRIPT_DEBUG__)||n.set(e,t))},B=()=>!!window.__TRANSCRIPT_DEBUG__,z=()=>new Date().toISOString().split("T")[1].slice(0,-1),Q={logOperation(e,t){B()&&W(`[${z()}] ${e}:`,t)},logStateChange(e,t){B()&&W(`[${z()}] State Change:`,{before:e,after:t})},logIndexMapping(e,t,n,a){B()&&W(`[${z()}] IndexMap`,`${e}(${n}) -> ${t}(${a})`)},logError(e,t){console.error(`[${z()}] Error in ${e}:`,t)},captureSnapshot(e){if(!B())return null;let t=e();return W(`[${z()}] Snapshot:`,t),t}};function K(e,t){let n=e.globalToVisibleMap.get(t)??-1;return Q.logIndexMapping("global","visible",t,n),n}let X=e=>{e.globalToVisibleMap.clear(),e.visibleToGlobalMap.clear()};function J(){let e={globalToVisibleMap:new Map,visibleToGlobalMap:new Map};return{state:e,buildMaps:t=>(function(e,t){X(e);for(let n=0;n<t.length;n++){let{index:a}=t[n];e.globalToVisibleMap.set(a,n),e.visibleToGlobalMap.set(n,a)}})(e,t),globalToVisibleIndex:t=>K(e,t),visibleToGlobalIndex:t=>{let n;return n=e.visibleToGlobalMap.get(t)??-1,Q.logIndexMapping("visible","global",t,n),n},isVisibleIndex:t=>e.globalToVisibleMap.has(t),explainIndex:t=>{let n;return n=K(e,t),{globalId:t,visibleIndex:n,isVisible:n>=0}},clear:()=>X(e)}}function Z(e,t){e.indexMap.buildMaps(t)}
1202function ee(e,t){Object.keys(e.meta).forEach(n=>{t[n]&&(e.meta[n]=t[n])})}function et(e){return e.cursor>0}function en(e){return e.history.length>e.cursor+1}function ea(e,t){return e.history.slice(...t).map(e=>e.change)}function eo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t+=1;let a=e.initialCaptions,o=ea(e,[1,t]),r=q(a,o,e.initialIndexMap,[0,o.length]);return n&&Z(e,r[0]),r}function er(e,t){if(!t)return[e.currentCaptions,e.meta];let n=e.cursor+1,a=n+t,o=ea(e,t>0?[n,a]:[a,n]),r=e.currentCaptions,i=t>0?[0,o.length]:[o.length,0],s=q(r,o,e.indexMap,i);return Z(e,s[0]),s}let ei={INITIALIZED_STATE:"editState:initializedState",CLEARED_STATE:"editState:clearedHistoryState",MARK_SENTENCE_EDITED:"editState:markSentenceEdited",SET_PARAGRAPH_SPLIT:"editState:setParagraphSplit",SET_PARAGRAPH_MERGE:"editState:setParagraphMerge",SET_PARAGRAPH_DELETE:"editState:setParagraphDelete",RUN_PENDING_OPS:"editState:runPendingOps",PUSH_PENDING_OP:"editState:pushPendingOp",CLEAR_PENDING_OPS:"editState:clearPendingOps",EDITED_TRANSCRIPT:"editState:editedTranscript",UNDO_EDIT:"editState:undoEdit",REDO_EDIT:"editState:redoEdit",CHANGE_EDIT_STATUS:"editState:changeEditStatus",SAVING_EDIT:"editState:savingEdit",SAVED_EDIT:"editState:savedEdit",CANCELLED_EDIT:"editState:cancelledEdit",COMPLETED_EDIT:"editState:completedEdit",CLEARED_HISTORY:"editState:clearedHistory",CHANGED_HISTORY:"editState:changedHistory",SET_CURSOR_POSITION:"editState:setCursorPosition"};function es(e,t){let n=new CustomEvent(e,{detail:t});window.dispatchEvent(n),Q.logOperation(`Emitted: ${e}`,t)}let el=(e,t)=>
1202{let[n,a]=(0,r.useState)(()=>t(eO)),o=(0,r.useRef)(n),i=(0,r.useEffectEvent)(()=>{let e=t(eO);e!==o.current&&(o.current=e,a(e))});return(0,r.useEffect)(()=>{let t=new AbortController;return(Array.isArray(e)?e:[e]).forEach(e=>window.addEventListener(e,i,{signal:t.signal})),()=>t.abort()},[e]),n},eu=()=>eO,ec=()=>el(ei.CHANGE_EDIT_STATUS,e=>e.isSaving()),ed=()=>el(ei.CHANGE_EDIT_STATUS,e=>e.isEditing()),ep=()=>el(ei.CHANGE_EDIT_STATUS,e=>e.isSearching()),em=()=>el(ei.CHANGE_EDIT_STATUS,e=>e.isInitialized()),eh=()=>el([ei.CHANGED_HISTORY,ei.CLEARED_HISTORY],e=>e.canUndo()),eg=()=>el([ei.CHANGED_HISTORY,ei.CLEARED_HISTORY],e=>e.canRedo());var ey=e.i(341644);function eS(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Q.logOperation(...t)}function eT(e,t){if(e.editStatus.has(t))return[!0,t];let n=t===k,a=!e.editStatus.has(P);if(n&&a)return eN(e,G.NOT_IDLE);let o=t===D,r=e.editStatus.has($);if(o&&r)return eN(e,G.SEARCH_AND_REPLACE_IN_PROGRESS);let i=t===$,s=e.editStatus.has(D);if(i&&s)return eN(e,G.EDITING_IN_PROGRESS);let l=t===x;if(l&&!s&&!r)return eN(e,G.NOT_IN_EDIT_MODE);let u=e.editStatus.has(x);if(l&&u)return eN(e,G.SAVING_IN_PROGRESS);let c=!e.editStatus.has(k);return(o||i)&&c?eN(e,G.INITIALIZATION_REQUIRED):(t===P?e.editStatus.clear():e.editStatus.delete(P),e.editStatus.add(t),es(ei.CHANGE_EDIT_STATUS),eS(`setEditStatus: ${t}`,e.editStatus),[!0,t])}function ef(e,t,n){var a;let o,r=e.history.record(t,n);es(ei.CHANGED_HISTORY),n.caretPosition&&eI(e,n.caretPosition,n.action),eS("recordHistory",{change:n,history:r}),o=(a=e).history.getChanges(),localStorage.setItem(`transcript-history-${a.meetingId}`,JSON.stringify(o)),eS("cacheHistoryInStorage",o)}function eE(e){localStorage.removeItem(`transcript-history-${e.meetingId}`),eS("clearHistoryInStorage",e.meetingId)}function eI(e,t,n){e.pendingOperations.setCursor=[t,n],es(ei.SET_CURSOR_POSITION),eS("recordCaretPosition",{caretPosition:t,reason:n})}function eC(e,t){es(ei.CHANGED_HISTORY),"edit-text"===t.snapshot.change.action&&es(ei.EDITED_TRANSCRIPT),t.snapshot.change.caretPosition&&eI(e,t.snapshot.change.caretPosition,"history"),eS("processHistoryResult",{success:t.success})}function ev(e){return e.history.canUndo()}function eb(e){return e.history.canRedo()}function eN(e,t){return j.has(t)&&console.error(Error(t,{cause:{meetingId:e.meetingId,editStatus:[...e.editStatus],historyLength:e.history.getLength(),historyCursor:e.history.getCursor(),captions:!!e.history.getInitialCaptions()}})),eS("getErrorState",{error:t}),[!1,t]}function eM(e,t,n){return e_(e)?(eS("runEditOperation",{error:G.SAVING_IN_PROGRESS}),eN(e,G.SAVING_IN_PROGRESS)):eA(e)||n&&eR(e)?(eS("runEditOperation",{editStatus:[...e.editStatus]}),t()):(eS("runEditOperation",{error:G.NOT_IN_EDIT_MODE}),eN(e,G.NOT_IN_EDIT_MODE))}let e_=e=>e.editStatus.has(x),eA=e=>e.editStatus.has(D),eR=e=>e.editStatus.has($),ew=e=>eA(e)||eR(e);!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!window.__TRANSCRIPT_DEBUG__;window.__TRANSCRIPT_DEBUG__=e?new Map:void 0}(!ey.isProductionApp);let eO=function(){var e;let t,n,a,o=(e=L.MAX_HISTORY_LENGTH,eS("createEditState",a={history:n={state:t={initialMeta:{},meta:{},cursor:0,indexMap:J(),initialIndexMap:J(),history:[],maxLength:e,initialCaptions:[],currentCaptions:[]},getIndexMap:()=>t.indexMap,initialize:(e,n)=>(function(e,t,n){let{initialCaretPosition:a,...o}=n;e.cursor=0,e.meta=Y(o),e.initialMeta=Y(o),e.initialCaptions=t,e.currentCaptions=t,e.indexMap.buildMaps(t),e.initialIndexMap.buildMaps(t),e.history=[{timestamp:new Date().toISOString(),change:{caretPosition:a||[t[0].index,0],action:"initialize",...o}}]})(t,e,n),getChanges:()=>t.history.map(e=>e.change),getMeta:()=>Y(t.meta),getMetaFromChanges:()=>(function(e){let[t,n]=eo(e,e.cursor);return n})(t),replayHistory:e=>eo(t,e),traverseHistory:e=>er(t,e),getHistoryChanges:e=>ea(t,e),getCurrentSnapshot:()=>t.history[t.cursor],getNewCaptions:()=>Y(t.currentCaptions),getCurrentMeta:()=>Y(t.meta),getInitialCaptions:()=>t.initialCaptions,getCurrentCaptions:()=>t.currentCaptions,record:function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return function(e,t,n){return!function(e,t){var n,a;let{change:o,timestamp:r}=e.history[e.cursor],i=Date.now(),s=null==(n=t.caretPosition)?void 0:n[0];return!("edit-text"!==t.action||o.action!==t.action||i-new Date(r).getTime()>2e3)&&!!t.sentenceChanges&&!!o.sentenceChanges&&void 0!==s&&s===(null==(a=o.caretPosition)?void 0:a[0])&&(t.sentenceChanges[s].originalText=o.sentenceChanges[s].originalText,t.oldMeta=o.oldMeta,e.history[e.cursor].change=t,e.history[e.cursor].timestamp=new Date(i).toISOString(),!0)}(e,n)&&(e.history.length===e.maxLength&&(e.history.splice(1,1),--e.cursor),e.history.length>++e.cursor&&e.history.splice(e.cursor),e.history[e.cursor]={timestamp:new Date().toISOString(),change:n}),ee(e,n),(!n.action.includes("-text")||Object.values(n.sentenceChanges||{}).some(e=>""===e.newText)||0)&&Z(e,t),e.currentCaptions=t,[e.history,t]}(t,...n)},undo:()=>(function(e){let t=et(e),[n,a]=t?er(e,-1):[e.currentCaptions,e.meta];t&&(e.cursor--,ee(e,a),e.currentCaptions=n);let o=e.history[e.cursor];return{success:t,canRedo:t,canUndo:et(e),snapshot:{captions:n,...o,meta:Y(e.meta)}}})(t),redo:()=>(function(e){let t=en(e),[n,a]=t?er(e,1):[e.currentCaptions,e.meta];t&&(e.cursor++,ee(e,a),e.currentCaptions=n);let o=e.history[e.cursor];return{success:t,canUndo:t,canRedo:en(e),snapshot:{captions:n,...o,meta:Y(e.meta)}}})(t),canUndo:()=>et(t),canRedo:()=>en(t),clear:()=>{t.cursor=0,t.history=[],t.indexMap.clear(),t.initialCaptions=[],t.currentCaptions=[],t.meta={},t.initialMeta={}},getEdgeStates:()=>{let e;return e=[t.currentCaptions,t.meta],[[t.initialCaptions,t.initialMeta],e]},getLength:()=>t.history.length,getCursor:()=>t.cursor},indexMap:n.getIndexMap(),mode:"FULL",meetingId:null,startTime:performance.now(),editStatus:new Set([P]),pendingOperations:{}}),a),{getCurrentCaptions:r,getHistoryChanges:i,getInitialCaptions:s,getEdgeStates:l}=o.history,{globalToVisibleIndex:u,visibleToGlobalIndex:c,isVisibleIndex:d}=o.indexMap;return{getEdgeStates:l,getHistoryChanges:i,getCurrentCaptions:r,status:()=>new Set(o.editStatus),captionIsVisible:d,convertVisibleIndex:c,convertCaptionIndex:u,clearHistory:()=>eE(o),getInitialCaptions:()=>s(),isInitialized:()=>o.editStatus.has(k),isIdle:()=>o.editStatus.has(P),isSaving:()=>e_(o),isEditing:()=>eA(o),isSearching:()=>eR(o),getCaption:e=>{let t,n;return t=o.indexMap.globalToVisibleIndex(e),n=o.history.getCurrentCaptions()[t],eS("getCaption",{globalId:e,visibleId:t}),n},undo:()=>eM(o,()=>(function(e){if(!ew(e))return eS("undo",{error:G.NOT_IN_EDIT_MODE}),eN(e,G.NOT_IN_EDIT_MODE);let t=e.history.undo();return t.success?(es(ei.UNDO_EDIT),eC(e,t),eS("undo",{success:t.success}),[!0,t]):eN(e,G.NO_CHANGES)})(o),!0),redo:()=>eM(o,()=>(function(e){if(!ew(e))return eS("redo",{error:G.NOT_IN_EDIT_MODE}),eN(e,G.NOT_IN_EDIT_MODE);let t=e.history.redo();return t.success?(es(ei.REDO_EDIT),eC(e,t),eS("redo",{success:t.success}),[!0,t]):eN(e,G.NO_CHANGES)})(o),!0),startSaving:()=>eM(o,()=>(function(e){if(!ev(e))return eS("startSaving",{success:!1}),eN(e,G.NO_CHANGES);let t=eT(e,x);if(!t[0])return eS("startSaving",{success:!1}),t;let n=e.history.getMeta();return eS("startSaving",{success:!0,meta:n}),[!0,n]})(o),!0),stopSaving:()=>{let e;(e=o.editStatus.delete(x))&&es(ei.CHANGE_EDIT_STATUS),eS("stopSaving",{success:e})},startSearching:()=>{let e;return(e=eT(o,$))[0]&&(o.mode="FULL"),eS("startSearching",{mode:o.mode,success:e[0]}),e},startEditing:e=>{let t;return(t=eT(o,D))[0]&&(o.mode=e||"FULL"),eS("startEditing",{mode:o.mode,success:t[0]}),t},finishEditing:e=>{var t;t=o,"save"===e&&eE(t),t.meetingId=null,t.pendingOperations={},t.history.clear(),es(ei.CLEARED_HISTORY),eT(t,P),es(ei.CLEARED_STATE),eS("clear",{}),es("cancel"===e?ei.CANCELLED_EDIT:ei.SAVING_EDIT),eS("finishEditing",{reason:e})},canUndo:()=>ev(o),canRedo:()=>eb(o),hasChanges:()=>ev(o)||eb(o),getDebugState:()=>{let e;return eS("getDebugState",e={timestamp:Date.now(),historyLength:o.history.getLength(),historyCursor:o.history.getCursor(),canUndo:ev(o),canRedo:eb(o)}),e},runPendingOperations:e=>{e(o.pendingOperations),es(ei.RUN_PENDING_OPS),eS("runPendingOperations",o.pendingOperations)},recordCaretPosition:(e,t)=>
1202eI(o,e,t),initialize:(e,t,n)=>(function(e,t,n,a){if(e.meetingId===n||!t.length)return eN(e,G.MISSING_ARGUMENTS);let o=eT(e,k);return o[0]&&(e.meetingId=n,e.history.initialize(t,a),es(ei.INITIALIZED_STATE)),eS("initialize",e),o})(o,t,e,n),mergeParagraphs:e=>eM(o,()=>(function(e,t){let{paragraphChanges:n=[]}=t,{paragraphMeta:a}=e.history.getCurrentMeta();if(2!==n.length)return eN(e,G.NO_PARAGRAPH_CHANGES);let[o,r]=n,i=e.indexMap.globalToVisibleIndex(o),s=e.indexMap.globalToVisibleIndex(r),l=e.history.getNewCaptions();delete l[i].lineBreak,delete l[s].paragraphEnd;let{[o]:u,[r]:c,...d}=a;return es(ei.EDITED_TRANSCRIPT),es(ei.SET_PARAGRAPH_MERGE),ef(e,l,{action:"merge-paragraphs",paragraphMeta:d,oldMeta:{paragraphMeta:a}}),eS("merge-paragraphs",{updatedParagraphMeta:d,paragraphMeta:a,paragraphChanges:n}),[!0,d,l]})(o,e)),splitParagraph:e=>eM(o,()=>(function(e,t){let{paragraphChanges:n,caretPosition:a}=t,{paragraphMeta:o}=e.history.getCurrentMeta();if((null==n?void 0:n.length)!==2)return eN(e,G.NO_PARAGRAPH_CHANGES);let[r,i]=n,s=e.indexMap.globalToVisibleIndex(i),l=e.indexMap.globalToVisibleIndex(r),u=e.history.getNewCaptions(),c={...o};return r===i?(c[r]="lineBreak",u[l].lineBreak=!0):(u[l].lineBreak=!0,u[s].paragraphEnd=!0,c[i]="paragraphEnd",c[r]="lineBreak"),es(ei.EDITED_TRANSCRIPT),es(ei.SET_PARAGRAPH_SPLIT),ef(e,u,{action:"split-paragraph",paragraphMeta:c,oldMeta:{paragraphMeta:o},caretPosition:a}),eS("split-paragraph",{updatedParagraphMeta:c,paragraphMeta:o,paragraphChanges:n}),[!0,c,u]})(o,e)),deleteParagraph:e=>eM(o,()=>(function(e,t){let{paragraphChanges:n=[],caretPosition:a}=t,{paragraphMeta:o,sentenceMeta:r}=e.history.getCurrentMeta();if(3!==n.length)return eN(e,G.NO_PARAGRAPH_CHANGES);let[i,s,l]=n,u=e.indexMap.globalToVisibleIndex(i),c=e.indexMap.globalToVisibleIndex(s),d=e.indexMap.globalToVisibleIndex(n[2]);if(u<0||c<0)return eN(e,G.INVALID_CAPTION_INDEX);let p={...r},m={},h=e.history.getNewCaptions();for(let t=u;t<=c;t++){let n=h[t];if(!n)continue;let a=n.fullClean;n.fullClean="";let o=e.indexMap.visibleToGlobalIndex(t);p[o]="",m[o]={index:o,visibleIndex:t,newText:"",originalText:a,action:"delete-paragraph"}}let g={...o};return d>=0&&(g[l]="paragraphEnd",h[d].paragraphEnd=!0,h[d].lineBreak=void 0),es(ei.SET_PARAGRAPH_DELETE),ef(e,h,{action:"delete-paragraph",paragraphChanges:n,sentenceChanges:m,caretPosition:a,sentenceMeta:p,paragraphMeta:g,oldMeta:{paragraphMeta:o,sentenceMeta:r}}),eS("delete-paragraph",{updatedParagraphMeta:g,paragraphMeta:o,paragraphChanges:n,sentenceChanges:m,updatedSentenceMeta:p}),[!0,g,p,h]})(o,e)),editSentence:e=>eM(o,()=>(function(e,t){let n=e.history.getNewCaptions(),{sentenceMeta:a}=e.history.getCurrentMeta(),{textChanges:o,action:r="edit-text",caretPosition:i}=t;if(!o||!a)return eN(e,G.NO_TEXT_OR_META);let s={...a},l={};if(o.forEach((t,a)=>{let o=e.indexMap.globalToVisibleIndex(+a),i=n[o];if(!i)return;let u=n[o].fullClean,c=t.newText;if(i.fullClean=c,c.trim()===i.sentence.trim()){let{[a]:e,...t}=s;s=t}else s[a]=c;l[a]={index:+a,visibleIndex:o,newText:c,originalText:u,action:r}}),"cut-and-paste-text"===r&&o.size>2){let e=[...o.keys()].map(Number),t=n[l[e.at(-2)].visibleIndex].endTime;l[e[0]].endTime=t}return ef(e,n,{action:r,sentenceMeta:s,oldMeta:{sentenceMeta:a},sentenceChanges:l,caretPosition:i}),eS("editSentence",{textChanges:o,updatedSentenceMeta:s,sentenceChanges:l,captions:n}),[!0,s,n]})(o,e),!0)}}();var eP=e.i(328828),ek=e.i(258512),eD=e.i(660735);let e$=e=>document.getElementById(`${e}-transcript-sentence`)||null,ex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"next",n=e.parentElement;return(null==n?void 0:n[t+"ElementSibling"])??null},eL=e=>{let t=document.getElementById(`p-${e}`);return!/\S/.test((null==t?void 0:t.textContent)||"")},eU=(e,t)=>{var n,a,o;let r=window.getSelection(),i=null==(n=e$(e))?void 0:n.firstChild;if(!r||!i)return;let s=document.createRange(),l=Math.min(t,(null==(a=i.textContent)?void 0:a.length)??0);return s.setStart(i,l),s.setEnd(i,l),r.removeAllRanges(),r.addRange(s),null==(o=i.parentElement)||o.focus(),i},eG=()=>{var e,t,n,a,o,r;
1202let i=window.getSelection(),s=i.focusNode,l=i.anchorNode,u=i.focusOffset,c=i.anchorOffset,d=+((null==s||null==(e=s.parentElement)?void 0:e.dataset.key)??""),p=+((null==l||null==(t=l.parentElement)?void 0:t.dataset.key)??"");(p>d||p===d&&c>u)&&([l,s,d,p,c,u]=[s,l,p,d,u,c]);let m={...(null==s||null==(n=s.parentElement)?void 0:n.dataset)||{}},h={...(null==l||null==(a=l.parentElement)?void 0:a.dataset)||{}},g=+m.pid,y=+h.pid,S=y===g,T=i.type,f=!i.isCollapsed,E=i.isCollapsed,I=[p,c],C=(null==s?void 0:s.textContent)||"",v=(null==l?void 0:l.textContent)||"",b=v.substring(0,c),N=v.substring(c),M=C.substring(0,u),_=C.substring(u),A=!1,R=!1;if(S&&E&&(A=b.trim().length<=1&&0===N.trim().length)){let e,t=(null==(e=e$(p))?void 0:e.dataset.pid)&&document.getElementById(`p-${e.dataset.pid}`)||null;(null==t?void 0:t.textContent)&&(R=t.textContent.length<=1)}let w=!(null==l||null==(o=l.parentElement)?void 0:o.previousElementSibling)&&0===c,O=!(null==s||null==(r=s.parentElement)?void 0:r.nextElementSibling)&&u===C.length,P=R||w&&O&&!E,k=!1;return P&&(k=!/[^\s]/.test(b+N+M+_)),{type:T,focus:s,anchor:l,selection:i,sameParagraph:S,anchorParagraphId:y,focusParagraphId:g,startCaptionIndex:p,endCaptionIndex:d,isCollapsed:E,startOffset:c,endOffset:u,focusText:C,anch
1202orText:v,anchorTextBeforeCaret:b,focusTextBeforeCaret:M,focusTextAfterCaret:_,anchorTextAfterCaret:N,focusDataSet:m,anchorDataSet:h,isLastCaptionText:A,isLastParagraphText:R,paragraphStart:w,paragraphEnd:O,isAnEmptyParagraph:P,shouldDeleteParagraph:k,caretPosition:I,isRange:f}},ej=(e,t,n)=>{null==n||n.delete(e),null==n||n.set(e,t)};e.s(["insertTextChange",0,ej],564210);let eF=e=>(null==e?void 0:e.isScreenRecording)===!0,eY=e=>eF(e)&&!!(null==e?void 0:e.video_url),eV=e=>{let{hasSearchQuery:t,isAuthenticated:n,meeting:a,hasCommentsTab:o=!1}=e;return t?w.TRANSCRIPT:o&&eY(a)?w.COMMENTS:!n||eY(a)?w.TRANSCRIPT:w.ASK_FRED};e.s(["getDefaultTranscriptTab",0,eV,"getScreenRecordingDefaultSuite",0,e=>{let{meeting:t,hasCommentsTab:n=!1,isCompact:a}=e;return!eY(t)||n||a?null:l.SUITES.COMMENTS},"hasPlayableScreenRecordingVideo",0,eY,"isScreenRecordingMeeting",0,eF],838831);var eH=e.i(392919),eq=e.i(147322);let eW=()=>(0,eH.useFeatureIsOn)(eq.FEATURE_FLAGS.NOTEPAD_CAMPFIRE_REVAMP);e.s(["useIsCampfireRevampEnabled",0,eW],914816);let eB=()=>{let{meeting:e}=(0,r.useContext)(i.MeetingContext)??{},t=eW();return eY(e)&&!t},{PROCESS_MEETING_STATUS:ez}=p.enums,eQ=new Set([l.TRANSCRIPT_ACTIONS.UPDATE_SPEAKER_LABEL,l.TRANSCRIPT_ACTIONS.SPEAKERS_REPROCESSED]),eK={visibleCaptions:null,captionsToShow:[],captions:[],transcriptProcessStatus:l.TRANSCRIPT_PROCESS_STATUS.UNSET,allSpeakers:[],speakerMeta:{},labelMeta:{},sentenceMeta:{},paragraphMeta:{},topicMeta:{},speakerMetric:{},teamMemberNames:[],attendeesNames:[],topics:[],customCategories:[],sentiments:["Positive","Neutral","Negative"],aiFilters:["Questions","Tasks","Metrics","Pricing","Key Topics","Date & Time"],smartSearchFilters:new Set,noTranscriptReason:l.NO_TRANSCRIPT_REASON.UNSET,soundbiteCaptions:[],paragraphs:[]},eX=(0,r.createContext)({transcriptSentenceInFocusIdRef:{current:0},notepadSoundbiteRef:{current:null},notepadTranscriptRef:{current:null},notepadTranscriptContentRef:{current:null},transcriptState:eK,transcriptDispatch:async()=>void 0,pendingTranscriptStateRef:{current:{captionsToShow:eK.captionsToShow,allSpeakers:eK.allSpeakers,speakerMeta:eK.speakerMeta,smartSearchFilters:eK.smartSearchFilters,puppetStates:[]}},saveEdits:async()=>Promise.resolve(),cancelEdits:()=>null,canRedo:!1,canUndo:!1,savingEdits:!1,handleRedo:()=>void 0,handleUndo:async()=>void 0,activeTranscriptTab:w.TRANSCRIPT,setActiveTranscriptTab:()=>null,editStateManager:eO,canEditTranscript:!1}),eJ=e=>{let{children:t}=e,n=(()=>{let[e,t]=(0,r.useTransition)(),n=(0,r.useRef)([]);return(0,r.useEffect)(()=>{if(e)return;let t=n.current;n.current=[],t.forEach(e=>e())},[e]),(0,r.useEffect)(()=>()=>{let e=n.current;n.current=[],e.forEach(e=>e())},[]),e=>new Promise(a=>{let o;t(()=>{o=e()}),n.current.push(()=>a(o))})})(),a=(0,r.useRef)(0),o=(0,r.useRef)(null),p=(0,r.useRef)(null),g=(0,r.useRef)(null),{isAllowedToTranscribeAsFreeUser:y}=(0,_.useStorage)(),{currentUser:S}=(0,c.useUser)(),f=(0,d.useRouter)(),{meeting:E,reprocessMeeting:I,currentUserIsOwner:C,isDemo:v}=(0,r.useContext)(i.MeetingContext),N=(0,r.useRef)(!1),A=eB(),R=(0,r.useCallback)(e=>eV({hasSearchQuery:e,isAuthenticated:!!S,meeting:E,hasCommentsTab:A}),[E,S,A]),[P,k]=(0,r.useState)(()=>R("q"in f.query)),D=(0,r.useCallback)(e=>{N.current=!0,k(e)},[]);(0,r.useEffect)(()=>{if(!N.current&&f.isReady&&(null==E?void 0:E._id)){if(f.query.q){N.current=!0,k(w.TRANSCRIPT);return}(S||eF(E))&&(N.current=!0,k(R(!1)))}},[f.isReady,f.query.q,S,E,R]);let $=(0,r.useRef)(null);(0,r.useEffect)(()=>{A||k(e=>e===w.COMMENTS?R(!1):e)},[A,R]),(0,r.useEffect)(()=>{let e=null==E?void 0:E._id;if(!e)return;let t=$.current;$.current=e,t&&t!==e&&A&&!f.query.q&&k(w.COMMENTS)},[A,null==E?void 0:E._id,f.query.q]);let[x,L]=(0,r.useReducer)(u,eK),U=(0,r.useRef)(x.paragraphs);(0,r.useLayoutEffect)(()=>{U.current=x.paragraphs},[x.paragraphs]);let G=null==E?void 0:E._id,{speakerMeta:j,speakerMetric:Y,allSpeakers:V,smartSearchFilters:H,captionsToShow:q}=x,W=(0,h.useIsUserAdminInOwnerTeam)(null==E?void 0:E.owner,null==E?void 0:E.creator_email),B=!v&&!!(null==S?void 0:S._id)&&(C||W)&&"UNSET"===x.noTranscriptReason&&x.transcriptProcessStatus===l.TRANSCRIPT_PROCESS_STATUS.COMPLETED,z=null==E?void 0:E.puppetStates,Q=null==S?void 0:S.tier,{team:K}=(0,h.useTeam)(),X=(0,r.useRef)({captionsToShow:q,allSpeakers:V,speakerMeta:j,smartSearchFilters:H,puppetStates:z||[]}),J=(0,r.useRef)(async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=["captionsToShow","allSpeakers","speakerMeta","smartSearchFilters"].some(t=>t in e.payload),o=eQ.has(e.type);if(a&&t){X.current={...X.current,...e.payload};let t=[...X.current.smartSearchFilters??[]].some(e=>"is-search"!==e),n="captionsToShow"in e.payload?e.payload.captionsToShow:void 0,a="allSpeakers"in e.payload?e.payload.allSpeakers:void 0,r="speakerMeta"in e.payload?e.payload.speakerMeta:void 0;if(o&&!t&&U.current.length&&n&&a&&r)e.payload.paragraphs=M({paragraphs:U.current,captionsToShow:n,allSpeakers:a,speakerMeta:r});else{let t=await b(X.current);t&&(e.payload.paragraphs=t)}}return n(()=>(L(e),!!e.payload.paragraphs))}).current,{saveEdits:Z,cancelEdits:ee,canRedo:et,canUndo:en,savingEdits:ea,handleRedo:eo,handleUndo:er,editStateManager:ei}=function(e){let{meetingId:t,transcriptState:n,transcriptDispatch:a,notepadTranscriptRef:o,canEditTranscript:i}=e,{transcriptProcessStatus:s,captions:u,paragraphMeta:c,sentenceMeta:p,speakerMeta:m,labelMeta:h,smartSearchFilters:g,paragraphs:y}=n,{handleRedo:S,handleUndo:T}=function(e){let{transcriptDispatch:t,notepadTranscriptRef:n,canEditTranscript:a,paragraphs:o}=e,{show:i}=(0,ek.useToast)(),s=ed(),u=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,r.useRef)({});d.current.isEditing=s;let p=e=>{var t;let n=e$(e);null==(t=c.current)||t.classList.remove("caret-active"),null==n||n.classList.add("caret-active"),c.current=n},m=(0,r.useCallback)(()=>{var e;if(!d.current.isEditing)return;let t=eG(),{startCaptionIndex:a,anchor:o}=t;(null==(e=n.current)?void 0:e.contains(o))&&p(a),eO.runPendingOperations(e=>{var n,a;if(!Array.isArray(e.setCursor))return;let r="history"===e.setCursor[1],i=null==(n=eO.getHistoryChanges([-1])[0])?void 0:n.caretPosition,s=o.nodeType!==Node.TEXT_NODE,l=t.startOffset!==(null==i?void 0:i[1]);if(s||l||r){let t=eU(...e.setCursor[0]);r&&(null==t||null==(a=t.parentElement)||a.scrollIntoView({behavior:"instant",block:"center"}))}})},[n]),h=(0,r.useMemo)(()=>({load:()=>
1202{if(!h.updates.length)return;let e={};return h.updates.forEach(t=>e={...e,...t}),h.updates=[],e},queue:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h.clear(),h.updates.push(e),t){let e=h.load();e&&h.render(e,!0)}else h.hasUncommittedRender=Date.now(),h.timeout=setTimeout(()=>{if(!d.current.isEditing)return;let e=h.load();e&&h.render(e)},750)},flush:()=>{if(!h.hasUncommittedRender)return;let e=h.load()||{captionsToShow:eO.getCurrentCaptions()};return h.clear(),h.render(e,!0)},render:function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?h.ongoingRender=!0:h.hasUncommittedRender=Date.now(),t({type:l.TRANSCRIPT_ACTIONS.SET_TRANSCRIPT_META,payload:e},n).then(m).finally(()=>{n&&(h.ongoingRender=!1,h.hasUncommittedRender=0)})},clear:()=>{h.timeout&&clearTimeout(h.timeout),h.timeout=void 0},ongoingRender:!1,hasUncommittedRender:0,updates:[],timeout:void 0}),[m,t]),g=function(e,t){var n,a,o;let r,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t.replaceAll(/[\r\t\n]+/g,"")||" ";let{startCaptionIndex:l,endCaptionIndex:u,anchorTextBeforeCaret:c,focusTextAfterCaret:d,isAnEmptyParagraph:p,anchor:m}=e,g=c+t,y=[l,p&&!/[^\s]/.test(t)?0:g.length];m.parentElement&&(r=(n=m.parentElement).previousSibling,i=n.nextSibling,"SPAN"===n.nodeName&&(null==r?void 0:r.nodeName)==="#text"&&(null==r||null==(a=r.parentElement)?void 0:a.nodeName)!=="SPAN"&&(n.textContent=r.textContent+(n.textContent||""),r.remove()),"SPAN"===n.nodeName&&(null==i?void 0:i.nodeName)==="#text"&&(null==i||null==(o=i.parentElement)?void 0:o.nodeName)!=="SPAN"&&(n.textContent+=i.textContent||"",i.remove()));let S=new Map;if(l===u)ej(`${l}`,{newText:g+d,caretPosition:y},S);else{ej(`${l}`,{newText:g,caretPosition:y},S);for(let e=l+1;e<u;e++)ej(`${e}`,{newText:"",caretPosition:y},S);ej(`${u}`,{newText:d,caretPosition:y},S)}let[T,f,E]=eO.editSentence({textChanges:S,caretPosition:y,action:"cut-and-paste-text"});T&&h.queue({sentenceMeta:f,captionsToShow:E},s)},y=(0,r.useCallback)(e=>{let{captions:t,meta:n}=e,a={captionsToShow:t,...n};h.render(a,!0)},[h]),S=(0,r.useCallback)(async()=>{await h.flush();let[e,t]=eO.undo();e&&y(t.snapshot),e||i({title:F[t],type:"error",hideClose:!0})},[h,i,y]),T=(0,r.useCallback)(()=>{let[e,t]=eO.redo();e&&y(t.snapshot),e||i({title:F[t],type:"error",hideClose:!0})},[i,y]),f=(0,r.useEffectEvent)(e=>{if(eO.isSaving())return e.preventDefault(),i({title:"Your edits are being saved...",hideClose:!0,type:"info"},{duration:5e3});if(h.ongoingRender)return e.preventDefault(),i({title:"Transcript update in progress...",hideClose:!0,type:"info"},{duration:2e3});let t=e.inputType,n=eG(),{sameParagraph:a,isCollapsed:r,paragraphEnd:s,paragraphStart:l}=n;if(!t.includes("history")&&!a){let n=t.includes("insert")?"insert":"delete";return e.preventDefault(),i({title:`You can only ${n} text within the same paragraph.`,hideClose:!0,type:"info"},{duration:5e3})}let c=!1;switch(t){case"insertReplacementText":case"deleteByCut":case"insertText":c=!0;break;case"insertFromPaste":var d;let p=(null==(d=e.dataTransfer)?void 0:d.getData("text/plain"))||e.data||" ";/[\r\n\t]/.test(p)?g(n,p,!0):c=!0;break;case"deleteContentForward":case"deleteContentBackward":if(eL(n.anchorParagraphId))break;let m="deleteContentBackward"===t,y=m?n.anchorParagraphId:n.anchorParagraphId+1,f=m&&l||!m&&s;f&&r&&m&&!n.anchorParagraphId||(f&&r?(e=>{if(e>=o.length)return i({title:"Paragraph cannot be merged: it is out of bounds",hideClose:!0,type:"info"},{duration:5e3});let{paragraph:t}=o[e],n=t.sentences[0],a=t.sentences.at(-1);if(!eO.getCaption(n.index).lineBreak)return i({title:"Paragraph cannot be merged because it was not previously split",hideClose:!0,type:"info"},{duration:5e3});let[r,s,l]=eO.mergeParagraphs({paragraphChanges:[n.index,a.index]});r&&h.queue({paragraphMeta:s,captionsToShow:l},!0)})(y):c=!0);break;case"insertLineBreak":(e=>{let{anchorDataSet:t,anchorParagraphId:n,startCaptionIndex:a}=e,{sentences:r}=o[n].paragraph;if(r.length<2)return i({title:`Paragraph cannot be split: it has ${r.length} sentence`,hideClose:!0,type:"info"},{duration:5e3});let s=r.at(-1),l=+((null==s?void 0:s.index)!==a),u=r[+t.index+l],[c,d,p]=eO.splitParagraph({paragraphChanges:[u.index,s.index],caretPosition:[u.index,0]});c&&h.queue({paragraphMeta:d,captionsToShow:p},!0)})(n);break;case"historyUndo":S();break;case"historyRedo":T()}u.current=n,c||e.preventDefault()}),E=(0,r.useEffectEvent)(e=>{let t=eG(),n=e.inputType;if(!u.current)return;let a={...u.current};setTimeout(()=>{var r;let{isCollapsed:s,isRange:l}=a;if(eL(a.anchorParagraphId))return(e=>{let{anchorParagraphId:t}=e;if(!o[t])return void i({title:`Paragraph ${t} cannot be deleted: it is out of bounds`,hideClose:!0,type:"info"},{duration:5e3});let{sentences:n}=o[t].paragraph,a={index:0,fullClean:""};if(t>0){let{sentences:e}=o[t-1].paragraph,n=e.at(-1);a=eO.getCaption(n.index)??n}let r=[n[0].index,n.at(-1).index,a.index],s=[r[2],a.fullClean.length],[l,u,c,d]=eO.deleteParagraph({paragraphChanges:r,caretPosition:s});if(l){var p;eU(...s),null==(p=document.getElementById(`transcript-paragraph-${t}`))||p.remove(),h.queue({paragraphMeta:u,sentenceMeta:c,captionsToShow:d},!0)}})(a);let u=n.includes("delete");if(s){if(u){let e=e=>{var t,n,a;return(null==(n=d.current.textChanges)||null==(t=n.get(`${e}`))?void 0:t.newText)??(null==(a=eO.getCaption(e))?void 0:a.fullClean)??null}
1202,{startCaptionIndex:n,anchor:a}=t,o=e$(n),r=e(n);if((null==o?void 0:o.textContent)===r){let n=ex(a);if(n&&n.dataset.key&&null!==n.textContent){let a=+n.dataset.key;n.textContent!==e(a)&&(t.startCaptionIndex=a,t.anchorText=n.textContent)}}}return((e,t)=>{var n,a;(n=d.current).textChanges??(n.textChanges=new Map);let{anchorText:o,startCaptionIndex:r,caretPosition:i}=e;ej(`${r}`,{newText:o,caretPosition:i,action:t},d.current.textChanges);let[s,l,u]=eO.editSentence({textChanges:d.current.textChanges,caretPosition:i,action:t});s&&(null==(a=d.current.textChanges)||a.clear(),h.queue({sentenceMeta:l,captionsToShow:u}))})(t,u?"delete-text":"edit-text")}if(l&&u)return(e=>{let{startCaptionIndex:t,endCaptionIndex:n,anchorTextBeforeCaret:a,focusTextAfterCaret:o,startOffset:r}=e,i=[t,r],s=new Map;if(t===n)ej(`${t}`,{newText:a+o,caretPosition:i},s);else{ej(`${t}`,{newText:a,caretPosition:i},s);for(let e=t+1;e<n;e++)ej(`${e}`,{newText:"",caretPosition:i},s);ej(`${n}`,{newText:o,caretPosition:i},s)}let[l,u,c]=eO.editSentence({textChanges:s,action:"cut-text",caretPosition:[t,r]});l&&h.queue({sentenceMeta:u,captionsToShow:c})})(a);let c=(null==(r=e.dataTransfer)?void 0:r.getData("text/plain"))||e.data||"";if(l&&c)return g(a,c)},0)}),I=(0,r.useEffectEvent)(()=>{var e;let{startCaptionIndex:t,startOffset:a,anchor:o}=eG();(null==(e=n.current)?void 0:e.contains(o))&&o.nodeType===Node.TEXT_NODE&&(eO.recordCaretPosition([t,a],"selection-change"),p(t))}),C=(0,r.useEffectEvent)(()=>{if(!s||!o.length)return;let e=new AbortController,t={signal:e.signal};if(s&&a){var r,i;null==(r=n.current)||r.addEventListener("beforeinput",f,t),null==(i=n.current)||i.addEventListener("input",E,t),document.addEventListener("selectionchange",I,t);let e=o[0].paragraph.sentences.at(-1);e&&eU(e.index,e.fullClean.length)}else u.current=null,c.current=null;return()=>e.abort()});return(0,r.useEffect)(()=>C(),[s]),{handleRedo:T,handleUndo:S}}({transcriptDispatch:a,notepadTranscriptRef:o,canEditTranscript:i,paragraphs:y}),{show:f}=(0,ek.useToast)(),E=em(),I=ec(),C=eh(),v=eg(),b=(0,d.useRouter)(),[N]=(0,O.useMutation)(eD.SAVE_NOTES,{onError:e=>{eO.stopSaving(),f({title:e.message||"An error occurred while saving your edits",type:"error",hideClose:!0},{duration:1e4})}}),M=s===l.TRANSCRIPT_PROCESS_STATUS.COMPLETED,_=(0,r.useEffectEvent)(()=>{var e;if(!t||!(null==u?void 0:u.length))return;let n=null==(e=y[0])?void 0:e.paragraph.sentences.at(-1);eO.initialize(t,u,{paragraphMeta:c,sentenceMeta:p,speakerMeta:m,labelMeta:h,initialCaretPosition:n&&[n.index,n.fullClean.length]})}),A=(0,r.useEffectEvent)(()=>{eO.isIdle()||eO.finishEditing("cancel")});(0,r.useEffect)(()=>{if(!M&&E)return A();E||_()},[M,E]),(0,r.useEffect)(()=>(b.events.on("routeChangeStart",A),()=>{b.events.off("routeChangeStart",A)}),[b.events]);let R=(0,r.useCallback)(e=>{let t=eO.isSearching(),[n,o]=eO.getEdgeStates()[+("cancel"!==e)],{speakerMeta:r,labelMeta:i,...s}=o,u={captionsToShow:n,...s};if("save"===e&&(u.captions=n),t){let e=new Set([...g]);e.delete("is-search"),u.smartSearchFilters=e,u.searchMetadata=void 0}a({type:l.TRANSCRIPT_ACTIONS.SET_TRANSCRIPT_META,payload:u}).then(()=>{"save"===e&&f({title:"Transcript saved successfully",type:"success",hideClose:!0})}).catch(t=>{console.error(t);let n="save"===e?"Encountered an error after saving transcript":"Encountered an error while cancelling edit";f({title:`${n}. Please refresh the page.`,type:"error",hideClose:!0})}).finally(()=>{setTimeout(()=>{eO.finishEditing(e),t&&dispatchEvent(new CustomEvent(l.CUSTOM_EVENTS.CLEAR_TRANSCRIPT_SEARCH))},20)})},[f,g,a]);return{saveEdits:(0,r.useCallback)(async()=>{if(!eO.isEditing()&&!eO.isSearching())return f({title:F.NOT_IN_EDIT_MODE,type:"info",hideClose:!0});let[e,n]=eO.startSaving();if(!e)return f({title:F[n],type:"error",hideClose:!0});let{speakerMeta:a,labelMeta:o,...r}=n,i={meetingId:t,...r},s=[{query:eP.GetMeetingNoteAnalyticsDocument,variables:{parseId:t,forceCompute:!0}}],{errors:l}=await N({variables:i,refetchQueries:s});l||R("save")},[t,N,R,f]),cancelEdits:(0,r.useCallback)(()=>{if(!eO.isEditing()&&!eO.isSearching())return f({title:F.NOT_IN_EDIT_MODE,type:"info",hideClose:!0});R("cancel")},[R,f]),handleUndo:T,handleRedo:S,canUndo:C,canRedo:v,editStateManager:eO,savingEdits:I}}({meetingId:G,transcriptState:x,transcriptDispatch:J,notepadTranscriptRef:p,canEditTranscript:B});(0,r.useEffect)(()=>{var e;if(!G)return;let{audioServiceMetadata:t}=E,{silentMeeting:n}=t||{},a=!(null==E||null==(e=E.captions)?void 0:e.length),o=null==E?void 0:E.processMeetingStatus,r=null;o===ez.STARTED||o===ez.NOT_STARTED?r=l.NO_TRANSCRIPT_REASON.TRANSCRIBING:o===ez.FAILED?r=l.NO_TRANSCRIPT_REASON.TRANSCRIPTION_FAILED:n&&a?r=l.NO_TRANSCRIPT_REASON.SILENT_MEETING:Q===m.Tier.FREE&&a&&!y?r=l.NO_TRANSCRIPT_REASON.SHOULD_GO_PRO:a&&(r=l.NO_TRANSCRIPT_REASON.NOT_TRANSCRIBED),r&&(r!==l.NO_TRANSCRIPT_REASON.NOT_TRANSCRIBED||x.noTranscriptReason!==l.NO_TRANSCRIPT_REASON.TRANSCRIBING)&&J({type:l.TRANSCRIPT_ACTIONS.SET_NO_TRANSCRIPT_REASON,payload:{noTranscriptReason:r}})},[G,E,Q,J,y,x.noTranscriptReason]);let es=(0,r.useEffectEvent)(e=>{let t=e.detail;J({type:l.TRANSCRIPT_ACTIONS.TRANSCRIPT_PROCESSED_FINAL,payload:{captionsToShow:t.captionsToShow,captions:t.captionsToShow,visibleCaptions:t.visibleCaptions,allSpeakers:t.allSpeakers,speakerMeta:t.speakerMeta,labelMeta:t.labelMeta,sentenceMeta:t.sentenceMeta,paragraphMeta:t.paragraphMeta,topicMeta:t.topicMeta,speakerMetric:t.speakerMetric,sentiments:t.sentiments,aiFilters:t.aiFilters,topics:t.topics,customCategories:t.customCategories}})}),el=(0,r.useEffectEvent)(e=>{let t=e.detail;J({type:x.transcriptProcessStatus===l.TRANSCRIPT_PROCESS_STATUS.COMPLETED?l.TRANSCRIPT_ACTIONS.SPEAKERS_REPROCESSED:l.TRANSCRIPT_ACTIONS.TRANSCRIPT_PROCESSED_FINAL,payload:{captionsToShow:t.captionsToShow,captions:t.captionsToShow,visibleCaptions:t.visibleCaptions,allSpeakers:t.allSpeakers,speakerMeta:t.speakerMeta,labelMeta:t.labelMeta,sentenceMeta:t.sentenceMeta,paragraphMeta:t.paragraphMeta,topicMeta:t.topicMeta,speakerMetric:t.speakerMetric,sentiments:t.sentiments,aiFilters:t.aiFilters,topics:t.topics,customCategories:t.customCategories}})}),eu=(0,r.useEffectEvent)(e=>{let t=e.detail;x.transcriptProcessStatus!==l.TRANSCRIPT_PROCESS_STATUS.COMPLETED&&J({type:l.TRANSCRIPT_ACTIONS.TRANSCRIPT_PROCESSED_INCREMENTAL,payload:{captionsToShow:t.captionsToShow,captions:t.captionsToShow,visibleCaptions:t.visibleCaptions,allSpeakers:t.allSpeakers,speakerMeta:t.speakerMeta,labelMeta:t.labelMeta,sentenceMeta:t.sentenceMeta,paragraphMeta:t.paragraphMeta,topicMeta:t.topicMeta,speakerMetric:t.speakerMetric}})}),ep=(0,r.useEffectEvent)(e=>{(0,r.startTransition)(()=>{let t=e.detail;J({type:l.TRANSCRIPT_ACTIONS.TRANSCRIPT_SEARCH,payload:{captionsToShow:t.captionsToShow||[],smartSearchFilters:new Set([...H,"is-search"]),searchMetadata:t.searchMetadata}})})}),ey=(0,r.useEffectEvent)(e=>{var t;let n=null==(t=e.detail)?void 0:t.reason;J({type:l.TRANSCRIPT_ACTIONS.SET_NO_TRANSCRIPT_REASON,payload:{noTranscriptReason:n}})}),eS=(0,r.useEffectEvent)(e=>{let{aiFilters:t,captionsToShow:n}=e.detail||{};J({type:l.TRANSCRIPT_ACTIONS.SET_CAPTIONS_TO_SHOW,payload:{captionsToShow:n,aiFilters:t}})});(0,r.useEffect)(()=>{let e=new AbortController,t={signal:e.signal};return[{type:l.CUSTOM_EVENTS.TRANSCRIPT_PROCESSED_FINAL,handler:es},{type:l.CUSTOM_EVENTS.SPEAKERS_REPROCESSED,handler:el},{type:l.CUSTOM_EVENTS.TRANSCRIPT_PROCESSED_INCREMENTAL,handler:eu},{type:l.CUSTOM_EVENTS.SET_TRANSCRIPT_SEARCH_RESULT,handler:ep},{type:l.CUSTOM_EVENTS.UPDATE_TRANSCRIPT_PROCESSING_STATE,handler:ey},{type:l.CUSTOM_EVENTS.SET_CAPTIONS_TO_SHOW,handler:eS}
1202].forEach(function(e){window.addEventListener(e.type,e.handler,t)}),()=>e.abort()},[]),(0,r.useEffect)(()=>{let{attendeesNames:e,teamMemberNames:t}=T({team:K,speakerMetric:Y,speakerMeta:j,allSpeakers:V});J({type:l.TRANSCRIPT_ACTIONS.UPDATE_ATTENDEES,payload:{attendeesNames:e,teamMemberNames:t}})},[V,j,Y,K,J]),(0,r.useEffect)(()=>{X.current.puppetStates=(null==E?void 0:E.puppetStates)||[],(null==E?void 0:E.processMeetingStatus)===ez.COMPLETED&&I({})},[E,I]);let eT=(0,r.useMemo)(()=>({transcriptSentenceInFocusIdRef:a,notepadSoundbiteRef:o,notepadTranscriptRef:p,notepadTranscriptContentRef:g,transcriptState:x,transcriptDispatch:J,pendingTranscriptStateRef:X,saveEdits:Z,cancelEdits:ee,canRedo:et,canUndo:en,savingEdits:ea,handleRedo:eo,handleUndo:er,editStateManager:ei,activeTranscriptTab:P,setActiveTranscriptTab:D,canEditTranscript:B}),[x,Z,ee,et,en,ea,eo,er,ei,P,D,B,J]);return(0,s.jsx)(eX,{value:eT,children:t})},eZ=()=>(0,r.useContext)(eX),e0=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1;for(;n<=a;){let o=Math.floor((n+a)/2),r=e[o];if(r.index===t)return r;r.index<t?n=o+1:a=o-1}return e[0]},e1=(e,t)=>{let{end:n,start:a}=E(e,t),o=(null==e?void 0:e.length)?e[n]:{},r=t>((null==o?void 0:o.endTime)||0),i=t>=((null==o?void 0:o.endTime)||0)&&t<=((null==o?void 0:o.endTime)||0)||r?n:a;return{index:i,caption:(null==e?void 0:e.length)?e[i]:{}}
1202},e2=()=>{var e;let t=(0,r.useContext)(i.MeetingContext),n=null==t||null==(e=t.meeting)?void 0:e.captions,{notepadSoundbiteRef:a}=eZ();return{highlightCaptionAndScroll:(0,r.useCallback)(e=>{let t,{time:o,scroll:r}=e;if(!n)return;let i="open"===globalThis.sessionStorage.getItem("soundbiteEditorState"),s=i?a.current:document,l=null==s?void 0:s.querySelector(".in-focus"),u=Number(null==l?void 0:l.id.split("-")[0]);if(u>=0){let e=n[u],a=(null==e?void 0:e.time)||0,r=(null==e?void 0:e.endTime)||Number.MAX_SAFE_INTEGER;if((a<=o||0===u)&&r>o)return;let{time:i,endTime:s,index:l}=n[u+1]||{};i&&s&&i<=o&&s>o&&l&&(t=l)}if(!t){let{caption:e}=e1(n,o),{index:a}=e||{};t=a}let c=i?document.getElementById(`${t}-transcript-sentence-preview`):document.getElementById(`${t}-transcript-sentence`);if(null==c?void 0:c.classList.contains("in-focus")){r&&f(!1,c);return}null==l||l.classList.remove("in-focus"),null==c||c.classList.add("in-focus"),r&&f(!1,c)},[n,a])}}},27118,e=>{"use strict";e.s(["MeetingContext",()=>E,"MeetingProvider",()=>I,"useMeeting",()=>C]);var t=e.i(391398),n=e.i(191788),a=e.i(776204),o=e.i(432171),r=e.i(203828),i=e.i(561519),s=e.i(18961),l=e.i(358475),u=e.i(393485),c=e.i(878715),d=e.i(850461),p=e.i(660735),m=e.i(909583),h=e.i(706008),g=e.i(392919),y=e.i(99361),S=e.i(236808),T=e.i(582445);let{PROCESS_MEETING_STATUS:f}=c.enums,E=(0,n.createContext)({meeting:null,currentUserIsOwner:!1,currentUserIsAdminOfOwnerTeam:!1,isDemo:!0,isNonEnglishMeeting:!0,isTranscribedMeeting:!1,isRetranscribeLimitReached:!1,isMeetingInProcessingState:!1,loading:!1,refetchMeeting:async()=>{},reprocessMeeting:()=>{},reprocessSpeakers:()=>{}}),I=e=>{var c;let{children:I,meetingId:C,password:v,shareSlug:b}=e,N=(0,r.useRouter)(),M=(0,n.useRef)(null),_=(0,n.useRef)(null),A=C||(0,u.getMeetingNoteId)(null==(c=globalThis.location)?void 0:c.pathname),[R,w]=(0,n.useState)(!1),{isAdmin:O,teammates:P}=(0,h.useTeam)(),k=(0,g.useGrowthBook)().isOn(y.FEATURE_FLAGS.SMART_SEARCH_FILTER_REVAMP),[D,{called:$}]=(0,a.useMutation)(p.TRACK_TRANSCRIPT_VIEW,{onCompleted:e=>{if(!e)return;let{trackTranscriptView:t}=e;t&&(0,m.setCookie)("guestId",t,99999)},onError:e=>{console.error(e,"MeetingProvider:TRACK_TRANSCRIPT_VIEW")},errorPolicy:"none"}),{startPolling:x,stopPolling:L,data:U,loading:G,error:j,refetch:F}=(0,o.useQuery)(p.FETCH_NOTEPAD_MEETING,{skip:!A,variables:{meetingNoteId:A,...v&&{password:v},...b&&{shareSlug:b}},fetchPolicy:"no-cache"}),{currentUser:Y,isFreeUser:V}=(0,i.useUser)(),H=null==Y?void 0:Y._id,{data:q}=(0,o.useQuery)(d.GET_CATEGORIES,{fetchPolicy:"cache-and-network",variables:{skip:0,sourceIsNotepad:!0},skip:!H||V,onError(e){console.error(e,"MeetingProvider:GET_CATEGORIES")}}),W=(null==q?void 0:q.getCategories)||{},B=(0,n.useMemo)(()=>{var e;return(null==W||null==(e=W.nodes)?void 0:e.filter(e=>{var t;let{property:n}=e;return n.name&&(null==(t=n.subProperties)?void 0:t.length)}))||[]},[null==W?void 0:W.nodes]),z=(0,n.useCallback)(e=>{var t,n,a,o,r,i;let s={captions:(null==U||null==(t=U.meetingNote)?void 0:t.captions)||[],sentenceMeta:(null==U||null==(n=U.meetingNote)?void 0:n.sentenceMeta)||{},paragraphMeta:(null==U||null==(a=U.meetingNote)?void 0:a.paragraphMeta)||{},speakerMeta:(null==U||null==(o=U.meetingNote)?void 0:o.speakerMeta)||{},labelMeta:(null==U||null==(r=U.meetingNote)?void 0:r.labelMeta)||{},topicMeta:(null==U||null==(i=U.meetingNote)?void 0:i.topicMeta)||{},customCategories:B,isSmartSearchFilterRevampEnabled:k};return e&&(s.captions=e.captions||s.captions,s.speakerMeta=e.speakerMeta||s.speakerMeta,s.labelMeta=e.labelMeta||s.labelMeta,s.sentenceMeta=e.sentenceMeta||s.sentenceMeta,s.paragraphMeta=e.paragraphMeta||s.paragraphMeta,s.topicMeta=e.topicMeta||s.topicMeta),s},[B,U,k]),Q=(0,n.useCallback)(e=>{U&&B&&(0,l.processMeeting)(z(e))},[z,B,U]),K=(0,n.useCallback)(e=>{U&&B&&(0,l.reprocessSpeakers)(z(e))},[z,B,U]),X=!!(v&&b),J=(0,n.useMemo)(()=>{var e,t,n,a,o;return(null==U?void 0:U.meetingNote)&&{...null==U?void 0:U.meetingNote,speakerMeta:(null==U||null==(e=U.meetingNote)?void 0:e.speakerMeta)||{},sentenceMeta:(null==U||null==(t=U.meetingNote)?void 0:t.sentenceMeta)||{},paragraphMeta:(null==U||null==(n=U.meetingNote)?void 0:n.paragraphMeta)||{},isTranscriptOnly:(null==U||null==(a=U.meetingNote)?void 0:a.recordingPreference)==="transcript",isSummaryOnly:(null==U||null==(o=U.meetingNote)?void 0:o.recordingPreference)==="summary",...X&&{isGuestAccessEnabled:!0}}},[null==U?void 0:U.meetingNote,X]),Z=(0,n.useMemo)(()=>{var e,t;let n=null==U?void 0:U.meetingNote;return!(!n||![S.MEETING_SOURCE.AUTOPILOT_AGENT,S.MEETING_SOURCE.INTERNAL_AUTOPILOT_AGENT].includes(null==n?void 0:n.addedBy)||(null==n||null==(e=n.ownerProfile)?void 0:e.tier)&&(0,T.isPaidTier)(n.ownerProfile.tier))&&!(null==n||null==(t=n.ownerProfile)?void 0:t.canUseAICredits)},[null==U?void 0:U.meetingNote]),ee=(0,n.useMemo)(()=>{var e;let{audioServiceMetadata:t}=J||{};return!(null==t||null==(e=t.preferredLanguage)?void 0:e.startsWith("en"))},[J]),et=(0,n.useMemo)(()=>{let{email:e}=Y??{},{owner:t,creator_email:n}=J??{};return!!H&&(t===H||n===e)},[Y,J,H]),en=(0,n.useMemo)(()=>{var e;let{owner:t,creator_email:n}=J??{},a=!!(null==P||null==(e=P.find(e=>(null==e?void 0:e.email)===n||(null==e?void 0:e._id)===t))?void 0:e.id);return O&&a},[J,P,O]),ea=(0,n.useMemo)(()=>{let e=null==J?void 0:J.retranscribeCount;return null!=e&&e>=3},[null==J?void 0:J.retranscribeCount]),eo=(0,n.useMemo)(()=>{let e=null==J?void 0:J.processMeetingStatus;return null!=e&&[f.STARTED,f.NOT_STARTED].includes(e)},[null==J?void 0:J.processMeetingStatus]),er=(0,n.useMemo)(()=>(null==J?void 0:J.processMeetingStatus)===f.COMPLETED&&(null==J?void 0:J.hasCaptions),[null==J?void 0:J.processMeetingStatus,null==J?void 0:J.hasCaptions]),ei="string"==typeof N.query.globalSearchSource?N.query.globalSearchSource:void 0;(0,n.useEffect)(()=>{let e=(0,m.getCookie)("guestId");A&&!$&&N.isReady&&D({variables:{meetingId:A,...e?{guestId:e}:{},...ei?{globalSearchSource:ei}:{}}})},[$,A,D,N.isReady,ei]),(0,n.useEffect)(()=>{!R&&eo?(x(5e4),w(!0)):eo||(L(),w(!1))},[x,L,eo,R]);let es={notepadRef:M,layoutRef:_,meeting:J||null,currentUserIsOwner:et,currentUserIsAdminOfOwnerTeam:en,isRetranscribeLimitReached:ea,isDemo:(0,s.isDemoMeeting)()&&!et,isNonEnglishMeeting:ee,isTranscribedMeeting:er??!1,isMeetingInProcessingState:eo,reprocessMeeting:Q,reprocessSpeakers:K,refetchMeeting:F,loading:G,showAgentMeetingPaywall:Z,errorMessage:j&&(j.message.includes("PERMISSION_DENIED")?"Permission Denied":"Not Found")};return(0,t.jsx)(E.Provider,{value:es,children:I})},C=()=>(0,n.useContext)(E)},870201,e=>{"use strict";e.s(["addClassesToSmartSearch",0,(e,t,n,a,o)=>{let r=[],{topicHighlights:i}=t;return null==i||i.map(t=>{let{highlightedSentences:i,topic:s}=t,l=null==i?void 0:i.map(e=>e.captionIndex),u=n[s],c=a[u];r.push(`${c} \xb7 ${i.length}`),(null==i?void 0:i.length)>0&&(null==l||l.map(t=>{let n=o(e,Number(t));if(n){let t=e[Number(n.index)];t.classNames.includes(u)||t.classNames.push(u)}}))}),{captions:e,aiFilters:r}},"captionsIntialBatchSize",0,50,"categoryToDisplayName",0,e=>({Nouns:"General Topics",People:"Names","Money Value":"Pricing",Topics:"Key Topics","Consecutive Nouns":"Key Topics",Numbers:"Metrics","Numbered Nouns 1":"Metrics",Dates:"Date & Time","Fireflies Mentions":"Voice Commands","Ums & Ahs":"Pauses (Ums & Ahs)"})[e]||e,"classMap",0,{"is-task":"Tasks","is-metrics":"Metrics","is-pricing":"Pricing","is-question":"Questions","is-topics":"Key Topics","is-date":"Date & Time","is-positive-sentiment":"Positive","is-negative-sentiment":"Negative","is-neutral-sentiment":"Neutral"},"computeClassNames",0,(e,t)=>
1202{e.forEach(e=>{let n=(t[e]||0)+1;t[e]=n})},"highlightCaptionMatch",0,e=>{let{matches:t="",className:n,caption:a,customPattern:o="",isSearch:r=!1,totalMatches:i}=e,{fullClean:s}=a;Array.isArray(t)&&(t=t.join("|"));let l=o||`${t.replace(/\\/g,"\\\\").replace(/(\$|\?)/g,"\\$1").replace(/></g,".*").replace(/(\w)(s|ll|re|m)\b/gi,"$1('|\")?$2").replace(/\s/g,"\\W*")}`;try{let e=RegExp(l,"gi");a.sentenceMap??(a.sentenceMap=new Map),s.replace(e,function(t){for(var o=arguments.length,l=Array(o>1?o-1:0),u=1;u<o;u++)l[u-1]=arguments[u];let c=l[l.length-2],d=c+t.length,p=a.sentenceMap.get(`${c} ${d}`);if(p){let e=a.classNames.indexOf(p.className);a.classNames.splice(e,1,n)}else a.classNames.push(n);if(r||s[c-1]&&s[d]&&!r){let o=a.sentenceMap.get(`${c} ${d}`),l={className:n,match:t,sentence:s,search:e};(null==o?void 0:o.id)?l.id=o.id:r&&i&&(l.id=`${i.value++}`),a.sentenceMap.set(`${c} ${d}`,l)}return""})}catch(e){console.error(e,"highlightCaptionMatch")}return a},"highlightSentenceMatch",0,e=>{let{className:t,caption:n}=e,{sentence:a}=n||{};if(n.sentenceMap??(n.sentenceMap=new Map),a){let e=0+a.length;n.sentenceMap.set(`0 ${e}`,{className:t,match:a,sentence:a})}return n},"labelSpeakersInWorkerThread",0,(e,t,n,a)=>(e.forEach(e=>{(t[e]||[]).forEach(t=>{t===n&&(a.newSpeakerId=Number(e))})}),a),"matchesCategory",0,(e,t,n)=>{let{metrics:a}=e;if(!(null==a?void 0:a.length))return!1;let o={Metrics:"is-metrics",Pricing:"is-pricing","Key Topics":"is-topics","Date & Time":"is-date"},r=[],i=["today",'today"s',"now","day","do you","fireflies"];["Pricing","Key Topics","Date & Time","Metrics"].forEach(s=>{let l=[],u=o[s];a.forEach(e=>{let{word:n,category:a}=e;!n||r.includes(n)||l.includes(n)||i.includes(n)||s===(a=t(a))&&(r.push(n),l.push(n))}),l.length&&n({matches:l,className:u,caption:e})})},"matchesCustomCategory",0,(e,t,n)=>{let a={};for(let i of t||[]){var o,r;let t=((null==i||null==(o=i.property)?void 0:o.subProperties)||[]).map(e=>e.replace(/[^\p{L}0-9,@| ]/gu,"")).join("|"),s=`(?<!\\w)(${t})(?!\\w)`,l=a[s];l||(l=RegExp(s,"ig"),a[s]=l),l.test(e.fullClean)&&n({className:`is-custom-${null==i||null==(r=i.property)?void 0:r.name}`,caption:e,customPattern:l})}},"punctuateSentence",0,e=>RegExp("[\\?\\.!,;]$","u").test(e)?`${e} `:RegExp("[\\p{L}\\d_]\\s+$","u").test(e)?`${e.trimEnd()}. `:e,"smartSearchMap",0,{tasks:"is-task",metrics:"is-metrics",pricing:"is-pricing",questions:"is-question",date:"is-date",topics:"is-topics"}])},108076,(e,t,n)=>{"use strict";var a,o,r,i=e.e&&e.e.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,o)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),s=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t};Object.defineProperty(n,"__esModule",{value:!0}),n.useGetWeeklyUsageLazyQuery=n.useGetWeeklyUsageQuery=n.GetWeeklyUsageDocument=n.useGetTopicInsightsLazyQuery=n.useGetTopicInsightsQuery=n.GetTopicInsightsDocument=n.useGetRewindDataLazyQuery=n.useGetRewindDataQuery=n.GetRewindDataDocument=n.useGetMeetingNoteAnalyticsLazyQuery=n.useGetMeetingNoteAnalyticsQuery=n.GetMeetingNoteAnalyticsDocument=n.useGetComparedMeetingNotesAnalyticsLazyQuery=n.useGetComparedMeetingNotesAnalyticsQuery=n.GetComparedMeetingNotesAnalyticsDocument=n.useGetComparedMeetingAnalyticsLazyQuery=n.useGetComparedMeetingAnalyticsQuery=n.GetComparedMeetingAnalyticsDocument=n.useDeleteAnalyticsViewMutation=n.DeleteAnalyticsViewDocument=n.useUpdateAnalyticsViewMutation=n.UpdateAnalyticsViewDocument=n.useCreateAnalyticsViewMutation=n.CreateAnalyticsViewDocument=n.useGetAnalyticsViewsLazyQuery=n.useGetAnalyticsViewsQuery=n.GetAnalyticsViewsDocument=n.UserTier=n.AnalyticsViewOperator=n.AnalyticsViewLogicalOperator=void 0;let u=e.r(325793),c=l(e.r(325793)),d={};(a=n.AnalyticsViewLogicalOperator||(n.AnalyticsViewLogicalOperator={})).And="AND",a.Or="OR",(o=n.AnalyticsViewOperator||(n.AnalyticsViewOperator={})).Contains="CONTAINS",o.Equals="EQUALS",o.GreaterThan="GREATER_THAN",o.GreaterThanOrEqual="GREATER_THAN_OR_EQUAL",o.LessThan="LESS_THAN",o.LessThanOrEqual="LESS_THAN_OR_EQUAL",o.NotContains="NOT_CONTAINS",o.NotEquals="NOT_EQUALS",(r=n.UserTier||(n.UserTier={})).Business="business",r.Free="free",r.Pro="pro",n.GetAnalyticsViewsDocument=(0,u.gql)`
1203    query getAnalyticsViews {
1204  analyticsViews {
1205    id
1206    name
1207    teamId
1208    conditions {
1209      property
1210      operator
1211      value
1212    }
1213    logicalOperator
1214  }
1215}
1216    `,n.useGetAnalyticsViewsQuery=function(e){let t={...d,...e};return c.useQuery(n.GetAnalyticsViewsDocument,t)},n.useGetAnalyticsViewsLazyQuery=function(e){let t={...d,...e};return c.useLazyQuery(n.GetAnalyticsViewsDocument,t)},n.CreateAnalyticsViewDocument=(0,u.gql)`
1217    mutation createAnalyticsView($name: String!, $conditions: [AnalyticsViewConditionInput!]!, $logicalOperator: AnalyticsViewLogicalOperator!) {
1218  createAnalyticsView(
1219    name: $name
1220    conditions: $conditions
1221    logicalOperator: $logicalOperator
1222  ) {
1223    id
1224    name
1225    conditions {
1226      property
1227      operator
1228      value
1229    }
1230    logicalOperator
1231  }
1232}
1233    `,n.useCreateAnalyticsViewMutation=function(e){let t={...d,...e};return c.useMutation(n.CreateAnalyticsViewDocument,t)},n.UpdateAnalyticsViewDocument=(0,u.gql)`
1234    mutation updateAnalyticsView($id: ID!, $name: String!, $conditions: [AnalyticsViewConditionInput!]!, $logicalOperator: AnalyticsViewLogicalOperator!) {
1235  updateAnalyticsView(
1236    id: $id
1237    name: $name
1238    conditions: $conditions
1239    logicalOperator: $logicalOperator
1240  ) {
1241    id
1242    name
1243    conditions {
1244      property
1245      operator
1246      value
1247    }
1248    logicalOperator
1249  }
1250}
1251    `,n.useUpdateAnalyticsViewMutation=function(e){let t={...d,...e};return c.useMutation(n.UpdateAnalyticsViewDocument,t)},n.DeleteAnalyticsViewDocument=(0,u.gql)`
1252    mutation deleteAnalyticsView($id: ID!) {
1253  deleteAnalyticsView(id: $id)
1254}
1255    `,n.useDeleteAnalyticsViewMutation=function(e){let t={...d,...e};return c.useMutation(n.DeleteAnalyticsViewDocument,t)},n.GetComparedMeetingAnalyticsDocument=(0,u.gql)`
1256    query getComparedMeetingAnalytics($startTime: DateTime, $endTime: DateTime, $compareToDays: Int, $viewFilter: AnalyticsViewFilterInput) {
1257  comparedMeetingAnalytics(
1258    startTime: $startTime
1259    endTime: $endTime
1260    compareToDays: $compareToDays
1261    viewFilter: $viewFilter
1262  ) {
1263    startTime
1264    endTime
1265    compareToDays
1266    teamStats {
1267      count
1268      countDiffPct
1269      averageCount
1270      averageCountDiffPct
1271      duration
1272      durationDiffPct
1273      averageDuration
1274      averageDurationDiffPct
1275    }
1276    teammates {
1277      user {
1278        id
1279        email
1280        name
1281        picture
1282        parseUserId
1283      }
1284      startTime
1285      endTime
1286      meetingsStats {
1287        count
1288        countDiff
1289        countDiffComparedTo
1290        countDiffPct
1291        duration
1292        durationDiff
1293        durationDiffComparedTo
1294        durationDiffPct
1295      }
1296      totalParticipants
1297      participantsInDomain
1298      participantsOutOfDomain
1299      participantsInteracted {
1300        email
1301        count
1302        duration
1303      }
1304    }
1305  }
1306}
1307    `,n.useGetComparedMeetingAnalyticsQuery=function(e){let t={...d,...e};return c.useQuery(n.GetComparedMeetingAnalyticsDocument,t)},n.useGetComparedMeetingAnalyticsLazyQuery=function(e){let t={...d,...e};return c.useLazyQuery(n.GetComparedMeetingAnalyticsDocument,t)},n.GetComparedMeetingNotesAnalyticsDocument=(0,u.gql)`
1308    query getComparedMeetingNotesAnalytics($startTime: DateTime, $endTime: DateTime, $compareToDays: Int, $viewFilter: AnalyticsViewFilterInput) {
1309  comparedMeetingNotesAnalytics(
1310    startTime: $startTime
1311    endTime: $endTime
1312    compareToDays: $compareToDays
1313    viewFilter: $viewFilter
1314  ) {
1315    startTime
1316    endTime
1317    compareToDays
1318    teamStats {
1319      teammatesCount
1320      totalMeetingsCount
1321      totalMeetingNotesCount
1322      totalQuestions
1323      totalQuestionsDiffPct
1324      totalFillerWords
1325      totalFillerWordsDiffPct
1326      totalMonologuesCount
1327      totalMonologuesDiffPct
1328      longestMonologueDurationSec
1329      longestMonologueDurationDiffPct
1330      totalSilenceDuration
1331      totalSilenceDurationDiffPct
1332      averageQuestions
1333      averageQuestionsDiffPct
1334      averageFillerWords
1335      averageFillerWordsDiffPct
1336      averageMonologuesCount
1337      averageMonologuesCountDiffPct
1338      averageSilenceDuration
1339      averageSilenceDurationDiffPct
1340      averageTalkListenRatio
1341      averageWordsPerMinute
1342      averageSentiments {
1343        negative
1344        neutral
1345        positive
1346        negativePct
1347        neutralPct
1348        positivePct
1349      }
1350    }
1351    teammates {
1352      user {
1353        id
1354        email
1355        name
1356        picture
1357        parseUserId
1358      }
1359      startTime
1360      endTime
1361      meetingsCount
1362      meetingNotesCount
1363      sentiments {
1364        negative
1365        neutral
1366        positive
1367        negativePct
1368        neutralPct
1369        positivePct
1370      }
1371      analytics {
1372        talkListenPct
1373        talkListenRatio
1374        totalSilenceDuration
1375        totalSilenceDurationCompareTo
1376        totalSilencePct
1377        totalSilenceRatio
1378        totalSpeakDuration
1379        totalSpeakDurationWithUser
1380        totalWordCount
1381        userFillerWords
1382        userFillerWordsCompareTo
1383        userFillerWordsDiffPct
1384        userLongestMonologueCompareTo
1385        userLongestMonologueDiffPct
1386        userLongestMonologueSec
1387        userMonologuesCount
1388        userMonologuesCountCompareTo
1389        userMonologuesCountDiffPct
1390        userQuestions
1391        userQuestionsCompareTo
1392        userQuestionsDiffPct
1393        userSpeakDuration
1394        userWordCount
1395        userWordsPerMinute
1396        userWordsPerMinuteCompareTo
1397        userWordsPerMinuteDiffPct
1398      }
1399    }
1400  }
1401}
1402    `,n.useGetComparedMeetingNotesAnalyticsQuery=function(e){let t={...d,...e};return c.useQuery(n.GetComparedMeetingNotesAnalyticsDocument,t)},n.useGetComparedMeetingNotesAnalyticsLazyQuery=function(e){let t={...d,...e};return c.useLazyQuery(n.GetComparedMeetingNotesAnalyticsDocument,t)},n.GetMeetingNoteAnalyticsDocument=(0,u.gql)`
1403    query getMeetingNoteAnalytics($parseId: ID!, $forceCompute: Boolean) {
1404  meetingNoteAnalytics(parseId: $parseId, forceCompute: $forceCompute) {
1405    duration
1406    sentiments {
1407      negative
1408      neutral
1409      positive
1410      negativePct
1411      neutralPct
1412      positivePct
1413    }
1414    speakers {
1415      speakerId
1416      duration
1417      wordCount
1418      durationPct
1419      wordsPerMinute
1420      longestMonologue
1421      monologuesCount
1422    }
1423    categories
1424  }
1425}
1426    `,n.useGetMeetingNoteAnalyticsQuery=function(e){let t={...d,...e};return c.useQuery(n.GetMeetingNoteAnalyticsDocument,t)},n.useGetMeetingNoteAnalyticsLazyQuery=function(e){let t={...d,...e};return c.useLazyQuery(n.GetMeetingNoteAnalyticsDocument,t)},n.GetRewindDataDocument=(0,u.gql)`
1427    query getRewindData {
1428  rewindData {
1429    id
1430    durationMin
1431    calendarDurationMin
1432    meetingCount
1433    calendarMeetingCount
1434    mostOccurringParticipant {
1435      meetingCount
1436      userEmail
1437      user {
1438        id
1439        email
1440        name
1441        picture
1442        parseUserId
1443      }
1444    }
1445    mostOccurringDayOfWeek {
1446      dayOfWeek
1447      meetingCount
1448      percentageOfMeetings
1449    }
1450    mostOccurringMonth {
1451      month
1452      meetingCount
1453    }
1454    mostOccurringWeek {
1455      weekNo
1456      meetingCount
1457    }
1458    mostOccurringDay {
1459      date
1460      meetingCount
1461    }
1462    wordsPerMinute
1463    talkListenRatio
1464    globalMostOccurringDayOfWeek
1465    globalMostOccurringMonth
1466    globalTalkToListenRatio
1467    globalWordsPerMinute
1468    user {
1469      id
1470      name
1471      picture
1472      parseUserId
1473    }
1474  }
1475}
1476    `,n.useGetRewindDataQuery=function(e){let t={...d,...e};return c.useQuery(n.GetRewindDataDocument,t)},n.useGetRewindDataLazyQuery=function(e){let t={...d,...e};return c.useLazyQuery(n.GetRewindDataDocument,t)},n.GetTopicInsightsDocument=(0,u.gql)`
1477    query getTopicInsights($startTime: DateTime, $endTime: DateTime, $viewFilter: AnalyticsViewFilterInput) {
1478  getTopicInsights(
1479    startTime: $startTime
1480    endTime: $endTime
1481    viewFilter: $viewFilter
1482  ) {
1483    startTime
1484    endTime
1485    topics {
1486      topic
1487      conversations
1488      mentions
1489      keywords {
1490        topic
1491        subtopic
1492        conversations
1493        mentions
1494      }
1495    }
1496    teammates {
1497      user {
1498        id
1499        email
1500        name
1501        picture
1502        parseUserId
1503      }
1504      startTime
1505      endTime
1506      meetingsCount
1507      meetingNotesCount
1508      topics {
1509        topic
1510        conversations
1511        mentions
1512        keywords {
1513          topic
1514          subtopic
1515          conversations
1516          mentions
1517        }
1518      }
1519    }
1520  }
1521}
1522    `,n.useGetTopicInsightsQuery=function(e){let t={...d,...e};return c.useQuery(n.GetTopicInsightsDocument,t)},n.useGetTopicInsightsLazyQuery=function(e){let t={...d,...e};return c.useLazyQuery(n.GetTopicInsightsDocument,t)},n.GetWeeklyUsageDocument=(0,u.gql)`
1523    query getWeeklyUsage($year: Int, $weekNo: Int) {
1524  weeklyUsage(year: $year, weekNo: $weekNo) {
1525    durationMinCount
1526    meetingCount
1527    from
1528    to
1529  }
1530}
1531    `,n.useGetWeeklyUsageQuery=function(e){let t={...d,...e};return c.useQuery(n.GetWeeklyUsageDocument,t)},n.useGetWeeklyUsageLazyQuery=function(e){let t={...d,...e};return c.useLazyQuery(n.GetWeeklyUsageDocument,t)}},328828,(e,t,n)=>{"use strict";var a=e.e&&e.e.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var o=Object.getOwnPropertyDescriptor(t,n);
1531(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,o)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),o=e.e&&e.e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),o(e.r(108076),n)},448327,(e,t,n)=>{"use strict";function a(e){return e.replace(/\b((uh+|um+|hm+|ah+)(?!\w)(\W?))/gi,"")}function o(e){return e&&/\w/g.test(e)?i(e=(e=l(e=u(e=a(e)))).replace(/,,/g,",")):e}function r(e,t){return t.length-e.length}function i(e){return e.replace(/\s+/g," ")}function s(e){var t;return e&&/\w/g.test(e)?i((null==(t=e[0])?void 0:t.toUpperCase())+e.substring(1)):e}function l(e){return e&&/\w/g.test(e)?e.replace(/<inaudible>(\W?)/g,""):""}function u(e){let t;if(!e||!/\w/g.test(e))return e;e=i(e);let n=/\s(([\w'-]\s?){2,}),?\s,?\1/gi;for(;t=n.exec(e);)t&&t[1]&&(e=e.split(t[0].trim()).join(t[1].trim()));return e}function c(e){return e&&/\w/g.test(e)?e=(e=(e=(e=(e=(e=e.split("kind of want").join("want")).split(" i ").join(" I ")).split(" i'm ").join(" I'm ")).split(" i've ").join(" I've ")).split(" i'd ").join(" I'd ")).split(" we was ").join(" we were "):e}function d(e,t){if(!e||!/\w/g.test(e))return;if(e=a(e=i(e)),t||e.split(" ").length<8)return e;let n=["kind of like","a little bit","maybe like","you know","sort of","start having like to"].sort(r);n=n.concat(n.map(e=>s(e))).sort(r);for(let t=0;t<n.length;t++){let a=n[t];"you know"===a.toLowerCase()&&(e.toLowerCase().includes("let you know")||e.toLowerCase().includes("you know that"))||(e=i(e.split(a.trim()).join("")))}return c(e)}function p(e,t){let n;if(!e||!/\w/g.test(e))return e;for(e=e.split(" , ").join(" ").trim();e.startsWith(",");)e=e.substring(1).trim();let a=u(e=d(e,!0)||e);if(a&&(e=a),!t){(a=h(e))&&(e=a);let t=5;do n=e,e=h(e)||e;while(n!==e&&e.length>5&&--t>0)}for(a=d(e)||e,e=(e=i(e.replace(/,,/g,","))).split(" , ").join(" ").trim();e.startsWith(",");)e=e.substring(1).trim();return l(e)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];try{if(t&&t.length||(t=["You can also visit link dot goto meeting.com/contact for support code six good does inbound you entered no digits","for support code six good does inbound you entered no digits","We aren't receiving your number entry due to a possible issue with your phone carrier","We aren't receiving your number entry","You can also visit link dot goto meeting.com/contact for support code six goodbye","You can also visit link dot goto meeting.com/contact","Please hang up and dial another provided phone number for try dialing from another phone","Please hang up and dial another provided phone number","You can also visit link dot goto meeting.com/contact for support code six goodbye","visit link dot goto meeting.com/contact for support code six","Please hang up and dial another provided phone number for try dialing from another phone","You can also visit link dot goto meeting.com/contact for support code six good bumped no digits","You can also visit link dot goto meeting.com/contact","You can also visit link dot goto meeting.com/contact for support","You can also visit link dot goto meeting.com/contact for support code six good, but you entered as you entered no digits","you entered as you entered no digits","Four four, four, four, four, four., Your call cannot be completed as dialed","I'm dialing again when you were five to when I call cannot be completed as dialed","To reach you guest on floor 10 simply press the room number to reach your guests on floors two through nine press seven plus the room number","To reach you guest on floor 10 simply press the room number to reach your guest on floors two through nine press seven plus the room number","To reach you guest on floor 10 simply press the room number to reach a guest on floors two through nine press seven plus the room number to reach you guest on floor 10 simply press the room number","to reach a guest on floors two through nine press seven plus the room number to reach you guest on floor 10 simply press the room number","To reach you guest on floor 10 simply press the room number to reach a guest on floors two through nine press seven plus the room number to reach","To reach you guest on floor 10 simply press the room number to reach a guest on floors two through nine press seven plus the room number","To reach you guest on floor 10 simply press the room number to reach your guests","press the room number to reach your guests on floors","To reach a guest on floor 10 simply press the room number to reach your guest on floors","Two through nine press seven plus the room number to reach you guest on floor 10 simply press the room number","You guessed on floor 10 simply press the room number","Nine room number to reach against on floor 10 simply press the wrong number to reach against on floors two through nine press seven plus the room number","press the wrong number to reach against on floors two through nine","Try again to reach against on floors two through nine press seven plus the room number","You were the first participant on the super conference","This conference call holding on my phone","Now bill, well, my friend, just way, no, Ms Conference call all alone and I'm on","Where did they be waiting on this conference call? Holding on my phone","We allow one where they have gone on this conference call holding on my phone","Oh let me tell y'all a story about a man I was on hold all day","Well, my friend just way known this conference call all alone","Your call has been forwarded to an automatic voice message system","We did not get your message either because you were not speaking or because of a bad connection","Try to pick up signal, but for some reason that doesn't seem to be going through.","Yeah we did not get your message either because you were not speaking or because of a bad connection","Oh, it's been forwarded to an automatic voice message system","Hello I don't know 
1531why the audio is not picking up, but I still can't hear you","Two through nine press seven plus the room number to reach you guessed on floor 10 simply press the room number","One of our friendly representatives will return to your call in just a moment.","Please hold the line and one of our experienced personnel will be with you shortly.","One of our friendly representatives will return to your call in just a moment.","One of our friendly representatives will return to your call in just a moment","Our philosophy and goal is 100% customer satisfaction","Please hold the line and one of our experienced personnel will be with you shortly","Please call toll free (800) 712-6600 that number again is (800) 712-6600 please call","Please allow up to 12 hours for our systems to update answering our questions","Are you still there to just use pressed and encourage key to disconnect, press one","Are you still there to disconnect? Use pressed and increment to disconnect","Are you still there? To disconnect, to use Preston incorrect key","To record your message key, To disconnect, press one","Use pressed and increment to disconnect","Are you still there? To disconnect, to use Preston incorrect key","To record your message key, To disconnect, press one","To record your message, just an incorrect G","about a man who was on hold all day","and this was one of the worst now this","three participants in the conference","participants in the conference","You are the last party in the conference","last party in the conference","in the ring central meeting Now","You can not listen or talk until the host releases","can not listen or talk until","not joining the meeting Please hold","please hold","not joining the meeting","Deleting has not yet started","has not yet started please try again","has not yet started","please try again","or stay on the line","The leader to admit you to the meeting thank you for your patience","Sorry I can't seem to connect you to your meeting right now","This meeting has been locked by the host","muted to unmute yourself, Push Star then three","muted to unmute yourself","Push Star then three","We apologize for the inconvenience, Goodbye","for the inconvenience, Goodbye","Please wait for the leader to admit you to the meeting","The leader has not yet joined the meeting","try again later, or you might have the organizer whether you're meeting","might have the organizer whether you're meeting","You are participant id followed by pound","If you feel you have reached this recording in error, please check the area code and the number and try your call again","please check the area code and the number and try your call again","If you feel you have reached this recording in error","id followed by pound, Otherwise just press pound to continue","Enter your meeting id followed by the pound","Enter your meeting id","followed by the pound","You have the call but you are the","you are the, only one here","You have the call but you are the, only one here.","Sorry guys I cannot hear you","this call will be disconnected, Please dial in again","Please dial in again","this call will be disconnected","we're the only one here., Okay.","hang up and try again.","you have joined the Combo, You are the only one here.","you have joined the Combo","You are muted, you can mute or onion yourself by pressing star 6.","you can mute or onion yourself by pressing star 6.","yourself by pressing star 6","You are muted, you can mute","You have been removed from the call, goodbye","You have been removed from the call","Please enter your password then press pound","Send to your meeting id followed by the pound","meeting id followed by the pound","sorry you are having trouble, Key to disconnect press one.","Are you still there to disconnect press one?","One to record your message press too., Are you still there","One to record your message press too","Sorry you were having trouble","Disconnect press one to record your message press too","Connect press one to record your message press too.","you pressed and incorrect key to disconnect","To disconnect press one to record your message press too.","Sorry you are having trouble, To disconnect press one to record your message press too.","call has been forwarded to an automated voice messaging system","send to your meeting id followed by the pound","Otherwise just press pound to continue","Sorry, you have reached a number that has been disconnected or is no longer in service","number that has been disconnected or is no longer in service","is no longer in service","Just press pound to continue","this meeting is being recorded, You have been put on hold by the host","y
1531ou have been put on hold by the host","We will now connect you to your call, Your host has yet to join","Your host has yet to join","We will now connect you to your call","Please confirm the scheduled time","and conference code then try again","this meeting is being recorded","You are the only participant","stay on the line to be connected","enter your participant id","Your call will be connected when you enter the pen","will be connected when you enter","you do not have a pin, just press pound or hash","please enter your audio pin followed","enable audio controls please enter","followed by the pound or hash sign","one other participant in the conference","Please check the number and try","young man did not hang up the telephone and you guess","at the tone please record your message","finished recording you may hang up or press","press 1 to listen to your message press 2 to erase and rerecord press 3 to continue","sorry you're having trouble your message has been sent goodbye","the beep and I'll return your call","are you still there to disconnect press one to record your message press 2","continue recording where you left off press 4","where you left off press 4","your conference is ending now as requested by the host please hang up","are the only participant in the conference"," can you hear me","Sorry you were having trouble","Please try again later","Everyone else has left a call.","followed by the pound key","Welcome to Hangouts","enter the meeting","Didn't receive any input good bye","participant id folder by pound","stay on the line to be connected automatically","are the only participant in this conference","You went up sequoia, what do you do better? How do you better? Well, I don't know","You have been put on hold by the host","You can not listen or talk until the host releases the hold","until the host releases the hold","let me tell you a story about a man who was on hold all day","hear that I'm wrong and maybe he did it there's just no way for me to say","I have seen some on old time tonight day yes I hav","I've been waiting on my friend just waiting on this conference call","we are waiting for the moderator to arrive please stand by","Connected to your conference ","Yes I have seen some on hold time to my day","yes I have and this was one of the worst","You got to stay in your home","yes I have seen some on whole time to my day yes I have","well I've been sitting here all day","you will be joined into the conference","the only participants in the conference","Host the meeting has not started please stay on the line","the meeting has not started","please stay on the line","Over 10 participants in the meeting","first meeting is now","Otherwise just press pound","Your call cannot be completed as dialed please check the number and dial again","please check the number and dial again","Your call cannot be completed as dialed","it looks like no one else is going to join this call","one else is going to join this call","You have joined the call but you were","You have joined the call","You have joined the economy","you are the only one here","By the pound or hash sign","You were the first participate","This free conference call is provided by","participants in the meeting","You are the host press star","Well I wonder where they are you my friend","Yes I have seen some on old time to my day yes I have","Otherwise just press pound to continue","You are in the meeting now","There are three participants in the meeting","press 1 to accept this recording","press 3 to record your message","press 4 to mark this message as urgent","There are one participants in the meeting","This meeting is now being recorded","This call is provided by Uber Conference","Or unmute Yourself by pressing","Enter your participant ID followed by pound","Otherwise, just press pound to continue","You are the first participant","participant Please stand by","There are two participants in the conference","This conference is being recorded by the organizer","I hope it's not all one way of my friends have gone","I have seen some long hold times in my day","while I'm waiting on this conference call","Sit here all day out The way","please hold while we wait for the others to join","All of my friends have gone","On my phone? Yes, I'm on hold","And you guess what happened? Yeah","Yeah That call began","And this was one of the worst Now this young","this young man did not hang up the telep
1531hone","To rerecord your message, press four","To mark this message as urgent, press one","Thank you press 1 to accept this recording press","To accept this recording, press two To listen to it","You are the only in the conference","See you one up what do you do better how do you better well","If you are the host press star now","press star now","I hope it's not all day All my friends have gone","Where could they be waiting on this conference call","maybe he had the time wrong and maybe he didn't","Sit here all day in this way","I hope it's not all one way or my friends have gone","just waiting on this conference call all alone","Sitting here all day sitting in this","all a one way of my friends have gone","Oh, hope it's not all day","There's just no way for me to say","yes I have seen some long hold times in my day","And this was one of the worst","Now this young man did not hang up the telephone","hope it's not all my friends have gone","Stay on hold you gotta Stay on hold","Holding on my phone? Yes I don't know","Stay on hold you gotta Stay on hold","Just waiting on this conference call","Sit here all day, friend","your participant id followed by pound","This call is being recorded","all day waiting on this conference call","I hope it's not all day","There's just no way for me say yes I have seen some long hold times in my day","I hope it's not a one way of my friends have gone","The meeting has not yet started please try again","The meeting has not yet started","You have joined the call, but you are the only one here","you are the only one here","have joined the call but you were the only one here","you are the first purchase Ventanas Uber conf","please hold while we wait for the others to join","if you make you happy and be long-term and you probably will travel from the bottom to the top","because it's all about Ben and it's all about","because it's All About That Bass","we know it's got a job to make you happy and think long-term","show me to tell you that I do love you baby","You are in the ring central meeting now","There are two participants in the meeting","Sit here all day sitting in this way Oh, one way or my friends have gone","Oh, one way or my friends have gone","Hope it's not all one way or my friends have gone today","Be Waiting on this conference call Oh, I hope it's not all day","That call began that call Stay on","My friends have gone on my phone Yes","My friends, could they be on this conference call on my phone? Yes","I hope it's not day","Be Waiting on this conference call phone? Yes","I have seen some long hold on the Monday","Got to stay on the whole sit here all day","I've sitting in this waiting room","One way of my friends have gone","call is provided by Uberconference","The organizer has ended this conference ","Please wait for your conference to begin","The leader has not yet arrived ","Please stand by","Call is provided by Uberconference Joining Conference","Please wait for your conference to begin","The leader has not yet arrived Please stand by","Welcome to the message center","Please enter the mailbox number or wait","please leave your name","the name of the person you are calling and a message","you may start your message now","To return to the attendant, nothing recorded","Pound to dial an extension","zero to deliver your message and returned to the attendant","I will repeat these instructions in a moment","Pound to dial an extension zero","To deliver your message and return to the attendant, press seven","Pound to dial an extension zero to deliver your message and return to the attendant","If you do not know your opinion please enter pound or hash","Please enter your PIN followed by the pound or hash","If you do not know your opinion, please enter a pound or hash","Please wait and you will be joined into the","Everyone else has left the call","You are now being placed in the meeting","wait for a participant to join the","are now being placed in the meeting","wait for a participant to join the meeting","The meeting has ended","Meeting has not yet started","Please try again later","To record your message, press two","Sorry you're having trouble","Unfortunately I'm not able to answer my phone","able to answer my phone at the moment","leave me your name","leave me your name, phone number","To leave a callback number, press five","Welcome to hang out, meet, Enter the meeting pin followed by the pound key","meeting pin followed by the pound key","Welcome to hang out, meet","Welcome to hangouts meet","provided by uberconference joining conference now","joining conference now","provided by uberconference","Call is provided by Oubre conference","You are the first participant on the super conference","You are the first participant on the","You were the only one here","it looks like no one else is going to join this call","looks like no one else is going to join","You have joined the contemplate","You are the only one here","Enter the meeting pin followed by the pound key","joined the call but you, are the only one here","joined the call but you are the only one here","You have not entered any numbers","have not entered any numbers","you have joined the call but you were","If you were the host","If you are the host","Good bye, sorry you have not entered","Goodbye, you have not entered and","everyone else had left a call","veryone else has left a call","for support, press one, For sales, press two","press one for","press two for","Participant ID followed by pound","Otherwise just press pound to continue","Oh please enter your meeting man","We didn't receive any input","It'll be just a moment","Thank you for calling","there are, are 1 participants in the meeting","You are in a meeting now there are","You were the only one here","Good bot oven, you have not entered any number","Hello, and it'll be just a moment","it'll be just a moment","Meeting has not started please","Meeting has not started please wait or try again later","You have reached the maximum time permitted for recording your message","reached the maximum time permitted for recording","If you're satisfied with the message, press one","satisfied with the message, press one","You joined the call but you, were the only one here","You joined the call but you","Entered is incorrect you entered","please enter your access code followed by the hush","please enter your access code followed by","I'm sorry, we just don't detect invalid pin","I'm sorry, your PIN entry attempts have exceeded the maximum allowed","your PIN entry attempts have exceeded the maximum allowed","attempts have exceeded the maximum allowed","talk to the conference organizer to verify the","your an entry attempts have exceeded the maximum allowed","I'm sorry, your an entry attempts have exceeded the maximum allowed please come talk to the conference organizer to verify the pain","I'm sorry, your PIN entry attempts have exceeded the maximum allowed","Please contact your meeting organizer or dial","I'm sorry, your entry is not val
1531id, Please contact your meeting organizer or dial the support","dial the support number provided on your conference","provided on your conference card to obtain the correct information","or dial the support number provided on your conference","Please contact your meeting organizer or dial the support number provided on your conference card to obtain","Please contact your meeting organizer or dial the support number provided on your conference card to obtain the correct information","I'm sorry, your entry is not valid, Please contact your meeting organizer or dial this","contact your meeting organizer or dial this","you, are the only one here","You joined the call but you, are the only one here","You have joined the company, You are the only one here","leave a message and I'll get back to you","Please leave a message and I'll get back to you as soon as possible","I'm not here to take your call","I'm not here to take your call, but please leave a message and I'll get back to you as soon as possible","To receive a link to this conference","To receive a link to this conference by text press three","were the first participant on this","You were the first participant on this uberconference.","You have joined the but you are the only","Your meeting ID followed by pound, You entered two, three","You have the call but you are, the only one here","We're the only one here, You have joined the call but you are the only one here","Goodbye for the only one here., Okay.","You have joined the conference, You are the only one here.","We're the only one here, Everyone else has left the call","You have joined the company, You are the only one here? Yeah.","You have joined the company, You are the only one here?","Your call will be connected, When you enter the pin followed by the pound key","The only one here you have joined the company","You have joined the company, You are the only one here.","I'm sorry, but the person you called has a voice mailbox.","That has not been set up yet., Yet. Goodbye.","Your pin doesn't match a meeting that's ready to start soon","Your call will be connected, When you enter the pin","our call will be connected, When you enter the pit.","Doesn't match a meeting that's ready to start soon","Followed by the pin doesn't match a meeting that's ready to start soon","Unfortunately the system cannot process your entries","<inaudible> <inaudible> <inaudible> <inaudible> <inaudible> <inaudible> <inaudible> <inaudible> <inaudible> <inaudible> <inaudible>.","This service is provided by free conference call dot com","You exceeded number of attempts., Please contact Customer service if you need assistance.","Welcome the services provided by free conference call dot com","Reenter your access code or meeting number followed by pound","For conference you want to join? I'll look by the pound sign","Please enter the phone number then for conference you want to join? I'll look by the pound sign.","I'll look by the pound sign, I met number","Please enter the phone number of Uber Conference you want to join fellow by the pound sign","I'll look by the pound sign number, Please enter the phone number for conference","Number, please enter the phone number of Uber Conference you want to join","For conference, you want to join the pound sign? Please enter the phone number","For conference you want to join? I'll look by the pound sign.","Please enter the phone number of Uber Conference you want to join fellow by the pound sign number","I'll look by the pound sign flat number","Essentially the phone number of Uber Conference","Please enter the phone number of Uber Conference you want to join it, fell it by the pound sign","Fell it by the pound sign., Okay Bar,","Please enter the phone number, the Uber Conference you want to join, fell it by the pound","That hooper conference you want to join? Fell it by the pound sign","Please enter the phone number it Uber conference","Please enter the phone number of Uber Conference you want to join fellow by the pound","you want to join fellow by the pound","Please hang up and dial another provided phone number or tried dialing from another phone","Code six good, but you entered no digits","You can also visit link.gotomeeting.com/contact for support","Code six could you entered no digits","You entered no digits right.","Code six goodbye entered no digits","Code six good but you entered no digits","Code six good buttered no digits","Code six entered no digits","Code six good been entered, No digits","He to disconnect, press one, To record your message, press two","Please record your name when you have finished recording, press pound","record your name when you have finished recording","This was one of the worst that is young man did not hang up the telep
1531hone","Well yes, I hope it's not, All my friends have gone","This was one of the worst Babbage young man did not hang up the telephone","Yes he was at the time wrong, and maybe he didn't","Sitting here all day, my friend, just a way known this conference call","Oh and I'm a mom, Oh well, yes","Your call has been forwarded to the voicemail for Lena as well","Your call has been forwarded to the voicemail","For more options, you have exceeded maximum voicemail duration","you have exceeded maximum voicemail duration","To send this message as urgent press four please enter your selection now","To send this message as urgent press four","please enter your selection now","To send press three","Your call has been forwarded to the voicemail for Lynn Oswald","Yeah you have exceeded maximum voicemail duration","you have exceeded maximum voicemail duration","Your call has been forwarded to the voicemail for Linda's Walt","You exceeded number of attempts, Please contact customer service","You exceeded number of attempts","Please contact customer service","Please contact customer service if you need assistance","Please contact dialed is incorrect","customer service if you need assistance","Please react customer service if you need assistance","Please reach customer service if you need assistance","Please contact customers","We are at receiving your number entry due to a possible issue with your phone carrier","We are at receiving your number entry","due to a possible issue with your phone carrier","Code six good bond or hash sign, You entered no digits","Code six good bond or hash sign","You entered no digits","You can visit link dot, goto meeting.com/contact for support","You can visit link dot","visit goto meeting.com/contact for support","gotomeeting.com/contact for support","Code six good mentored no digits","Code six good volunteered no digits","for support code six goodbye","You can also visit link, dot goto meeting.com/contact for support code six goodbye","You can also visit link, dot gotomeeting.com/contact for support code six goodbye","dot goto meeting.com/contact for support code six goodbye","Hey we allow one with a one way or my friends have gone to the conference call holding on my phone","my friends have gone to the conference call holding on my phone","Hey we allow one where they have gone on this conference call on my phone","Hey we allow one where they a one way am I friends have gone where Naomi? Where today? Waiting on this conference call","Hey we allow one where they a one way am I friends have gone where Naomi?","Where today? Waiting on this conference call","While waiting on this conference call with a hole in on my phone","I've been sitting in this way and now they're waiting on my friends","If you are satisfied with your message, press one","To erase and rerecord it, press three for delivery options","To erase and rerecord it","To erase and rerecord it, press three for delivery options, press nine if you were satisfied with your message, press one","press nine if you were satisfied with your message","To erase and rerecord it, press three for delivery options, press nine message sent","If you were satisfied with your message, press one","To erase and rerecord it, press three for delivery options, press nine","To listen to your message, press two, To erase and rerecord it, press three","To listen to your message, press two, To erase and rerecord it","Press mine if you are satisfied with your message, press one","The leader has not yet activated the meeting or the wait time has been exceeded","the meeting or the wait time has been exceeded","The leader has not yet activated the meeting","You can try again later or you might ask the organizer whether your meeting was canceled","You can try again later or you might ask the organizer","ask the organizer whether your meeting was canceled","We apologize for the inconvenience, Goodbye","Thank you for your patience.","you can try again later","Thank you for your patience., <inaudible>","Please leave your message for <inaudible> eight five eight to six zero nine eight seven one <inaudible>","Please leave your message for <inaudible> eight five eight <inaudible> six zero nine okay","Please leave your message for <inaudible> eight five eight okay","Eight five eight two zero nine eight seven one <inaudible>","Please leave your message for <inaudible> eight five eight six zero nine eight seven one nothing has been recorded","six zero nine eight seven one nothing has been recorded","eight five eight <inaudible> six zero nine okay","Six zero nine eight seven one <inaudible>","Please leave your message for <inaudible>","Seven one nothing has been recorded, Record your message after the tone","Record your message after the tone","Seven one nothing has been recorded"]),!e||!e.toLowerCase)return!0;function n(e){return e.toLowerCase().replace(/[^a-z0-9]/gi,"").trim()}for(let a=0;a<t.length;a++){let o=n(t[a]);if(o&&o.length>10&&n(e).includes(o))return!0}}catch(e){console.error("cleanText:isSpamSegment:error","unable to get isspam segment",e&&e instanceof Error?e.message:e)}return!1}function h(e){if(!e||!/\w/g.test(e))return null;e=e.trim();let t=(e,t)=>t.length-e.length,n=["and then","I think","they were","like we","why","what","when","i also","a","of a","and what","like maybe","between now","i hope","on the flip side","to do the","for that also","and the reason","one is like","you are essentially","and you have","and like","if you","you might be","having like","because","lets say","let's say","I","how could","they are","and i'm still","are you","its like essentially","cuz","it's like essentially","that have","or something","that will","and now","so","and then","then","or","at","and","but","as","which you also","which he also","which she also","with yeah but","of which were","which were","which","that is why","about but","um","gotcha"].sort(t),a=["is","and then",".","So when","then","and","but","but perhaps","i think like","so","um","gotcha",",","um,","uh,","uh"].map(e=>e.trim().toLowerCase()).sort(t),o=["and then","but perhaps","i think like","gotcha"].sort(t),r=e.split(" ");if(r.length<8)return e;let i=!1;for(let e=0;e<n.length;e++){for(let t=1;t<=4;t++){let a=n[e];if(a.split(" ").length===t&&a.toLowerCase()===r.slice(-t).join(" ").toLowerCase()){r.splice(r.length-t),i=!0;break}}if(i)break}e=r.join(" ").trim();let s=!1;for(let t=0;t<a.length;t++){for(let n=1;n<=4;n++)if(a[t]===e.toLowerCase().split(" ").splice(0,n).join(" ")){r=r.slice(n),s=!0;break}if(s)break}let l=(e=r.join(" ").trim()).split(" ").slice(0,6).join(" ").toLowerCase();for(let t=0;t<o.length;t++){let n=o[t],a=l.indexOf(n);if(a>-1){e=e.substring(a+n.length).trim();break}}return e}Object.defineProperty(n,"__esModule",{value:!0}),n.removeUmWords=a,n.cleanTranscriptParagraph=o,n.sortByLength=r,n.cutSpaces=i,n.firstLetterCap=s,n.replaceInaudible=l,n.spliceRepeatWords=u,n.commonMidWordCorrections=c,n.spliceFillerWords=d,n.cleanUpText=p,n.isSpamSegment=m,n.spliceBeginningEndWords=h,n.default={removeUmWords:a,cleanTranscriptParagraph:o,sortByLength:r,cutSpaces:i,spliceBeginningEndWords:h,spliceFillerWords:d,spliceRepeatWords:u,isSpamSegment:m,cleanUpText:p,firstLetterCap:s,replaceInaudible:l,commonMidWordCorrections:c}},878715,(e,t,n)=>{"use strict";var a,o;Object.defineProperty(n,"__esModule",{value:!0}),n.SKIP_SUMMARY_REASONS=n.DUMMY_EMAIL_FOR_AUTOPILOT_MEETINGS=n.MIN_CHARACTERS_OF_CAPTIONS=n.authType=n.setReauthExist=n.reauthContentType=n.requestMethod=n.microsoftOauthUrl=n.googleOauthUrl=n.enums=n.errorCodes=n.functionNames=n.debugMessages=n.errorMessages=void 0,n.errorMessages={MODULE_FUNCTION_ERROR:(e,t)=>`${e}:${t}:error`,MODULE_FUNCTION_WARN:(e,t)=>`${e}:${t}:warn`,SERVICE_CALL_ERROR:e=>`Error calling ${e} api: `,SERVER_REFUSED:"The server refused the connection",RETRY_EXHAUSTED:"Retry time exhausted",UNABLE_TO_MAKE_REDIS_CLIENT:"Unable to make redisClient"},n.debugMessages={MODULE_FUNCTION_INFO:(e,t)=>
1531`${e}:${t}:info`,MODULE_FUNCTION_DEBUG:(e,t)=>`${e}:${t}:debug`,CALL_JOIN_SERVICE_RES:"response from call-join-service",SERVICE_CALL_RES:e=>`response from ${e}`,UNABLE_TO_MAKE_REDIS_CLIENT:(e,t)=>`Unable to connect to redis client ${t.message}`,REDIS_SERVICE_ERROR:"Redis Service Error: ",REDIS_SERVICE_ENDED:"Redis Service Ended. Going to restart. Error:",REDIS_CONNECTED:"Redis Connected",UNABLE_TO_LOAD_SEGMENT:"didn't load segment. Check process.env.SEGMENT_WRITE_KEY",MEETING_FROM_SOURCE:(e,t)=>`Meeting from ${e} inserted into calljoinlogs -- ${t.dateOfMeeting}`,UNABLE_TO_SEND_EVENT:"Failed to send event to segment, ",IGNORE_OVERRIDE_DATE:e=>`Ignoring overrideDate ${e} since it's not a JavaScript date object`},n.functionNames={OUTBOUND_EVENT:"outbound/events",CALL_JOIN_SERVICE:"callJoinService"},n.errorCodes={ECONNREFUSED:"ECONNREFUSED"},n.enums={PROCESS_MEETING_STATUS:{NOT_STARTED:"not_started",STARTED:"started",COMPLETED:"completed",FAILED:"failed"}},n.googleOauthUrl="https://www.googleapis.com/oauth2/v4/token",n.microsoftOauthUrl="https://login.microsoftonline.com/common/oauth2/v2.0/token",n.requestMethod={POST:"post",GET:"get"},n.reauthContentType=e=>({"Content-Type":e?"application/json":"application/x-www-form-urlencoded"}),n.setReauthExist=e=>`${e?"gauthExists":"outlookExists"}`,n.authType={GOOGLE:"gauth",OFFICE:"officeAuth"},n.MIN_CHARACTERS_OF_CAPTIONS=400,n.DUMMY_EMAIL_FOR_AUTOPILOT_MEETINGS="[email protected]",(o=a||(n.SKIP_SUMMARY_REASONS=a={})).TRANSCRIPTION_FROM_CHROME_EXTENSION="Meeting was transcribed using Chrome Extension and user does not have unlimited summaries",o.TRANSCRIPTION_FROM_MOBILE="Meeting was transcribed using Mobile App  and user does not have unlimited summaries",o.UNLIMITED_TRANSCRIPTION_SHARE_ALL="User is on unlimited transcriptions because of share all setting",o.NOT_ENOUGH_CAPTIONS="Summary not processed because it did not match the minimum of 400 characters in the transcript",o.NO_ACTIVE_EXTENSIONS="No active extensions found for this user",o.NO_CAPTIONS="Summary not processed because there were no captions in the transcript",o.TRANSCRIPT_ONLY_PREFERENCE="Summary not processed because the user's recording preference is transcript only (no summary)"}]);
1532
1533//# debugId=6f4be68e-5ad7-7161-db87-9d7673c90512
1534//# sourceMappingURL=3ir2dlqmogzf_.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.