\u4ee3\u8868\u6293\u53d6 xxx.com\uff0c\u7372\u53d6\u9801\u9762\u6a19\u984c\u3001\u904d\u6b77\u6240\u6709 .genre a \u5143\u7d20\u7684\u5167\u5bb9\u4e26\u5206\u5225\u5275\u5efa mark \u5143\u7d20\u3001\u7372\u53d6 a.bigImage>img \u5716\u7247\u7684 src \u4e26\u5275\u5efa img \u5143\u7d20',param_find:"\u9801\u5167\u67e5\u627e\u9ad8\u4eae\uff0c\u4f8b\u5982 find:%s",param_findadd:'\u6dfb\u52a0\u76ee\u6a19\u95dc\u9375\u8a5e\u5230\u6307\u5b9a\u9801\u5167\u9ad8\u4eae\u9810\u7f6e\u5206\u7d44\uff0c\u4f8b\u5982 find.addto(reddit):%t.replace(/.*user/,"") \u4ee3\u8868\u7372\u53d6\u6307\u5b9a\u93c8\u63a5\u4e4b\u5f8c\u63d0\u53d6\u93c8\u63a5\u4e2d user \u5f8c\u53c3\u6578\u6dfb\u52a0\u9032\u5165 reddit \u5206\u7d44',javascript:"\u57f7\u884c js \u7a0b\u5f0f\u78bc\uff0cwindow.keywords \u4ee3\u8868\u95dc\u9375\u5b57\uff0cwindow.targetElement \u4ee3\u8868\u6307\u5411\u5143\u7d20\u3002 \u5982\u679c\u76ee\u524d\u9801\u9762\u7121\u6cd5\u57f7\u884c\u9801\u5167\u7a0b\u5f0f\u78bc\uff0c\u5247\u53ef\u65b0\u5efa\u6cb9\u7334\u8173\u672c\u8cbc\u4e0a\u7a0b\u5f0f\u78bc\uff0c\u532f\u51fa\u65b9\u6cd5\u5230 window \u4e0b\uff0c\u900f\u904e\u65b9\u6cd5\u540d\u7a31\u547c\u53eb\u3002 \u4f8b\u5982 javascript:searchJumper_Function1",param_date1:"\u7576\u524d\u6642\u9593\u6233\uff08ms\uff09",param_date2:"\u5c0d\u7576\u524d\u6642\u9593\u6233\u9032\u884c\u7c21\u55ae\u904b\u7b97\uff0c\u4f8b\u5982%date{/1000 +604800}\uff0c\u4ee3\u8868\u4e00\u661f\u671f\u4e4b\u5f8c\u4ee5\u79d2\u8a08\u7b97\u7684\u6642\u9593\u6233",aboutContent:"\u5e73\u6642\u5de5\u4f5c\u4e2d\u641c\u5c0b\u5f15\u64ce\u8df3\u8f49\u529f\u80fd\u7528\u5f97\u5f88\u983b\u7e41\uff0c\u4f46\u5617\u8a66\u4e86\u76f8\u95dc\u7684\u64f4\u5c55\uff0c\u767c\u73fe\u5927\u591a\u593e\u6709\u79c1\u8ca8\u3002\n\u800c\u9019\u53ea\u662f\u4e00\u500b\u7c21\u55ae\u529f\u80fd\uff0c\u6240\u4ee5\u4e0d\u5982\u81ea\u5df1\u5beb\u4e00\u500b\u5566\u3002\n\u7d50\u679c\u5beb\u914d\u7f6e\u9801\u9762\u8017\u8cbb\u7684\u7cbe\u529b\u6578\u500d\u65bc\u8173\u672c\u672c\u8eab\u2026\u2026\ud83e\udd26\u200d\n\u9019\u500b\u641c\u5c0b\u5f15\u64ce\u8df3\u8f49\u652f\u6301\u81ea\u5df1\u62d6\u62fd\u5b9a\u7fa9\u4f4d\u7f6e\uff0c\u540c\u6642\u4e5f\u652f\u6301\u7ad9\u5167\u641c\u5c0b\uff0c\u591a\u8a9e\u8a00\u7de8\u78bc\u8a2d\u7f6e\uff08\u4f8b\u5982shift-jis\uff09\uff0c\u5283\u8a5e\u641c\u5c0b\uff0c\u4ee5\u53ca\u914d\u7f6e\u5c0e\u5165\u5c0e\u51fa\u3002"};break;default:ga={name:"SearchJumper",lang:"Language",setLang:"Set language",outOfDate:"The script is out of date, click to update",description:"Description",moreOptions:"More options",showIcon:"Show category",hideIcon:"Hide category",rulesStore:"Search engine Store",import:"Import config",importFromClipboard:"Import from clipboard",exportTitle:"Export JSON, click to export engines, hold to export all config data",exportCache:"Export icon cache",general:"General",searchEngines:"Search Engines",exportConfig:"Export Config",presetGroupName:"Preset group name",presetGroupValue:"Preset group content",addGroup:"Add preset group",addGroupTips:"Add a set of preset highlight words to be called repeatedly in different scenes",findInPage:"Find In Page",customSearch:"Custom Search",about:"About",showInSearchEngine:"Highlight search engine page",showInSearchEngineTips:"Highlight keywords on the search engine results page",showInSearchJumpPage:"Highlight the site opened from the search engine",showInSearchJumpPageTips:"Highlight keywords on the page opened by click on the search engine",currentTypeFirst:"Stick current group",currentTypeFirstTips:"After enabled, current group will move to the first position",mouseLeaveToHide:"Automatically hide when mouse leaves",mouseLeaveToHideTips:"Automatically hide when mouse moves away from the search bar",limitInPageLen:"Limit the minimum length of keywords",limitInPageLenTips:"Do not highlight keywords whose length is less than this value",ignoreWords:"Ignore keyword list",inPageWordsStyles:"Keyword styles",inPageWordsAddStyles:"Custom keyword CSS, input an array target each keyword",defaultPicker:"Auto enable element selection",defaultPickerTips:"Automatically enable element selection when opening the search input box",altToHighlight:"Alt swipe to highlight immediately",altToHighlightTips:"When using the in-page search function under search input, highlight immediately with Alt after selection",disableInputOnWords:"No search input when something is selected",disableInputOnWordsTips:"Do not pop up the search input with shortcut key when something is selected",inPageRule:"Site auto-highlighting rules",errorNoType:"Please enter the category name",errorSameType:"Found same category name",editType:"Edit category",typeName:"Category name",typeIcon:"Category icon",category:"Category",iconTips:"The icon can use FontAwsome, image link or base64 code",typeMatch:"Match url, hide by set to 0",typeEnableSelTxt:"Effect on text",typeEnableSelImg:"Effect on image",typeEnableSelAudio:"Effect on audio",typeEnableSelVideo:"Effect on video",typeEnableSelLink:"Effect on link",typeEnableSelPage:"Effect on page",typeOpenInNewTab:"After enabling, this group of links will be opened in a new window by default",openSelect:"Open mode",openInNewTabOption:"Open in new tab",openInCurrentOption:"Open in current",openInDefaultOption:"Open by default",showCurrent:"Show current site",showCurrentTips:"Show the site button of current when matched",delete:"Delete",deleteOk:"Delete over",cancel:"Cancel",edit:"Edit",add:"Add",editSite:"Edit site",addSite:"Add site",addType:"Add type",siteName:"Site name",siteUrl:"Site URL",siteIcon:"Site icon",siteKeywords:"Extract search keywords",keywordRegTips:"Single: wd, Multiple: wd|qw|key, RegExp group: (?:wd|w)/(.*?)\\b, Selector: input#su",kwFilter:"Filter search keywords",kwFilterTips:"Hide the engine when the object words does not match this regex",siteMatch:"URL RegExp for match engine, force hide by set to 0",siteCharset:"Charset",toolbarPosition:"Toolbar position",portrait:"Portrait",horizontal:"Horizontal",openInNewTab:"Open links in new tabs by default",openInNewTabTips:"When enabled, the link will be opened in a new tab by default",enableInPage:"Enable select to search",enableInPageTips:"After enabling, select some text and long press the right mouse to bring up the toolbar",bindFunctionKey:"Bind function key for mouse to call out toolbar, then click to call out search tiles without long press",ctrlKey:"Ctrl key",altKey:"Alt key",shiftKey:"Shift key",metaKey:"Meta key",configContent:"Config source code",batchOpenConfirm:"Batch search confirm",batchOpenConfirmDefault:"Default",batchOpenConfirmAlways:"Always confirm",batchOpenConfirmNo:"Without confirm",copy:"Copy",save:"Save",autoClose:"Auto close type",autoDelay:"Hide delay",needName:"Require name",needUrl:"Require url",wrongImg:"Wrong icon",overOpen:"Mouse over to expand category automatically ",overOpenTips:"If you select this item, when the mouse moves over the category icon, the corresponding category will be automatically expanded",selectToShow:"Select to call tiles",selectToShowTips:"After enabling, select to bring up the tiles immediately",autoCloseTips:"When enabled, opened category drawer will be closed automatically once the mouse leaves the search bar",enableShortcut:"Enable site shortcuts",enableShortcutTips:"After enabling, all shortcut keys assigned to single site will take effect",shortcut:"Shortcut key",siteShotcut:"Search shortcut key",switchSitesKey:"Shortcut key for engine switching in the current group, only valid when matching",switchSitesPreKey:"Switch prev key",switchSitesNextKey:"Switch next key",initShow:"Init show",initShowTips:"Pull out to show when page initializes",alwaysShow:"Always show toolbar",alwaysShowTips:"Show toolbar even if no search engine matches",presetCss:"Preset Css",presetCssTips:"Select to load preset css",customCss:"Custom Css",replaceCss:"Do you confirm to replace current css?",enableInInput:"Enable on input",enableInInputTips:"Enable SearchJumper on input or textarea",fontAwesomeCss:"FontAwesome CDN URL",nobatch:"Do not open when batch open",hideNotMatch:"Hide if not current",typeMatchTips:"Show this category only when url matches",siteUrlTips:"%s keywords; %t target URL; %u site URL; %h hostname",customSize:"Zoom toolbar/tiles/disc",typeOpenTime:"Category expansion time",longPressTime:"Long press time",typeShotcut:"Shortcut for batch open",enableRightMouse:"Effect with right mouse",enableRightMouseTips:"Effect after long press the right mouse button on target",enableLeftMouse:"Also effect with left mouse",enableLeftMouseTips:"Also effect after click the left mouse button on target",cacheSwitch:"Cache icons",sameSiteName:"Site under \u3010#t#\u3011 has the same name",sameShortcut:"\u3010#t#\u3011 has already bind the same shortcut",noIcons:"Plain text mode",noIconsTips:"Show only plain text without any icon",showEngineWords:"Show engine name",showEngineWordsTips:"Show name beside the engine icon",noAni:"Disable animation effects",noAniTips:"Disable all animation effects",quickAddRule:"Quick Add Site",quickAddRuleTips:"Click any search input box with Ctrl + Alt to add site quickly",searchMycroft:"\ud83d\udc8e Search site config on mycroftproject for import by one click",showSiteLists:"Show drop-down list",showSiteListsTips:"After enabled, the drop-down list will be enabled next to the category icon",alwaysShowSiteLists:"Always show drop-down lists",alwaysShowSiteListsTips:"After enabled, the drop-down list will be enabled even when category opened",disableTypeOpen:"Disable category click-to-expansion",disableTypeOpenTips:"After enabling, when the category icon is clicked, it will no longer be expanded",historyLength:"Number of history sites",historyLengthTips:"Insert several recently visited sites at the end of current expanded category",historyInsertFirst:"Insert the history sites at the beginning of current group",historyInsertFirstTips:"Insert the most recently visited sites at the beginning of the group, otherwise at the end",shiftLastUsedType:"Move forward the last used category",shiftLastUsedTypeTips:"Move the last used group forward after the current category",sortType:"Auto sort categories",sortTypeTips:"Automatically reorder categories according to the number of visits",sortSite:"Auto sort engines",sortSiteTips:"Automatically reorder engines in category according to the number of visits",multiline:"Multi-line text search, separated by line feed, search by single line",multilineLabel:"Switch",multilineGap:"Search Gap",disable:"Disable",enable:"Enable",ask:"Ask",filterEngine:"Filter engine",verifyResult:"Verify result",verifyBtn:"Verify availability of all engines",verifying:"Verifying...",verifyFinish:"Verify complete",batchAction:"Batch Action",selectAll:"Select All",invert:"Invert",deleteConfirm:"Do you want to delete these sites?",moveTo:"Move to",moveToConfirm:"Do you want to move these sites to \u3010#t#\u3011?",autoHide:"Auto hide bar",autoHideTips:"Auto hide search bar after hide delay set before",autoHideAll:"Completely hide",autoHideAllTips:"Hide the search bar completely",unsetTips:"Unset",resizePageTips:"Resize page without hide",minSizeMode:"Minimalist Mode",minSizeModeTips:"After opening, the search bar will only display the current category until the mouse is over",dragToSearch:"Enable drag to search",dragToSearchTips:"Drag text, link or image to search quickly, the inner circle contains the top 6 sites in the current category(first txt/img/link group), and the outer circle contains the most recently used sites",sameSiteUrl:"Found a site with same url",clone:"Clone",cloneConfirm:"Do you want to clone these sites to \u3010#t#\u3011?",cloneAction:"Do you want to clone as one group instead of a single site?",groupName:"Group Name",donate:"Hi, I'm Hoothin, the author of SearchJumper. \nSearchJumper is completely open source and free, even though it has taken a lot of work to develop. \nIf you have found SearchJumper valuable, then please consider helping me out in one of the following ways.\ud83d\udc9e",importBookmarks:"Import browser bookmarks",sync:"Sync by Webdav",host:"Host",username:"Username",password:"Password",path:"Path",syncTips:"Webdav server need to support custom cors, add allowed_hosts: https://hoothin.github.io",expandType:"Expand group",expandTypeTips:"Expand group, Do not collapse engines in one group",expandTypeLength:"Show engines number",expandTypeLengthTips:"Hide the engines more than this number",jsonToolong:"The sites data is too long, do you want to continue format to json?",imgTooBig:"Image is larger than 50kb, still want to upload?",cacheSwitchTips:"The icons will be cached with base64 images in the background, some cross-domain requests will pop up after cache action started",searchFontawesome:"\ud83d\udea9 Search icons for category from FontAwesome.com",localAppAddBtn:"Call local application",localApp:"Local application call",localAppCall:"Call command",localAppName:"Custom call header, can be left blank",localAppUnknowCall:"Unable to parse this command, please check the command or manually construct the registry",localAppWrongName:"The call header can only enter with numbers or letters",callInputKey:"Shortcut key for calling out the search input",showAllKey:"Shortcut key for calling out Show-All-Mode",defaultFindTab:"Default to display find in page",defaultFindTabTips:"When the search input is opened, the find-in-page will be displayed by default, otherwise the site filter will be displayed by default",globalSearchNow:"Search all tabs immediately",globalSearchNowTips:"When clicking on Pin button for highlighted word, immediately search for keywords in all tabs, which may affect performance, open with caution",geneRegFile:"Generate registry patch",targetTxt:"Words search",targetImg:"Image search",targetLink:"Link Search",targetPage:"Current page",hideDragHistory:"Hide the outer ring of the drag wheel",hideDragHistoryTips:"Hide the outer ring of the drag wheel which storing the last 10 historically visited sites",disableAutoOpen:"Disable category auto-expansion",disableAutoOpenTips:"After enabling, when Search Bar is called up, Category will no longer be expanded automatically",minPopup:"Minimize the search popup",minPopupTips:"When enabled, the popup box will only display a category icon until the mouse is over",minPopupDisable:"Disable",minPopupEnable:"Enable",minPopupInput:"Only on input",hidePopup:"Disable search popup",hidePopupTips:"After opening, the popup box will be disabled, and the full search bar will be used to replace it",limitPopupLen:"Limit words for popup",limitPopupLenTips:"No popup box when length of selected words is less than this",hideOnSearchEngine:"Hide on search engine page",hideOnSearchEngineTips:"After enabling, Search Bar on the search engine page will no longer be displayed automatically",suggestType:"Source of related words",templateTitle:"Template text, call by $template{template name}",templateName:"Template Name",templateValue:"Template Value",paramTitle:"Search params",param:"Param",details:"Details",param_s:"Search keyword",param_S:"Cached search keyword",param_sl:"Search keyword with lower case letters",param_su:"Search keyword with upper case letters",param_sr:"Search keyword without doing any encoding",param_ss:"Search keyword to Simplified Chinese, need to work with my \u3010Switch Traditional Chinese and Simplified Chinese\u3011 https://greasyfork.org/scripts/24300",param_st:"Search keyword to Traditional Chinese, same as above",param_se:"Search keyword with escape encoding",param_e:"Charset",param_c:"Client: pc,mobile",param_u:"Current website url, when pointing to a link or picture, it means the corresponding url. %U: with encodeURIComponent",param_h:"Current website host",param_t:"The address of target link or image. %T: with encodeURIComponent",param_b:"Target address without http. %B: with encodeURIComponent",param_n:"Title or alt of target or title of current page",param_i:"Base64 of target image",param_sre:'Replace keywords/url/src with regexp, like %sr.replace(/[^\\d]/g, "").replace(/(\\d)/g, "$1 ") means replace raw keywords to numbers and then join all numbers with space, support %s %sl %sr %su %t %u',param_ssplit:'Multi-line search parameters, %s[] means to select the next item in sequence after being separated by newline or space, %s[-1] means to get the next item in reverse order, %s[0] means to specify the first item, %s[all] means to batch search all after split, %s[1|@] means separated by @ and specifies the second item. Supports replace, for example %s[].replace(/(\\d)/,"a$1"). Will read keywords from clipboard if there is no one',param_p1:"Post body, like %p{x=1&y=%s}",param_p2:"Post without navigation",param_p3:'Post in page by selector or xpath, like #p{#input=%u&sleep(500)&click(.submit)}, means: input current url to "#input", then wait for 500ms, then click ".submit". use \\& \\= instead of & = in content. wait(#input) means wait for element #input appeared, wait(!.loading) means wait for element .loading disappeared, call(alert("Hello")) means eval code alert("Hello"), which support await. @ means activeElement while input',param_input:"Input something, like %input{love who?,you}.Use / to create a drop down menu, eg %input{Please select your cup size,A/B/C}. You can also add descriptions separately, for example %input{Please select your cup/rare/excellent/So big,A/B/C}",param_group:"Batch open by site name you've created",param_ele:"Query element for innerText from selector or xpath, like %element{.mainTitle}, return selected elements if selector is not set",param_elep:"Return prop value for queried element, like %element{.mainTitle}.prop(href) %element{.mainTitle}.prop(innerHTML)",param_elere:'Replace, same as above, like %element{.mainTitle}.prop(href).replace(/https/i,"")',param_cp:"Put this at first then all words after will be copied to the clipboard",param_showTips:'Display the acquired html code in the tips immediately when the mouse hovers, if an array is returned, the second item means the content will be copied after click, if the second item is a link, it will open after click. you can use fetch with cross-domain, and use storage.getItem/storage.setItem to operate persistent data, "name" is the name of current engine. It is also possible to use the simplified mode and pass in the link directly with the template, for example: showTips:https://api.xxx.xxx/xxx {json.result|*%s} USD = %s RMB\uff0cit means grabbing data from api.xxx.xxx, parsing it in json format, and putting the json.result into the template and returning the tips. Another example: showTips:https://xxx.com/%sr {title}
{.genre a|()}
which means grabbing data from xxx.com, get the page title, iterate through the contents of all .genre a elements and create mark elements separately, get the src of a.bigImage>img image and create img elements',param_find:"Find in page and highlight, such as find:%s",param_findadd:'Add the target keyword to the highlighted preset group, for example, find.addto(reddit):%t.replace(/.*user/,"") means to extract the parameters after the "user" in the specified link and add into "@reddit" group',javascript:"Execute js code, window.keywords represents keywords, window.targetElement represents the pointing element. If the current page cannot execute the inline code, you can create a new GreaseMonkey script and paste the code, export the method to window, and call it through the method name. For example javascript:searchJumper_Function1",param_date1:"Current timestamp(ms)",param_date2:"Perform simple calculations on the current timestamp, such as %date{/1000 +604800}, which represents a timestamp calculated in seconds after one week",aboutContent:"I use the search engine jump function very frequently in my work, but I found that most of them contain trojans after tried many related extensions. \nThis is just a simple function, so why not write one by myself? \nThe result is that writing the configuration page takes several times more energy than the script itself... \ud83e\udd26\u200d\nThis search engine jump supports dragging and dropping with defined location, and also supports in-site search, word-marking search, and configuration import and export."}}},window.i18n=function(e,t){return ga[e]?ga[e].replace("#t#",t):e},window.setLang(fa),setTimeout(function(){window.searchData||window.location.reload()},5e3),o.a.createRoot(document.getElementById("root")).render(i.a.createElement(i.a.StrictMode,null,i.a.createElement(ha,null))),wa()}},[[234,3,2]]]);
\ No newline at end of file
+(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{172:function(e,t,a){e.exports=a.p+"static/media/logo.a40a1ffc.svg"},234:function(e,t,a){e.exports=a(353)},240:function(e,t,a){},328:function(e,t){},330:function(e,t){},353:function(e,t,a){"use strict";a.r(t);var n=a(0),i=a.n(n),r=a(171),o=a.n(r),l=(a(240),a(51)),s=a.n(l),c=a(10),p=a(115),d=a(70),m=a(172),u=a.n(m),h=(a(244),a(246),a(248),a(250),a(434)),w=a(457),f=a(454),g=a(455),y=a(459),b=a(448),E=a(456),x=a(440),v=a(429),S=a(460),C=a(430),T=a(4),k=a(22),D=a(445),O=a(449),A=a(462),I=a(467),P=a(433),j=a(468),L=a(461),W=a(464),N=a(466),B=a(437),M=a(438),_=a(450);function R(e){var t=new CustomEvent("saveConfig",{detail:{searchData:window.searchData,notification:!!e}});document.dispatchEvent(t)}function F(){window.searchData.prefConfig.customSize||(window.searchData.prefConfig.customSize=100),window.searchData.prefConfig.longPressTime||(window.searchData.prefConfig.longPressTime=500),window.searchData.prefConfig.typeOpenTime||(window.searchData.prefConfig.typeOpenTime=250),window.searchData.prefConfig.leftMouse||(window.searchData.prefConfig.leftMouse=!1),window.searchData.prefConfig.cacheSwitch||(window.searchData.prefConfig.cacheSwitch=!1),window.searchData.prefConfig.noIcons||(window.searchData.prefConfig.noIcons=!1),window.searchData.prefConfig.noAni||(window.searchData.prefConfig.noAni=!1),window.searchData.prefConfig.showSiteLists||(window.searchData.prefConfig.showSiteLists=!1),window.searchData.prefConfig.historyLength||(window.searchData.prefConfig.historyLength=0),window.searchData.prefConfig.limitPopupLen||(window.searchData.prefConfig.limitPopupLen=1),window.searchData.prefConfig.sortType||(window.searchData.prefConfig.sortType=!1),window.searchData.prefConfig.sortSite||(window.searchData.prefConfig.sortSite=!1),window.searchData.prefConfig.defaultPicker||(window.searchData.prefConfig.defaultPicker=!1),window.searchData.prefConfig.expandType||(window.searchData.prefConfig.expandType=!1),window.searchData.prefConfig.batchOpenConfirm||(window.searchData.prefConfig.batchOpenConfirm=0),"undefined"===typeof window.searchData.prefConfig.rightMouse&&(window.searchData.prefConfig.rightMouse=!0),window.searchData.prefConfig.dragCtrl||(window.searchData.prefConfig.dragCtrl=!1),window.searchData.prefConfig.dragAlt||(window.searchData.prefConfig.dragAlt=!1),window.searchData.prefConfig.dragShift||(window.searchData.prefConfig.dragShift=!1),window.searchData.prefConfig.alwaysShow||(window.searchData.prefConfig.alwaysShow=!1),window.searchData.prefConfig.dragMeta||(window.searchData.prefConfig.dragMeta=!1),window.searchData.prefConfig.showEngineWords||(window.searchData.prefConfig.showEngineWords=!1),!1===window.searchData.prefConfig.minPopup?window.searchData.prefConfig.minPopup=0:!0===window.searchData.prefConfig.minPopup&&(window.searchData.prefConfig.minPopup=1),window.searchData.prefConfig.suggestType||(window.searchData.prefConfig.suggestType="google"),"undefined"===typeof window.searchData.prefConfig.shiftLastUsedType&&(window.searchData.prefConfig.shiftLastUsedType=!0),"undefined"===typeof window.searchData.prefConfig.expandTypeLength&&(window.searchData.prefConfig.expandTypeLength=12),"undefined"===typeof window.searchData.prefConfig.lang&&(window.searchData.prefConfig.lang="0"),"undefined"===typeof window.searchData.prefConfig.mouseLeaveToHide&&(window.searchData.prefConfig.mouseLeaveToHide=!0),"undefined"===typeof window.searchData.prefConfig.currentTypeFirst&&(window.searchData.prefConfig.currentTypeFirst=!0);var e=i.a.useState(window.searchData.prefConfig),t=Object(c.a)(e,2),a=t[0],n=t[1],r=function(e){var t=Object(k.a)({},a,{position:Object(k.a)({},a.position,Object(T.a)({},e.target.name,e.target.value)),offset:{x:0,y:0}});"center"===t.position.x&&"center"===t.position.y&&("x"===e.target.name?t.position.y="top":t.position.x="left"),n(t),window.searchData.prefConfig=t,R()},o=function(e){var t=Object(k.a)({},a,Object(T.a)({},e.target.name,e.target.checked));"defaultPicker"===e.target.name?t.defaultFindTab=!e.target.checked:"defaultFindTab"===e.target.name&&(t.defaultPicker=!e.target.checked),"disableTypeOpen"===e.target.name&&e.target.checked&&(t.disableAutoOpen=!0),"disableAutoOpen"!==e.target.name||e.target.checked||(t.disableTypeOpen=!1),n(t),window.searchData.prefConfig=t,R()};return i.a.createElement(f.a,{sx:{paddingBottom:"20px"}},i.a.createElement(g.a,{elevation:5,sx:{textAlign:"center",borderRadius:"10px"}},i.a.createElement("h2",{style:{padding:"5px"}},window.i18n("general"))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("setLang"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(D.a,null,window.i18n("lang")),i.a.createElement(P.a,{value:a.lang,name:"lang",onChange:function(e){var t=Object(k.a)({},a,{lang:e.target.value});n(t),window.searchData.prefConfig=t,R(),setTimeout(function(){window.location.reload()},500)},autoWidth:!0,label:window.i18n("lang")},i.a.createElement(O.a,{value:"0"},"Default"),i.a.createElement(O.a,{value:"en"},"English"),i.a.createElement(O.a,{value:"zh-CN"},"\u7b80\u4f53"),i.a.createElement(O.a,{value:"zh-TW"},"\u6b63\u9ad4")))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("toolbarPosition"))),i.a.createElement(f.a,{sx:{flexGrow:1,bgcolor:"background.paper",display:"flex",maxWidth:"100%",flexWrap:"wrap",alignItems:"center"}},i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(D.a,null,window.i18n("horizontal")),i.a.createElement(P.a,{value:a.position.x,name:"x",onChange:r,autoWidth:!0,label:window.i18n("horizontal")},i.a.createElement(O.a,{value:"left"},"Left"),i.a.createElement(O.a,{value:"center"},"Center"),i.a.createElement(O.a,{value:"right"},"Right"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(D.a,null,window.i18n("portrait")),i.a.createElement(P.a,{value:a.position.y,name:"y",onChange:r,autoWidth:!0,label:window.i18n("portrait")},i.a.createElement(O.a,{value:"top"},"Top"),i.a.createElement(O.a,{value:"center"},"Center"),i.a.createElement(O.a,{value:"bottom"},"Bottom"))),i.a.createElement(W.a,{sx:{m:1,minWidth:100},label:window.i18n("typeOpenTime"),InputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*",endAdornment:i.a.createElement(N.a,{position:"end"},"ms")},value:a.typeOpenTime,onChange:function(e){var t=parseInt(e.target.value);t<0&&(t=0);var i=Object(k.a)({},a,{typeOpenTime:t});n(i),window.searchData.prefConfig=i,R()}}))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("customSize"),": ",a.customSize,"%")),i.a.createElement(f.a,{sx:{flexGrow:1,bgcolor:"background.paper",display:"flex",width:"100%",flexWrap:"wrap"}},i.a.createElement(f.a,{sx:{width:"75%",ml:"10px",mr:"20px",mt:"15px"}},i.a.createElement(B.a,{value:a.customSize,onChange:function(e,t){t>1e3?t=1e3:t<50&&(t=50);var i=Object(k.a)({},a,{customSize:t});n(i),window.searchData.prefConfig=i,R()},sx:{mt:"-8px"},"aria-labelledby":"input-slider",min:50,max:1e3,step:10,valueLabelDisplay:"auto",marks:[{value:100,label:"100%"},{value:1e3,label:"1000%"}]})),i.a.createElement(W.a,{sx:{m:1,minWidth:100,width:"15%"},label:window.i18n("customSize"),InputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*",endAdornment:i.a.createElement(N.a,{position:"end"},"%")},value:a.customSize,onChange:function(e){var t=Object(k.a)({},a,{customSize:e.target.value});n(t)},onBlur:function(e){var t=parseInt(e.target.value);t>1e3?t=1e3:t<50&&(t=50);var i=Object(k.a)({},a,{customSize:t});n(i),window.searchData.prefConfig=i,R()}}))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",width:"100%",flexWrap:"wrap"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("initShow"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80,width:"100%",mb:"20px"}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.initShow,onChange:o,name:"initShow"}),label:window.i18n("initShowTips"),labelPlacement:"end"}))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("alwaysShow"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80,width:"100%",mb:"20px"}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.alwaysShow,onChange:o,name:"alwaysShow"}),label:window.i18n("alwaysShowTips"),labelPlacement:"end"}))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("quickAddRule"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.quickAddRule,onChange:o,name:"quickAddRule"}),label:window.i18n("quickAddRuleTips")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("cacheSwitch"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.cacheSwitch,onChange:o,name:"cacheSwitch"}),label:window.i18n("cacheSwitchTips")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("multiline"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(D.a,null,window.i18n("multilineLabel")),i.a.createElement(P.a,{value:a.multiline,onChange:function(e){var t=Object(k.a)({},a,{multiline:e.target.value});n(t),window.searchData.prefConfig=t,R()},autoWidth:!0,label:window.i18n("multilineLabel")},i.a.createElement(O.a,{value:0},window.i18n("disable")),i.a.createElement(O.a,{value:1},window.i18n("enable")),i.a.createElement(O.a,{value:2},window.i18n("ask")))),i.a.createElement(W.a,{sx:{minWidth:100,margin:"8px"},label:window.i18n("multilineGap"),InputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*",endAdornment:i.a.createElement(N.a,{position:"end"},"ms")},value:a.multilineGap,onChange:function(e){var t=parseInt(e.target.value);t<0&&(t=0);var i=Object(k.a)({},a,{multilineGap:t});n(i),window.searchData.prefConfig=i,R()}}))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("overOpen"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.overOpen,onChange:o,name:"overOpen"}),label:window.i18n("overOpenTips")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("openInNewTab"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.openInNewTab,onChange:o,name:"openInNewTab"}),label:window.i18n("openInNewTabTips")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",width:"100%",flexWrap:"wrap"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("historyLength"))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",width:"100%",flexWrap:"wrap"}},i.a.createElement(W.a,{sx:{width:70,margin:"8px"},label:"Number",inputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*"},value:a.historyLength,onChange:function(e){var t=parseInt(e.target.value);t<0&&(t=0),t>100&&(t=100);var i=Object(k.a)({},a,{historyLength:t});n(i),window.searchData.prefConfig=i,R()}}),i.a.createElement(L.a,{gutterBottom:!0,component:"div",sx:{marginTop:"20px"}},window.i18n("historyLengthTips")))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("historyInsertFirst"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.historyInsertFirst,onChange:o,name:"historyInsertFirst"}),label:window.i18n("historyInsertFirstTips")}))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"wrap"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("currentTypeFirst"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.currentTypeFirst,onChange:o,name:"currentTypeFirst"}),label:window.i18n("currentTypeFirstTips")})))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("shiftLastUsedType"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.shiftLastUsedType,onChange:o,name:"shiftLastUsedType"}),label:window.i18n("shiftLastUsedTypeTips")})))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("sortType"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.sortType,onChange:o,name:"sortType"}),label:window.i18n("sortTypeTips")})))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("sortSite"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.sortSite,onChange:o,name:"sortSite"}),label:window.i18n("sortSiteTips")})))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("batchOpenConfirm"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(D.a,null,window.i18n("batchOpenConfirm")),i.a.createElement(P.a,{value:a.batchOpenConfirm,onChange:function(e){var t=Object(k.a)({},a,{batchOpenConfirm:e.target.value});n(t),window.searchData.prefConfig=t,R()},autoWidth:!0,label:window.i18n("batchOpenConfirm")},i.a.createElement(O.a,{value:0},window.i18n("batchOpenConfirmDefault")),i.a.createElement(O.a,{value:1},window.i18n("batchOpenConfirmAlways")),i.a.createElement(O.a,{value:2},window.i18n("batchOpenConfirmNo")))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("showSiteLists"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.showSiteLists,onChange:o,name:"showSiteLists"}),label:window.i18n("showSiteListsTips")}))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("alwaysShowSiteLists"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.alwaysShowSiteLists,onChange:o,name:"alwaysShowSiteLists"}),label:window.i18n("alwaysShowSiteListsTips")})))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("disableTypeOpen"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.disableTypeOpen,onChange:o,name:"disableTypeOpen"}),label:window.i18n("disableTypeOpenTips")}))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("disableAutoOpen"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.disableAutoOpen,onChange:o,name:"disableAutoOpen"}),label:window.i18n("disableAutoOpenTips")}))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"wrap"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("showEngineWords"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.showEngineWords,onChange:o,name:"showEngineWords"}),label:window.i18n("showEngineWordsTips")})))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("noIcons"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.noIcons,onChange:o,name:"noIcons"}),label:window.i18n("noIconsTips")})))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("noAni"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.noAni,onChange:o,name:"noAni"}),label:window.i18n("noAniTips")})))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("showCurrent"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.showCurrent,onChange:o,name:"showCurrent"}),label:window.i18n("showCurrentTips")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("expandType"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.expandType,onChange:o,name:"expandType"}),label:window.i18n("expandTypeTips")}))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("expandTypeLength"))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",width:"100%",flexWrap:"wrap"}},i.a.createElement(W.a,{sx:{width:70,margin:"8px"},label:"Number",inputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*"},value:a.expandTypeLength,onChange:function(e){var t=parseInt(e.target.value);t<1&&(t=1),t>100&&(t=100);var i=Object(k.a)({},a,{expandTypeLength:t});n(i),window.searchData.prefConfig=i,R()}}),i.a.createElement(L.a,{gutterBottom:!0,component:"div",sx:{marginTop:"20px"}},window.i18n("expandTypeLengthTips")))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("autoClose"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.autoClose,onChange:o,name:"autoClose"}),label:window.i18n("autoCloseTips")})),i.a.createElement(W.a,{label:window.i18n("autoDelay"),InputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*",endAdornment:i.a.createElement(N.a,{position:"end"},"ms")},value:a.autoDelay,onChange:function(e){var t=Object(k.a)({},a,{autoDelay:parseInt(e.target.value)});n(t),window.searchData.prefConfig=t,R()}}))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("autoHideAll"))),i.a.createElement(A.a,null,i.a.createElement(_.a,{row:!0,value:a.resizePage?"resizePage":a.autoHideAll?"autoHideAll":"unset",onChange:function(e){var t=Object(k.a)({},a,{resizePage:"resizePage"===e.target.value,autoHideAll:"autoHideAll"===e.target.value});n(t),window.searchData.prefConfig=t,R()}},i.a.createElement(I.a,{value:"unset",control:i.a.createElement(M.a,null),label:window.i18n("unsetTips")}),i.a.createElement(I.a,{value:"autoHideAll",control:i.a.createElement(M.a,null),label:window.i18n("autoHideAllTips")}),i.a.createElement(I.a,{value:"resizePage",control:i.a.createElement(M.a,null),label:window.i18n("resizePageTips")})))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("autoHide"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.autoHide,onChange:o,name:"autoHide"}),label:window.i18n("autoHideTips")}))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("mouseLeaveToHide"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.mouseLeaveToHide,onChange:o,name:"mouseLeaveToHide"}),label:window.i18n("mouseLeaveToHideTips")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("hideOnSearchEngine"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.hideOnSearchEngine,onChange:o,name:"hideOnSearchEngine"}),label:window.i18n("hideOnSearchEngineTips")}))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("minSizeMode"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.minSizeMode,onChange:o,name:"minSizeMode"}),label:window.i18n("minSizeModeTips")}))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("enableShortcut"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.shortcut,onChange:o,name:"shortcut"}),label:window.i18n("enableShortcutTips")}))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("enableInInput"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.enableInInput,onChange:o,name:"enableInInput"}),label:window.i18n("enableInInputTips")}))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("switchSitesKey"))),i.a.createElement(f.a,null,i.a.createElement(W.a,{sx:{mr:"10px"},label:window.i18n("switchSitesPreKey"),type:"text",value:(a.switchSitesPreKey||"").replace(/Key|Digit/,"").replace(/Backquote/,"`").replace(/Minus/,"-").replace(/Equal/,"=").replace(/ArrowUp/,"\u2191").replace(/ArrowDown/,"\u2193").replace(/ArrowLeft/,"\u2190").replace(/ArrowRight/,"\u2192"),inputProps:{readOnly:"readonly"},onKeyDown:function(e){if(e.stopPropagation(),e.preventDefault(),!/^(Control|Alt|Meta|Shift)/.test(e.key)){var t="Escape"===e.key||"Backspace"===e.key?"":e.code||e.key,i=Object(k.a)({},a,{switchSitesCtrl:e.ctrlKey,switchSitesAlt:e.altKey,switchSitesShift:e.shiftKey,switchSitesMeta:e.metaKey,switchSitesPreKey:t});n(i),window.searchData.prefConfig=i,R()}}}),i.a.createElement(W.a,{label:window.i18n("switchSitesNextKey"),type:"text",value:(a.switchSitesNextKey||"").replace(/Key|Digit/,"").replace(/Backquote/,"`").replace(/Minus/,"-").replace(/Equal/,"=").replace(/ArrowUp/,"\u2191").replace(/ArrowDown/,"\u2193").replace(/ArrowLeft/,"\u2190").replace(/ArrowRight/,"\u2192"),inputProps:{readOnly:"readonly"},onKeyDown:function(e){if(e.stopPropagation(),e.preventDefault(),!/^(Control|Alt|Meta|Shift)/.test(e.key)){var t="Escape"===e.key||"Backspace"===e.key?"":e.code||e.key,i=Object(k.a)({},a,{switchSitesCtrl:e.ctrlKey,switchSitesAlt:e.altKey,switchSitesShift:e.shiftKey,switchSitesMeta:e.metaKey,switchSitesNextKey:t});n(i),window.searchData.prefConfig=i,R()}}}),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.switchSitesCtrl,onChange:o,name:"switchSitesCtrl"}),label:window.i18n("ctrlKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.switchSitesAlt,onChange:o,name:"switchSitesAlt"}),label:window.i18n("altKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.switchSitesShift,onChange:o,name:"switchSitesShift"}),label:window.i18n("shiftKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.switchSitesMeta,onChange:o,name:"switchSitesMeta"}),label:window.i18n("metaKey")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("suggestType"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(D.a,null,"Source"),i.a.createElement(P.a,{value:a.suggestType,onChange:function(e){var t=Object(k.a)({},a,{suggestType:e.target.value});n(t),window.searchData.prefConfig=t,R()},autoWidth:!0,label:"Source"},i.a.createElement(O.a,{value:"google"},"Google"),i.a.createElement(O.a,{value:"bing"},"Bing"),i.a.createElement(O.a,{value:"baidu"},"Baidu"),i.a.createElement(O.a,{value:"disable"},"Disable"))))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("callInputKey"))),i.a.createElement(f.a,null,i.a.createElement(W.a,{label:window.i18n("shortcut"),type:"text",value:(a.shortcutKey||"").replace(/Key|Digit/,"").replace(/Backquote/,"`").replace(/Minus/,"-").replace(/Equal/,"=").replace(/ArrowUp/,"\u2191").replace(/ArrowDown/,"\u2193").replace(/ArrowLeft/,"\u2190").replace(/ArrowRight/,"\u2192"),inputProps:{readOnly:"readonly"},onKeyDown:function(e){if(e.stopPropagation(),e.preventDefault(),!/^(Control|Alt|Meta|Shift)/.test(e.key)){var t="Escape"===e.key||"Backspace"===e.key?"":e.code||e.key,i=Object(k.a)({},a,{callBarCtrl:e.ctrlKey,callBarAlt:e.altKey,callBarShift:e.shiftKey,callBarMeta:e.metaKey,shortcutKey:t});n(i),window.searchData.prefConfig=i,R()}}}),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.callBarCtrl,onChange:o,name:"callBarCtrl"}),label:window.i18n("ctrlKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.callBarAlt,onChange:o,name:"callBarAlt"}),label:window.i18n("altKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.callBarShift,onChange:o,name:"callBarShift"}),label:window.i18n("shiftKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.callBarMeta,onChange:o,name:"callBarMeta"}),label:window.i18n("metaKey")}))),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("defaultFindTab"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.defaultFindTab,onChange:o,name:"defaultFindTab"}),label:window.i18n("defaultFindTabTips")})),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("disableInputOnWords"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.disableInputOnWords,onChange:o,name:"disableInputOnWords"}),label:window.i18n("disableInputOnWordsTips")})),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("defaultPicker"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.defaultPicker,onChange:o,name:"defaultPicker"}),label:window.i18n("defaultPickerTips")}))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("showAllKey"))),i.a.createElement(f.a,null,i.a.createElement(W.a,{label:window.i18n("shortcut"),type:"text",value:(a.showAllShortcutKey||"").replace(/Key|Digit/,"").replace(/Backquote/,"`").replace(/Minus/,"-").replace(/Equal/,"=").replace(/ArrowUp/,"\u2191").replace(/ArrowDown/,"\u2193").replace(/ArrowLeft/,"\u2190").replace(/ArrowRight/,"\u2192"),inputProps:{readOnly:"readonly"},onKeyDown:function(e){if(e.stopPropagation(),e.preventDefault(),!/^(Control|Alt|Meta|Shift)/.test(e.key)){var t="Escape"===e.key||"Backspace"===e.key?"":e.code||e.key,i=Object(k.a)({},a,{showAllCtrl:e.ctrlKey,showAllAlt:e.altKey,showAllShift:e.shiftKey,showAllMeta:e.metaKey,showAllShortcutKey:t});n(i),window.searchData.prefConfig=i,R()}}}),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.showAllCtrl,onChange:o,name:"showAllCtrl"}),label:window.i18n("ctrlKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.showAllAlt,onChange:o,name:"showAllAlt"}),label:window.i18n("altKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.showAllShift,onChange:o,name:"showAllShift"}),label:window.i18n("shiftKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.showAllMeta,onChange:o,name:"showAllMeta"}),label:window.i18n("metaKey")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("dragToSearch"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.dragToSearch,onChange:o,name:"dragToSearch"}),label:window.i18n("dragToSearchTips")})),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.dragCtrl,onChange:o,name:"dragCtrl"}),label:window.i18n("ctrlKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.dragAlt,onChange:o,name:"dragAlt"}),label:window.i18n("altKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.dragShift,onChange:o,name:"dragShift"}),label:window.i18n("shiftKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.dragMeta,onChange:o,name:"dragMeta"}),label:window.i18n("metaKey")})))),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("hideDragHistory"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.hideDragHistory,onChange:o,name:"hideDragHistory"}),label:window.i18n("hideDragHistoryTips")})))),i.a.createElement(g.a,{elevation:5,sx:{padding:"20px",marginTop:"20px"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("enableInPage"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.enableInPage,onChange:o,name:"enableInPage"}),label:window.i18n("enableInPageTips")})),i.a.createElement(W.a,{sx:{minWidth:100},label:window.i18n("longPressTime"),InputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*",endAdornment:i.a.createElement(N.a,{position:"end"},"ms")},value:a.longPressTime,onChange:function(e){var t=parseInt(e.target.value);t<0&&(t=0);var i=Object(k.a)({},a,{longPressTime:t});n(i),window.searchData.prefConfig=i,R()}})),i.a.createElement(f.a,{sx:a.enableInPage?{}:{display:"none"}},i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("bindFunctionKey"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.ctrlKey,onChange:o,name:"ctrlKey"}),label:window.i18n("ctrlKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.altKey,onChange:o,name:"altKey"}),label:window.i18n("altKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.shiftKey,onChange:o,name:"shiftKey"}),label:window.i18n("shiftKey")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:a.metaKey,onChange:o,name:"metaKey"}),label:window.i18n("metaKey")}))),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("enableRightMouse"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.rightMouse,onChange:o,name:"rightMouse"}),label:window.i18n("enableRightMouseTips")})),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("enableLeftMouse"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.leftMouse,onChange:o,name:"leftMouse"}),label:window.i18n("enableLeftMouseTips")})),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("selectToShow"))),i.a.createElement(f.a,null,i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.selectToShow,onChange:o,name:"selectToShow"}),label:window.i18n("selectToShowTips")}))),i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("limitPopupLen"))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",width:"100%",flexWrap:"wrap"}},i.a.createElement(W.a,{sx:{width:70,margin:"8px"},label:"Length",inputProps:{inputMode:"numeric",type:"number",pattern:"[0-9]*"},value:a.limitPopupLen,onChange:function(e){var t=parseInt(e.target.value);t<1&&(t=1),t>100&&(t=100);var i=Object(k.a)({},a,{limitPopupLen:t});n(i),window.searchData.prefConfig=i,R()}}),i.a.createElement(L.a,{gutterBottom:!0,component:"div",sx:{marginTop:"20px"}},window.i18n("limitPopupLenTips"))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("minPopup"))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(D.a,null,"Action"),i.a.createElement(P.a,{value:a.minPopup,onChange:function(e){var t=Object(k.a)({},a,{minPopup:e.target.value});n(t),window.searchData.prefConfig=t,R()},autoWidth:!0,label:"Action"},i.a.createElement(O.a,{value:0},window.i18n("minPopupDisable")),i.a.createElement(O.a,{value:1},window.i18n("minPopupEnable")),i.a.createElement(O.a,{value:2},window.i18n("minPopupInput")))),i.a.createElement(L.a,{gutterBottom:!0,component:"div",sx:{marginTop:"20px"}},window.i18n("minPopupTips")))),i.a.createElement(f.a,null,i.a.createElement(L.a,{gutterBottom:!0,component:"div"},i.a.createElement("h4",null,window.i18n("hidePopup"))),i.a.createElement(A.a,{sx:{m:1,minWidth:80,marginTop:"13px"}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:a.hidePopup,onChange:o,name:"hidePopup"}),label:window.i18n("hidePopupTips")})))))))}var H,K=a(52),U=a(15),J=a(86),z=a(87),q=a(143),G=a(181),V=a(144),$=a(182),Y=a.n($),X=a(89),Q=a.n(X),Z=a(72),ee=a.n(Z),te=a(471),ae=a(451),ne=a(469),ie=a(475),re=a(470),oe=a(472),le=a(428),se=a(443),ce=a(439),pe=a(436),de=a(183),me=a.n(de),ue=a(442),he=a(441),we=a(473),fe=a(474),ge=a(71),ye=a.n(ge),be=a(477),Ee=a(481),xe=a(480),ve=a(476),Se=a(478),Ce=a(479),Te=a(98),ke=a(180),De=a.n(ke),Oe=a(88),Ae=a.n(Oe),Ie=a(108),Pe=a.n(Ie),je=a(107),Le=a.n(je),We=a(184),Ne=a.n(We),Be=a(185),Me=a.n(Be);function _e(e){window.searchData.lastModified=(new Date).getTime();var t=new CustomEvent("saveConfig",{detail:{searchData:window.searchData,notification:!!e}});document.dispatchEvent(t),window.saveToWebdav()}function Re(e){var t=i.a.useState(e.data),a=Object(c.a)(t,2),n=a[0],r=a[1];function o(t,a){if(t){var i=a||n;if(!i.type)return e.handleAlertOpen(window.i18n("errorNoType"));for(var r=0;r51200&&!window.confirm(window.i18n("imgTooBig")))e.target.value="";else{var a=new FileReader;a.readAsDataURL(t),a.onload=function(){r(Object(k.a)({},n,{icon:a.result}))}}}}),i.a.createElement("label",{htmlFor:"upload-type-icon"},i.a.createElement(te.a,{edge:"end",component:"span"},i.a.createElement(Ae.a,null)))),inputProps:{spellCheck:"false"}}}),i.a.createElement(oe.a,null,window.i18n("iconTips")),i.a.createElement(he.a,{sx:{margin:"0 -16px!important"}},i.a.createElement(we.a,{sx:{background:"#d1d1d120",minHeight:"45px!important",maxHeight:"45px!important"},expandIcon:i.a.createElement(ye.a,null)},i.a.createElement(L.a,{align:"center",sx:{width:"100%"}},window.i18n("moreOptions"))),i.a.createElement(fe.a,null,i.a.createElement(W.a,{margin:"dense",id:"description",label:window.i18n("description"),type:"text",fullWidth:!0,variant:"standard",value:n.description,onChange:function(e){r(Object(k.a)({},n,{description:e.target.value}))}}),i.a.createElement(W.a,{margin:"dense",id:"match",label:window.i18n("typeMatch"),type:"text",fullWidth:!0,variant:"standard",placeholder:"www\\.google\\.com",value:n.match,onChange:function(e){r(Object(k.a)({},n,{match:e.target.value}))},inputProps:{spellCheck:"false"}}),i.a.createElement(oe.a,null,window.i18n("typeMatchTips")),i.a.createElement(f.a,{style:{textAlign:"center",border:"1px solid rgba(0, 0, 0, 0.42)",borderRadius:"10px"}},i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:n.selectTxt,name:"enableSelTxt",onClick:function(e){r(Object(k.a)({},n,{selectTxt:e.target.checked}))}}),label:window.i18n("typeEnableSelTxt"),labelPlacement:"top"})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:n.selectImg,name:"enableSelImg",onClick:function(e){r(Object(k.a)({},n,{selectImg:e.target.checked}))}}),label:window.i18n("typeEnableSelImg"),labelPlacement:"top"})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:n.selectVideo,name:"enableSelVideo",onClick:function(e){r(Object(k.a)({},n,{selectVideo:e.target.checked}))}}),label:window.i18n("typeEnableSelVideo"),labelPlacement:"top"})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:n.selectAudio,name:"enableSelAudio",onClick:function(e){r(Object(k.a)({},n,{selectAudio:e.target.checked}))}}),label:window.i18n("typeEnableSelAudio"),labelPlacement:"top"})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:n.selectLink,name:"enableSelLink",onClick:function(e){r(Object(k.a)({},n,{selectLink:e.target.checked}))}}),label:window.i18n("typeEnableSelLink"),labelPlacement:"top"})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:n.selectPage,name:"enableSelPage",onClick:function(e){r(Object(k.a)({},n,{selectPage:e.target.checked}))}}),label:window.i18n("typeEnableSelPage"),labelPlacement:"top"}))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"nowrap",mb:1}},i.a.createElement(W.a,{sx:{minWidth:100,maxWidth:150},margin:"dense",id:"match",label:window.i18n("typeShotcut"),type:"text",variant:"outlined",value:(n.shortcut||"").replace(/Key|Digit/,"").replace(/Backquote/,"`").replace(/Minus/,"-").replace(/Equal/,"=").replace(/ArrowUp/,"\u2191").replace(/ArrowDown/,"\u2193").replace(/ArrowLeft/,"\u2190").replace(/ArrowRight/,"\u2192"),inputProps:{readOnly:"readonly"},onKeyDown:function(e){/^(Control|Alt|Meta|Shift)/.test(e.key)||r(Object(k.a)({},n,{ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey,meta:e.metaKey,shortcut:"Escape"===e.key||"Backspace"===e.key?"":e.code||e.key}))}}),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"wrap"}},i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:n.ctrl,name:"ctrl",onClick:function(e){r(Object(k.a)({},n,{ctrl:e.target.checked}))}}),label:"Ctrl",labelPlacement:"bottom"})),i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:n.alt,name:"alt",onClick:function(e){r(Object(k.a)({},n,{alt:e.target.checked}))}}),label:"Alt",labelPlacement:"bottom"})),i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:n.shift,name:"shift",onClick:function(e){r(Object(k.a)({},n,{shift:e.target.checked}))}}),label:"Shift",labelPlacement:"bottom"})),i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:n.meta,name:"meta",onClick:function(e){r(Object(k.a)({},n,{meta:e.target.checked}))}}),label:"Meta",labelPlacement:"bottom"})))),i.a.createElement(A.a,{sx:{minWidth:80}},i.a.createElement(D.a,null,window.i18n("openSelect")),i.a.createElement(P.a,{value:n.openInNewTab,name:"openInNewTab",onChange:function(e){r(Object(k.a)({},n,{openInNewTab:e.target.value}))},autoWidth:!0,label:window.i18n("openSelect")},i.a.createElement(O.a,{value:"-1"},window.i18n("openInDefaultOption")),i.a.createElement(O.a,{value:!0},window.i18n("openInNewTabOption")),i.a.createElement(O.a,{value:!1},window.i18n("openInCurrentOption"))))))),i.a.createElement(ie.a,null,i.a.createElement(ae.a,{variant:"outlined",color:"error",startIcon:i.a.createElement(ee.a,null),onClick:e.handleDeleteType},window.i18n("delete")),i.a.createElement(ae.a,{onClick:function(){o(!1)}},window.i18n("cancel")),i.a.createElement(ae.a,{onClick:function(){o(!0)}},window.i18n(""===n.type?"add":"save"))))}function Fe(){H||(H=document.querySelector("#dragTargetLine")),H&&(H.style.display="")}var He=function(e){function t(){return Object(J.a)(this,t),Object(q.a)(this,Object(G.a)(t).apply(this,arguments))}return Object(V.a)(t,e),Object(z.a)(t,[{key:"shouldComponentUpdate",value:function(e,t){var a=this;return e.sites!==this.props.sites||e.checkeds.length!==this.checkeds.length||!e.checkeds.every(function(e,t){return e===a.checkeds[t]})}},{key:"getIcon",value:function(e){if(0===e.url.indexOf("["))try{var t=JSON.parse(e.url);if(1===t.length)for(var a=0;aqe(t)+t.offsetWidth/2;H.style.top=t.offsetTop+"px",H.style.left=(a?t.offsetLeft+t.offsetWidth:t.offsetLeft)+"px"}}},{key:"render",value:function(){var e=this;return this.checkeds=Object(U.a)(this.props.checkeds),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"wrap"}},this.props.sites.map(function(t,a){return i.a.createElement(f.a,{className:"site-icon",key:a},i.a.createElement(ue.a,{onChange:function(t){e.props.checkChange(t,a)},checked:e.props.checkeds[a]}),i.a.createElement(te.a,{className:"0"===t.match?"hideIcon":"",sx:{fontSize:"1rem",flexDirection:"column"},draggable:"true",onDragLeave:function(e){Fe()},onDrop:function(a){Fe(),e.props.changeSitePos(t,a)},onDragStart:function(e){e.dataTransfer.setData("data",JSON.stringify(t))},onDragOver:function(t){return e.dragOver(t)},key:t.name,title:t.description||t.name,onClick:function(){e.props.openSiteEdit(t)}},i.a.createElement(b.a,{sx:{m:1},alt:t.name,src:!e.props.tooLong&&e.getIcon(t)||""},e.props.tooLong?"\ud83c\udf10":/^[\s\w]{2}/.test(t.name)?t.name.slice(0,2):Array.from(t.name)[0]),e.props.tooLong?t.name.slice(0,5):t.name.length>10?t.name.slice(0,10):t.name))}),i.a.createElement("div",{id:"dragTargetLine"}),i.a.createElement(te.a,{color:"primary",key:"addType",onClick:function(){e.props.openSiteEdit(!1)}},i.a.createElement(Q.a,{sx:{fontSize:"50px"}})))}}]),t}(i.a.Component),Ke=function(e){function t(e){var a;Object(J.a)(this,t),(a=Object(q.a)(this,Object(G.a)(t).call(this,e))).state={data:e.data,isOpenSiteEdit:!1,isOpenLocalApp:!1,currentSite:ze(!1),checkeds:Array(e.data.sites.length).fill(!1),cloneSite:!1},a.editSite=null,a.openTypeEdit=e.openTypeEdit,a.index=e.index,a.handleAlertOpen=e.handleAlertOpen,a.openSiteEdit=a.openSiteEdit.bind(Object(K.a)(Object(K.a)(a))),a.closeSiteEdit=a.closeSiteEdit.bind(Object(K.a)(Object(K.a)(a))),a.handleDeleteSite=a.handleDeleteSite.bind(Object(K.a)(Object(K.a)(a))),a.changeSitePos=a.changeSitePos.bind(Object(K.a)(Object(K.a)(a))),a.tooLong=e.data.sites&&e.data.sites.length>100,a.batchSelect=!1;var n=document.createElement("a");return n.target="_blank",a.downloadEle=n,a}return Object(V.a)(t,e),Object(z.a)(t,[{key:"getMinSiteData",value:function(e){var t={};return e.name&&(t.name=e.name),e.url&&(t.url=e.url),e.icon&&(t.icon=e.icon),e.keywords&&(t.keywords=e.keywords),e.kwFilter&&(t.kwFilter=e.kwFilter),e.description&&(t.description=e.description),e.match&&(t.match=e.match),e.charset&&(t.charset=e.charset),e.shortcut&&(t.shortcut=e.shortcut),e.ctrl&&(t.ctrl=e.ctrl),e.alt&&(t.alt=e.alt),e.shift&&(t.shift=e.shift),e.meta&&(t.meta=e.meta),e.nobatch&&(t.nobatch=e.nobatch),e.hideNotMatch&&(t.hideNotMatch=e.hideNotMatch),"-1"!==e.openInNewTab&&(t.openInNewTab=e.openInNewTab),t}},{key:"openSiteEdit",value:function(e){this.editSite=e;var t=ze(e);this.setState(function(e){return{isOpenSiteEdit:!0,currentSite:t}})}},{key:"closeSiteEdit",value:function(e){var t=this;if(e){var a=window.searchData.sitesConfig[this.index];if(!this.state.currentSite.name)return this.handleAlertOpen(window.i18n("needName"));if(!this.state.currentSite.url)return this.handleAlertOpen(window.i18n("needUrl"));if(this.state.currentSite.icon&&!/^(https?|ftp|data):|^0$/.test(this.state.currentSite.icon))return this.handleAlertOpen(window.i18n("wrongImg"));if(/^\[/.test(this.state.currentSite.url))try{JSON.parse(this.state.currentSite.url)}catch(h){return this.handleAlertOpen(h.toString())}for(var n=0===this.state.currentSite.url.indexOf("["),i=0;iqe(n)+n.offsetWidth/2;if(e&&a&&e.url&&a.url&&e.url!==a.url){for(var r=window.searchData.sitesConfig[this.index],o=this.state.data.sites.filter(function(e){return e.url!==a.url}),l=0;l51200&&!window.confirm(window.i18n("imgTooBig")))t.target.value="";else{var i=new FileReader;i.readAsDataURL(n),i.onload=function(){a.setState(function(e){return{currentSite:Object(k.a)({},a.state.currentSite,{icon:i.result})}})}}}}),i.a.createElement("label",{htmlFor:"upload-site-icon"},i.a.createElement(te.a,{edge:"end",component:"span"},i.a.createElement(Ae.a,null)))),inputProps:{style:{resize:"auto"},spellCheck:"false"}}}),i.a.createElement(W.a,{margin:"dense",id:"keywords",label:window.i18n("siteKeywords"),type:"text",fullWidth:!0,variant:"standard",placeholder:"wd|q",value:this.state.currentSite.keywords,onChange:function(t){e.setState(function(a){return{currentSite:Object(k.a)({},e.state.currentSite,{keywords:t.target.value})}})},inputProps:{spellCheck:"false"}}),i.a.createElement(oe.a,null,window.i18n("keywordRegTips")),i.a.createElement(W.a,{margin:"dense",id:"kwFilter",label:window.i18n("kwFilter"),type:"text",fullWidth:!0,variant:"standard",placeholder:"^\\d+$",value:this.state.currentSite.kwFilter,onChange:function(t){e.setState(function(a){return{currentSite:Object(k.a)({},e.state.currentSite,{kwFilter:t.target.value})}})},inputProps:{spellCheck:"false"}}),i.a.createElement(oe.a,null,window.i18n("kwFilterTips")),i.a.createElement(W.a,{margin:"dense",id:"match",label:window.i18n("siteMatch"),type:"text",fullWidth:!0,variant:"standard",placeholder:"\\.google\\.(com|co.jp)",value:this.state.currentSite.match,onChange:function(t){e.setState(function(a){return{currentSite:Object(k.a)({},e.state.currentSite,{match:t.target.value})}})},inputProps:{spellCheck:"false"}}),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex"}},i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:this.state.currentSite.hideNotMatch,name:"hideNotMatch",onClick:function(t){e.setState(function(e){return{currentSite:Object(k.a)({},e.currentSite,{hideNotMatch:t.target.checked})}})}}),label:window.i18n("hideNotMatch")})),i.a.createElement(A.a,{sx:{m:1,minWidth:80}},i.a.createElement(I.a,{control:i.a.createElement(j.a,{checked:this.state.currentSite.nobatch,name:"nobatch",onClick:function(t){e.setState(function(e){return{currentSite:Object(k.a)({},e.currentSite,{nobatch:t.target.checked})}})}}),label:window.i18n("nobatch")}))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"nowrap",mb:1}},i.a.createElement(W.a,{sx:{minWidth:100,maxWidth:150},margin:"dense",id:"match",label:window.i18n("siteShotcut"),type:"text",variant:"outlined",value:(this.state.currentSite.shortcut||"").replace(/Key|Digit/,"").replace(/Backquote/,"`").replace(/Minus/,"-").replace(/Equal/,"=").replace(/ArrowUp/,"\u2191").replace(/ArrowDown/,"\u2193").replace(/ArrowLeft/,"\u2190").replace(/ArrowRight/,"\u2192"),inputProps:{readOnly:"readonly"},onKeyDown:function(t){/^(Control|Alt|Meta|Shift)/.test(t.key)||e.setState(function(a){return{currentSite:Object(k.a)({},e.state.currentSite,{ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey,meta:t.metaKey,shortcut:"Escape"===t.key||"Backspace"===t.key?"":t.code||t.key})}})}}),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"wrap"}},i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:this.state.currentSite.ctrl,name:"ctrl",onClick:function(t){e.setState(function(e){return{currentSite:Object(k.a)({},e.currentSite,{ctrl:t.target.checked})}})}}),label:"Ctrl",labelPlacement:"bottom"})),i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:this.state.currentSite.alt,name:"alt",onClick:function(t){e.setState(function(e){return{currentSite:Object(k.a)({},e.currentSite,{alt:t.target.checked})}})}}),label:"Alt",labelPlacement:"bottom"})),i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:this.state.currentSite.shift,name:"shift",onClick:function(t){e.setState(function(e){return{currentSite:Object(k.a)({},e.currentSite,{shift:t.target.checked})}})}}),label:"Shift",labelPlacement:"bottom"})),i.a.createElement(A.a,{sx:{minWidth:60}},i.a.createElement(I.a,{className:"keyboardBtn",control:i.a.createElement(j.a,{checked:this.state.currentSite.meta,name:"meta",onClick:function(t){e.setState(function(e){return{currentSite:Object(k.a)({},e.currentSite,{meta:t.target.checked})}})}}),label:"Meta",labelPlacement:"bottom"})))),i.a.createElement(f.a,{sx:{flexGrow:1,display:"flex",flexWrap:"nowrap"}},i.a.createElement(A.a,{sx:{minWidth:"30%"}},i.a.createElement(D.a,null,window.i18n("openSelect")),i.a.createElement(P.a,{value:this.state.currentSite.openInNewTab,name:"openInNewTab",onChange:function(t){e.setState(function(a){return{currentSite:Object(k.a)({},e.state.currentSite,{openInNewTab:t.target.value})}})},autoWidth:!0,label:window.i18n("openSelect")},i.a.createElement(O.a,{value:"-1"},window.i18n("openInDefaultOption")),i.a.createElement(O.a,{value:!0},window.i18n("openInNewTabOption")),i.a.createElement(O.a,{value:!1},window.i18n("openInCurrentOption")))),i.a.createElement(pe.a,{disablePortal:!0,margin:"dense",sx:{ml:1},id:"charset",fullWidth:!0,variant:"standard",options:Ue,value:this.state.currentSite.charset,onChange:function(t){e.setState(function(a){return{currentSite:Object(k.a)({},e.state.currentSite,{charset:t.target.textContent})}})},renderInput:function(e){return i.a.createElement(W.a,Object.assign({},e,{label:window.i18n("siteCharset")}))}}))))),i.a.createElement(ie.a,null,i.a.createElement(ae.a,{onClick:function(){return e.setState(function(e){return{isOpenLocalApp:!0}})}},window.i18n("localAppAddBtn")),i.a.createElement(ae.a,{variant:"outlined",style:{display:this.editSite?"":"none"},color:"error",startIcon:i.a.createElement(ee.a,null),onClick:this.handleDeleteSite},window.i18n("delete")),i.a.createElement(ae.a,{onClick:function(){return e.closeSiteEdit(!1)}},window.i18n("cancel")),i.a.createElement(ae.a,{onClick:function(){return e.closeSiteEdit(!0)}},window.i18n(""===this.state.currentSite.url?"add":"save")))),i.a.createElement(ne.a,{open:this.state.isOpenSiteEdit&&this.state.isOpenLocalApp,onClose:function(){return e.setState(function(e){return{isOpenLocalApp:!1}})}},i.a.createElement(le.a,null,window.i18n("localApp")),i.a.createElement(re.a,null,i.a.createElement(W.a,{autoFocus:!0,margin:"dense",id:"localAppCall",label:window.i18n("localAppCall"),type:"text",fullWidth:!0,variant:"standard",placeholder:'"C:\\Program Files\\MPV\\mpv.exe" --stream %u',inputProps:{spellCheck:"false"}}),i.a.createElement(W.a,{margin:"dense",id:"localAppName",label:window.i18n("localAppName"),type:"text",fullWidth:!0,inputProps:{maxLength:5,spellCheck:"false"},variant:"standard"})),i.a.createElement(ie.a,null,i.a.createElement(ae.a,{onClick:function(){return e.setState(function(e){return{isOpenLocalApp:!1}})}},window.i18n("cancel")),i.a.createElement(ae.a,{onClick:function(){var t=document.querySelector("#localAppCall"),a=document.querySelector("#localAppName").value,n=t.value.replace(/([^\\])[\\]([^\\])/g,"$1\\\\$2"),i=n.match(/^"((([a-z]:).+?)([^/\\]+))" (.*(%.+?)\b.*)/i);if(i||(i=n.match(/^((([a-z]:)\S+?)([^/\\ ]+)) (.*(%.+?)\b.*)/i)),!i)return e.handleAlertOpen(window.i18n("localAppUnknowCall"));if(a||(a=i[4].replace(/([a-z]+).*/i,"$1")),!/^\w+$/.test(a))return e.handleAlertOpen(window.i18n("localAppWrongName"));a="SearchJumper-"+a,e.setState(function(t){return{currentSite:Object(k.a)({},e.state.currentSite,{url:a+"://"+i[6]})}});var r=["\nWindows Registry Editor Version 5.00\n\n[HKEY_CLASSES_ROOT\\".concat(a,']\n@="URL:').concat(a,' Protocol"\n"URL Protocol"=""\n\n[HKEY_CLASSES_ROOT\\').concat(a,'\\DefaultIcon]\n@="\\"').concat(i[1],'\\",1"\n\n[HKEY_CLASSES_ROOT\\').concat(a,"\\shell]\n\n[HKEY_CLASSES_ROOT\\").concat(a,"\\shell\\open]\n\n[HKEY_CLASSES_ROOT\\").concat(a,'\\shell\\open\\command]\n@="cmd /c set m=%1 & call set m=%%m:').concat(a,"://=%% & ").concat(i[3],' & cd \\"').concat(i[2],'\\" & call ').concat(i[4]," ").concat(i[5].replace(i[6],"%%m%%"),'"\n').trim()],o=new Blob(r,{type:"application/text"});e.downloadEle.download="".concat(a,".reg"),e.downloadEle.href=window.URL.createObjectURL(o),e.downloadEle.click(),e.setState(function(e){return{isOpenLocalApp:!1}})}},window.i18n("geneRegFile")))))}}]),t}(i.a.Component),Ue=["","gbk","gb18030","big5","big5-hkscs","utf-8","utf-16le","shift-jis","euc-jp","iso-2022-jp","euc-kr","iso-2022-kr","macintosh","koi8-r","koi8-u","windows-1250","windows-1251","windows-1252","windows-1253","windows-1254","windows-1255","windows-1256","windows-1257","windows-1258","iso-8859-1","iso-8859-2","iso-8859-3","iso-8859-4","iso-8859-5","iso-8859-6","iso-8859-7","iso-8859-8","iso-8859-8-i","iso-8859-9","iso-8859-10","iso-8859-11","iso-8859-13","iso-8859-14","iso-8859-15","iso-8859-16"];function Je(e){return{type:(e=e||{}).type||"",icon:e.icon||"",match:e.match||"",description:e.description||"",selectTxt:e.selectTxt||!1,selectImg:e.selectImg||!1,selectAudio:e.selectAudio||!1,selectVideo:e.selectVideo||!1,selectLink:e.selectLink||!1,selectPage:e.selectPage||!1,openInNewTab:"undefined"===typeof e.openInNewTab?"-1":e.openInNewTab,shortcut:e.shortcut||"",ctrl:e.ctrl||!1,alt:e.alt||!1,shift:e.shift||!1,meta:e.meta||!1}}function ze(e){return{name:(e=e||{}).name||"",url:e.url||"",icon:e.icon||"",keywords:e.keywords||"",kwFilter:e.kwFilter||"",description:e.description||"",match:e.match||"",charset:e.charset||"",shortcut:e.shortcut||"",ctrl:e.ctrl||!1,alt:e.alt||!1,shift:e.shift||!1,meta:e.meta||!1,nobatch:e.nobatch||!1,openInNewTab:"undefined"===typeof e.openInNewTab?"-1":e.openInNewTab,hideNotMatch:e.hideNotMatch||!1}}function qe(e){for(var t=e.offsetLeft,a=e.offsetParent;a;)t+=a.offsetLeft,a=a.offsetParent;return t}function Ge(e){var t=e.children,a=e.value,n=e.index,r=Object(p.a)(e,["children","value","index"]);return i.a.createElement("div",Object.assign({role:"tabpanel",hidden:a!==n,id:"vertical-tabpanel-".concat(n),"aria-labelledby":"vertical-tab-".concat(n),style:{width:"100%"}},r),a===n&&i.a.createElement(f.a,null,t))}function Ve(e,t){return{param:e,info:t}}var $e,Ye,Xe,Qe=!1;function Ze(){if($e&&$e.length){var e=$e.shift();if(e){var t=new CustomEvent("verifyUrl",{detail:{url:e.url.replace(/#.*/,"").replace(/%[pn].*/,"").replace(/%s[lure]?\b(\.replace\(.*?\))*/g,"searchJumper").replace(/%[ut]\b/i,"https://google.com"),name:e.name}});document.dispatchEvent(t)}}else{var a=document.getElementById("verifyResultList");a&&a.classList.add("finished");var n=document.getElementById("verifyDelBtn");n&&n.classList.add("finished");var i=document.getElementById("verifyStatus");i&&(i.innerText=window.i18n("verifyFinish"))}}function et(e){var t=document.querySelector(".site-icon.filter");if(t&&t.classList.remove("filter"),clearTimeout(Ye),clearTimeout(Xe),!e)return!0;var a="",n=!1;0===e.indexOf("\u3010".concat(window.i18n("category"),"\u3011"))&&(n=!0,e=e.replace("\u3010".concat(window.i18n("category"),"\u3011"),""));var i=window.searchData.sitesConfig.findIndex(function(t,i){return n?e===t.type:t.sites.findIndex(function(t,n){return(t.name===e||t.url===e)&&(a=t.name,!0)})>-1});return i>-1&&(n?i:(Xe=setInterval(function(){[].every.call(document.querySelectorAll(".site-icon"),function(e){return e.childNodes[1].title!==a||(e.classList.add("filter"),e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),clearTimeout(Xe),!1)})},500),i))}function tt(){for(var e=[Ve("%s",window.i18n("param_s")),Ve("%sl",window.i18n("param_sl")),Ve("%su",window.i18n("param_su")),Ve("%sr",window.i18n("param_sr")),Ve("%ss",window.i18n("param_ss")),Ve("%st",window.i18n("param_st")),Ve("%se",window.i18n("param_se")),Ve("%S",window.i18n("param_S")),Ve("%u",window.i18n("param_u")),Ve("%h",window.i18n("param_h")),Ve("%t",window.i18n("param_t")),Ve("%b",window.i18n("param_b")),Ve("%n",window.i18n("param_n")),Ve("%i",window.i18n("param_i")),Ve("%e",window.i18n("param_e")),Ve("%c",window.i18n("param_c")),Ve("%s.replace",window.i18n("param_sre")),Ve("%s[]",window.i18n("param_ssplit")),Ve("%p{params}",window.i18n("param_p1")),Ve("%P{params}",window.i18n("param_p2")),Ve("#p{params}",window.i18n("param_p3")),Ve('["siteName1","siteName2"]',window.i18n("param_group")),Ve("%input{tips}",window.i18n("param_input")),Ve("%element{}",window.i18n("param_ele")),Ve("%date",window.i18n("param_date1")),Ve("%date{}",window.i18n("param_date2")),Ve("%element{}.prop()",window.i18n("param_elep")),Ve("%element{}.replace()",window.i18n("param_elere")),Ve("copy:",window.i18n("param_cp")),Ve("showTips:",window.i18n("param_showTips")),Ve("find:",window.i18n("param_find")),Ve("find.addto():",window.i18n("param_findadd")),Ve("javascript",window.i18n("javascript"))],t=-1,a=-1,n=-1,r=-1,o=-1,l=0;l\ud83d\uddb1".concat(e.data.name,'
\u4ee3\u8868\u6293\u53d6 xxx.com\uff0c\u7372\u53d6\u9801\u9762\u6a19\u984c\u3001\u904d\u6b77\u6240\u6709 .genre a \u5143\u7d20\u7684\u5167\u5bb9\u4e26\u5206\u5225\u5275\u5efa mark \u5143\u7d20\u3001\u7372\u53d6 a.bigImage>img \u5716\u7247\u7684 src \u4e26\u5275\u5efa img \u5143\u7d20',param_find:"\u9801\u5167\u67e5\u627e\u9ad8\u4eae\uff0c\u4f8b\u5982 find:%s",param_findadd:'\u6dfb\u52a0\u76ee\u6a19\u95dc\u9375\u8a5e\u5230\u6307\u5b9a\u9801\u5167\u9ad8\u4eae\u9810\u7f6e\u5206\u7d44\uff0c\u4f8b\u5982 find.addto(reddit):%t.replace(/.*user/,"") \u4ee3\u8868\u7372\u53d6\u6307\u5b9a\u93c8\u63a5\u4e4b\u5f8c\u63d0\u53d6\u93c8\u63a5\u4e2d user \u5f8c\u53c3\u6578\u6dfb\u52a0\u9032\u5165 reddit \u5206\u7d44',javascript:"\u57f7\u884c js \u7a0b\u5f0f\u78bc\uff0cwindow.keywords \u4ee3\u8868\u95dc\u9375\u5b57\uff0cwindow.targetElement \u4ee3\u8868\u6307\u5411\u5143\u7d20\u3002 \u5982\u679c\u76ee\u524d\u9801\u9762\u7121\u6cd5\u57f7\u884c\u9801\u5167\u7a0b\u5f0f\u78bc\uff0c\u5247\u53ef\u65b0\u5efa\u6cb9\u7334\u8173\u672c\u8cbc\u4e0a\u7a0b\u5f0f\u78bc\uff0c\u532f\u51fa\u65b9\u6cd5\u5230 window \u4e0b\uff0c\u900f\u904e\u65b9\u6cd5\u540d\u7a31\u547c\u53eb\u3002 \u4f8b\u5982 javascript:searchJumper_Function1",param_date1:"\u7576\u524d\u6642\u9593\u6233\uff08ms\uff09",param_date2:"\u5c0d\u7576\u524d\u6642\u9593\u6233\u9032\u884c\u7c21\u55ae\u904b\u7b97\uff0c\u4f8b\u5982%date{/1000 +604800}\uff0c\u4ee3\u8868\u4e00\u661f\u671f\u4e4b\u5f8c\u4ee5\u79d2\u8a08\u7b97\u7684\u6642\u9593\u6233",aboutContent:"\u5e73\u6642\u5de5\u4f5c\u4e2d\u641c\u5c0b\u5f15\u64ce\u8df3\u8f49\u529f\u80fd\u7528\u5f97\u5f88\u983b\u7e41\uff0c\u4f46\u5617\u8a66\u4e86\u76f8\u95dc\u7684\u64f4\u5c55\uff0c\u767c\u73fe\u5927\u591a\u593e\u6709\u79c1\u8ca8\u3002\n\u800c\u9019\u53ea\u662f\u4e00\u500b\u7c21\u55ae\u529f\u80fd\uff0c\u6240\u4ee5\u4e0d\u5982\u81ea\u5df1\u5beb\u4e00\u500b\u5566\u3002\n\u7d50\u679c\u5beb\u914d\u7f6e\u9801\u9762\u8017\u8cbb\u7684\u7cbe\u529b\u6578\u500d\u65bc\u8173\u672c\u672c\u8eab\u2026\u2026\ud83e\udd26\u200d\n\u9019\u500b\u641c\u5c0b\u5f15\u64ce\u8df3\u8f49\u652f\u6301\u81ea\u5df1\u62d6\u62fd\u5b9a\u7fa9\u4f4d\u7f6e\uff0c\u540c\u6642\u4e5f\u652f\u6301\u7ad9\u5167\u641c\u5c0b\uff0c\u591a\u8a9e\u8a00\u7de8\u78bc\u8a2d\u7f6e\uff08\u4f8b\u5982shift-jis\uff09\uff0c\u5283\u8a5e\u641c\u5c0b\uff0c\u4ee5\u53ca\u914d\u7f6e\u5c0e\u5165\u5c0e\u51fa\u3002"};break;default:ga={name:"SearchJumper",lang:"Language",setLang:"Set language",outOfDate:"The script is out of date, click to update",description:"Description",moreOptions:"More options",showIcon:"Show category",hideIcon:"Hide category",rulesStore:"Search engine Store",import:"Import config",importFromClipboard:"Import from clipboard",exportTitle:"Export JSON, click to export engines, hold to export all config data",exportCache:"Export icon cache",general:"General",searchEngines:"Search Engines",exportConfig:"Export Config",presetGroupName:"Preset group name",presetGroupValue:"Preset group content",addGroup:"Add preset group",addGroupTips:"Add a set of preset highlight words to be called repeatedly in different scenes",findInPage:"Find In Page",customSearch:"Custom Search",about:"About",showInSearchEngine:"Highlight search engine page",showInSearchEngineTips:"Highlight keywords on the search engine results page",showInSearchJumpPage:"Highlight the site opened from the search engine",showInSearchJumpPageTips:"Highlight keywords on the page opened by click on the search engine",currentTypeFirst:"Stick current group",currentTypeFirstTips:"After enabled, current group will move to the first position",mouseLeaveToHide:"Automatically hide when mouse leaves",mouseLeaveToHideTips:"Automatically hide when mouse moves away from the search bar",limitInPageLen:"Limit the minimum length of keywords",limitInPageLenTips:"Do not highlight keywords whose length is less than this value",ignoreWords:"Ignore keyword list",inPageWordsStyles:"Keyword styles",inPageWordsAddStyles:"Custom keyword CSS, input an array target each keyword",defaultPicker:"Auto enable element selection",defaultPickerTips:"Automatically enable element selection when opening the search input box",altToHighlight:"Alt swipe to highlight immediately",altToHighlightTips:"When using the in-page search function under search input, highlight immediately with Alt after selection",disableInputOnWords:"No search input when something is selected",disableInputOnWordsTips:"Do not pop up the search input with shortcut key when something is selected",inPageRule:"Site auto-highlighting rules",errorNoType:"Please enter the category name",errorSameType:"Found same category name",editType:"Edit category",typeName:"Category name",typeIcon:"Category icon",category:"Category",iconTips:"The icon can use FontAwsome, image link or base64 code",typeMatch:"Match url, hide by set to 0",typeEnableSelTxt:"Effect on text",typeEnableSelImg:"Effect on image",typeEnableSelAudio:"Effect on audio",typeEnableSelVideo:"Effect on video",typeEnableSelLink:"Effect on link",typeEnableSelPage:"Effect on page",typeOpenInNewTab:"After enabling, this group of links will be opened in a new window by default",openSelect:"Open mode",openInNewTabOption:"Open in new tab",openInCurrentOption:"Open in current",openInDefaultOption:"Open by default",showCurrent:"Show current site",showCurrentTips:"Show the site button of current when matched",delete:"Delete",deleteOk:"Delete over",cancel:"Cancel",edit:"Edit",add:"Add",editSite:"Edit site",addSite:"Add site",addType:"Add type",siteName:"Site name",siteUrl:"Site URL",siteIcon:"Site icon",siteKeywords:"Extract search keywords",keywordRegTips:"Single: wd, Multiple: wd|qw|key, RegExp group: (?:wd|w)/(.*?)\\b, Selector: input#su",kwFilter:"Filter search keywords",kwFilterTips:"Hide the engine when the object words does not match this regex",siteMatch:"URL RegExp for match engine, force hide by set to 0",siteCharset:"Charset",toolbarPosition:"Toolbar position",portrait:"Portrait",horizontal:"Horizontal",openInNewTab:"Open links in new tabs by default",openInNewTabTips:"When enabled, the link will be opened in a new tab by default",enableInPage:"Enable select to search",enableInPageTips:"After enabling, select some text and long press the right mouse to bring up the toolbar",bindFunctionKey:"Bind function key for mouse to call out toolbar, then click to call out search tiles without long press",ctrlKey:"Ctrl key",altKey:"Alt key",shiftKey:"Shift key",metaKey:"Meta key",configContent:"Config source code",batchOpenConfirm:"Batch search confirm",batchOpenConfirmDefault:"Default",batchOpenConfirmAlways:"Always confirm",batchOpenConfirmNo:"Without confirm",copy:"Copy",save:"Save",autoClose:"Auto close type",autoDelay:"Hide delay",needName:"Require name",needUrl:"Require url",wrongImg:"Wrong icon",overOpen:"Mouse over to expand category automatically ",overOpenTips:"If you select this item, when the mouse moves over the category icon, the corresponding category will be automatically expanded",selectToShow:"Select to call tiles",selectToShowTips:"After enabling, select to bring up the tiles immediately",autoCloseTips:"When enabled, opened category drawer will be closed automatically once the mouse leaves the search bar",enableShortcut:"Enable site shortcuts",enableShortcutTips:"After enabling, all shortcut keys assigned to single site will take effect",shortcut:"Shortcut key",siteShotcut:"Search shortcut key",switchSitesKey:"Shortcut key for engine switching in the current group, only valid when matching",switchSitesPreKey:"Switch prev key",switchSitesNextKey:"Switch next key",initShow:"Init show",initShowTips:"Pull out to show when page initializes",alwaysShow:"Always show toolbar",alwaysShowTips:"Show toolbar even if no search engine matches",presetCss:"Preset Css",presetCssTips:"Select to load preset css",customCss:"Custom Css",replaceCss:"Do you confirm to replace current css?",enableInInput:"Enable on input",enableInInputTips:"Enable SearchJumper on input or textarea",fontAwesomeCss:"FontAwesome CDN URL",nobatch:"Do not open when batch open",hideNotMatch:"Hide if not current",typeMatchTips:"Show this category only when url matches",siteUrlTips:"%s keywords; %t target URL; %u site URL; %h hostname",customSize:"Zoom toolbar/tiles/disc",typeOpenTime:"Category expansion time",longPressTime:"Long press time",typeShotcut:"Shortcut for batch open",enableRightMouse:"Effect with right mouse",enableRightMouseTips:"Effect after long press the right mouse button on target",enableLeftMouse:"Also effect with left mouse",enableLeftMouseTips:"Also effect after click the left mouse button on target",cacheSwitch:"Cache icons",sameSiteName:"Site under \u3010#t#\u3011 has the same name",sameShortcut:"\u3010#t#\u3011 has already bind the same shortcut",noIcons:"Plain text mode",noIconsTips:"Show only plain text without any icon",showEngineWords:"Show engine name",showEngineWordsTips:"Show name beside the engine icon",noAni:"Disable animation effects",noAniTips:"Disable all animation effects",quickAddRule:"Quick Add Site",quickAddRuleTips:"Click any search input box with Ctrl + Alt to add site quickly",searchMycroft:"\ud83d\udc8e Search site config on mycroftproject for import by one click",showSiteLists:"Show drop-down list",showSiteListsTips:"After enabled, the drop-down list will be enabled next to the category icon",alwaysShowSiteLists:"Always show drop-down lists",alwaysShowSiteListsTips:"After enabled, the drop-down list will be enabled even when category opened",disableTypeOpen:"Disable category click-to-expansion",disableTypeOpenTips:"After enabling, when the category icon is clicked, it will no longer be expanded",historyLength:"Number of history sites",historyLengthTips:"Insert several recently visited sites at the end of current expanded category",historyInsertFirst:"Insert the history sites at the beginning of current group",historyInsertFirstTips:"Insert the most recently visited sites at the beginning of the group, otherwise at the end",shiftLastUsedType:"Move forward the last used category",shiftLastUsedTypeTips:"Move the last used group forward after the current category",sortType:"Auto sort categories",sortTypeTips:"Automatically reorder categories according to the number of visits",sortSite:"Auto sort engines",sortSiteTips:"Automatically reorder engines in category according to the number of visits",multiline:"Multi-line text search, separated by line feed, search by single line",multilineLabel:"Switch",multilineGap:"Search Gap",disable:"Disable",enable:"Enable",ask:"Ask",filterEngine:"Filter engine",verifyResult:"Verify result",verifyBtn:"Verify availability of all engines",verifying:"Verifying...",verifyFinish:"Verify complete",batchAction:"Batch Action",selectAll:"Select All",invert:"Invert",deleteConfirm:"Do you want to delete these sites?",moveTo:"Move to",moveToConfirm:"Do you want to move these sites to \u3010#t#\u3011?",autoHide:"Auto hide bar",autoHideTips:"Auto hide search bar after hide delay set before",autoHideAll:"Completely hide",autoHideAllTips:"Hide the search bar completely",unsetTips:"Unset",resizePageTips:"Resize page without hide",minSizeMode:"Minimalist Mode",minSizeModeTips:"After opening, the search bar will only display the current category until the mouse is over",dragToSearch:"Enable drag to search",dragToSearchTips:"Drag text, link or image to search quickly, the inner circle contains the top 6 sites in the current category(first txt/img/link group), and the outer circle contains the most recently used sites",sameSiteUrl:"Found a site with same url",clone:"Clone",cloneConfirm:"Do you want to clone these sites to \u3010#t#\u3011?",cloneAction:"Do you want to clone as one group instead of a single site?",groupName:"Group Name",donate:"Hi, I'm Hoothin, the author of SearchJumper. \nSearchJumper is completely open source and free, even though it has taken a lot of work to develop. \nIf you have found SearchJumper valuable, then please consider helping me out in one of the following ways.\ud83d\udc9e",importBookmarks:"Import browser bookmarks",sync:"Sync by Webdav",host:"Host",username:"Username",password:"Password",path:"Path",syncTips:"Webdav server need to support custom cors, add allowed_hosts: https://hoothin.github.io",expandType:"Expand group",expandTypeTips:"Expand group, Do not collapse engines in one group",expandTypeLength:"Show engines number",expandTypeLengthTips:"Hide the engines more than this number",jsonToolong:"The sites data is too long, do you want to continue format to json?",imgTooBig:"Image is larger than 50kb, still want to upload?",cacheSwitchTips:"The icons will be cached with base64 images in the background, some cross-domain requests will pop up after cache action started",searchFontawesome:"\ud83d\udea9 Search icons for category from FontAwesome.com",localAppAddBtn:"Call local application",localApp:"Local application call",localAppCall:"Call command",localAppName:"Custom call header, can be left blank",localAppUnknowCall:"Unable to parse this command, please check the command or manually construct the registry",localAppWrongName:"The call header can only enter with numbers or letters",callInputKey:"Shortcut key for calling out the search input",showAllKey:"Shortcut key for calling out Show-All-Mode",defaultFindTab:"Default to display find in page",defaultFindTabTips:"When the search input is opened, the find-in-page will be displayed by default, otherwise the site filter will be displayed by default",globalSearchNow:"Search all tabs immediately",globalSearchNowTips:"When clicking on Pin button for highlighted word, immediately search for keywords in all tabs, which may affect performance, open with caution",geneRegFile:"Generate registry patch",targetTxt:"Words search",targetImg:"Image search",targetLink:"Link Search",targetPage:"Current page",hideDragHistory:"Hide the outer ring of the drag wheel",hideDragHistoryTips:"Hide the outer ring of the drag wheel which storing the last 10 historically visited sites",disableAutoOpen:"Disable category auto-expansion",disableAutoOpenTips:"After enabling, when Search Bar is called up, Category will no longer be expanded automatically",minPopup:"Minimize the search popup",minPopupTips:"When enabled, the popup box will only display a category icon until the mouse is over",minPopupDisable:"Disable",minPopupEnable:"Enable",minPopupInput:"Only on input",hidePopup:"Disable search popup",hidePopupTips:"After opening, the popup box will be disabled, and the full search bar will be used to replace it",limitPopupLen:"Limit words for popup",limitPopupLenTips:"No popup box when length of selected words is less than this",hideOnSearchEngine:"Hide on search engine page",hideOnSearchEngineTips:"After enabling, Search Bar on the search engine page will no longer be displayed automatically",suggestType:"Source of related words",templateTitle:"Template text, call by $template{template name}",templateName:"Template Name",templateValue:"Template Value",paramTitle:"Search params",param:"Param",details:"Details",param_s:"Search keyword",param_S:"Cached search keyword",param_sl:"Search keyword with lower case letters",param_su:"Search keyword with upper case letters",param_sr:"Search keyword without doing any encoding",param_ss:"Search keyword to Simplified Chinese, need to work with my \u3010Switch Traditional Chinese and Simplified Chinese\u3011 https://greasyfork.org/scripts/24300",param_st:"Search keyword to Traditional Chinese, same as above",param_se:"Search keyword with escape encoding",param_e:"Charset",param_c:"Client: pc,mobile",param_u:"Current website url, when pointing to a link or picture, it means the corresponding url. %U: with encodeURIComponent",param_h:"Current website host",param_t:"The address of target link or image. %T: with encodeURIComponent",param_b:"Target address without http. %B: with encodeURIComponent",param_n:"Title or alt of target or title of current page",param_i:"Base64 of target image",param_sre:'Replace keywords/url/src with regexp, like %sr.replace(/[^\\d]/g, "").replace(/(\\d)/g, "$1 ") means replace raw keywords to numbers and then join all numbers with space, support %s %sl %sr %su %t %u',param_ssplit:'Multi-line search parameters, %s[] means to select the next item in sequence after being separated by newline or space, %s[-1] means to get the next item in reverse order, %s[0] means to specify the first item, %s[all] means to batch search all after split, %s[1|@] means separated by @ and specifies the second item. Supports replace, for example %s[].replace(/(\\d)/,"a$1"). Will read keywords from clipboard if there is no one',param_p1:"Post body, like %p{x=1&y=%s}",param_p2:"Post without navigation",param_p3:'Post in page by selector or xpath, like #p{#input=%u&sleep(500)&click(.submit)}, means: input current url to "#input", then wait for 500ms, then click ".submit". use \\& \\= instead of & = in content. wait(#input) means wait for element #input appeared, wait(!.loading) means wait for element .loading disappeared, call(alert("Hello")) means eval code alert("Hello"), which support await. @ means activeElement while input',param_input:"Input something, like %input{love who?,you}.Use / to create a drop down menu, eg %input{Please select your cup size,A/B/C}. You can also add descriptions separately, for example %input{Please select your cup/rare/excellent/So big,A/B/C}",param_group:"Batch open by site name you've created",param_ele:"Query element for innerText from selector or xpath, like %element{.mainTitle}, return selected elements if selector is not set",param_elep:"Return prop value for queried element, like %element{.mainTitle}.prop(href) %element{.mainTitle}.prop(innerHTML)",param_elere:'Replace, same as above, like %element{.mainTitle}.prop(href).replace(/https/i,"")',param_cp:"Put this at first then all words after will be copied to the clipboard",param_showTips:'Display the acquired html code in the tips immediately when the mouse hovers, if an array is returned, the second item means the content will be copied after click, if the second item is a link, it will open after click. you can use fetch with cross-domain, and use storage.getItem/storage.setItem to operate persistent data, "name" is the name of current engine. It is also possible to use the simplified mode and pass in the link directly with the template, for example: showTips:https://api.xxx.xxx/xxx {json.result|*%s} USD = %s RMB\uff0cit means grabbing data from api.xxx.xxx, parsing it in json format, and putting the json.result into the template and returning the tips. Another example: showTips:https://xxx.com/%sr {title}
{.genre a|()}
which means grabbing data from xxx.com, get the page title, iterate through the contents of all .genre a elements and create mark elements separately, get the src of a.bigImage>img image and create img elements',param_find:"Find in page and highlight, such as find:%s",param_findadd:'Add the target keyword to the highlighted preset group, for example, find.addto(reddit):%t.replace(/.*user/,"") means to extract the parameters after the "user" in the specified link and add into "@reddit" group',javascript:"Execute js code, window.keywords represents keywords, window.targetElement represents the pointing element. If the current page cannot execute the inline code, you can create a new GreaseMonkey script and paste the code, export the method to window, and call it through the method name. For example javascript:searchJumper_Function1",param_date1:"Current timestamp(ms)",param_date2:"Perform simple calculations on the current timestamp, such as %date{/1000 +604800}, which represents a timestamp calculated in seconds after one week",aboutContent:"I use the search engine jump function very frequently in my work, but I found that most of them contain trojans after tried many related extensions. \nThis is just a simple function, so why not write one by myself? \nThe result is that writing the configuration page takes several times more energy than the script itself... \ud83e\udd26\u200d\nThis search engine jump supports dragging and dropping with defined location, and also supports in-site search, word-marking search, and configuration import and export."}}},window.i18n=function(e,t){return ga[e]?ga[e].replace("#t#",t):e},window.setLang(fa),setTimeout(function(){window.searchData||window.location.reload()},5e3),o.a.createRoot(document.getElementById("root")).render(i.a.createElement(i.a.StrictMode,null,i.a.createElement(ha,null))),wa()}},[[234,3,2]]]);
\ No newline at end of file