1"use strict";(self.webpackChunkwebpackYWCASBlocksJsonp=self.webpackChunkwebpackYWCASBlocksJsonp||[]).push([[572],{821:(e,t,r)=>{r.d(t,{Z8:()=>x,bM:()=>g,z6:()=>f,Eg:()=>u,cM:()=>S,ZM:()=>N,Lw:()=>i});var a=r(1609),o=r(6427),s=r(828),n=r(4939);const c=({submitStyle:e,buttonLabel:t,iconType:r,onClick:c,wrapperStyle:l})=>{switch(e){case"text":return(0,a.createElement)(n.Button,{className:"ywcas-submit-button",color:"secondary",size:"sm",onClick:c},t);case"icon":return"icon-right"===r&&(0,a.createElement)(n.Box,{className:"ywcas-submit-wrapper",sx:l},(0,a.createElement)(o.Icon,{className:"ywcas-submit-icon",onClick:c,icon:(0,s.$p)()}));case"iconText":return(0,a.createElement)(n.Button,{className:"ywcas-submit-button",color:"secondary",size:"sm",onClick:c},(0,a.createElement)(o.Icon,{className:"ywcas-submit-icon",icon:(0,s.$p)()})," ",t)}};var l=r(2315);const i=({queryString:e,placeholder:t,placeholderTextColor:r,inputTextColor:i,inputBgColor:u,inputBgFocusColor:m,inputBorderColor:p,inputBorderFocusColor:d,inputBorderSize:y,inputBorderRadius:g,submitContentColor:h,submitContentHoverColor:f,submitBgColor:w,submitBgHoverColor:b,submitBorderColor:_,submitBorderHoverColor:E,submitStyle:S,size:C,setSearchQuery:k,iconType:x,buttonLabel:N,buttonBorderRadius:B,onFocus:v=null,onBlur:A=null,onCloseMobile:R=null,isSmallDevice:L=!1})=>{const $=()=>({borderRadius:"50%",backgroundColor:`${w}!important`,border:"1px solid",borderColor:`${_||"#FFF"} !important`,svg:{height:""!==w&&"#fff"!==w.toLowerCase()&&"#ffffff"!==w.toLowerCase()?"20px":"24px"},"&:hover, & > sgv:hover":{backgroundColor:`${b}!important`,borderColor:`${E||"#FFF"} !important`}}),T=()=>{if(""!==e){const t=l.YWCAS_SITE_URL+"?ywcas=1&post_type=product&lang="+l.YWCAS_LANG+"&s="+e;window.location.href=t}};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(n.Box,{className:"ywcas-block-components-search-field",sx:{"& .ywcas-input-field-wrapper":{flex:1,borderRadius:`${g.topLeft} ${g.topRight} ${g.bottomRight} ${g.bottomLeft}`,borderColor:`${p||"#7C7C7C"}!important`,borderWidth:`${y.topLeft} ${y.topRight} ${y.bottomLeft} ${y.bottomRight}`,backgroundColor:`${u||"#FFF"}!important`,borderStyle:"solid",overflow:"hidden","&:focus-within":{backgroundColor:`${m||"#FFF"}!important`,borderColor:`${d||"#5B5B5B"}!important`},"& >div":{width:"100%",padding:0,input:{flex:1}}},"& .ywcas-input-field":{fontSize:"1em!important"},"& .ywcas-input-field input":{color:`${i||"#000"} !important`},"& .ywcas-input-field input::placeholder":{color:`${r||"#000"}`,opacity:1},"& .ywcas-submit-button":{color:`${h||"#fff"} !important`,backgroundColor:`${w||"#a7ab06"} !important`,borderColor:`${_||"#FFF"} !important`,borderRadius:`${B.topLeft} ${B.topRight} ${B.bottomRight} ${B.bottomLeft}`},"& .ywcas-submit-button:hover":{color:`${f||"#fff"} !important`,backgroundColor:`${b||"#a7ab06"} !important`,borderColor:`${E||"#FFF"} !important`},"& .ywcas-submit-icon":{color:`${h||"#000"} !important`},"&:hover .ywcas-submit-icon, & .ywcas-submit-icon:hover":{color:`${f||"#000"} !important`},"& .lapilliUI-Input__backdrop":{display:"none"}}},L&&(0,a.createElement)("div",{className:"mobile-search-close",onClick:R},(0,a.createElement)(o.Icon,{icon:(0,s.US)()})),(0,a.createElement)(n.Stack,{direction:"row",spacing:0},(0,a.createElement)(n.Stack,{className:"ywcas-input-field-wrapper"},(0,a.createElement)(n.Input,{className:"ywcas-input-field",placeholder:t,autoComplete:"off",size:C,value:e,onChange:k,onFocus:v,onBlur:A,onKeyDown:e=>{"Enter"===e.key&&T()},startAdornment:"icon"===S&&"icon-left"===x?(0,a.createElement)(n.Box,{className:"ywcas-submit-wrapper",sx:$()},(0,a.createElement)(o.Icon,{className:"ywcas-submit-icon",icon:(0,s.$p)()})):null,endAdornment:(0,a.createElement)(c,{submitStyle:S,buttonLabel:N,submitBgColor:w,iconType:x,onClick:T,wrapperStyle:$()})})))))},u=({title:e,searches:t,onClick:r})=>{const o=e=>{e.stopPropagation(),r(e.target.id)};return(0,a.createElement)(n.Stack,{className:"ywcas-popular-searches-wrapper"},(0,a.createElement)(n.Typography,{className:"ywcas-popular-searches__title"},e),t&&(0,a.createElement)(n.Stack,{className:"ywcas-popular-searches-items",direction:"row",sx:{flexWrap:"wrap"},spacing:1},t.map((e=>(0,a.createElement)(n.Button,{className:"ywcas-popular-searches-item",key:e,id:e,onClick:o,size:"md",variant:"outlined"},e)))))};var m=r(1455),p=r.n(m),d=r(6087);const y=({label:e,onClick:t})=>(0,a.createElement)(n.Box,{id:e,className:"ywcas-history-search-item",onClick:t,sx:{"&":{textTransform:"capitalize",fontSize:"0.93em",color:"var(--wp--preset--color--contrast, #709422)"},"&:hover":{cursor:"pointer",textDecoration:"underline"}}},(0,a.createElement)(n.Stack,{direction:"row",spacing:1,align:"center"},(0,a.createElement)(n.Stack,{align:"center",className:"ywcas-history-search-item--icon"}
1,(0,s.O4)({width:"20px"})),(0,a.createElement)(n.Box,{className:"ywcas-history-search-item--item"},e))),g=({title:e,searches:t,onClick:r})=>{const[o,s]=(0,d.useState)(t);(0,d.useEffect)((()=>{s(t)}),[t]);const c=e=>{e.stopPropagation();const t=e.target;let a=!1;a="ywcas-history-search-item"!==t.className?t.closest(".ywcas-history-search-item").id:t.id,a&&r(a)};return 0===o.length?null:(0,a.createElement)("div",{className:"ywcas-history-searches-wrapper"},(0,a.createElement)(n.Stack,{direction:"row",justify:"space-between",align:"center",className:"ywcas-history-header"},(0,a.createElement)(n.Typography,{className:"ywcas-history-searches__title"},e),(0,a.createElement)(n.Box,{className:"ywcas-delete-all-history",onClick:()=>{p()({path:"/ywcas/v1/reset-user-history"}).then((e=>{s([])})).catch((e=>{console.log(e)}))}},l.YWCAS_DELETE_ALL)),o&&o.length>0&&(0,a.createElement)(n.Stack,{className:"ywcas-history-searches-items",spacing:1},o.map((e=>(0,a.createElement)(y,{label:e,key:e,onClick:c})))))};var h=r(8572);const f=({children:e,...t})=>{const r=(0,h.Ub)(`(max-width: ${l.YWCAS_MOBILE_BREAKPOINT})`);return(0,a.createElement)(a.Fragment,null,!r&&(0,a.createElement)(n.Popover,{...t},(0,a.createElement)(n.Box,{className:"popover-content"},e)),r&&(0,a.createElement)(n.Box,{className:"mobile-search-content"},e))};var w=r(5232);const b=({className:e,label:t,backgroundColor:r,color:o,top:s})=>(0,a.createElement)(n.Box,{className:`ywcas-badge ${e}`,sx:{top:`${s}px`,backgroundColor:r,color:o}},t),_=({imageSize:e,marginLeft:t,item:r,showSaleBadge:o,showOutOfStockBadge:s,showFeaturedBadge:c,hideFeaturedIfOnSale:i})=>{const u=Boolean(parseInt(r.instock)),m=o&&Boolean(parseInt(r.onsale)),p=(!i||!m)&&c&&Boolean(parseInt(r.featured)),d=s&&!u,{saleBadgeLabel:y,saleFeaturedLabel:g,saleOutOfStockLabel:h,saleBadgeColors:f,featuredBadgeColors:_,outOfStockBadgeColors:E}=l.ywcasDefaultSettings,S=m?30:5,C=p?S+25:m?30:5;return(0,a.createElement)(n.Stack,{className:"search-result-item__thumbnail",sx:{width:e,marginLeft:t}},m&&(0,a.createElement)(b,{className:"ywcas-onsale-badge",top:5,label:(0,w.Ay)(y),backgroundColor:f.bgcolor,color:f.color}),p&&(0,a.createElement)(b,{className:"ywcas-featured-badge",top:S,label:g,backgroundColor:_.bgcolor,color:_.color}),d&&(0,a.createElement)(b,{className:"ywcas-outofstock-badge",top:C,label:h,backgroundColor:E.bgcolor,color:E.color}),(0,a.createElement)("img",{src:r.thumbnail.small,alt:r.name,width:e}))},E=function(e){const{item:t,searchQuery:r,onClick:s,showName:c,showImage:i,showPrice:u,showCategories:m,showStock:p,showSKU:y,showSummary:g,showAddToCart:f,layout:b,imageSize:E,imagePosition:S,summaryMaxWord:C,productNameColor:k,priceLabel:x,categoryResults:N,results:B}=e,v=(0,h.Ub)("(max-width: 600px)"),A="grid"===b?"column":"row",R="list"===b&&"right"===S?"auto":0,[L,$]=(0,d.useState)(!1),T=e=>{let t=N.find((t=>parseInt(t.term_id)===e.parent));return t&&0!==t.parent&&(t=T(t)),t},z=e=>{const t=e.name;return(0,a.createElement)("a",{href:e.url},(0,w.Ay)(t))},F=e=>{e.stopPropagation(),e.target.classList.contains("search-result-add-to-cart")&&(s(e,t,!1),$(!0),jQuery.ajax({url:l.YWCAS_AJAX_URL.toString().replace("%%endpoint%%","add_to_cart"),data:{quantity:1,product_id:t.post_id,product_sku:t.sku},type:"POST",success:function(e){$(!1),jQuery(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash])}}))};return(0,a.createElement)(n.Box,{className:`search-result-item ${b} ${parseInt(t.is_purchasable)?"":"not-purchasable"}`},(0,a.createElement)(n.Stack,{align:"center",direction:A,spacing:2,className:"search-result-item__content","data-id":t.post_id,"data-name":t.name,onClick:e=>s(e,t)},i&&("grid"===b||"list"===b&&"right"!==S)&&(0,a.createElement)(_,{marginLeft:R,item:t,...e}),(0,a.createElement)((()=>{if(!i&&(0,h.Im)(t.thumbnail))return"";const e=(""!==t.min_price||""!==t.max_price)&&u,r=parseInt(t.instock)>0?"in-stock":"out-of-stock";return(0,a.createElement)(n.Stack,{className:"search-result-item_name",sx:{flex:1,alignItems:"left"},onClick:e=>s(e,t,B.totalResults)},c&&(0,a.createElement)(n.Typography,{sx:{color:k,fontSize:"0.9em"},className:"search-result-item__name"},(0,w.Ay)(t.name)),e&&(0,a.createElement)(n.Typography,{className:"search-result-item__price",sx:{fontSize:"0.9em",fontWeight:"600"}},x," ",(0,w.Ay)((0,h.y8)(t))),(0,a.createElement)(n.Box,{className:"search-result-item__inline_group",direction:"row",sx:{dis
1play:"block"}},y&&t.sku&&(0,a.createElement)(n.Typography,{className:"search-result-item__sku"},(0,a.createElement)("strong",null,l.YWCAS_SKU_LABEL)," ",t.sku),y&&p&&t.sku&&(0,a.createElement)("span",null,"-"),p&&(0,a.createElement)(n.Typography,{className:`search-result-item__stock stock ${r}`},parseInt(t.instock)?l.YWCAS_IN_STOCK_LABEL:l.YWCAS_OUT_OF_STOCK_LABEL)),m&&(0,a.createElement)(n.Box,{className:"search-result-item__category",sx:{fontSize:"0.7em"}},(e=>{if(N){const t=N.find((t=>parseInt(t.term_id)===e[0]));if(!t)return"";const r=0!==t.parent&&T(t);return r?(0,a.createElement)(n.Box,null,z(r)," ",(0,a.createElement)("span",null," > ")," ",z(t)):z(t)}return""})(t.parent_category)),g&&"grid"===b&&(0,a.createElement)(n.Typography,{className:"search-result-item__summary",sx:{fontSize:"0.8em"}},(0,h.GH)(t.summary,C)))}),null),v&&g&&"grid"!==b&&(0,a.createElement)(n.Typography,{className:"search-result-item__summary",sx:{fontSize:"0.8em"}},(0,w.Ay)((0,h.GH)(t.summary,C))),f&&(L?(0,a.createElement)(n.Spinner,{color:"default",size:"sm",thickness:3.6}):(0,a.createElement)("div",{className:"wp-block-button"},(0,a.createElement)((()=>{const e=parseInt(t.instock),r="wp-element-button wp-block-button__link wp-block-woocommerce-product-button search-result-add-to-cart";return parseInt(t.is_purchasable)&&e&&("simple"===t.product_type||"variation"===t.product_type)&&0<parseFloat(null==t?void 0:t.max_price)?(0,a.createElement)(o.Button,{className:r,onClick:F},l.YWCAS_ADD_TO_CART_LABEL):e&&"variable"===t.product_type&&0<parseFloat(null==t?void 0:t.max_price)?(0,a.createElement)(o.Button,{size:"sm",className:r,onClick:e=>s(e,t)},l.YWCAS_SELECT_OPTIONS):(0,a.createElement)(o.Button,{size:"sm",className:r,onClick:e=>s(e,t)},l.YWCAS_READ_MORE)}),null))),i&&"list"===b&&"right"===S&&(0,a.createElement)(_,{marginLeft:R,item:t,...e})),!v&&g&&"grid"!==b&&(0,a.createElement)(n.Typography,{className:"search-result-item__summary",sx:{fontSize:"0.8em"}},(0,w.Ay)((0,h.GH)(t.summary,C))))},S=e=>{const{searchQuery:t,layout:r,results:o,categoryList:s,noResults:c,showViewAll:i,showViewAllText:u,maxResultsToShow:m}=e,d=(e,r,a=!0)=>{e.stopPropagation();const s="/ywcas/v1/register?itemID="+r.post_id+"&queryString="+t+"&totalResults="+o.totalResults+"&lang="+l.YWCAS_LANG;p()({path:s}).then((()=>{a&&y(r)})).catch((e=>{console.log(e)}))},y=e=>{e.url&&(window.location.href=e.url.replaceAll(new RegExp("&?#038;","g"),"&"))},g=u.replace("{total}",o.totalResults),h=o.results;return(0,a.createElement)(a.Fragment,null,h&&h.length&&(0,a.createElement)(n.Grid,{className:`ywcas-search-results-grid ${r}`,columns:1},h.map(((t,r)=>(0,a.createElement)(E,{key:r,item:t,onClick:d,results:o,categoryResults:s,...e})))),!h&&(0,a.createElement)(n.Typography,null,c),h&&i&&m<o.totalResults&&(0,a.createElement)("div",{className:"ywcas-total-results"}," > ",(0,a.createElement)("a",{className:"total-results-link",href:"#",onClick:()=>{const e=!1!==o.fuzzyToken&&""!==o.fuzzyToken?o.fuzzyToken:t,r=l.YWCAS_SITE_URL+"?ywcas=1&post_type=product&lang="+l.YWCAS_LANG+"&s="+e;window.location.href=r}},g)))};var C=r(7723);const k=({query:e,singleCategory:t})=>{const r=t.url+"?ywcas=1&ywcas_filter="+e+"&lang="+l.YWCAS_LANG;return(0,a.createElement)(n.Stack,{direction:"row",align:"center",sx:{gap:"4px",paddingBottom:"10px"},className:"ywcas-category-result"},(0,a.createElement)(n.Typography,{sx:{fontWeight:"bold",fontSize:"0.93em"}},e),(0,a.createElement)(n.Typography,{sx:{fontSize:"0.81em",color:"#8F8080"}},l.YWCAS_IN_CATEGORY),(0,a.createElement)("a",{href:r},(0,a.createElement)(n.Typography,{sx:{fontSize:"0.93em",textTransform:"capitalize",color:"var(--wp--preset--color--contrast,#007565)"}},(0,w.Ay)(t.name))))},x=({label:e,query:t,categories:r,results:o,maxResults:s})=>{const c=(e,t)=>{let r=!1;return e.forEach((e=>{r||(e.term_id===t?r=e:Array.isArray(e.children)&&(r=c(e.children,t)))})),r};return(0,a.createElement)(n.Stack,null,(()=>{let l=(()=>{let e=[];
1if(o)return o.forEach((t=>{(null==t?void 0:t.parent_category.length)>0&&(e=e.concat(t.parent_category))})),e})();if(l.length>0){const o=(0,h.wJ)(l,s);return(0,a.createElement)(n.Stack,{className:"search-category-results",sx:{"& .ywcas-category-result:last-child":{paddingBottom:0}}},e&&(0,a.createElement)(n.Typography,{sx:{"&":{borderBottom:"1px solid #9797972e",marginBottom:"17px"}},className:"search-category-results-label"},e),o.map((e=>{const o=c(r,e);if(o)return(0,a.createElement)(k,{key:o.term_id,query:t,singleCategory:o})})))}})())},N=({label:e,posts:t,background:r,maxResults:o})=>{let s=!1;return t&&t.length&&(s=t.length>o?t.slice(0,o):t),(0,a.createElement)(n.Box,{className:"ywcas-related-content",sx:{background:r}},(0,a.createElement)(n.Typography,{className:"ywcas-related-content__label"},e),s&&s.map((e=>(0,a.createElement)(n.Typography,{className:"ywcas-related-content__link",key:e.post_id},"> ",(0,a.createElement)("a",{key:e,href:e.url},e.name)))),!s&&(0,a.createElement)(n.Typography,{className:"ywcas-related-content__no_result"},(0,C.__)("No related content found","yith-woocommerce-ajax-search")))};r(6942),r(2089)},7283:(e,t,r)=>{r.d(t,{$:()=>u}),r(1609);var a=r(6087),o=r(7143);const s=(0,a.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})});var n=r(118),c=r(9252),l=r.n(c);const i={},u=(e={query:"",showCategories:!1,maxResults:5,page:0})=>{const t=(0,a.useRef)({}),{isEditor:r}=(0,a.useContext)(s),{query:c,showCategories:u,maxResults:m,page:p}=e,d=r?"":c,y=(0,o.useSelect)((e=>{const t=`${d}-${p}`;if(!r&&i[t])return{results:i[t],isSearching:!1};{const a=e(n.YWCAS_RESULTS_VIEW_STORE_KEY),o=a.getSearchedResults(d,0,u,m,p,r),s=!a.hasFinishedResolution("getSearchedResults",[d,0,u,m,p,r]),c={results:o,isSearching:s};return s||(i[t]=o),c}}));return t.current&&l()(t.current,y)||(t.current=y),{results:t.current.results,isSearching:t.current.isSearching,getCategories:e=>(0,o.useSelect)((t=>{const r=t(n.YWCAS_RESULTS_VIEW_STORE_KEY);return{categories:r.getCategories(e),isLoading:!r.hasFinishedResolution("getCategories",[e])}}),[e]),getResults:(e=!1,t=0)=>(0,o.useSelect)((r=>{const a=r(n.YWCAS_RESULTS_VIEW_STORE_KEY),o=a.getResults(),s=`${e}-${t}`;return{results:i[s]?i[s]:o,isLoading:""===a.getLastQuery()}}),[e,t])}}},8572:(e,t,r)=>{r.d(t,{GH:()=>i,Im:()=>s,Ub:()=>m,wJ:()=>u,y8:()=>l}),r(5232);var a=r(2315),o=r(1609);const s=e=>void 0===e||("object"==typeof e?0===Object.keys(e).length:e.hasOwnProperty(length)?0===e.length:"undefined"),n=e=>accounting.formatMoney(e,{symbol:a.ywcas_wc_data.currency.symbol,decimal:a.ywcas_wc_data.currency.decimal_sep,thousand:a.ywcas_wc_data.currency.thousand_sep,precision:a.ywcas_wc_data.currency.decimals,format:a.ywcas_wc_data.currency.format}),c=(e,t=0)=>{const r=n(e);return parseFloat(t)&&t!==e?`${n(t)} - ${r}`:r},l=e=>{let t=""!==e.max_price?c(e.max_price):"";return"variable"===e.product_type?t=c(e.max_price,e.min_price):parseInt(e.onsale)&&""!==e.min_price&&(t=`<del>${c(e.max_price)}</del> ${c(e.min_price)}`),t},i=(e,t)=>e.split(" ").slice(0,t).join(" "),u=(e,t=3)=>{const r=new Map;for(const t of e)r.has(t)?r.set(t,r.get(t)+1):r.set(t,1);return[...r.entries()].sort(((e,t)=>t[1]-e[1])).slice(0,t).map((e=>e[0]))},m=e=>{const t=(0,o.useMemo)((()=>window.matchMedia(e)),[e]),[r,a]=(0,o.useState)(t.matches);return(0,o.useEffect)((()=>{const e=()=>a(t.matches);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}),[t]),r}},2016:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var a=r(5956),o=r(1609),s=r(4939),n=r(7283),c=r(821),l=r(2106);var i=r(2315);const u={relatedPostsHeading:{type:"string",default:i.ywcasDefaultSettings.relatedLabel},maxPostsRelated:{type:"number",default:i.ywcasDefaultSettings.maxRelatedResults},enabledPost:{type:"boolean",default:!0},enabledPage:{type:"boolean",default:!0},background:{type:"string",default:i.ywcasDefaultSettings.relateBgColor}},m=(0,a.n)(u)((e=>{var t;const{relatedPostsHeading:r,maxPostsRelated:a,background:i,enabledPost:u,enabledPage:m}=e,{query:p}=(0,l.$A)(),{getResults:d}=(0,n.$)(),{isLoading:y,results:g}=d(p);if(y)return null;if(null===(t=g.related_content)||void 0===t||!t.results||0===g.related_content.results.length)return null;let h=g.related_content.results;return u||(h=h.filter((e=>"post"!==e.post_type))),m||(h=h.filter((e=>"page"!==e.post_type))),0===h.length?null:(0,o.createElement)(s.Box,{className:"ywcas-classic-related-content-wrapper"},!y&&(0,o.createElement)(c.ZM,{label:r,posts:h,background:i,maxResults:a}))}))},5956:(e,t,r)=>{r.d(t,{n:()=>s});var a=r(1609),o=r(4486);const s=e=>t=>r=>{const s=(0,o.N)(e,r);return(0,a.createElement)(t,{...r,...s})}},9252:e=>{e.exports=function e(t,r){if(t===r)return!0;
vendor: 1,087 bytes, line 1
1if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var a,o,s;if(Array.isArray(t)){if((a=t.length)!=r.length)return!1;for(o=a;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],r.get(o[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((a=t.length)!=r.length)return!1;for(o=a;0!=o--;)if(t[o]!==r[o])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((a=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=a;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=a;0!=o--;){var n=s[o];if(!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}}}]);
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.