1"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[2319],{20571(e,r,t){t.d(r,{B:()=>y}),t(65302),t(14758),t(99488),t(2795),t(36883),t(64317),t(16667),t(17177),t(68372),t(7651),t(14211),t(29690),t(66993),t(62563),t(8293),t(74495),t(35737),t(55136),t(93555),t(67622),t(80746),t(34059),t(90508),t(71119),t(38660),t(26177),t(98398),t(76341),t(26979),t(36630),t(33768),t(5617),t(25800),t(31460),t(97060),t(2851),t(80755),t(4514);var n=t(59001),o=t(56771);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach(function(r){l(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function l(e,r,t){return(r=function(e){var r=function(e){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function s(e){return function(e){if(Array.isArray(e))return d(e)}(e)||f(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,r){if(e){if("string"==typeof e)return d(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,r):void 0}}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var y=function(e){return e.flatMap(function(e){return e.siblings?[e].concat(s(y(e.siblings).map(function(r){return u(u({},r),{},{parent:e})}))):e.items?y(e.items):e})};t.d(r,["A",0,function(e,r,t){var i=y(r),a=[];e&&(a=(0,o.qg)(e)),t&&(a=[].concat(s(a),s((0,o.qg)("(".concat(t,":)"),(0,n.J9)(a)))));var h,m=[],p=[],v=function(e){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))){r&&(e=r);var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(a);try{var b=function(){var e=h.value;if("All"===e.searchTerm.term)return m.push(e),1;var r,t=i.filter(function(r){return r.term===e.searchTerm.term});if(t.length)if(e.queryBits.database){var n=t.find(function(r){return r.valuePrefix==="".concat(e.queryBits.database,"-")});n?m.push(u(u({},e),{},{searchTerm:n})):p.push(e)}else if(1===t.length||"go"===e.searchTerm.term)m.push(u(u({},e),{},{searchTerm:t[0].parent||t[0]}));else if("xref"===e.searchTerm.term){var o,a;if(e.queryBits.xref.includes("-")){var s=function(e){if(Array.isArray(e))return e}(r=e.queryBits.xref.split("-"))||f(r)||c(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=s[0],v=d(s).slice(1);
1o=t.find(function(e){return e.valuePrefix==="".concat(y,"-")}),a=v.join("-")}o||(o=t.find(function(e){return"xref"===e.term}),a=e.queryBits.xref),o&&a?m.push(u(u({},e),{},{searchTerm:o,queryBits:{xref:a}})):p.push(e)}else p.push(e);else if("database"===e.searchTerm.term){var b=i.find(function(r){return r.valuePrefix==="".concat(e.queryBits.database,"-")});b?m.push(u(u({},e),{},{searchTerm:b,queryBits:{xref:"".concat(e.queryBits.database,"-*")}})):p.push(e)}else{var g,j=i.find(function(r){var t=r.autoCompleteQueryTerm;return t&&t===e.searchTerm.term});j?m.push(u(u({},e),{},{searchTerm:j,queryBits:u(u({},e.queryBits),{},l({},j.autoCompleteQueryTerm&&null!==(g=e.searchTerm.term)&&void 0!==g&&g.endsWith("_id")?j.autoCompleteQueryTerm:j.term||"",e.queryBits[e.searchTerm.term||""]))})):p.push(e)}};for(v.s();!(h=v.n()).done;)b()}catch(e){v.e(e)}finally{v.f()}return[m,p]}])},79839(e,r,t){var n=t(36371),o=t(71763),i=t(84026),a=t(68823),u=t(16833),l=t(75247),s=t(91987),c=(0,o.lazy)(function(){return t.e(1574).then(t.bind(t,68223))}),f=function(){return(0,s.jsx)(n.QB,{level:"info",children:(0,s.jsxs)("small",{children:[(0,s.jsx)("h1",{className:"small",children:"Sorry, no results were found!"}),(0,s.jsx)("span",{children:"Please try different criteria"})]})})};t.d(r,["A",0,function(e){var r=e.children,t=void 0===r?(0,s.jsx)(f,{}):r;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex"})}),(0,s.jsx)(u.A,{artwork:(0,s.jsx)("img",{src:l,width:"400",height:"400",alt:""}),children:t}),(0,s.jsx)(i.A,{children:(0,s.jsx)(o.Suspense,{fallback:null,children:(0,s.jsx)(c,{})})})]})}])},25580(e,r,t){t.r(r),t.d(r,{default:()=>$e}),t(65302),t(14758),t(99488),t(36883),t(64317),t(16667),t(14211),t(66993),t(74495),t(35737),t(13774),t(36630),t(33768),t(5617),t(25800),t(2851),t(51865),t(4514);var n=t(36371),o=t(66532),i=t(87912),a=t(10531),u=t(52871),l=t(79262),s=t(5968),c=t(95092),f=t(94237),d=t(37971),y=t(69429),h=t(61540),m=t(84026),p=t(78375),v=t(79839),b=t(68823),g=t(54590),j=(t(73356),t(17177),t(62563),t(8293),t(12925),t(67622),t(38660),t(90882),t(85528),t(31126),t(23132),t(75438),t(26979),t(78880),t(66001),t(65420),t(69977),t(41216),t(77470),t(23428),t(22549),t(59233),t(86551),t(53627),t(39828),t(84156),t(29462),t(8415),t(39490),t(18208),t(86100),t(40106),t(26572),t(35534),t(25833),t(85459),t(16137),t(67148),t(25923),t(88041),t(43453),t(98660),t(68907),t(20206),t(11104)),x=t(92411),A=t(95635);var w=t(71763),S=t(85399),O=t(91981),q=t(91509),P=t(32120),I=t(34821),E=t(90708),T=t(97657),$=t(59173),k=t(73374);var _=t(91987);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function D(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,u=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=i.call(t)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,r)||function(e,r){if(e){if("string"==typeof e)return B(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?B(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function C(){C=function(e,r){return new t(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function t(e,n,o){var i=RegExp(e,n);return r.set(i,o||r.get(e)),F(i,t.prototype)}function n(e,t){var n=r.get(t);return Object.keys(n).reduce(function(r,t){var o=n[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]]}return r},Object.create(null))}return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&F(e,r)}(t,RegExp),t.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=n(t,this);var o=t.indices;o&&(o.groups=n(o,this))}return t},t.prototype[Symbol.replace]=function(t,o){if("string"==typeof o){var i=r.get(this);return e[Symbol.replace].call(this,t,o.replace(/\$<([^>]+)(>|$)/g,function(e,r,t){if(""===t)return e;var n=i[r];return Array.isArray(n)?"$"+n.join("$"):"number"==typeof n?"$"+n:""}))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=N(e[e.length-1])&&(e=[].slice.call(e)).push(n(e,a)),o.apply(this,e)})}return e[Symbol.replace].call(this,t,o)},C.apply(this,arguments)}
1function F(e,r){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},F(e,r)}var R=C(/(\S+)\.\d+/,{id:1}),M=new Map([[y.g$.uniprotkb,"uniprotkb"],[y.g$.uniref,"uniref"],[y.g$.uniparc,"uniparc"],[y.g$.proteomes,"proteome"]]),z={length:10},U=function(e){var r=e.suggestions,t=e.namespace;return(0,_.jsxs)("div",{children:["In"," ",(0,_.jsx)("span",{"data-article-id":M.get(t),children:y.zK[t]}),(0,_.jsx)("ul",{className:"PJIRE",children:r.map(function(e){var r=e.query;return(0,_.jsx)("li",{children:(0,_.jsx)(S.N_,{to:{pathname:i.X8[t],search:(0,h._b)({query:r})},className:"R3Eik",translate:"no",children:r},r)},r)})})]})},L=function(e){var r=e.potentialPeptide;return(0,_.jsxs)("div",{children:["Are you searching for protein sequences containing the peptide"," ",(0,_.jsxs)("span",{children:[(0,j.A)(r,z),"?"]}),(0,_.jsxs)("ul",{children:[(0,_.jsxs)("li",{children:["Our basic search tool allows to find protein entries by"," ",(0,_.jsx)(S.N_,{to:(0,o.tW)(i.qg[i.aZ.HelpEntry],{accession:"text-search"}),children:"name, organism, identifier, etc"}),", but not by sequence."]}),(0,_.jsxs)("li",{children:["For sequence-based queries, please use"," ",(0,_.jsx)(S.N_,{to:{pathname:i.qg[i.aZ.Blast],search:"sequence=".concat(r)},translate:"no",children:"BLAST"})," ","or"," ",(0,_.jsx)(S.N_,{to:{pathname:i.qg[i.aZ.PeptideSearch],search:"peps=".concat(r)},children:"Peptide Search"}),"."]})]})]})},Q=[y.g$.uniprotkb,y.g$.uniref,y.g$.uniparc,y.g$.proteomes],Z=(0,_.jsx)("h1",{className:"small",children:"Sorry, no results were found!"});const H=function(e){var r=e.suggestions,t=e.heading,i=void 0===t?Z:t,a=(0,c.A)(),u=(0,o.zy)(),l=D((0,T.A)(!1),2),s=l[0],f=l[1],d=(0,w.useRef)(new Map),m=new URLSearchParams(u.search).get("query");(0,w.useEffect)(function(){d.current.clear()},[a,m]),(0,w.useEffect)(function(){if(m&&a){var e=Q.filter(function(e){return e!==a}).map(function(e){return(0,$.A)((0,h.fI)(I.A.search.searchPrefix(e),{query:m,size:0,didyoumean:!0})).then(function(r){var t,n=+((null==r||null===(t=r.headers)||void 0===t?void 0:t["x-total-results"])||0);n&&d.current.set(e,[{query:m,hits:n}])},function(){})});Promise.race([Promise.all(e),(0,O.yy)(3e3)]).finally(function(){f(!0)})}},[a,m,f]);var p,v,b,g,S=(v="hits",b="desc",null==(p=r)?[]:((0,A.A)(v)||(v=null==v?[]:[v]),b=g?void 0:b,(0,A.A)(b)||(b=null==b?[]:[b]),(0,x.A)(p,v,b)));if(a===y.g$.uniparc){var N,B=null==m?void 0:m.match(R),C=null==B||null===(N=B.groups)||void 0===N?void 0:N.id;C&&(S.some(function(e){return e.query===C})||S.unshift({query:C,hits:1}))}var F=[];S.length&&a&&F.push((0,_.jsx)(U,{suggestions:S,namespace:a},"".concat(a,"-").concat(m)));for(var M=0,H=Array.from(d.current.entries());M<H.length;M++){var V=D(H[M],2),K=V[0],W=V[1];if(F.push((0,_.jsx)(U,{suggestions:W,namespace:K},K)),K===y.g$.uniprotkb)break}var J,G=(null==m?void 0:m.toUpperCase())||"",X=D((0,n.gH)(G,E.NG,!0),1)[0],Y=X.valid&&"aa"===X.likelyType&&G,ee=Y&&(0,_.jsx)(P.A,{sequence:Y,sequenceDescription:(0,j.A)(G,z),asMessage:!1}),re=Y&&(0,_.jsx)(L,{potentialPeptide:Y},"peptide search");J=s?(0,_.jsxs)("div",{className:"IJR99",children:[!!F.length&&(0,_.jsxs)(_.Fragment,{children:["Did you mean to search for:",F]}),ee,re]}):(0,_.jsx)(n.aH,{});var te=(0,w.useMemo)(function(){return(0,k.C)()},[]);return(0,_.jsxs)(n.QB,{level:"info",className:"g9h_j",children:[i,J,s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("p",{children:["If you can't find what you are looking for, please"," ",(0,_.jsx)(q.A,{children:"contact us"}),"."]}),te&&(0,_.jsxs)("p",{children:["Even though you translated the website,"," ",(0,_.jsx)("strong",{children:"make sure that your query is in English"}),"."]}),a===y.g$.uniparc?(0,_.jsxs)("p",{children:["Some cross-references, when there are too many of them on a UniParc entry, are not indexed.",(0,_.jsx)("br",{}),"If you think your search corresponds to one of these, do"," ",(0,_.jsx)(q.A,{children:"get in touch"})," so we can provide you the data."]}):null]})]})};var V=t(55680),K=t(55439),W=t(9297),J=function(e){var r=e.total,t=void 0===r?0:r,o=e.loadedTotal,a=e.selectedEntries,u=e.namespaceOverride,l=e.headingPostscript,s=e.accessions,f=e.base,d=e.disableCardToggle,h=void 0!==d&&d,m=e.children,p=(0,c.A)(u)||y.g$.uniprotkb,v=(0,K.A)().jobResultsLocation;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(n.Yf,{heading:v?null===i.w_||void 0===i.w_?void 0:i.w_[v]:y.rc[p],headingPostscript:l,resultsCount:t,children:m}),(0,_.jsx)(W.A,{total:t,loadedTotal:o,selectedEntries:a,accessions:s,namespaceOverride:p,disableCardToggle:h,base:f})]})};const G=(0,w.memo)(J);var X=t(97335),Y=(t(29690),t(97060),t(2795),t(93555),t(80746),t(71119),t(26177),t(36343),t(98398),t(76341),t(80755),t(56771));function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function re(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function te(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?re(Object(t),!0).forEach(function(r){ne(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):re(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function ne(e,r,t){return(r=function(e){var r=function(e){if("object"!=ee(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=ee(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ee(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function oe(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var ie=["taxonomy_id","organism_id"],ae=["gene","ec"],ue=function(e,r,t){var n=(0,Y.qg)(e),o="",i=n.map(function(e){if(e.searchTerm.term&&t.includes(e.searchTerm.term)){var n=e.queryBits,i={};return Object.entries(n).forEach(function(e){var t,n,a=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,u=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=i.call(t)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,n)||function(e,r){if(e){if("string"==typeof e)return oe(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,r):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],l=a[1];"exact"===r?i["".concat(u,"_exact")]=l:"taxon"===r&&(i["taxonomy_id"===u?"organism_id":"taxonomy_id"]=l),o=l}),te(te({},e),{},{queryBits:i})}return te({},e)});return{modifiedQuery:(0,Y.As)(i),searchValue:o}},le=(t(68372),t(62391),t(34059),t(20571)),se=t(4500),ce=t(39014);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function de(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function ye(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?de(Object(t),!0).forEach(function(r){he(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function he(e,r,t){return(r=function(e){var r=function(e){if("object"!=fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=fe(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fe(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function me(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,u=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=i.call(t)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,r)||function(e,r){if(e){if("string"==typeof e)return pe(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pe(e,r):void 0}}
1(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var ve=/ \[[A-Z]+\]$/;const be=function(e){var r,t=e.query,o=e.total,a=me((0,w.useState)(1),2),l=a[0],s=a[1],c=me((0,w.useState)(1/0),2),f=c[0],d=c[1],m=(0,w.useRef)(null),p=(0,u.A)((0,h.fI)(I.A.search.searchPrefix(y.g$.uniprotkb),{size:"0",query:t,showSingleTermMatchedFields:"true"})).data,v=(0,u.A)(null!=p&&null!==(r=p.matchedFields)&&void 0!==r&&r.length?I.A.configure.queryBuilderTerms(y.g$.uniprotkb):void 0).data,b=(0,w.useMemo)(function(){var e;if(!v||null==p||null===(e=p.matchedFields)||void 0===e||!e.length)return null;var r=(0,le.B)(v);return p.matchedFields.map(function(e){var t,n,o=r.find(function(r){return r.term===e.name});return ye(ye({},e),{},{label:(null===(t=(null==o?void 0:o.label)||(null==o||null===(n=o.parent)||void 0===n?void 0:n.label))||void 0===t?void 0:t.replace(ve,""))||e.name})}).sort(function(e,r){return r.hits-e.hits})},[p,v]);if((0,w.useLayoutEffect)(function(){null!=b&&b.length&&d(b.length)},[b]),(0,w.useLayoutEffect)(function(){var e;if(null!=b&&b.length&&f!==1/0){var r=null===(e=m.current)||void 0===e?void 0:e.getClientRects();if(null!=r&&r.length&&r.length>l){if(1===f)return s(2),void d(b.length);d(function(e){return e-1})}}},[b,l,f]),null==b||!b.length)return null;if(1===f&&b[0].hits===o)return null;var g=b.map(function(e,r,n){return(0,_.jsxs)(w.Fragment,{children:[(0,ce.A)(r,n,"or"),(0,_.jsx)(S.N_,{to:{pathname:i.qg[i.aZ.UniProtKBResults],search:"query=".concat(e.name,":").concat(t)},className:se.A["no-wrap"],children:e.label})]},e.name)}),j=g.slice(0,f),x=g.slice(f);return(0,_.jsx)("span",{ref:m,children:(0,_.jsxs)("small",{children:[" ","or search ",(0,_.jsxs)("span",{translate:"no",children:['"',t,'"']})," as a"," ",j,x.length?(0,_.jsx)(n.hn,{children:x}):null]})})};var ge=function(e){var r=e.query,t=e.children,n=e.namespace,o=void 0===n?y.g$.uniprotkb:n;return(0,_.jsx)(S.N_,{to:(0,h.fI)(i.Nx[o],{query:r}),children:t})};const je=function(e){var r=e.query,t=e.total,n=ue(r,"exact",ae),o=n.modifiedQuery,i=n.searchValue,a=(0,u.A)((0,h.fI)(I.A.search.searchPrefix(y.g$.uniprotkb),{query:o,size:0})).headers;return Number(null==a?void 0:a["x-total-results"])&&Number(null==a?void 0:a["x-total-results"])!==t&&r!==o?(0,_.jsxs)("small",{children:[" ","or show only exact matches for"," ",(0,_.jsx)(ge,{query:o,children:i})]}):null},xe=function(e){var r=e.query,t=e.taxonID,n=e.total,o=e.namespace,i=(0,u.A)((0,h.fI)(I.A.search.searchPrefix(o),{query:"organism_id:".concat(t),size:0})).headers;return Number(null==i?void 0:i["x-total-results"])&&Number(null==i?void 0:i["x-total-results"])!==n&&!r.includes("proteome")?(0,_.jsxs)(_.Fragment,{children:[" ",'or restrict search to organism with taxon ID "',(0,_.jsx)("b",{children:t}),'" to'," ",(0,_.jsx)(ge,{query:r,namespace:o,children:"exclude lower taxonomic ranks"})]}):null};var Ae=t(13197);function we(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const Se=function(e){var r,t,o=e.organismID,a=e.query,l=e.namespace,s=(r=(0,w.useState)(),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,u=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=i.call(t)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(r,t)||function(e,r){if(e){if("string"==typeof e)return we(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?we(e,r):void 0}}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],f=s[1],d=(0,u.A)((0,h.fI)(I.A.search.searchPrefix(y.g$.proteomes),{query:"organism_id:".concat(o),fields:"upid,organism",size:7})),m=d.data,p=d.headers;return(0,w.useEffect)(function(){null!=m&&m.results.length&&(l===y.g$.uniprotkb?f(m.results[0]):l===y.g$.uniparc&&f(m.results))},[m,l]),!Array.isArray(c)&&null!=c&&c.id?(0,_.jsxs)(_.Fragment,{children:[" ","or restrict search to proteome"," ",(0,_.jsx)(ge,{query:"".concat(a," AND (proteome:").concat(c.id,")"),namespace:l,children:c.id})]}):Array.isArray(c)&&c.length>0&&null!=p&&p["x-total-results"]?(0,_.jsxs)(_.Fragment,{children:[" ","or restrict search to"," ",(0,_.jsx)(n.ms,{visibleElement:function(e){return(0,_.jsxs)(n.$n,{variant:"tertiary",onClick:e,className:"xheXu",children:["one of ",p["x-total-results"]," proteomes"]})},children:(0,_.jsxs)("ul",{children:[c.map(function(e){var r=e.id,t=e.proteomeType,n=e.taxonomy,o=e.strain;return(0,_.jsx)("li",{children:(0,_.jsx)(ge,{query:"".concat(a," AND (proteome:").concat(r,")"),namespace:l,children:(0,_.jsxs)("span",{children:[(0,_.jsx)(Ae.Ay,{entryType:t}),r," - ",n.scientificName," ",o?"(".concat(o,")"):null," "]})})},r)}),Number(p["x-total-results"])>7&&(0,_.jsx)("li",{children:(0,_.jsxs)(n.Gr,{url:(0,h.fI)(i.qg[i.aZ.ProteomesResults],{query:"organism_id:".concat(o)}),children:["View all ",p["x-total-results"]," in the Proteomes database"]})})]})})]}):null},Oe=function(e){var r=e.query,t=e.total,n=e.namespace,o=ue(r,"taxon",ie),i=o.modifiedQuery,a=o.searchValue,l=(0,u.A)((0,h.fI)(I.A.search.searchPrefix(n),{query:"".concat(i),size:0})).headers,s=Number(null==l?void 0:l["x-total-results"])&&Number(null==l?void 0:l["x-total-results"])!==t;if(r!==i&&a){var c=r.includes("organism");return(0,_.jsx)("small",{children:c&&!r.includes("proteome")?(0,_.jsxs)(_.Fragment,{children:[s?(0,_.jsxs)(_.Fragment,{children:[" ",'or expand search to taxon ID "',(0,_.jsx)("b",{children:a}),'" to'," ",(0,_.jsx)(ge,{query:i,namespace:n,children:"include lower taxonomic ranks"})]}):"",n!==y.g$.proteomes&&(0,_.jsx)(Se,{organismID:a,query:r,namespace:n})]}):(0,_.jsx)(xe,{query:i,taxonID:a,total:t,namespace:n})})}return null};var qe=/^[a-zA-Z0-9]+$/,Pe=function(e,r){return new RegExp(e.map(function(e){return"\\b".concat(e,"\\b")}).join("|"),"g").test(r)};const Ie=function(e){var r=e.query,t=e.namespace,n=e.total;if(n&&null!=r&&r.length){if(qe.test(r)&&t===y.g$.uniprotkb)return(0,_.jsx)(be,{query:r,total:n});if(Pe(ae,r)&&!r.includes("exact")&&t===y.g$.uniprotkb)return(0,_.jsx)(je,{query:r,total:n});if(Pe(ie,r)&&(t===y.g$.uniprotkb||t===y.g$.uniparc||t===y.g$.proteomes))return(0,_.jsx)(Oe,{namespace:t,query:r,total:n})}return null};function Ee(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,u=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;
1!(l=(n=i.call(t)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,r)||function(e,r){if(e){if("string"==typeof e)return Te(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Te(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const $e=function(){var e,r,t,j,x=(0,c.A)(),A=(0,o.zy)().search,w=Ee((0,s.A)(),3),S=w[0],O=w[1],q=w[2],P=(0,f.A)({size:0,withFacets:!0,withColumns:!1,noSort:!0}),I=(0,l.A)(P),E=I.loading,T=I.headers,$=I.isStale,k=null==T?void 0:T["x-total-results"],N=(0,f.A)({withFacets:!1}),D=(0,d.A)(N),B=D.initialLoading,C=D.total,F=D.progress;void 0!==k&&(j=+k),void 0!==C&&(j=+C);var R=Ee((0,a.W3)(A),1)[0],M=(0,a.BV)(R.query,null==I||null===(e=I.error)||void 0===e||null===(e=e.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.messages,x),z=(0,a.OQ)(R.query),U=(0,f.A)(M?{overrideQuery:z,withFacets:!1,size:0}:void 0),L=(0,u.A)(M?U:null,{method:"HEAD"}),Q=null==L||null===(r=L.headers)||void 0===r?void 0:r["x-total-results"],Z=Q?+Q:0,K=x&&(0,_.jsx)(b.A,{title:"".concat(R.query," in ").concat(y.zK[x]," search").concat(void 0!==j?" (".concat(j,")"):""),titleLoading:B,canonical:(0,h.fI)(i.Nx[x],{query:"*"}),children:(0,_.jsx)("meta",{name:"description",content:"Search results in the ".concat(y.zK[x]," dataset of UniProt")})});if(E&&B&&!$&&L.loading)return(0,_.jsxs)(_.Fragment,{children:[K,(0,_.jsx)(n.aH,{progress:F})]});if(!D.allResults.length&&D.error&&!M)return(0,_.jsx)(p.A,{status:D.status,error:D.error,fullPage:!0});var W=!$&&(null===(t=I.data)||void 0===t?void 0:t.suggestions)||[];return Z&&W.unshift({query:z,hits:Z}),(B||E||j)&&0!==j?(0,_.jsxs)(g.B,{sidebar:(0,_.jsx)(X.A,{dataApiObject:I}),children:[K,(0,_.jsx)(G,{total:j,loadedTotal:D.allResults.length,selectedEntries:S,children:(0,_.jsx)(m.A,{fallback:null,children:R.selectedFacets.length?null:(0,_.jsx)(Ie,{query:R.query,namespace:x,total:j}
1)})}),(0,_.jsx)(V.A,{resultsDataObject:D,setSelectedItemFromEvent:O,setSelectedEntries:q})]}):(0,_.jsxs)(_.Fragment,{children:[K,(0,_.jsx)(v.A,{children:(0,_.jsx)(H,{suggestions:W})})]})}},37971(e,r,t){t(65302),t(14758),t(99488),t(36883),t(64317),t(16667),t(14211),t(66993),t(74495),t(35737),t(36630),t(23535),t(33768),t(5617),t(25800),t(2851),t(4514);var n=t(71763),o=t(47597),i=t(52871);function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,u=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=i.call(t)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,r)||l(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,r){if(e){if("string"==typeof e)return s(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,r):void 0}}function s(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}t.d(r,["A",0,function(e,r){var t=u((0,n.useState)(e),2),l=t[0],s=t[1],c=u((0,n.useState)(function(){return{total:void 0,nextUrl:void 0,warnings:void 0,suggesstions:void 0}}),2),f=c[0],d=c[1],y=u((0,n.useState)([]),2),h=y[0],m=y[1];(0,n.useEffect)(function(){m([]),d({total:void 0,nextUrl:void 0}),s(e)},[e,r]);var p=(0,i.A)(l),v=p.data,b=p.loading,g=p.progress,j=p.headers,x=p.error,A=p.status;(0,n.useEffect)(function(){if(v){var e=v.results,t=v.warnings,n=v.suggestions,i=r?r(e):e,u=null==j?void 0:j["x-total-results"];m(function(e){return[].concat(a(e),a(i))}),d({total:u?parseInt(u,10):0,nextUrl:(0,o.A)(j),warnings:t,suggestions:n})}},[v,j,r]);var w=f.total,S=f.nextUrl,O=f.warnings,q=f.suggestions,P=!!w&&w>h.length;return{allResults:h,initialLoading:b&&l===e,progress:g,hasMoreData:P,handleLoadMoreRows:function(){return S&&s(S)},total:w,failedIds:null==v?void 0:v.failedIds,suggestedIds:null==v?void 0:v.suggestedIds,obsoleteCount:null==v?void 0:v.obsoleteCount,error:x,status:A,warnings:O,suggestions:q}}])},47597(e,r,t){t(33768),t(64617);var n=/<([0-9a-zA-Z$\-_.+!*'(),?/:=&%]+)>; rel="next"/;t.d(r,["A",0,function(e){if(null!=e&&e.link){var r=n.exec(e.link);return null==r?void 0:r[1]}}])},73374(e,r,t){t.d(r,{C:()=>n});var n=function(){var e=document.documentElement.lang;if(e&&"en"!==e)return e;var r=document.documentElement.getAttribute("imt-state");return!(!r||"original"===r)&&"unknown"}},18573(e,r,t){var n=t(42289),o=t(52341),i=t(78282),a=/"/g,u=n("".replace);e.exports=function(e,r,t,n){var l=i(o(e)),s="<"+r;return""!==t&&(s+=" "+t+'="'+u(i(n),a,""")+'"'),s+">"+l+"</"+r+">"}},61526(e,r,t){var n=t(18930);e.exports=function(e){return n(function(){var r=""[e]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},64617(e,r,t){var n=t(67725),o=t(18573);n({target:"String",proto:!0,forced:t(61526)("link")},{link:function(e){return o(this,"a","href",e)}})},11104(e,r,t){t.d(r,{A:()=>$});var n=t(84466),o=t(26607),i=t(73484),a=t(80115),u=t(78497),l=t(60620);var s=t(99339),c=t(69899),f=c.A&&c.A.isRegExp;const d=f?(0,s.A)(f):function(e){return(0,l.A)(e)&&"[object RegExp]"==(0,u.A)(e)},y=(0,t(60483).A)("length");var h="\\ud800-\\udfff",m="["+h+"]",p="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",v="\\ud83c[\\udffb-\\udfff]",b="[^"+h+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",j="[\\ud800-\\udbff][\\udc00-\\udfff]",x="(?:"+p+"|"+v+")?",A="[\\ufe0e\\ufe0f]?",w=A+x+"(?:\\u200d(?:"+[b,g,j].join("|")+")"+A+x+")*",S="(?:"+[b+p+"?",p,g,j,m].join("|")+")",O=RegExp(v+"(?="+v+")|"+S+w,"g");const q=function(e){return(0,i.A)(e)?function(e){for(var r=O.lastIndex=0;O.test(e);)++r;return r}(e):y(e)};var P=t(11621),I=t(92369),E=t(84148),T=/\w*$/;const $=function(e,r){var t=30,u="...";if((0,a.A)(r)){var l="separator"in r?r.separator:l;t="length"in r?(0,I.A)(r.length):t,u="omission"in r?(0,n.A)(r.omission):u}var s=(e=(0,E.A)(e)).length;if((0,i.A)(e)){var c=(0,P.A)(e);s=c.length}if(t>=s)return e;var f=t-q(u);
1if(f<1)return u;var y=c?(0,o.A)(c,0,f).join(""):e.slice(0,f);if(void 0===l)return y+u;if(c&&(f+=y.length-f),d(l)){if(e.slice(f).search(l)){var h,m=y;for(l.global||(l=RegExp(l.source,(0,E.A)(T.exec(l))+"g")),l.lastIndex=0;h=l.exec(m);)var p=h.index;y=y.slice(0,void 0===p?f:p)}}else if(e.indexOf((0,n.A)(l),f)!=f){var v=y.lastIndexOf(l);v>-1&&(y=y.slice(0,v))}return y+u}}}]); 2//# sourceMappingURL=legacy.generic-results.0c18b8.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.