      .document
                .getElementById('term')
                .value = term.trim();
            window.toggleSearch();
            window.search();
        }
        }

        const loadingSvg = `
        <svg width="100" height="100" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
        <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">
          <circle cx="22" cy="22" r="6" stroke-opacity="0">
              <animate attributeName="r"
       