(s, o)
| 38800 | function unobserve(s, o) { |
| 38801 | o.unobserve() |
| 38802 | } |
| 38803 | function observe(s, o) { |
| 38804 | var i, |
| 38805 | a = (function getMirror(s) { |
| 38806 | return $o.get(s) |
| 38807 | })(s) |
| 38808 | if (a) { |
| 38809 | var u = (function getObserverFromMirror(s, o) { |
| 38810 | return s.observers.get(o) |
| 38811 | })(a, o) |
| 38812 | i = u && u.observer |
| 38813 | } else ((a = new qo(s)), $o.set(s, a)) |
| 38814 | if (i) return i |
| 38815 | if (((i = {}), (a.value = _deepClone(s)), o)) { |
| 38816 | ;((i.callback = o), (i.next = null)) |
| 38817 | var dirtyCheck = function () { |
| 38818 | generate(i) |
| 38819 | }, |
| 38820 | fastCheck = function () { |
| 38821 | ;(clearTimeout(i.next), (i.next = setTimeout(dirtyCheck))) |
| 38822 | } |
| 38823 | 'undefined' != typeof window && |
| 38824 | (window.addEventListener('mouseup', fastCheck), |
| 38825 | window.addEventListener('keyup', fastCheck), |
| 38826 | window.addEventListener('mousedown', fastCheck), |
| 38827 | window.addEventListener('keydown', fastCheck), |
| 38828 | window.addEventListener('change', fastCheck)) |
| 38829 | } |
| 38830 | return ( |
| 38831 | (i.patches = []), |
| 38832 | (i.object = s), |
| 38833 | (i.unobserve = function () { |
| 38834 | ;(generate(i), |
| 38835 | clearTimeout(i.next), |
| 38836 | (function removeObserverFromMirror(s, o) { |
| 38837 | s.observers.delete(o.callback) |
| 38838 | })(a, i), |
| 38839 | 'undefined' != typeof window && |
| 38840 | (window.removeEventListener('mouseup', fastCheck), |
| 38841 | window.removeEventListener('keyup', fastCheck), |
| 38842 | window.removeEventListener('mousedown', fastCheck), |
| 38843 | window.removeEventListener('keydown', fastCheck), |
| 38844 | window.removeEventListener('change', fastCheck))) |
| 38845 | }), |
| 38846 | a.observers.set(o, new Uo(o, i)), |
| 38847 | i |
| 38848 | ) |
| 38849 | } |
| 38850 | function generate(s, o) { |
| 38851 | void 0 === o && (o = !1) |
nothing calls this directly
no test coverage detected