PageSourceSearch

https://www.theculinistas.com/_next/static/chunks/1185-0cf52a2caae469b6.js

js theculinistas.com collected 2026-10-04 16:34:47 UTC 16,722 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1185],{11185:function(e,t,r){r.d(t,{F7:function(){return j},h3:function(){return F},v5:function(){return B}});var n,a,u,o,i,l=r(52983);function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function c(){}function f(e){return!!(e||"").match(/\d/)}function v(e){return null==e}function d(e){return v(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function g(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function m(e,t){void 0===t&&(t=!0);var r="-"===e[0],n=r&&t,a=(e=e.replace("-","")).split(".");return{beforeDecimal:a[0],afterDecimal:a[1]||"",hasNegation:r,addNegation:n}}function p(e,t,r){for(var n="",a=r?"0":"",u=0;u<=t-1;u++)n+=e[u]||a;return n}function h(e,t){return Array(t+1).join(e)}function S(e){var t=e+"",r="-"===t[0]?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),a=n[0],u=n[1];if(!(u=Number(u)))return r+a;a=a.replace(".","");var o=1+u,i=a.length;return o<0?a="0."+h("0",Math.abs(o))+a:o>=i?a+=h("0",o-i):a=(a.substring(0,o)||"0")+"."+a.substring(o),r+a}function b(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&t,a=m(e),u=a.beforeDecimal,o=a.afterDecimal,i=a.hasNegation,l=parseFloat("0."+(o||"0")),s=(o.length<=t?"0."+o:l.toFixed(t)).split("."),c=u;return u&&Number(s[0])&&(c=u.split("").reverse().reduce(function(e,t,r){return e.length>r?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},s[0])),(i?"-":"")+c+(n?".":"")+p(s[1]||"",t,r)}function y(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(n=i||(i={})).event="event",n.props="prop";var V=(a=function(e,t){for(var r=0,n=0,a=e.length,u=t.length;e[r]===t[r]&&r<a;)r++;for(;e[a-1-n]===t[u-1-n]&&u-n>r&&a-n>r;)n++;return{from:{start:r,end:a-n},to:{start:r,end:u-n}}},o=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return u&&e.length===u.length&&e.every(function(e,t){return e===u[t]})?o:(u=e,o=a.apply(void 0,e))});function w(e){return Math.max(e.selectionStart,e.selectionEnd)}function x(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function N(e,t){return(void 0===e&&(e=" "),"string"==typeof e)?e:e[t]||" "}function D(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return t[n]===r[a]}function O(e,t,r,n){var a=e.length;if(t=Math.min(Math.max(t,0),a),"left"===n){for(;t>=0&&!r[t];)t--;-1===t&&(t=r.indexOf(!0))}else{for(;t<=a&&!r[t];)t++;t>a&&(t=r.lastIndexOf(!0))}return -1===t&&(t=a),t}function C(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(f(e[r])||f(e[r-1]));return t}function E(e,t,r,n,a,u){void 0===u&&(u=c);var o,i,s=(o=function(e,t){var r,u;return d(e)?(u="",r=""):r="number"==typeof e||t?n(u="number"==typeof e?S(e):e):n(u=a(e,void 0)),{formattedValue:r,numAsString:u}},(i=(0,l.useRef)(o)).current=o,(0,l.useRef)(function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return i.current.apply(i,e)}).current),f=(0,l.useState)(function(){return s(v(e)?t:e,r)}),g=f[0],m=f[1],p=e,h=r;v(e)&&(p=g.numAsString,h=!0);var b=s(p,h);return(0,l.useMemo)(function(){m(b)},[b.formattedValue]),[g,function(e,t){e.formattedValue!==g.formattedValue&&m({formattedValue:e.formattedValue,numAsString:e.value}),u(e,t)}]}function A(e){return e.replace(/[^0-9]/g,"")}function I(e){return e}function j(e){var t=e.type;void 0===t&&(t="text");var r=e.displayType;void 0===r&&(r="input");var n=e.customInput,a=e.renderText,u=e.getInputRef,o=e.format;void 0===o&&(o=I);var v=e.removeFormatting;void 0===v&&(v=A);var d=e.defaultValue,g=e.valueIsNumericString,m=e.onValueChange,p=e.isAllowed,h=e.onChange;void 0===h&&(h=c);var S=e.onKeyDown;void 0===S&&(S=c);var b=e.onMouseUp;void 0===b&&(b=c);var x=e.onFocus;void 0===x&&(x=c);var N=e.onBlur;void 0===N&&(N=c);var j=e.value,T=e.getCaretBoundary;void 0===T&&(T=C);var k=e.isValidInputCharacter;void 0===k&&(k=f);
1var F=e.isCharacterSame,B=s(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),R=E(j,d,!!g,o,v,m),M=R[0],K=M.formattedValue,W=M.numAsString,L=R[1],P=(0,l.useRef)({formattedValue:K,numAsString:W}),U=function(e,t){P.current={formattedValue:e.formattedValue,numAsString:e.value},L(e,t)},$=(0,l.useState)(!1),_=$[0],G=$[1],Z=(0,l.useRef)(null),q=(0,l.useRef)({setCaretTimeout:null,focusTimeout:null});(0,l.useEffect)(function(){return G(!0),function(){clearTimeout(q.current.setCaretTimeout),clearTimeout(q.current.focusTimeout)}},[]);var z=o,H=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},J=function(e,t,r){(0!==e.selectionStart||e.selectionEnd!==e.value.length)&&(y(e,t),q.current.setCaretTimeout=setTimeout(function(){e.value===r&&e.selectionStart!==t&&y(e,t)},0))},Q=function(e,t,r){return O(e,t,T(e),r)},X=function(e,t,r){var n=T(t),a=function(e,t,r,n,a,u,o){void 0===o&&(o=D);var i=a.findIndex(function(e){return e}),l=e.slice(0,i);t||r.startsWith(l)||(t=l,r=l+r,n+=l.length);for(var s=r.length,c=e.length,f={},v=Array(s),d=0;d<s;d++){v[d]=-1;for(var g=0;g<c;g++)if(o({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:d,formattedValueIndex:g})&&!0!==f[g]){v[d]=g,f[g]=!0;break}}for(var m=n;m<s&&(-1===v[m]||!u(r[m]));)m++;var p=m===s||-1===v[m]?c:v[m];for(m=n-1;m>0&&-1===v[m];)m--;var h=-1===m||-1===v[m]?0:v[m]+1;return h>p?p:n-h<p-n?h:p}(t,K,e,r,n,k,F);return O(t,a,n)},Y=function(e){var t,r=e.formattedValue;void 0===r&&(r="");var n=e.input,a=e.source,u=e.event,o=e.numAsString;if(n){var i=e.inputValue||n.value,l=w(n);n.value=r,void 0!==(t=X(i,r,l))&&J(n,t,r)}r!==K&&U(H(r,o),{event:u,source:a})};(0,l.useEffect)(function(){var e=P.current,t=e.formattedValue,r=e.numAsString;K!==t&&(K!==W||t!==r)&&U(H(K,W),{event:void 0,source:i.props})},[K,W]);var ee=Z.current?w(Z.current):void 0;("undefined"!=typeof window?l.useLayoutEffect:l.useEffect)(function(){var e=Z.current;if(K!==P.current.formattedValue&&e){var t=X(P.current.formattedValue,K,ee);e.value=K,J(e,t,K)}},[K]);var et=function(e,t,r){var n=Object.assign(Object.assign({},V(K,e)),{lastValue:K}),a=v(e,n),u=z(a);if(a=v(u,void 0),p&&!p(H(u,a))){var o=t.target,i=X(e,K,w(o));return o.value=K,J(o,i,K),!1}return Y({formattedValue:u,numAsString:a,inputValue:e,event:t,source:r,input:t.target}),!0},er=Object.assign({inputMode:_&&"undefined"!=typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))?"numeric":void 0},B,{type:t,value:K,onChange:function(e){et(e.target.value,e,i.event)&&h(e)},onKeyDown:function(e){var t,r=e.target,n=e.key,a=r.selectionStart,u=r.selectionEnd,o=r.value;if(void 0===o&&(o=""),"ArrowLeft"===n||"Backspace"===n?t=Math.max(a-1,0):"ArrowRight"===n?t=Math.min(a+1,o.length):"Delete"===n&&(t=a),void 0===t||a!==u){S(e);return}var i=t;"ArrowLeft"===n||"ArrowRight"===n?(i=Q(o,t,"ArrowLeft"===n?"left":"right"))!==t&&e.preventDefault():"Delete"!==n||k(o[t])?"Backspace"!==n||k(o[t])||(i=Q(o,t,"left")):i=Q(o,t,"right"),i!==t&&J(r,i,o),e.isUnitTestRun&&J(r,i,o),S(e)},onMouseUp:function(e){var t=e.target,r=function(){var e=t.selectionStart,r=t.selectionEnd,n=t.value;if(void 0===n&&(n=""),e===r){var a=Q(n,e);a!==e&&J(t,a,n)}};r(),requestAnimationFrame(function(){r()}),b(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target,r=e.currentTarget;Z.current=t,q.current.focusTimeout=setTimeout(function(){var n=t.selectionStart,a=t.selectionEnd,u=t.value;void 0===u&&(u="");var o=Q(u,n);o===n||0===n&&a===u.length||J(t,o,u),x(Object.assign(Object.assign({},e),{currentTarget:r}))},0)},onBlur:function(e){Z.current=null,clearTimeout(q.current.focusTimeout),clearTimeout(q.current.setCaretTimeout),N(e)}});return"text"===r?a?l.createElement(l.Fragment,null,a(K,B)||null):l.createElement("span",Object.assign({},B,{ref:u}),K):n?l.createElement(n,Object.assign({},er,{ref:u})):l.createElement("input",Object.assign({},er,{ref:u}))}function T(e,t){var r,n,a,u=t.decimalScale,o=t.fixedDecimalScale,i=t.prefix;void 0===i&&(i="");var l=t.suffix;void 0===l&&(l="");
1var s=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var f=k(t),v=f.thousandSeparator,d=f.decimalSeparator,g=0!==u&&-1!==e.indexOf(".")||u&&o,h=m(e,s),S=h.beforeDecimal,b=h.afterDecimal,y=h.addNegation;return void 0!==u&&(b=p(b,u,!!o)),v&&(r=S,n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(c),a=-1===(a=r.search(/[1-9]/))?r.length:a,S=r.substring(0,a)+r.substring(a,r.length).replace(n,"$1"+v)),i&&(S=i+S),l&&(b+=l),y&&(S="-"+S),e=S+(g&&d||"")+b}function k(e){var t=e.decimalSeparator;void 0===t&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function F(e){var t,r,n,a,u,o,p,h,w,N,D,O,C,A,I,F,B,R,M,K,W,L,P,U,$,_,G,Z,q,z=((t=function(e){var t=k(e),r=t.thousandSeparator,n=t.decimalSeparator,a=e.prefix;void 0===a&&(a="");var u=e.allowNegative;if(void 0===u&&(u=!0),r===n)throw Error("\n        Decimal separator can't be same as thousand separator.\n        thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n        decimalSeparator: '+n+" (default value for decimalSeparator is .)\n     ");return a.startsWith("-")&&u&&(console.error("\n      Prefix can't start with '-' when allowNegative is true.\n      prefix: "+a+"\n      allowNegative: "+u+"\n    "),u=!1),Object.assign(Object.assign({},e),{allowNegative:u})}(t=e)).decimalSeparator,t.allowedDecimalSeparators,t.thousandsGroupStyle,r=t.suffix,n=t.allowNegative,a=t.allowLeadingZeros,void 0===(u=t.onKeyDown)&&(u=c),void 0===(o=t.onBlur)&&(o=c),p=t.thousandSeparator,h=t.decimalScale,w=t.fixedDecimalScale,void 0===(N=t.prefix)&&(N=""),D=t.defaultValue,O=t.value,C=t.valueIsNumericString,A=t.onValueChange,I=s(t,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),B=(F=k(t)).decimalSeparator,R=F.allowedDecimalSeparators,M=function(e){return T(e,t)},K=function(e,r){return function(e,t,r){void 0===t&&(t=x(e));var n,a,u,o,i=r.allowNegative,l=r.prefix;void 0===l&&(l="");var s=r.suffix;void 0===s&&(s="");var c=r.decimalScale,v=t.from,d=t.to,p=d.start,h=d.end,S=k(r),b=S.allowedDecimalSeparators,y=S.decimalSeparator,V=e[h]===y;if(f(e)&&(e===l||e===s)&&""===t.lastValue)return e;if(h-p==1&&-1!==b.indexOf(e[p])){var w=0===c?"":y;e=e.substring(0,p)+w+e.substring(p+1,e.length)}var N=function(e,t,r){var n=!1,a=!1;l.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,a=!0):s.startsWith("-")&&e.length===s.length?n=!1:"-"===e[0]&&(n=!0);var u=n?1:0;return a&&(u=2),u&&(e=e.substring(u),t-=u,r-=u),{value:e,start:t,end:r,hasNegation:n}},D=N(e,p,h),O=D.hasNegation;e=D.value,p=D.start,h=D.end;var C=N(t.lastValue,v.start,v.end),E=C.start,A=C.end,I=C.value,j=e.substring(p,h);e.length&&I.length&&(E>I.length-s.length||A<l.length)&&!(j&&s.startsWith(j))&&(e=I);var T=0;e.startsWith(l)?T+=l.length:p<l.length&&(T=p),e=e.substring(T),h-=T;var F=e.length,B=e.length-s.length;e.endsWith(s)?F=B:h>B?F=h:h>e.length-s.length&&(F=h),e=e.substring(0,F),void 0===(n=O?"-"+e:e)&&(n=""),a=RegExp("(-)(.)*(-)"),u=/(-)/.test(n),o=a.test(n),n=n.replace(/-/g,""),u&&!o&&i&&(n="-"+n);var R=(e=((e=n).match(RegExp("(^-)|[0-9]|"+g(y),"g"))||[]).join("")).indexOf(y),M=m(e=e.replace(RegExp(g(y),"g"),function(e,t){return t===R?".":""}),i),K=M.beforeDecimal,W=M.afterDecimal,L=M.addNegation;return d.end-d.start<v.end-v.start&&""===K&&V&&!parseFloat(W)&&(e=L?"-":""),e}(e,r,t)},W=v(O)?D:O,P=null!=C?C:(L=N,""===W||!(null==L?void 0:L.match(/\d/))&&!(null==r?void 0:r.match(/\d/))&&"string"==typeof W&&!isNaN(Number(W))),v(O)?v(D)||(P=P||"number"==typeof D):P=P||"number"==typeof O,G=(_=($=E((U=function(e){return d(e)?e:("number"==typeof e&&(e=S(e)),P&&"number"==typeof h)?b(e,h,!!w):e})(O),U(D),!!P,M,K,A))[0]).numAsString,Z=_.formattedValue,q=$[1],Object.assign(Object.assign({},I),{value:Z,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===B||f(e)}
1,isCharacterSame:function(e){var t=e.currentValue,r=e.lastValue,n=e.formattedValue,a=e.currentValueIndex,u=e.formattedValueIndex,o=t[a],i=n[u],l=V(r,t).to;return!!(a>=l.start&&a<l.end&&R&&R.includes(o))&&i===B||o===i},onValueChange:q,format:M,removeFormatting:K,getCaretBoundary:function(e){var r,n,a,u,o,i;return void 0===(n=(r=t).prefix)&&(n=""),void 0===(a=r.suffix)&&(a=""),u=Array.from({length:e.length+1}).map(function(){return!0}),o="-"===e[0],u.fill(!1,0,n.length+(o?1:0)),i=e.length,u.fill(!1,i-a.length+1,i+1),u},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,o=t.selectionEnd,i=t.value;if(void 0===i&&(i=""),a!==o){u(e);return}"Backspace"===r&&"-"===i[0]&&a===N.length+1&&n&&y(t,1),h&&w&&("Backspace"===r&&i[a-1]===B?(y(t,a-1),e.preventDefault()):"Delete"===r&&i[a]===B&&e.preventDefault()),(null==R?void 0:R.includes(r))&&i[a]===B&&y(t,a+1);var l=!0===p?",":p;"Backspace"===r&&i[a-1]===l&&y(t,a-1),"Delete"===r&&i[a]===l&&y(t,a+1),u(e)},onBlur:function(e){var r=G;r.match(/\d/g)||(r=""),a||(r=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",a=r[1]||"";return(t?"-":"")+n+(a?"."+a:"")}(r)),w&&h&&(r=b(r,h,w)),r!==G&&q({formattedValue:T(r,t),value:r,floatValue:parseFloat(r)},{event:e,source:i.event}),o(e)}}));return l.createElement(j,Object.assign({},z))}function B(e){e.mask,e.allowEmptyFormatting;var t=e.format,r=e.inputMode;void 0===r&&(r="numeric");var n=e.onKeyDown;void 0===n&&(n=c);var a=e.patternChar;void 0===a&&(a="#");var u=e.value,o=e.defaultValue,i=e.valueIsNumericString,l=s(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);!function(e){var t=e.mask;if(t&&("string"===t?t:t.toString()).match(/\d/g))throw Error("Mask "+t+" should not contain numeric character;")}(e);var d=function(t){return function(e,t){var r=t.format,n=t.mask,a=t.patternChar;void 0===a&&(a="#");var u=Array.from({length:e.length+1}).map(function(){return!0}),o=0,i=-1,l={};r.split("").forEach(function(t,r){var u=void 0;t===a&&(u=N(n,++o-1),-1===i&&e[r]===u&&(i=r)),l[r]=u});for(var s=function(t){return r[t]===a&&e[t]!==l[t]},c=0,f=u.length;c<f;c++)u[c]=c===i||s(c)||s(c-1);return u[r.indexOf(a)]=!0,u}(t,e)},g=v(u)?o:u,m=null!=i?i:""===g||!(null==t?void 0:t.match(/\d/))&&"string"==typeof g&&(!!g.match(/^\d+$/)||""===g),p=Object.assign(Object.assign({},e),{valueIsNumericString:m});return Object.assign(Object.assign({},l),{value:u,defaultValue:o,valueIsNumericString:m,inputMode:r,format:function(e){return function(e,t){var r=t.format,n=t.allowEmptyFormatting,a=t.mask,u=t.patternChar;if(void 0===u&&(u="#"),""===e&&!n)return"";for(var o=0,i=r.split(""),l=0,s=r.length;l<s;l++)r[l]===u&&(i[l]=e[o]||N(a,o),o+=1);return i.join("")}(e,p)},removeFormatting:function(e,t){return function(e,t,r){void 0===t&&(t=x(e));var n=r.format,a=r.patternChar;void 0===a&&(a="#");var u=t.from,o=t.to,i=t.lastValue;void 0===i&&(i="");var l=function(e){return n[e]===a},s=function(e,t){for(var r="",n=0;n<e.length;n++)l(t+n)&&f(e[n])&&(r+=e[n]);return r},c=function(e){return e.replace(/[^0-9]/g,"")};if(!n.match(/\d/))return c(e);if(""===i&&e.length===n.length){for(var v="",d=0;d<e.length;d++)if(l(d))f(e[d])&&(v+=e[d]);else if(e[d]!==n[d])return c(e);return v}var g=i.substring(0,u.start),m=e.substring(o.start,o.end),p=i.substring(u.end);return""+s(g,0)+c(m)+s(p,u.end)}(e,t,p)},getCaretBoundary:d,onKeyDown:function(e){var r=e.key,u=e.target,o=u.selectionStart,i=u.selectionEnd,l=u.value;if(o!==i){n(e);return}var s=o;if("Backspace"===r||"Delete"===r){var c="right";if("Backspace"===r){for(;s>0&&t[s-1]!==a;)s--;c="left"}else{for(var f=t.length;s<f&&t[s]!==a;)s++;c="right"}s=O(l,s,d(l),c)}else t[s]!==a&&"ArrowLeft"!==r&&"ArrowRight"!==r&&(s=O(l,s+1,d(l),"right"));s!==o&&y(u,s),n(e)}})}}}]);

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.