2025-11-10 19:08:22 -08:00
/*! behaviors.js is part of Webrecorder project. Copyright (C) 2021-2025, Webrecorder Software. Licensed under the Affero General Public License v3. */ ( ( ) => { var _ _webpack _modules _ _ = { "./node_modules/query-selector-shadow-dom/src/normalize.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / query - selector - shadow - dom / src / normalize . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "normalizeSelector": () => (/ * binding * / normalizeSelector)\n/ * harmony export * / });\n/ * istanbul ignore file * /\n\n\n/ / normalize - selector - rev - 02. js \ n /*\n author: kyle simpson (@getify)\n original source: https://gist.github.com/getify/9679380\n\n modified for tests by david kaye (@dfkaye)\n 21 march 2014\n\n rev-02 incorporate kyle\'s changes 3/2/42014\n*/ \ n \ nfunction normalizeSelector ( sel ) { \ n // save unmatched text, if any\n function saveUnmatched() {\n if (unmatched) {\n // whitespace needed after combinator?\n if (tokens.length > 0 && /^[~+>]$/.test(tokens[tokens.length - 1])) {\n tokens.push(" ");\n }\n\n // save unmatched text\n tokens.push(unmatched);\n }\n }\n\n var tokens = [],\n match,\n unmatched,\n regex,\n state = [0],\n next_match_idx = 0,\n prev_match_idx,\n not_escaped_pattern = /(?:[^\\\\]|(?:^|[^\\\\])(?:\\\\\\\\)+)$/,\n whitespace_pattern = /^\\s+$/,\n state_patterns = [\n /\\s+|\\/\\*|["\'>~+[(]/g, // general\n /\\s+|\\/\\*|["\'[\\]()]/g, // [..] set\n /\\s+|\\/\\*|["\'[\\]()]/g, // (..) set\n null, // string literal (placeholder)\n /\\*\\//g, // comment\n ];\n sel = sel.trim();\n\n // eslint-disable-next-line no-constant-condition\n while (true) {\n unmatched = "";\n\n regex = state_patterns[state[state.length - 1]];\n\n regex.lastIndex = next_match_idx;\n match = regex.exec(sel);\n\n // matched text to process?\n if (match) {\n prev_match_idx = next_match_idx;\n next_match_idx = regex.lastIndex;\n\n // collect the previous string chunk not matched before this token\n if (prev_match_idx < next_match_idx - match[0].length) {\n unmatched = sel.substring(\n prev_match_idx,\n next_match_idx - match[0].length\n );\n }\n\n // general, [ ] pair, ( ) pair?\n if (state[state.length - 1] < 3) {\n saveUnmatched();\n\n // starting a [ ] pair?\n if (match[0] === "[") {\n state.push(1);\n }\n // starting a ( ) pair?\n else if (match[0] === "(") {\n state.push(2);\n }\n // starting a string literal?\n else if (/^["\']$/.test(match[0])) {\n state.push(3);\n state_patterns[3] = new RegExp(match[0], "g");\n }\n // starting a comment?\n else if (match[0] === "/*") {\n state.push(4);\n }\n // ending a [ ] or ( ) pair?\n else if (/^[\\])]$/.test(match[0]) && state.length > 0) {\n state.pop();\n }\n // handling whitespace or a combinator?\n else if (/^(?:\\s+|[~+>])$/.test(match[0])) {\n // need to insert whitespace before?\n if (\n tokens.length > 0 &&\n !whitespace_pattern.test(tokens[tokens.length - 1]) &&\n state[state.length - 1] === 0\n ) {\n // add normalized whitespace\n tokens.push(" ");\n }\n\n // case-insensitive attribute selector CSS L4\n if (\n state[state.length - 1] === 1 &&\n tokens.length === 5 &&\n tokens[2].charAt(tokens[2].length - 1) === "="\n ) {\n tokens[4] = " " + tokens[4];\n }\n\n // whitespace token we can skip?\n if (whitespace_pattern.test(match[0])) {\n continue;\n }\n }\n\n // save matched text\n tokens.push(match[0]);\n }\n // otherwise, string literal or comment\n else {\n // save unmatched text\n tokens[tokens.length - 1] += unmatched;\n\n // unescaped terminator to string literal or comment?\n if (not_escaped_pattern.test(tokens[tokens.length - 1])) {\n //
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / query - selector - shadow - dom / src / querySelectorDeep . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / \"collectAllElementsDeep\": () => (/ * binding * / collectAllElementsDeep),\n/ * harmony export * / \"querySelectorAllDeep\": () => (/ * binding * / querySelectorAllDeep),\n/ * harmony export * / \"querySelectorDeep\": () => (/ * binding * / querySelectorDeep)\n/ * harmony export * / });\n/ * harmony import * / var _normalize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . / normalize * / \ " . / n o d e _ m o d u l e s / q u e r y - s e l e c t o r - s h a d o w - d o m / s r c / n o r m a l i z e . j s \ " ) ; \ n \ n \ n / * * \ n * F i n d s f i r s t m a t c h i n g e l e m e n t s o n t h e p a g e t h a t m a y b e i n a s h a d o w r o o t u s i n g a c o m p l e x s e l e c t o r o f n - d e p t h \ n * \ n * D o n ' t h a v e t o s p e c i f y a l l s h a d o w r o o t s t o b u t t o n , t r e e i s t r a v e r e d t o f i n d t h e c o r r e c t e l e m e n t \ n * \ n * E x a m p l e q u e r y S e l e c t o r A l l D e e p ( ' d o w n l o a d s - i t e m : n t h - c h i l d ( 4 ) # r e m o v e ' ) ; \ n * \ n * E x a m p l e s h o u l d w o r k o n c h r o m e : / / d o w n l o a d s o u t p u t t i n g t h e r e m o v e b u t t o n i n s i d e o f a d o w n l o a d c a r d c o m p o n e n t \ n * \ n * E x a m p l e f i n d f i r s t a c t i v e d o w n l o a d l i n k e l e m e n t q u e r y S e l e c t o r D e e p ( ' # d o w n l o a d s - l i s t . i s - a c t i v e a [ h r e f ^ = \ " h t t p s : / / \ " ] ' ) ; \ n * \ n * A n o t h e r e x a m p l e q u e r y S e l e c t o r A l l D e e p ( ' # d o w n l o a d s - l i s t d i v # t i t l e - a r e a + a ' ) ; \ n e . g . \ n * / \ n f u n c t i o n q u e r y S e l e c t o r A l l D e e p ( s e l e c t o r , r o o t = d o c u m e n t , a l l E l e m e n t s = n u l l ) { \ n r e t u r n _ q u e r y S e l e c t o r D e e p ( s e l e c t o r , t r u e , r o o t , a l l E l e m e n t s ) ; \ n } \ n \ n f u n c t i o n q u e r y S e l e c t o r D e e p ( s e l e c t o r , r o o t = d o c u m e n t , a l l E l e m e n t s = n u l l ) { \ n r e t u r n _ q u e r y S e l e c t o r D e e p ( s e l e c t o r , f a l s e , r o o t , a l l E l e m e n t s ) ; \ n } \ n \ n f u n c t i o n _ q u e r y S e l e c t o r D e e p ( s e l e c t o r , f i n d M a n y , r o o t , a l l E l e m e n t s = n u l l ) { \ n s e l e c t o r = ( 0 , _ n o r m a l i z e _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . n o r m a l i z e S e l e c t o r ) ( s e l e c t o r ) ; \ n l e t l i g h t E l e m e n t = r o o t . q u e r y S e l e c t o r ( s e l e c t o r ) ; \ n \ n i f ( d o c u m e n t . h e a d . c r e a t e S h a d o w R o o t | | d o c u m e n t . h e a d . a t t a c h S h a d o w ) { \ n / / n o n e e d t o d o a n y s p e c i a l i f s e l e c t o r m a t c h e s s o m e t h i n g s p e c i f i c i n l i g h t - d o m \ n i f ( ! f i n d M a n y & & l i g h t E l e m e n t ) { \ n r e t u r n l i g h t E l e m e n t ; \ n } \ n \ n / / s p l i t o n c o m m a s b e c a u s e t h o s e a r e a l o g i c a l d i v i d e i n t h e o p e r a t i o n \ n c o n s t s e l e c t i o n s T o M a k e = s p l i t B y C h a r a c t e r U n l e s s Q u o t e d ( s e l e c t o r , ' , ' ) ; \ n \ n r e t u r n s e l e c t i o n s T o M a k e . r e d u c e ( ( a c c , m i n i m a l S e l e c t o r ) = > { \ n / / i f n o t f i n d i n g m a n y j u s t r e d u c e t h e f i r s t m a t c h \ n i f ( ! f i n d M a n y & & a c c ) { \ n r e t u r n a c c ; \ n } \ n / / d o b e s t t o s u p p o r t c o m p l e x s e l e c t o r s a n d s p l i t t h e q u e r y \ n c o n s t s p l i t S e l e c t o r = s p l i t B y C h a r a c t e r U n l e s s Q u o t e d ( m i n i m a l S e l e c t o r \ n / / r e m o v e w h i t e s p a c e a t s t a r t o f s e l e c t o r \ n . r e p l a c e ( / ^ \ \ s + / g , ' ' ) \ n . r e p l a c e ( / \ \ s * ( [ > + ~ ] + ) \ \ s * / g , ' $ 1 ' ) , ' ' ) \ n / / f i l t e r o u t e n t r y w h i t e s e l e c t o r s \ n . f i l t e r ( ( e n t r y ) = > ! ! e n t r y ) \ n / / c o n v e r t \ " a > b \ " t o [ \ " a \ " , \ " b \ " ] \ n . m a p ( ( e n t r y ) = > s p l i t B y C h a r a c t e r U n l e s s Q u o t e d ( e n t r y , ' > ' ) ) ; \ n \ n c o n s t p o s s i b l e E l e m e n t s I n d e x = s p l i t S e l e c t o r . l e n g t h - 1 ; \ n c o n s t l a s t S p l i t P a r t = s p l i t S e l e c t o r [ p o s s i b l e E l e m e n t s I n d e x ] [ s p l i t S e l e c t o r [ p o s s i b l e E l e m e n t s I n d e x ] . l e n g t h - 1 ] ; \ n c o n s t p o s s i b l e E l e m e n t s = c o l l e c t A l l E l e m e n t s D e e p ( l a s t S p l i t P a r t , r o o t , a l l E l e m e n t s ) ; \ n c o n s t f i n d E l e m e n t s = f i n d M a t c h i n g E l e m e n t ( s p l i t S e l e c t o r , p o s s i b l e E l e m e n t s I n d e x , r o o t ) ; \ n i f ( f i n d M a n y ) { \ n a c c = a c c . c o n c a t ( p o s s i b l e E l e m e n t s . f i l t e r ( f i n d E l e m e n t s ) ) ; \ n r e t u r n a c c ; \ n } e l s e { \ n a c c = p o s s i b l e E l e m e n t s . f i n d ( f i n d E l e m e n t s ) ; \ n r e t u r n a c c | | n u l l ; \ n } \ n } , f i n d M a n y ? [ ] : n u l l ) ; \ n \ n \ n } e l s e { \ n i f ( ! f i n d M a n y ) { \ n r e t u r n l i g h t E l e m e n t ; \ n } e l s e { \ n r e t u r n r o o t . q u e r y S e l e c t o r A l l ( s e l e c t o r ) ; \ n } \ n } \ n \ n } \ n \ n f u n c t i o n f i n d M a t c h i n g E l e m e n t ( s p l i t S e l e c t o r , p o s s i b l e E l e m e n t s I n d e x , r o o t ) { \ n r e t u r n ( e l e m e n t ) = > { \ n l e t p o s i t i o n = p o s s i b l e E l
/ * ! * * * * * * * * * * * * * * * * * * ! * \
! * * * . / index . ts * * * !
\ * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "BehaviorManager": () => (/ * reexport safe * / _src__WEBPACK_IMPORTED_MODULE_0__.BehaviorManager)\n/ * harmony export * / });\n/ * harmony import * / var _src__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . / src * / " . / s r c / i n d e x . t s " ) ; \ n \ n \ n \ n \ n / / # s o u r c e U R L = w e b p a c k : / / b r o w s e r t r i x - b e h a v i o r s / . / i n d e x . t s ? ' ) } , " . / s r c / a u t o c l i c k . t s " :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / autoclick . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "AutoClick": () => (/ * binding * / AutoClick)\n/ * harmony export * / });\n/ * harmony import * / var _lib_behavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . / lib / behavior * / " . / s r c / l i b / b e h a v i o r . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / u t i l s * / " . / s r c / l i b / u t i l s . t s " ) ; \ n \ n \ n c l a s s A u t o C l i c k e x t e n d s _ l i b _ b e h a v i o r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . B a c k g r o u n d B e h a v i o r { \ n _ d o n e P r o m i s e ; \ n _ m a r k D o n e ; \ n s e l e c t o r ; \ n s e e n E l e m = n e w W e a k S e t ( ) ; \ n s t a t i c i d = " A u t o c l i c k " ; \ n c o n s t r u c t o r ( s e l e c t o r = " a " ) { \ n s u p e r ( ) ; \ n t h i s . s e l e c t o r = s e l e c t o r ; \ n t h i s . _ d o n e P r o m i s e = n e w P r o m i s e ( ( r e s o l v e ) = > ( t h i s . _ m a r k D o n e = r e s o l v e ) ) ; \ n } \ n n e x t S a m e O r i g i n L i n k ( ) { \ n t r y { \ n c o n s t a l l L i n k s = d o c u m e n t . q u e r y S e l e c t o r A l l ( t h i s . s e l e c t o r ) ; \ n f o r ( c o n s t e l o f a l l L i n k s ) { \ n c o n s t e l e m = e l ; \ n i f ( e l e m . h r e f & & ! e l e m . h r e f . s t a r t s W i t h ( s e l f . l o c a t i o n . o r i g i n ) ) { \ n c o n t i n u e ; \ n } \ n i f ( ! e l e m . i s C o n n e c t e d ) { \ n c o n t i n u e ; \ n } \ n i f ( ! e l e m . c h e c k V i s i b i l i t y ( ) ) { \ n c o n t i n u e ; \ n } \ n i f ( t h i s . s e e n E l e m . h a s ( e l e m ) ) { \ n c o n t i n u e ; \ n } \ n t h i s . s e e n E l e m . a d d ( e l e m ) ; \ n r e t u r n e l e m ; \ n } \ n } \ n c a t c h ( e ) { \ n t h i s . d e b u g ( e . t o S t r i n g ( ) ) ; \ n } \ n r e t u r n n u l l ; \ n } \ n a s y n c s t a r t ( ) { \ n c o n s t b e f o r e U n l o a d = ( e v e n t ) = > { \ n e v e n t . p r e v e n t D e f a u l t ( ) ; \ n r e t u r n f a l s e ; \ n } ; \ n w i n d o w . a d d E v e n t L i s t e n e r ( " b e f o r e u n l o a d " , b e f o r e U n l o a d ) ; \ n w h i l e ( t r u e ) { \ n c o n s t e l e m = t h i s . n e x t S a m e O r i g i n L i n k ( ) ; \ n i f ( ! e l e m ) { \ n b r e a k ; \ n } \ n a w a i t t h i s . p r o c e s s E l e m ( e l e m ) ; \ n } \ n w i n d o w . r e m o v e E v e n t L i s t e n e r ( " b e f o r e u n l o a d " , b e f o r e U n l o a d ) ; \ n t h i s . _ m a r k D o n e ( ) ; \ n } \ n a s y n c p r o c e s s E l e m ( e l e m ) { \ n i f ( e l e m . t a r g e t ) { \ n r e t u r n ; \ n } \ n i f ( e l e m . h r e f ) { \ n i f ( ! ( a w a i t ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . a d d T o E x t e r n a l S e t ) ( e l e m . h r e f ) ) ) { \ n r e t u r n ; \ n } \ n t h i s . d e b u g ( " C l i c k i n g o n l i n k : " + e l e m . h r e f ) ; \ n } \ n e l s e { \ n t h i s . d e b u g ( " C l i c k e m p t y l i n k " ) ; \ n } \ n c o n s t o r i g H r e f = s e l f . l o c a t i o n . h r e f ; \ n c o n s t o r i g H i s t o r y L e n = s e l f . h i s t o r y . l e n g t h ; \ n i f ( e l e m . c l i c k ) { \ n e l e m . c l i c k ( ) ; \ n } \ n e l s e i f ( e l e m . d i s p a t c h E v e n t ) { \ n e l e m . d i s p a t c h E v e n t ( n e w M o u s e E v e n t ( " c l i c k " ) ) ; \ n } \ n a w a i t ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . s l e e p ) ( 2 5 0 ) ; \ n i f ( s e l f . h i s t o r y . l e n g t h = = = o r i g H i s t o r y L e n + 1 & & \ n s e l f . l o c a t i o n . h r e f ! = o r i g H r e f ) { \ n a w a i t n e w P r o m i s e ( ( r e s o l v e ) = > { \ n w i n d o w . a d d E v e n t L i s t e n e r ( " p o p s t a t e " , ( ) = > { \ n r e s o l v e ( n u l l ) ; \ n } , { o n c e : t r u e } ) ; \ n w i n d o w . h i s t o r y . b a c k ( ) ; \ n } ) ; \ n } \ n } \ n c a t c h ( e ) { \ n t h i s . d e b u g ( e . t o S t r i n g ( ) ) ; \ n } \ n d o n e ( ) { \ n r e t u r n t h i s . _ d o n e P r o m i s e ; \ n } \ n } \ n \ n \ n / / # s o u r c e U R L = w e b p a c k : / / b r o w s e r t r i x - b e h a v i o r s / . / s r c / a u t o c l i c k . t s ? ' ) } , " . / s r c / a u t o f e t c h e r . t s " :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / autofetcher . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "AutoFetcher": () => (/ * binding * / AutoFetcher)\n/ * harmony export * / });\n/ * harmony import * / var query_selector_shadow_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! query - selector - shadow - dom * / " . / n o d e _ m o d u l e s / q u e r y - s e l e c t o r - s h a d o w - d o m / s r c / q u e r y S e l e c t o r D e e p . j s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ b e h a v i o r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / b e h a v i o r * / " . / s r c / l i b / b e h a v i o r . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 2 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / u t i l s * / " . / s r c / l i b / u t i l s . t s " ) ; \ n \ n \ n \ n c o n s t S R C _ S E T _ S E L E C T O R = " i m g [ s r c s e t ] , i m g [ d a t a - s r c s e t ] , i m g [ d a t a - s r c ] , n o s c r i p t > i m g [ s r c ] , i m g [ l o a d i n g = \ ' l a z y \ ' ] , " + \ n " v i d e o [ s r c s e t ] , v i d e o [ d a t a - s r c s e t ] , v i d e o [ d a t a - s r c ] , a u d i o [ s r c s e t ] , a u d i o [ d a t a - s r c s e t ] , a u d i o [ d a t a - s r c ] , " + \ n " p i c t u r e > s o u r c e [ s r c s e t ] , p i c t u r e > s o u r c e [ d a t a - s r c s e t ] , p i c t u r e > s o u r c e [ d a t a - s r c ] , " + \ n " v i d e o > s o u r c e [ s r c s e t ] , v i d e o > s o u r c e [ d a t a - s r c s e t ] , v i d e o > s o u r c e [ d a t a - s r c ] , " + \ n " a u d i o > s o u r c e [ s r c s e t ] , a u d i o > s o u r c e [ d a t a - s r c s e t ] , a u d i o > s o u r c e [ d a t a - s r c ] " ; \ n c o n s t S R C S E T _ R E G E X = / \ \ s * ( \ \ S * \ \ s + [ \ \ d . ] + [ w x ] ) , | ( ? : \ \ s * , ( ? : \ \ s + | ( ? = h t t p s ? : ) ) ) / ; \ n c o n s t S T Y L E _ R E G E X = / ( u r l \ \ s * \ \ ( \ \ s * [ \ \ \ \ " \ ' ] * ) ( [ ^ ) \ ' " ] + ) ( [ \ \ \ \ " \ ' ] * \ \ s * \ \ ) ) / g i ; \ n c o n s t I M P O R T _ R E G E X = / ( @ i m p o r t \ \ s * [ \ \ \ \ " \ ' ] * ) ( [ ^ ) \ ' " ; ] + ) ( [ \ \ \ \ " \ ' ] * \ \ s * ; ? ) / g i ; \ n c o n s t M A X _ C O N C U R R E N T = 6 ; \ n c l a s s A u t o F e t c h e r e x t e n d s _ l i b _ b e h a v i o r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . B a c k g r o u n d B e h a v i o r { \ n u r l S e t = n e w S e t ( ) ; \ n p e n d i n g Q u e u e = [ ] ; \ n w a i t Q u e u e = [ ] ; \ n m u t a t i o n O b s e r v e r ; \ n n u m P e n d i n g = 0 ; \ n n u m D o n e = 0 ; \ n h e a d e r s ; \ n _ d o n e P r o m i s e ; \ n _ m a r k D o n e ; \ n a c t i v e ; \ n r u n n i n g = f a l s e ; \ n s t a t i c i d = " A u t o f e t c h e r " ; \ n c o n s t r u c t o r ( a c t i v e = f a l s e , h e a d e r s = n u l l , s t a r t E a r l y = f a l s e ) { \ n s u p e r ( ) ; \ n t h i s . h e a d e r s = h e a d e r s | | { } ; \ n t h i s . _ d o n e P r o m i s e = n e w P r o m i s e ( ( r e s o l v e ) = > ( t h i s . _ m a r k D o n e = r e s o l v e ) ) ; \ n t h i s . a c t i v e = a c t i v e ; \ n i f ( t h i s . a c t i v e & & s t a r t E a r l y ) { \ n d o c u m e n t . a d d E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , ( ) = > t h i s . i n i t O b s e r v e r ( ) ) ; \ n } \ n } \ n g e t n u m F e t c h i n g ( ) { \ n r e t u r n t h i s . n u m D o n e + t h i s . n u m P e n d i n g + t h i s . p e n d i n g Q u e u e . l e n g t h ; \ n } \ n a s y n c s t a r t ( ) { \ n i f ( ! t h i s . a c t i v e ) { \ n r e t u r n ; \ n } \ n t h i s . i n i t O b s e r v e r ( ) ; \ n t h i s . r u n ( ) ; \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 2 _ _ . s l e e p ) ( 5 0 0 ) . t h e n ( ( ) = > { \ n i f ( ! t h i s . p e n d i n g Q u e u e . l e n g t h & & ! t h i s . n u m P e n d i n g ) { \ n t h i s . _ m a r k D o n e ( n u l l ) ; \ n } \ n } ) ; \ n } \ n d o n e ( ) { \ n r e t u r n t h i s . _ d o n e P r o m i s e ; \ n } \ n a s y n c r u n ( ) { \ n t h i s . r u n n i n g = t r u e ; \ n f o r ( c o n s t u r l o f t h i s . w a i t Q u e u e ) { \ n t h i s . d o F e t c h ( u r l ) ; \ n } \ n t h i s . w a i t Q u e u e = [ ] ; \ n t h i s . e x t r a c t S r c S r c S e t A l l ( d o c u m e n t ) ; \ n t h i s . e x t r a c t S t y l e S h e e t s ( ) ; \ n t h i s . e x t r a c t D a t a A t t r i b u t e s ( d o c u m e n t ) ; \ n } \ n i s V a l i d U r l ( u r l ) { \ n r e t u r n u r l & & ( u r l . s t a r t s W i t h ( " h t t p : " ) | | u r l . s t a r t s W i t h ( " h t t p s : " ) ) ; \ n } \ n q u e u e U r l ( u r l , i m m e d i a t e = f a l s e ) { \ n t r y { \ n u r l = n e w U R L ( u r l , d o c u m e n t . b a s e U R I ) . h r e f ; \ n } \ n c a t c h ( e ) { \ n r e t u r n f a l s e ; \ n } \ n i f ( ! t h i s . i s V a l i d U r l ( u r l ) ) { \ n r e t u r n f a l s e ; \ n } \ n i f ( t h i s . u r l S e t . h a s ( u r l ) ) { \ n r e t u r n f a l s e ; \ n } \ n t h i s . u r l S e t . a d d ( u r l ) ; \ n i f ( t h i s . r u n n i n g | | i m m e d i a t e ) { \ n t h i s . d o F e t c h ( u r l ) ; \ n } \ n e l s e { \ n t h i s . w a i t Q u e u e . p u s h ( u r l ) ; \ n } \ n r e t u r n t r u e ; \ n } \ n a s y n c d o F e t c h S t r e a m ( u r l ) { \ n t r y { \ n c o n s t r e s p = a w a i t f e t c h ( u r l , { \ n c r e d e n t i a l s : " i n c l u d e " , \ n r e f e r r e r P o l i c y : " o r i g i n - w h e n - c r o s s - o r i g i n " , \ n } ) ; \ n t h i s . d e b u g ( ` A u t o f e t c h : s t a r t e d $ { u r l } ` ) ; \ n c o n s t r e a d e r = r e s p . b o d y . g e t R e a d e r ( ) ;
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / autoplay . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "Autoplay": () => (/ * binding * / Autoplay)\n/ * harmony export * / });\n/ * harmony import * / var query_selector_shadow_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! query - selector - shadow - dom * / " . / n o d e _ m o d u l e s / q u e r y - s e l e c t o r - s h a d o w - d o m / s r c / q u e r y S e l e c t o r D e e p . j s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ b e h a v i o r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / b e h a v i o r * / " . / s r c / l i b / b e h a v i o r . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 2 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / u t i l s * / " . / s r c / l i b / u t i l s . t s " ) ; \ n \ n \ n \ n c l a s s A u t o p l a y e x t e n d s _ l i b _ b e h a v i o r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . B a c k g r o u n d B e h a v i o r { \ n m e d i a S e t ; \ n a u t o f e t c h e r ; \ n n u m P l a y i n g ; \ n p r o m i s e s ; \ n _ i n i t D o n e ; \ n r u n n i n g = f a l s e ; \ n p o l l i n g = f a l s e ; \ n s t a t i c i d = " A u t o p l a y " ; \ n c o n s t r u c t o r ( a u t o f e t c h e r , s t a r t E a r l y = f a l s e ) { \ n s u p e r ( ) ; \ n t h i s . m e d i a S e t = n e w S e t ( ) ; \ n t h i s . a u t o f e t c h e r = a u t o f e t c h e r ; \ n t h i s . n u m P l a y i n g = 0 ; \ n t h i s . p r o m i s e s = [ ] ; \ n t h i s . _ i n i t D o n e = ( ) = > n u l l ; \ n t h i s . p r o m i s e s . p u s h ( n e w P r o m i s e ( ( r e s o l v e ) = > ( t h i s . _ i n i t D o n e = r e s o l v e ) ) ) ; \ n i f ( s t a r t E a r l y ) { \ n d o c u m e n t . a d d E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , ( ) = > t h i s . p o l l A u d i o V i d e o ( ) ) ; \ n } \ n } \ n a s y n c s t a r t ( ) { \ n t h i s . r u n n i n g = t r u e ; \ n t h i s . p o l l A u d i o V i d e o ( ) ; \ n t h i s . _ i n i t D o n e ( ) ; \ n } \ n a s y n c p o l l A u d i o V i d e o ( ) { \ n c o n s t r u n = t r u e ; \ n i f ( t h i s . p o l l i n g ) { \ n r e t u r n ; \ n } \ n t h i s . p o l l i n g = t r u e ; \ n w h i l e ( r u n ) { \ n f o r ( c o n s t [ , e l e m ] o f ( 0 , q u e r y _ s e l e c t o r _ s h a d o w _ d o m _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . q u e r y S e l e c t o r A l l D e e p ) ( " v i d e o , a u d i o , p i c t u r e " ) . e n t r i e s ( ) ) { \ n i f ( ! e l e m [ " _ _ b x _ a u t o p l a y _ f o u n d " ] ) { \ n i f ( ! t h i s . r u n n i n g ) { \ n i f ( t h i s . p r o c e s s F e t c h a b l e U r l ( e l e m ) ) { \ n e l e m [ " _ _ b x _ a u t o p l a y _ f o u n d " ] = t r u e ; \ n } \ n c o n t i n u e ; \ n } \ n a w a i t t h i s . l o a d M e d i a ( e l e m ) ; \ n e l e m [ " _ _ b x _ a u t o p l a y _ f o u n d " ] = t r u e ; \ n } \ n } \ n a w a i t ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 2 _ _ . s l e e p ) ( 5 0 0 ) ; \ n } \ n t h i s . p o l l i n g = f a l s e ; \ n } \ n f e t c h S r c U r l ( s o u r c e ) { \ n c o n s t u r l = s o u r c e . s r c | | s o u r c e . c u r r e n t S r c ; \ n i f ( ! u r l ) { \ n r e t u r n f a l s e ; \ n } \ n i f ( ! u r l . s t a r t s W i t h ( " h t t p : " ) & & ! u r l . s t a r t s W i t h ( " h t t p s : " ) ) { \ n r e t u r n f a l s e ; \ n } \ n i f ( t h i s . m e d i a S e t . h a s ( u r l ) ) { \ n r e t u r n t r u e ; \ n } \ n t h i s . d e b u g ( " f e t c h m e d i a s o u r c e U R L : " + u r l ) ; \ n t h i s . m e d i a S e t . a d d ( u r l ) ; \ n t h i s . a u t o f e t c h e r . q u e u e U r l ( u r l ) ; \ n r e t u r n t r u e ; \ n } \ n p r o c e s s F e t c h a b l e U r l ( m e d i a ) { \ n l e t f o u n d = t h i s . f e t c h S r c U r l ( m e d i a ) ; \ n c o n s t s o u r c e s = m e d i a . q u e r y S e l e c t o r A l l ( " s o u r c e " ) ; \ n f o r ( c o n s t s o u r c e o f s o u r c e s ) { \ n c o n s t f o u n d S o u r c e = t h i s . f e t c h S r c U r l ( s o u r c e ) ; \ n f o u n d = f o u n d | | f o u n d S o u r c e ; \ n } \ n r e t u r n f o u n d ; \ n } \ n a s y n c l o a d M e d i a ( m e d i a ) { \ n t h i s . d e b u g ( " p r o c e s s i n g m e d i a e l e m e n t : " + m e d i a . o u t e r H T M L ) ; \ n c o n s t f o u n d = t h i s . p r o c e s s F e t c h a b l e U r l ( m e d i a ) ; \ n i f ( ! m e d i a . p l a y ) { \ n t h i s . d e b u g ( " m e d i a n o t p l a y a b l e , s k i p p i n g " ) ; \ n r e t u r n ; \ n } \ n i f ( f o u n d ) { \ n i f ( ! m e d i a . p a u s e d ) { \ n m e d i a . p a u s e ( ) ; \ n t h i s . d e b u g ( " m e d i a U R L f o u n d , p a u s i n g p l a y b a c k " ) ; \ n } \ n r e t u r n ; \ n } \ n i f ( m e d i a . p a u s e d | | m e d i a . c u r r e n t T i m e ) { \ n i f ( m e d i a . p a u s e d ) { \ n t h i s . d e b u g ( " n o s r c u r l f o u n d , a t t e m p t i n g t o c l i c k o r p l a y : " + m e d i a . o u t e r H T M L ) ; \ n } \ n e l s e { \ n t h i s . d e b u g ( " m e d i a a l r e a d y p l a y i n g , w a i t i n g f o r f u l l p l a y b a c k t o f i
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / autoscroll . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "AutoScroll": () => (/ * binding * / AutoScroll)\n/ * harmony export * / });\n/ * harmony import * / var _lib_behavior__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . / lib / behavior * / " . / s r c / l i b / b e h a v i o r . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / u t i l s * / " . / s r c / l i b / u t i l s . t s " ) ; \ n \ n \ n c l a s s A u t o S c r o l l e x t e n d s _ l i b _ b e h a v i o r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . B e h a v i o r { \ n a u t o F e t c h e r ; \ n s h o w M o r e Q u e r y ; \ n s t a t e = { s e g m e n t s : 1 } ; \ n l a s t S c r o l l P o s ; \ n s a m e P o s C o u n t ; \ n o r i g P a t h ; \ n l a s t M s g = " " ; \ n c o n s t r u c t o r ( a u t o f e t c h e r ) { \ n s u p e r ( ) ; \ n t h i s . a u t o F e t c h e r = a u t o f e t c h e r ; \ n t h i s . s h o w M o r e Q u e r y = \ n " / / * [ c o n t a i n s ( t e x t ( ) , \ ' s h o w m o r e \ ' ) o r c o n t a i n s ( t e x t ( ) , \ ' S h o w m o r e \ ' ) ] " ; \ n t h i s . l a s t S c r o l l P o s = - 1 ; \ n t h i s . s a m e P o s C o u n t = 0 ; \ n t h i s . o r i g P a t h = d o c u m e n t . l o c a t i o n . p a t h n a m e ; \ n } \ n s t a t i c i d = " A u t o s c r o l l " ; \ n c u r r S c r o l l P o s ( ) { \ n r e t u r n M a t h . r o u n d ( s e l f . s c r o l l Y + s e l f . i n n e r H e i g h t ) ; \ n } \ n c a n S c r o l l M o r e ( ) { \ n c o n s t s c r o l l E l e m = s e l f . d o c u m e n t . s c r o l l i n g E l e m e n t | | s e l f . d o c u m e n t . b o d y ; \ n r e t u r n ( t h i s . c u r r S c r o l l P o s ( ) < \ n M a t h . m a x ( s c r o l l E l e m . c l i e n t H e i g h t , s c r o l l E l e m . s c r o l l H e i g h t ) ) ; \ n } \ n d e b u g ( m s g ) { \ n i f ( t h i s . l a s t M s g = = = m s g ) { \ n r e t u r n ; \ n } \ n s u p e r . d e b u g ( m s g ) ; \ n t h i s . l a s t M s g = m s g ; \ n } \ n h a s S c r o l l E L ( o b j ) { \ n t r y { \ n r e t u r n ! ! s e l f [ " g e t E v e n t L i s t e n e r s " ] ( o b j ) . s c r o l l ; \ n } \ n c a t c h ( _ ) { \ n t h i s . d e b u g ( " g e t E v e n t L i s t e n e r s ( ) n o t a v a i l a b l e " ) ; \ n r e t u r n t r u e ; \ n } \ n } \ n a s y n c s h o u l d S c r o l l ( ) { \ n i f ( ! t h i s . h a s S c r o l l E L ( s e l f . w i n d o w ) & & \ n ! t h i s . h a s S c r o l l E L ( s e l f . d o c u m e n t ) & & \ n ! t h i s . h a s S c r o l l E L ( s e l f . d o c u m e n t . b o d y ) ) { \ n r e t u r n f a l s e ; \ n } \ n i f ( w i n d o w . f r a m e s . l e n g t h > = 2 ) { \ n r e t u r n t r u e ; \ n } \ n c o n s t l a s t S c r o l l H e i g h t = s e l f . d o c u m e n t . s c r o l l i n g E l e m e n t . s c r o l l H e i g h t ; \ n c o n s t n u m F e t c h i n g = t h i s . a u t o F e t c h e r . n u m F e t c h i n g ; \ n c o n s t s c r o l l E n d = d o c u m e n t . s c r o l l i n g E l e m e n t . s c r o l l H e i g h t * 0 . 9 8 - s e l f . i n n e r H e i g h t ; \ n w i n d o w . s c r o l l T o ( { t o p : s c r o l l E n d , l e f t : 0 , b e h a v i o r : " s m o o t h " } ) ; \ n a w a i t ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . s l e e p ) ( 5 0 0 ) ; \ n i f ( l a s t S c r o l l H e i g h t ! = = s e l f . d o c u m e n t . s c r o l l i n g E l e m e n t . s c r o l l H e i g h t | | \ n n u m F e t c h i n g < t h i s . a u t o F e t c h e r . n u m F e t c h i n g ) { \ n w i n d o w . s c r o l l T o ( { t o p : 0 , l e f t : 0 , b e h a v i o r : " a u t o " } ) ; \ n r e t u r n t r u e ; \ n } \ n r e t u r n f a l s e ; \ n } \ n s h o u l d S c r o l l U p ( ) { \ n i f ( s e l f . w i n d o w . s c r o l l Y = = = 0 ) { \ n r e t u r n f a l s e ; \ n } \ n i f ( ( s e l f . w i n d o w . s c r o l l Y + s e l f [ " s c r o l l H e i g h t " ] ) / \ n s e l f . d o c u m e n t . s c r o l l i n g E l e m e n t . s c r o l l H e i g h t < \ n 0 . 9 ) { \ n r e t u r n f a l s e ; \ n } \ n r e t u r n t r u e ; \ n } \ n a s y n c * [ S y m b o l . a s y n c I t e r a t o r ] ( ) { \ n i f ( t h i s . s h o u l d S c r o l l U p ( ) ) { \ n y i e l d * t h i s . s c r o l l U p ( ) ; \ n r e t u r n ; \ n } \ n i f ( a w a i t t h i s . s h o u l d S c r o l l ( ) ) { \ n y i e l d * t h i s . s c r o l l D o w n ( ) ; \ n r e t u r n ; \ n } \ n y i e l d t h i s . g e t S t a t e ( " S k i p p i n g a u t o s c r o l l , p a g e s e e m s t o n o t b e r e s p o n s i v e t o s c r o l l i n g e v e n t s " ) ; \ n } \ n a s y n c * s c r o l l D o w n ( ) { \ n c o n s t s c r o l l I n c = M a t h . m i n ( s e l f . d o c u m e n t . s c r o l l i n g E l e m e n t . c l i e n t H e i g h t * 0 . 1 , 3 0 ) ; \ n c o n s t i n t e r v a l = 7 5 ; \ n l e t e l a p s e d W a i t = 0 ; \ n l e t s h o w M o r e E l e m = n u l l ; \ n l e t i g n o r e S h o w M o r e E l e m = f a l s e ; \ n c o n s t s c r o l l O p t s = { t o p : s c r o l l I n c , l e f t : 0 , b e h a v i o r : " a u t o " } ; \ n l e t l a s t S c r o l l H e i g h t = s e l f . d o c u m e n t . s c r o l l i n g E l e m e n t . s c r o l l H e i g h t ; \ n w h i l e ( t h i s . c a n S c r o l l M o r e ( ) ) { \ n i f ( d o c u m e n t . l o c a t i o n . p a t h n a m e ! = = t h i s . o r i g P a t h ) { \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . b e h
/ * ! * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / index . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "BehaviorManager": () => (/ * binding * / BehaviorManager)\n/ * harmony export * / });\n/ * harmony import * / var _autofetcher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . / autofetcher * / " . / s r c / a u t o f e t c h e r . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ a u t o p l a y _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / a u t o p l a y * / " . / s r c / a u t o p l a y . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ a u t o s c r o l l _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 2 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / a u t o s c r o l l * / " . / s r c / a u t o s c r o l l . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ a u t o c l i c k _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 3 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / a u t o c l i c k * / " . / s r c / a u t o c l i c k . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / u t i l s * / " . / s r c / l i b / u t i l s . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ l i b _ b e h a v i o r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 5 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / l i b / b e h a v i o r * / " . / s r c / l i b / b e h a v i o r . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ s i t e _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 6 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / s i t e * / " . / s r c / s i t e / i n d e x . t s " ) ; \ n \ n \ n \ n \ n \ n \ n \ n \ n c o n s t D E F A U L T _ O P T S = { \ n a u t o f e t c h : t r u e , \ n a u t o p l a y : t r u e , \ n a u t o s c r o l l : t r u e , \ n a u t o c l i c k : t r u e , \ n s i t e S p e c i f i c : t r u e , \ n } ; \ n c o n s t D E F A U L T _ C L I C K _ S E L E C T O R = " a " ; \ n c o n s t D E F A U L T _ L I N K _ S E L E C T O R = " a [ h r e f ] " ; \ n c o n s t D E F A U L T _ L I N K _ E X T R A C T = " h r e f " ; \ n c l a s s B e h a v i o r M a n a g e r { \ n a u t o f e t c h ; \ n b e h a v i o r s ; \ n l o a d e d B e h a v i o r s ; \ n m a i n B e h a v i o r ; \ n m a i n B e h a v i o r C l a s s ; \ n i n i t e d ; \ n s t a r t e d ; \ n t i m e o u t ; \ n o p t s ; \ n l i n k O p t s ; \ n c o n s t r u c t o r ( ) { \ n t h i s . b e h a v i o r s = [ ] ; \ n t h i s . l o a d e d B e h a v i o r s = _ s i t e _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 6 _ _ [ " d e f a u l t " ] . r e d u c e ( ( b e h a v i o r s , n e x t ) = > { \ n b e h a v i o r s [ n e x t . i d ] = n e x t ; \ n r e t u r n b e h a v i o r s ; \ n } , { } ) ; \ n t h i s . m a i n B e h a v i o r = n u l l ; \ n t h i s . i n i t e d = f a l s e ; \ n t h i s . s t a r t e d = f a l s e ; \ n t h i s . l i n k O p t s = { \ n s e l e c t o r : D E F A U L T _ L I N K _ S E L E C T O R , \ n e x t r a c t N a m e : D E F A U L T _ L I N K _ E X T R A C T , \ n } ; \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . b e h a v i o r L o g ) ( " L o a d e d b e h a v i o r s f o r : " + s e l f . l o c a t i o n . h r e f ) ; \ n } \ n i n i t ( o p t s = D E F A U L T _ O P T S , r e s t a r t = f a l s e , c u s t o m B e h a v i o r s = n u l l ) { \ n i f ( t h i s . i n i t e d & & ! r e s t a r t ) { \ n r e t u r n ; \ n } \ n t h i s . i n i t e d = t r u e ; \ n t h i s . o p t s = o p t s ; \ n i f ( ! s e l f . w i n d o w ) { \ n r e t u r n ; \ n } \ n t h i s . t i m e o u t = o p t s . t i m e o u t ; \ n i f ( o p t s . l o g ! = = u n d e f i n e d ) { \ n l e t l o g g e r = o p t s . l o g ; \ n i f ( t y p e o f l o g g e r = = = " s t r i n g " ) { \ n l o g g e r = s e l f [ l o g g e r ] ; \ n } \ n i f ( t y p e o f l o g g e r = = = " f u n c t i o n " ) { \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . _ s e t L o g F u n c ) ( l o g g e r ) ; \ n } \ n e l s e i f ( l o g g e r = = = f a l s e ) { \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . _ s e t L o g F u n c ) ( n u l l ) ; \ n } \ n } \ n t h i s . a u t o f e t c h = n e w _ a u t o f e t c h e r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . A u t o F e t c h e r ( ! ! o p t s . a u t o f e t c h , o p t s . f e t c h H e a d e r s , o p t s . s t a r t E a r l y ) ; \ n i f ( o p t s . a u t o f e t c h ) { \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . b e h a v i o r L o g ) ( " U s i n g A u t o F e t c h e r " ) ; \ n t h i s . b e h a v i o r s . p u s h ( t h i s . a u t o f e t c h ) ; \ n } \ n i f ( o p t s . a u t o p l a y ) { \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . b e h a v i o r L o g ) ( " U s i n g A u t o p l a y " ) ; \ n t h i s . b e h a v i o r s . p u s h ( n e w _ a u t o p l a y _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . A u t o p l a y ( t h i s . a u t o f e t c h , o p t s . s t a r t E a r l y ) ) ; \ n } \ n i f ( o p t s . a u t o c l i c k ) { \ n ( 0 , _ l i b _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . b e h a v i o r L o g ) ( " U s i n g A u t o C l i c k " ) ; \ n t h i s . b e h a v i o r s . p u s h ( n e w _ a u t o c l i c k _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 3 _ _ . A u t o C l i c k ( o p t s . c l i c k S e l e c t o r | | D E F A U L T _ C L I C K _ S E L E C T O R ) ) ; \ n } \ n i f ( c u s t o m B e h a v i o r s ) { \ n f o r ( c o n s t b e h a v i o r C l a s s o f c u s t o m B e h a v i o r s ) { \ n t r y { \ n t h i s . l o a d ( b e h a v i o r C l a s s ) ; \ n }
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / lib / behavior . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "BackgroundBehavior": () => (/ * binding * / BackgroundBehavior),\n/ * harmony export * / "Behavior": () => (/ * binding * / Behavior),\n/ * harmony export * / "BehaviorRunner": () => (/ * binding * / BehaviorRunner)\n/ * harmony export * / });\n/ * harmony import * / var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . / utils * / " . / s r c / l i b / u t i l s . t s " ) ; \ n \ n \ n c l a s s B a c k g r o u n d B e h a v i o r { \ n d e b u g ( m s g ) { \ n ( 0 , _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . b e h a v i o r L o g ) ( m s g , " d e b u g " ) ; \ n } \ n e r r o r ( m s g ) { \ n ( 0 , _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . b e h a v i o r L o g ) ( m s g , " e r r o r " ) ; \ n } \ n l o g ( m s g , t y p e = " i n f o " ) { \ n ( 0 , _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . b e h a v i o r L o g ) ( m s g , t y p e ) ; \ n } \ n } \ n c l a s s B e h a v i o r e x t e n d s B a c k g r o u n d B e h a v i o r { \ n _ r u n n i n g ; \ n p a u s e d ; \ n _ u n p a u s e ; \ n s t a t e ; \ n s c r o l l O p t s ; \ n c o n s t r u c t o r ( ) { \ n s u p e r ( ) ; \ n t h i s . _ r u n n i n g = n u l l ; \ n t h i s . p a u s e d = n u l l ; \ n t h i s . _ u n p a u s e = n u l l ; \ n t h i s . s t a t e = { } ; \ n t h i s . s c r o l l O p t s = { b e h a v i o r : " s m o o t h " , b l o c k : " c e n t e r " , i n l i n e : " c e n t e r " } ; \ n } \ n s t a r t ( ) { \ n t h i s . _ r u n n i n g = t h i s . r u n ( ) ; \ n } \ n d o n e ( ) { \ n r e t u r n t h i s . _ r u n n i n g ? t h i s . _ r u n n i n g : P r o m i s e . r e s o l v e ( ) ; \ n } \ n a s y n c r u n ( ) { \ n t r y { \ n f o r a w a i t ( c o n s t s t e p o f t h i s ) { \ n t h i s . d e b u g ( s t e p ) ; \ n i f ( t h i s . p a u s e d ) { \ n a w a i t t h i s . p a u s e d ; \ n } \ n } \ n t h i s . d e b u g ( t h i s . g e t S t a t e ( " d o n e ! " ) ) ; \ n } \ n c a t c h ( e ) { \ n t h i s . e r r o r ( e . t o S t r i n g ( ) ) ; \ n } \ n } \ n p a u s e ( ) { \ n i f ( t h i s . p a u s e d ) { \ n r e t u r n ; \ n } \ n t h i s . p a u s e d = n e w P r o m i s e ( ( r e s o l v e ) = > { \ n t h i s . _ u n p a u s e = r e s o l v e ; \ n } ) ; \ n } \ n u n p a u s e ( ) { \ n i f ( t h i s . _ u n p a u s e ) { \ n t h i s . _ u n p a u s e ( ) ; \ n t h i s . p a u s e d = n u l l ; \ n t h i s . _ u n p a u s e = n u l l ; \ n } \ n } \ n g e t S t a t e ( m s g , i n c r V a l u e ) { \ n i f ( i n c r V a l u e ) { \ n i f ( t h i s . s t a t e [ i n c r V a l u e ] = = = u n d e f i n e d ) { \ n t h i s . s t a t e [ i n c r V a l u e ] = 1 ; \ n } \ n e l s e { \ n t h i s . s t a t e [ i n c r V a l u e ] + + ; \ n } \ n } \ n r e t u r n { s t a t e : t h i s . s t a t e , m s g } ; \ n } \ n c l e a n u p ( ) { } \ n a s y n c a w a i t P a g e L o a d ( _ ) { \ n } \ n s t a t i c l o a d ( ) { \ n i f ( s e l f [ " _ _ b x _ b e h a v i o r s " ] ) { \ n s e l f [ " _ _ b x _ b e h a v i o r s " ] . l o a d ( t h i s ) ; \ n } \ n e l s e { \ n c o n s o l e . w a r n ( ` C o u l d n o t l o a d $ { t h i s . n a m e } b e h a v i o r : w i n d o w . _ _ b x _ b e h a v i o r s i s n o t i n i t i a l i z e d ` ) ; \ n } \ n } \ n a s y n c * [ S y m b o l . a s y n c I t e r a t o r ] ( ) { \ n y i e l d ; \ n } \ n } \ n c l a s s A b s t r a c t B e h a v i o r I n s t { \ n } \ n c l a s s B e h a v i o r R u n n e r e x t e n d s B a c k g r o u n d B e h a v i o r { \ n i n s t ; \ n b e h a v i o r P r o p s ; \ n c t x ; \ n _ r u n n i n g ; \ n p a u s e d ; \ n _ u n p a u s e ; \ n g e t i d ( ) { \ n r e t u r n ( t h i s . i n s t ? . c o n s t r u c t o r ) . i d ; \ n } \ n c o n s t r u c t o r ( b e h a v i o r , m a i n O p t s = { } ) { \ n s u p e r ( ) ; \ n t h i s . b e h a v i o r P r o p s = b e h a v i o r ; \ n t h i s . i n s t = n e w b e h a v i o r ( ) ; \ n i f ( t y p e o f t h i s . i n s t . r u n ! = = " f u n c t i o n " | | \ n t h i s . i n s t . r u n . c o n s t r u c t o r . n a m e ! = = " A s y n c G e n e r a t o r F u n c t i o n " ) { \ n t h r o w E r r o r ( " I n v a l i d b e h a v i o r : m i s s i n g ` a s y n c r u n * ` i n s t a n c e m e t h o d " ) ; \ n } \ n l e t { s t a t e , o p t s } = b e h a v i o r . i n i t ( ) ; \ n s t a t e = s t a t e | | { } ; \ n o p t s = o p t s ? { . . . o p t s , . . . m a i n O p t s } : m a i n O p t s ; \ n c o n s t l o g = a s y n c ( d a t a , t y p e ) = > t h i s . w r a p p e d L o g ( d a t a , t y p e ) ; \ n t h i s . c t x = { L i b : _ u t i l s _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ , s t a t e , o p t s , l o g } ; \ n t h i s . _ r u n n i n g = n u l l ; \ n t h i s . p a u s e d = n u l l ; \ n t h i s . _ u n p a u s e = n u l l ; \ n } \ n w r a p p e d L o g ( d a t a , t y p e = " i n f o " ) { \ n l e t l o g D a t a ; \ n i f ( t y p e o f d a t a = = = " s t r i n g " | | d a t a i n s t a n c e o f S t r i n g ) { \ n l o g D a t a = { m s g : d a t a } ; \ n } \ n e l s e { \ n l o g D a t a = d a t a ; \ n
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / lib / utils . ts * * * !
2025-11-10 22:25:35 -08:00
\ * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "HistoryState": () => (/ * binding * / HistoryState),\n/ * harmony export * / "RestoreState": () => (/ * binding * / RestoreState),\n/ * harmony export * / "_setBehaviorManager": () => (/ * binding * / _setBehaviorManager),\n/ * harmony export * / "_setLogFunc": () => (/ * binding * / _setLogFunc),\n/ * harmony export * / "addLink": () => (/ * binding * / addLink),\n/ * harmony export * / "addToExternalSet": () => (/ * binding * / addToExternalSet),\n/ * harmony export * / "assertContentValid": () => (/ * binding * / assertContentValid),\n/ * harmony export * / "awaitLoad": () => (/ * binding * / awaitLoad),\n/ * harmony export * / "behaviorLog": () => (/ * binding * / behaviorLog),\n/ * harmony export * / "callBinding": () => (/ * binding * / callBinding),\n/ * harmony export * / "checkToJsonOverride": () => (/ * binding * / checkToJsonOverride),\n/ * harmony export * / "click": () => (/ * binding * / click),\n/ * harmony export * / "doExternalFetch": () => (/ * binding * / doExternalFetch),\n/ * harmony export * / "getState": () => (/ * binding * / getState),\n/ * harmony export * / "initFlow": () => (/ * binding * / initFlow),\n/ * harmony export * / "installBehaviors": () => (/ * binding * / installBehaviors),\n/ * harmony export * / "isInViewport": () => (/ * binding * / isInViewport),\n/ * harmony export * / "iterChildElem": () => (/ * binding * / iterChildElem),\n/ * harmony export * / "iterChildMatches": () => (/ * binding * / iterChildMatches),\n/ * harmony export * / "nextFlowStep": () => (/ * binding * / nextFlowStep),\n/ * harmony export * / "openWindow": () => (/ * binding * / openWindow),\n/ * harmony export * / "scrollAndClick": () => (/ * binding * / scrollAndClick),\n/ * harmony export * / "scrollIntoView": () => (/ * binding * / scrollIntoView),\n/ * harmony export * / "scrollToOffset": () => (/ * binding * / scrollToOffset),\n/ * harmony export * / "sleep": () => (/ * binding * / sleep),\n/ * harmony export * / "waitForNetworkIdle": () => (/ * binding * / waitForNetworkIdle),\n/ * harmony export * / "waitUnit": () => (/ * binding * / waitUnit),\n/ * harmony export * / "waitUntil": () => (/ * binding * / waitUntil),\n/ * harmony export * / "waitUntilNode": () => (/ * binding * / waitUntilNode),\n/ * harmony export * / "xpathNode": () => (/ * binding * / xpathNode),\n/ * harmony export * / "xpathNodes": () => (/ * binding * / xpathNodes),\n/ * harmony export * / "xpathString": () => (/ * binding * / xpathString)\n/ * harmony export * / } ) ; \ n l e t _ l o g F u n c = c o n s o l e . l o g ; \ n l e t _ b e h a v i o r M g r C l a s s = n u l l ; \ n c o n s t s c r o l l O p t s = { b e h a v i o r : " s m o o t h " , b l o c k : " c e n t e r " , i n l i n e : " c e n t e r " } ; \ n a s y n c f u n c t i o n s c r o l l A n d C l i c k ( n o d e , i n t e r v a l = 5 0 0 , o p t s = s c r o l l O p t s ) { \ n n o d e . s c r o l l I n t o V i e w ( o p t s ) ; \ n a w a i t s l e e p ( i n t e r v a l ) ; \ n n o d e . c l i c k ( ) ; \ n } \ n c o n s t w a i t U n i t = 2 0 0 ; \ n a s y n c f u n c t i o n s l e e p ( t i m e o u t ) { \ n r e t u r n n e w P r o m i s e ( ( r e s o l v e ) = > s e t T i m e o u t ( r e s o l v e , t i m e o u t ) ) ; \ n } \ n a s y n c f u n c t i o n w a i t U n t i l ( p r e d , i n t e r v a l = w a i t U n i t ) { \ n w h i l e ( ! p r e d ( ) ) { \ n a w a i t s l e e p ( i n t e r v a l ) ; \ n } \ n } \ n a s y n c f u n c t i o n w a i t U n t i l N o d e ( p a t h , r o o t = d o c u m e n t , o l d = n u l l , t i m e o u t = 1 0 0 0 , i n t e r v a l = w a i t U n i t ) { \ n l e t n o d e = n u l l ; \ n l e t s t o p = f a l s e ; \ n c o n s t w a i t P = w a i t U n t i l ( ( ) = > { \ n n o d e = x p a t h N o d e ( p a t h , r o o t ) ; \ n r e t u r n s t o p | | ( n o d e ! = = o l d & & n o d e ! = = n u l l ) ; \ n } , i n t e r v a l ) ; \ n c o n s t t i m e o u t P = n e w P r o m i s e ( ( r ) = > s e t T i m e o u t ( ( ) = > { \ n s t o p = t r u e ; \ n r ( " T I M E O U T " ) ; \ n } , t i m e o u t ) ) ; \ n a w a i t P r o m i s e . r a c e ( [ w a i t P , t i m e o u t P ] ) ; \ n r e t u r n n o d e ; \ n } \ n a s y n c f u n c t i o n a w a i t L o a d ( i f r a m e ) { \ n c o n s t d o c = i f r a m e ? i f r a m e . c o n t e n t D o c u m e n t : d o c u m e n t ; \ n c o n s t w i n = i f r a m e ? i f r a m e . c o n t e n t W i n d o w : w i n d o w ; \ n r e t u r n n e w P r o m i s e ( ( r e s o l v e ) = > { \ n i f ( d o c . r e a d y S t a t e = = = " c o m p l e t e " ) { \ n r e s o l v e ( n u l l ) ; \ n } \ n e l s e { \ n w i n . a d d E v e n t L i s t e n e r ( " l o a d " , r e s o l v e ) ; \ n } \ n } ) ; \ n } \ n f u n c t i
2025-11-10 19:08:22 -08:00
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / site / facebook . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "FacebookTimelineBehavior": () => (/ * binding * / FacebookTimelineBehavior)\n/ * harmony export * / });\nconst Q = {\n feed: "/ / div [ @ role = \ 'feed\']",\n article: ".//div[@role=\'article\']",\n pageletPostList: "//div[@data-pagelet=\'page\']/div[@role=\'main\']//div[@role=\'main\']/div",\n pageletProfilePostList: "//div[@data-pagelet=\'page\']//div[@data-pagelet=\'ProfileTimeline\']",\n articleToPostList: "//div[@role=\'article\']/../../../../div",\n photosOrVideos: `.//a[(contains(@href, \'/photos/\') or contains(@href, \'/photo/?\') or contains(@href, \'/videos/\')) and (starts-with(@href, \'${window.location.origin}/\') or starts-with(@href, \'/\'))]`,\n postQuery: ".//a[contains(@href, \'/posts/\')]",\n extraLabel: "//*[starts-with(text(), \'+\')]",\n nextSlideQuery: "//div[@data-name=\'media-viewer-nav-container\']/div[@data-visualcompletion][2]//div[@role=\'button\']",\n nextSlide: "//div[@aria-hidden=\'false\']//div[@role=\'button\' and not(@aria-hidden) and @aria-label]",\n commentList: ".//ul[(../h3) or (../h4)]",\n commentMoreReplies: "./div[2]/div[1]/div[2]/div[@role=\'button\']",\n commentMoreComments: "./following-sibling::div/div/div[2][@role=\'button\'][./span/span]",\n viewComments: ".//h4/..//div[@role=\'button\']",\n photoCommentList: "//ul[../h2]",\n firstPhotoThumbnail: "//div[@role=\'main\']//div[3]//div[contains(@style, \'border-radius\')]//div[contains(@style, \'max-width\') and contains(@style, \'min-width\')]//a[@role=\'link\']",\n firstVideoThumbnail: "//div[@role=\'main\']//div[contains(@style, \'z-index\')]/following-sibling::div/div/div/div[last()]//a[contains(@href, \'/videos/\') and @aria-hidden!=\'true\']",\n firstVideoSimple: "//div[@role=\'main\']//a[contains(@href, \'/videos/\') and @aria-hidden!=\'true\']",\n mainVideo: "//div[@data-pagelet=\'root\']//div[@role=\'dialog\']//div[@role=\'main\']//video",\n nextVideo: "following::a[contains(@href, \'/videos/\') and @aria-hidden!=\'true\']",\n isPhotoVideoPage: /^.*facebook\\.com\\/[^/]+\\/(photos|videos)\\/.+/,\n isPhotosPage: /^.*facebook\\.com\\/[^/]+\\/photos\\/?($|\\?)/,\n isVideosPage: /^.*facebook\\.com\\/[^/]+\\/videos\\/?($|\\?)/,\n pageLoadWaitUntil: "//div[@role=\'main\' ] ",\n};\nclass FacebookTimelineBehavior {\n extraWindow;\n allowNewWindow;\n static id = " Facebook " ; \ n static isMatch ( ) { \ n return ! ! window . location . href . match ( /https:\\/ \ \ / ( www \ \ . ) ? facebook \ \ . com \ \ / . * \ \ / posts \ \ //);\n }\n static init() {\n return {\n state: {},\n };\n }\n constructor() {\n this.extraWindow = null;\n this.allowNewWindow = false;\n }\n async *iterPostFeeds(ctx) {\n const { iterChildElem, waitUnit, waitUntil, xpathNode, xpathNodes } = ctx.Lib;\n const feeds = Array.from(xpathNodes(Q.feed));\n if (feeds && feeds.length) {\n for (const feed of feeds) {\n for await (const post of iterChildElem(feed, waitUnit, waitUntil * 10)) {\n yield* this.viewPost(ctx, xpathNode(Q.article, post));\n }\n }\n }\n else {\n const feed = xpathNode(Q.pageletPostList) ||\n xpathNode(Q.pageletProfilePostList) ||\n xpathNode(Q.articleToPostList);\n if (!feed) {\n return;\n }\n for await (const post of iterChildElem(feed, waitUnit, waitUntil * 10)) {\n yield* this.viewPost(ctx, xpathNode(Q.article, post));\n }\n }\n if (this.extraWindow) {\n this.extraWindow.close();\n }\n }\n async *viewPost(ctx, post, maxExpands = 2) {\n const { getState, scrollIntoView, sleep, waitUnit, xpathNode } = ctx.Lib;\n if (!post) {\n
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / site / index . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "default": () => (__WEBPACK_DEFAULT_EXPORT__)\n/ * harmony export * / });\n/ * harmony import * / var _facebook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . / facebook * / " . / s r c / s i t e / f a c e b o o k . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ i n s t a g r a m _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / i n s t a g r a m * / " . / s r c / s i t e / i n s t a g r a m . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ t e l e g r a m _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 2 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / t e l e g r a m * / " . / s r c / s i t e / t e l e g r a m . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ t w i t t e r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 3 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / t w i t t e r * / " . / s r c / s i t e / t w i t t e r . t s " ) ; \ n / * h a r m o n y i m p o r t * / v a r _ t i k t o k _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ = _ _ w e b p a c k _ r e q u i r e _ _ ( / * ! . / t i k t o k * / " . / s r c / s i t e / t i k t o k . t s " ) ; \ n \ n \ n \ n \ n \ n c o n s t s i t e B e h a v i o r s = [ \ n _ i n s t a g r a m _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 1 _ _ . I n s t a g r a m P o s t s B e h a v i o r , \ n _ t w i t t e r _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 3 _ _ . T w i t t e r T i m e l i n e B e h a v i o r , \ n _ f a c e b o o k _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . F a c e b o o k T i m e l i n e B e h a v i o r , \ n _ t e l e g r a m _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 2 _ _ . T e l e g r a m B e h a v i o r , \ n _ t i k t o k _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . T i k T o k V i d e o B e h a v i o r , \ n _ t i k t o k _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 4 _ _ . T i k T o k P r o f i l e B e h a v i o r , \ n ] ; \ n / * h a r m o n y d e f a u l t e x p o r t * / c o n s t _ _ W E B P A C K _ D E F A U L T _ E X P O R T _ _ = ( s i t e B e h a v i o r s ) ; \ n \ n \ n / / # s o u r c e U R L = w e b p a c k : / / b r o w s e r t r i x - b e h a v i o r s / . / s r c / s i t e / i n d e x . t s ? ' ) } , " . / s r c / s i t e / i n s t a g r a m . t s " :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / site / instagram . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "InstagramPostsBehavior": () => (/ * binding * / InstagramPostsBehavior)\n/ * harmony export * / });\nconst subpostNextOnlyChevron = "/ / article [ @ role = \ 'presentation\']//div[@role=\'presentation\']/following-sibling::button";\nconst Q = {\n rootPath: "//main//div/div[2]/div/div/div/div",\n childMatchSelect: "string(.//a[starts-with(@href, \'/\')]/@href)",\n childMatch: "child::div[.//a[@href=\'$1\']]",\n firstPostInRow: "div[1]//a",\n postCloseButton: "//div[last() - 2]//div[@role=\'button\']",\n nextPost: "//button[.//*[local-name() = \'svg\' and @aria-label=\'Next\']]",\n postLoading: "//*[@aria-label=\'Loading...\']",\n subpostNextOnlyChevron,\n subpostPrevNextChevron: subpostNextOnlyChevron + "[2]",\n commentRoot: "//article[@role=\'presentation\']/div[1]/div[2]//ul/div[last()]/div/div",\n viewReplies: "ul/li//button[span[not(count(*)) and contains(text(), \'(\' ) ] ] ",\n loadMore: " //button[span[@aria-label]]",\n pageLoadWaitUntil: "//main",\n};\nclass InstagramPostsBehavior {\n maxCommentsTime;\n postOnlyWindow;\n static id = "Instagram";\n static isMatch() {\n return !!window.location.href.match(/https:\\/\\/(www\\.)?instagram\\.com\\//);\n }\n static init() {\n return {\n state: {\n posts: 0,\n slides: 0,\n rows: 0,\n comments: 0,\n },\n };\n }\n constructor() {\n this.maxCommentsTime = 10000;\n this.postOnlyWindow = null;\n }\n cleanup() {\n if (this.postOnlyWindow) {\n this.postOnlyWindow.close();\n this.postOnlyWindow = null;\n }\n }\n async waitForNext(ctx, child) {\n if (!child) {\n return null;\n }\n await ctx.Lib.sleep(ctx.Lib.waitUnit);\n if (!child.nextElementSibling) {\n return null;\n }\n return child.nextElementSibling;\n }\n async *iterRow(ctx) {\n const { RestoreState, sleep, waitUnit, xpathNode } = ctx.Lib;\n const root = xpathNode(Q.rootPath);\n if (!root) {\n return;\n }\n let child = root.firstElementChild;\n if (!child) {\n return;\n }\n while (child) {\n await sleep(waitUnit);\n const restorer = new RestoreState(Q.childMatchSelect, child);\n if (restorer.matchValue) {\n yield child;\n child = await restorer.restore(Q.rootPath, Q.childMatch);\n }\n child = await this.waitForNext(ctx, child);\n }\n }\n async *viewStandalonePost(ctx, origLoc) {\n const { getState, sleep, waitUnit, waitUntil, xpathNode, xpathString } = ctx.Lib;\n const root = xpathNode(Q.rootPath);\n if (!root?.firstElementChild) {\n return;\n }\n const firstPostHref = xpathString(Q.childMatchSelect, root.firstElementChild);\n yield getState(ctx, "Loading single post view for first post: " + firstPostHref);\n window.history.replaceState({}, "", firstPostHref);\n window.dispatchEvent(new PopStateEvent("popstate", { state: {} }));\n let root2 = null;\n let root3 = null;\n await sleep(waitUnit * 5);\n await waitUntil(() => (root2 = xpathNode(Q.rootPath)) !== root && root2, waitUnit * 5);\n await sleep(waitUnit * 5);\n window.history.replaceState({}, "", origLoc);\n window.dispatchEvent(new PopStateEvent("popstate", { state: {} }));\n await waitUntil(() => (root3 = xpathNode(Q.rootPath)) !== root2 && root3, waitUnit * 5);\n }\n async *iterSubposts(ctx) {\n const { getState, sleep, waitUnit, xpathNode } = ctx.Lib;\n let next = xpathNode(Q.subpostNextOnlyChevron);\n let count = 1
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / site / telegram . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "TelegramBehavior": () => (/ * binding * / TelegramBehavior)\n/ * harmony export * / });\nconst Q = {\n telegramContainer: "/ / main //section[@class=\'tgme_channel_history js-message_history\']",\n postId: "string(./div[@data-post]/@data-post)",\n linkExternal: "string(.//a[@class=\'tgme_widget_message_link_preview\' and @href]/@href)",\n};\nclass TelegramBehavior {\n static id = "Telegram";\n static isMatch() {\n return !!window.location.href.match(/https:\\/\\/t.me\\/s\\/\\w[\\w]+/);\n }\n static init() {\n return {\n state: { messages: 0 },\n };\n }\n async waitForPrev(ctx, child) {\n if (!child) {\n return null;\n }\n await ctx.Lib.sleep(ctx.Lib.waitUnit * 5);\n if (!child.previousElementSibling) {\n return null;\n }\n return child.previousElementSibling;\n }\n async *run(ctx) {\n const { getState, scrollIntoView, sleep, waitUnit, xpathNode, xpathString, } = ctx.Lib;\n const root = xpathNode(Q.telegramContainer);\n if (!root) {\n return;\n }\n let child = root.lastElementChild;\n while (child) {\n scrollIntoView(child);\n const postId = xpathString(Q.postId, child) || "unknown";\n const linkUrl = xpathString(Q.linkExternal, child);\n if (linkUrl?.endsWith(".jpg") || linkUrl.endsWith(".png")) {\n yield getState(ctx, "Loading External Image: " + linkUrl);\n const image = new Image();\n image.src = linkUrl;\n document.body.appendChild(image);\n await sleep(waitUnit * 2.5);\n document.body.removeChild(image);\n }\n yield getState(ctx, "Loading Message: " + postId, "messages");\n child = await this.waitForPrev(ctx, child);\n }\n }\n}\n\n\n//# sourceURL=webpack://browsertrix-behaviors/./src/site/telegram.ts?')},"./src/site/tiktok.ts":
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / site / tiktok . ts * * * !
2025-11-10 22:25:35 -08:00
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "BREADTH_ALL": () => (/ * binding * / BREADTH_ALL),\n/ * harmony export * / "TikTokProfileBehavior": () => (/ * binding * / TikTokProfileBehavior),\n/ * harmony export * / "TikTokSharedBehavior": () => (/ * binding * / TikTokSharedBehavior),\n/ * harmony export * / "TikTokVideoBehavior": () => (/ * binding * / TikTokVideoBehavior)\n/ * harmony export * / });\nconst Q = {\n commentButton: "button[aria-label^=\'Read or add comments\']",\n commentList: "/ / div [ contains ( @ class , \ 'CommentListContainer\')]",\n commentItem: "div[contains(@class, \'CommentItemContainer\')]",\n viewMoreReplies: ".//p[contains(@class, \'ReplyActionText\')]",\n viewMoreThread: ".//p[starts-with(@data-e2e, \'view-more\') and string-length(text()) > 0]",\n profileVideoList: "//div[starts-with(@data-e2e, \'user-post-item-list\')]",\n profileVideoItem: "div[contains(@class, \'DivItemContainerV2\')]",\n backButton: "button[contains(@class, \'StyledCloseIconContainer\')]",\n pageLoadWaitUntil: "//*[@role=\'dialog\']",\n};\nconst BREADTH_ALL = Symbol("BREADTH_ALL");\nclass TikTokSharedBehavior {\n async awaitPageLoad(ctx) {\n const { assertContentValid, waitUntilNode } = ctx.Lib;\n await waitUntilNode(Q.pageLoadWaitUntil, document, null, 10000);\n assertContentValid(() => !!document.querySelector("*[aria-label=\'Messages\']"), "not_logged_in");\n }\n}\nclass TikTokVideoBehavior extends TikTokSharedBehavior {\n static id = "TikTokVideo";\n static init() {\n return {\n state: { comments: 0 },\n opts: { breadth: BREADTH_ALL },\n };\n }\n static isMatch() {\n const pathRegex = /https:\\/\\/(www\\.)?tiktok\\.com\\/@.+\\/video\\/\\d+\\/?.*/;\n return !!window.location.href.match(pathRegex);\n }\n breadthComplete({ opts: { breadth } }, iter) {\n return breadth !== BREADTH_ALL && breadth <= iter;\n }\n async *crawlThread(ctx, parentNode, prev = null, iter = 0) {\n const { waitUntilNode, scrollAndClick, getState } = ctx.Lib;\n const next = await waitUntilNode(Q.viewMoreThread, parentNode, prev);\n if (!next || this.breadthComplete(ctx, iter))\n return;\n await scrollAndClick(next, 500);\n yield getState(ctx, "View more replies", "comments");\n yield* this.crawlThread(ctx, parentNode, next, iter + 1);\n }\n async *expandThread(ctx, item) {\n const { xpathNode, scrollAndClick, getState } = ctx.Lib;\n const viewMore = xpathNode(Q.viewMoreReplies, item);\n if (!viewMore)\n return;\n await scrollAndClick(viewMore, 500);\n yield getState(ctx, "View comment", "comments");\n yield* this.crawlThread(ctx, item, null, 1);\n }\n async *run(ctx) {\n const { xpathNode, iterChildMatches, scrollIntoView, getState, click, waitUntilNode } = ctx.Lib;\n await click(Q.commentButton);\n await waitUntilNode("//div[contains(@class, \'DivCommentMain\' ) ] ");\n const commentList = xpathNode(Q.commentList);\n const commentItems = iterChildMatches(Q.commentItem, commentList);\n for await (const item of commentItems) {\n scrollIntoView(item);\n yield getState(ctx, " View comment ", " comments ");\n if (this.breadthComplete(ctx, 0))\n continue;\n yield* this.expandThread(ctx, item);\n }\n yield getState(ctx, " TikTok Video Behavior Complete ");\n }\n}\nclass TikTokProfileBehavior extends TikTokSharedBehavior {\n static id = " TikTokProfile " ; \ n static isMatch ( ) { \ n const pathRegex = /https:\\/ \ \ / ( www \ \ . ) ? tiktok \ \ . com \ \ / @ [ a - zA - Z0 - 9 ] + ( \ \ / ? $ | \ \ / \ \ ? . * ) / ; \ n return ! ! window . location . href . match ( pathRegex ) ; \ n } \ n static init ( ) { \ n return { \ n state : { videos : 0 , com
2025-11-10 19:08:22 -08:00
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / site / twitter . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "TwitterTimelineBehavior": () => (/ * binding * / TwitterTimelineBehavior)\n/ * harmony export * / });\nconst Q = {\n rootPath: "/ / h1 [ @ role = \ 'heading\' and @aria-level=\'1\']/following-sibling::div[@aria-label]//div[@style]",\n anchor: ".//article",\n childMatchSelect: "string(.//article//a[starts-with(@href, \'/\') and @aria-label]/@href)",\n childMatch: "child::div[.//a[@href=\'$1\']]",\n expand: ".//div[@role=\'button\' and not(@aria-haspopup) and not(@data-testid)]",\n quote: ".//div[@role=\'blockquote\' and @aria-haspopup=\'false\']",\n image: ".//a[@role=\'link\' and starts-with(@href, \'/\') and contains(@href, \'/photo/\')]",\n imageFirstNext: "//div[@aria-roledescription=\'carousel\']/div[2]/div[1]//div[@role=\'button\']",\n imageNext: "//div[@aria-roledescription=\'carousel\']/div[2]/div[2]//div[@role=\'button\']",\n imageClose: "//div[@role=\'presentation\']/div[@role=\'button\' and @aria-label]",\n backButton: "//div[@data-testid=\'titleContainer\']//div[@role=\'button\']",\n viewSensitive: ".//a[@href=\'/settings/content_you_see\']/parent::div/parent::div/parent::div//div[@role=\'button\']",\n progress: ".//*[@role=\'progressbar\']",\n promoted: ".//div[data-testid=\'placementTracking\' ] ",\n};\nclass TwitterTimelineBehavior {\n seenTweets;\n seenMediaTweets;\n static id = " Twitter " ; \ n static isMatch ( ) { \ n return ! ! window . location . href . match ( /https:\\/ \ \ / ( www \ \ . ) ? ( x | twitter ) \ \ . com \ \ //);\n }\n static init() {\n return {\n state: {\n tweets: 0,\n images: 0,\n videos: 0,\n },\n opts: {\n maxDepth: 0,\n },\n };\n }\n constructor() {\n this.seenTweets = new Set();\n this.seenMediaTweets = new Set();\n }\n showingProgressBar(ctx, root) {\n const { xpathNode } = ctx.Lib;\n const node = xpathNode(Q.progress, root);\n if (!node) {\n return false;\n }\n return node.clientHeight > 10;\n }\n async waitForNext(ctx, child) {\n const { sleep, waitUnit } = ctx.Lib;\n if (!child) {\n return null;\n }\n await sleep(waitUnit * 2);\n if (!child.nextElementSibling) {\n return null;\n }\n while (this.showingProgressBar(ctx, child.nextElementSibling)) {\n await sleep(waitUnit);\n }\n return child.nextElementSibling;\n }\n async expandMore(ctx, child) {\n const { sleep, waitUnit, xpathNode } = ctx.Lib;\n const expandElem = xpathNode(Q.expand, child);\n if (!expandElem) {\n return child;\n }\n const prev = child.previousElementSibling;\n expandElem.click();\n await sleep(waitUnit);\n while (this.showingProgressBar(ctx, prev.nextElementSibling)) {\n await sleep(waitUnit);\n }\n child = prev.nextElementSibling;\n return child;\n }\n async *infScroll(ctx) {\n const { scrollIntoView, RestoreState, sleep, waitUnit, xpathNode } = ctx.Lib;\n const root = xpathNode(Q.rootPath);\n if (!root) {\n return;\n }\n let child = root.firstElementChild;\n if (!child) {\n return;\n }\n while (child) {\n let anchorElem = xpathNode(Q.anchor, child);\n if (!anchorElem && Q.expand) {\n child = await this.expandMore(ctx, child);\n anchorElem = xpathNode(Q.anchor, child);\n }\n if (child?.innerText) {\n scrollIntoView(child);\n }\n if (child && anchorElem) {\n await sleep(waitUnit);\n const restorer = new RestoreState(Q.childMatchSelec
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / site / youtube . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/ * harmony export * / __webpack_require__.d(__webpack_exports__, {\n/ * harmony export * / "YoutubeBehavior": () => (/ * binding * / YoutubeBehavior)\n/ * harmony export * / });\n/ * harmony import * / var _autoscroll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/ * ! . . / autoscroll * / " . / s r c / a u t o s c r o l l . t s " ) ; \ n \ n c l a s s Y o u t u b e B e h a v i o r e x t e n d s _ a u t o s c r o l l _ _ W E B P A C K _ I M P O R T E D _ M O D U L E _ 0 _ _ . A u t o S c r o l l { \ n a s y n c a w a i t P a g e L o a d ( c t x ) { \ n c o n s t { s l e e p , a s s e r t C o n t e n t V a l i d } = c t x . L i b ; \ n a w a i t s l e e p ( 1 0 ) ; \ n a s s e r t C o n t e n t V a l i d ( ( ) = > { \ n c o n s t v i d e o = d o c u m e n t . q u e r y S e l e c t o r ( " v i d e o " ) ; \ n c o n s t p a u s e d = v i d e o & & v i d e o . p a u s e d ; \ n i f ( p a u s e d ) { \ n r e t u r n f a l s e ; \ n } \ n r e t u r n d o c u m e n t . d o c u m e n t E l e m e n t . o u t e r H T M L . i n d e x O f ( " n o t a b o t " ) = = = - 1 ; \ n } , " n o _ v i d e o _ p l a y i n g " ) ; \ n } \ n } \ n \ n \ n / / # s o u r c e U R L = w e b p a c k : / / b r o w s e r t r i x - b e h a v i o r s / . / s r c / s i t e / y o u t u b e . t s ? ' ) } , " . / s r c l a z y r e c u r s i v e ^ . * $ " :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / lazy ^ . * $ namespace object * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /(module,__unused_webpack_exports,__webpack_require__)=>{eval('var map = {\n\t".": [\n\t\t"./src/index.ts"\n\t],\n\t"./ ": [\n\t\t" . / src / index . ts "\n\t],\n\t" . / autoclick ": [\n\t\t" . / src / autoclick . ts "\n\t],\n\t" . / autoclick . ts ": [\n\t\t" . / src / autoclick . ts "\n\t],\n\t" . / autofetcher ": [\n\t\t" . / src / autofetcher . ts "\n\t],\n\t" . / autofetcher . ts ": [\n\t\t" . / src / autofetcher . ts "\n\t],\n\t" . / autoplay ": [\n\t\t" . / src / autoplay . ts "\n\t],\n\t" . / autoplay . ts ": [\n\t\t" . / src / autoplay . ts "\n\t],\n\t" . / autoscroll ": [\n\t\t" . / src / autoscroll . ts "\n\t],\n\t" . / autoscroll . ts ": [\n\t\t" . / src / autoscroll . ts "\n\t],\n\t" . / index ": [\n\t\t" . / src / index . ts "\n\t],\n\t" . / index . ts ": [\n\t\t" . / src / index . ts "\n\t],\n\t" . / lib / behavior ": [\n\t\t" . / src / lib / behavior . ts "\n\t],\n\t" . / lib / behavior . ts ": [\n\t\t" . / src / lib / behavior . ts "\n\t],\n\t" . / lib / utils ": [\n\t\t" . / src / lib / utils . ts "\n\t],\n\t" . / lib / utils . ts ": [\n\t\t" . / src / lib / utils . ts "\n\t],\n\t" . / site ": [\n\t\t" . / src / site / index . ts "\n\t],\n\t" . / site / ": [\n\t\t" . / src / site / index . ts "\n\t],\n\t" . / site / facebook ": [\n\t\t" . / src / site / facebook . ts "\n\t],\n\t" . / site / facebook . ts ": [\n\t\t" . / src / site / facebook . ts "\n\t],\n\t" . / site / index ": [\n\t\t" . / src / site / index . ts "\n\t],\n\t" . / site / index . ts ": [\n\t\t" . / src / site / index . ts "\n\t],\n\t" . / site / instagram ": [\n\t\t" . / src / site / instagram . ts "\n\t],\n\t" . / site / instagram . ts ": [\n\t\t" . / src / site / instagram . ts "\n\t],\n\t" . / site / telegram ": [\n\t\t" . / src / site / telegram . ts "\n\t],\n\t" . / site / telegram . ts ": [\n\t\t" . / src / site / telegram . ts "\n\t],\n\t" . / site / tiktok ": [\n\t\t" . / src / site / tiktok . ts "\n\t],\n\t" . / site / tiktok . ts ": [\n\t\t" . / src / site / tiktok . ts "\n\t],\n\t" . / site / twitter ": [\n\t\t" . / src / site / twitter . ts "\n\t],\n\t" . / site / twitter . ts ": [\n\t\t" . / src / site / twitter . ts "\n\t],\n\t" . / site / youtube ": [\n\t\t" . / src / site / youtube . ts ",\n\t\t" main "\n\t],\n\t" . / site / youtube . ts ": [\n\t\t" . / src / site / youtube . ts ",\n\t\t" main "\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(" Cannot find module \ '" + req + "\'");\n\t\t\te.code = \'MODULE_NOT_FOUND\';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = "./src lazy recursive ^.*$";\nmodule.exports = webpackAsyncContext;\n\n//# sourceURL=webpack://browsertrix-behaviors/./src/_lazy_^.*$_namespace_object?' ) } } , _ _webpack _module _cache _ _ = { } ; function _ _webpack _require _ _ ( e ) { var n = _ _webpack _module _cache _ _ [ e ] ; if ( void 0 !== n ) return n . exports ; var t = _ _webpack _module _cache _ _ [ e ] = { exports : { } } ; return _ _webpack _modules _ _ [ e ] ( t , t . exports , _ _webpack _require _ _ ) , t . exports } _ _webpack _require _ _ . d = ( e , n ) => { for ( var t in n ) _ _webpack _require _ _ . o ( n , t ) && ! _ _webpack _require _ _ . o ( e , t ) && Object . defineProperty ( e , t , { enumerable : ! 0 , get : n [ t ] } ) } , _ _webpack _require _ _ . e = ( ) => Promise . resolve ( ) , _ _webpack _require _ _ . o = ( e , n ) => Object . prototype . hasOwnProperty . call ( e , n ) , _ _webpack _require _ _ . r = e => { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } ; var _ _webpack _exports _ _ = _ _webpack _require _ _ ( "./index.ts" ) } ) ( ) ;