PageSourceSearch

https://www.apc83.fr/_next/static/chunks/7333-9b0512fdab16d1d5.js

js apc83.fr collected 2026-10-09 22:05:16 UTC 8,440 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7333],{7333:function(t,e,r){r.d(e,{F7:function(){return d},HH:function(){return p}});var n,o,a=r(7294);function u(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)0>e.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function i(){}function f(t){return!!(t||"").match(/\d/)}function c(t,e){return Array(e+1).join(t)}function l(t,e){if(t.value=t.value,null!==t){if(t.createTextRange){var r=t.createTextRange();return r.move("character",e),r.select(),!0}return t.selectionStart||0===t.selectionStart?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}}function s(t,e){return(void 0===t&&(t=" "),"string"==typeof t)?t:t[e]||" "}function v(t){for(var e=Array.from({length:t.length+1}).map(function(){return!0}),r=0,n=e.length;r<n;r++)e[r]=Boolean(f(t[r])||f(t[r-1]));return e}function m(t){return t.replace(/[^0-9]/g,"")}function g(t){return t}function d(t){var e,r,n,s,d,p,h,y,b,w,C,S=t.type;void 0===S&&(S="text");var T=t.displayType;void 0===T&&(T="input");var E=t.customInput,O=t.renderText,V=t.getInputRef,k=t.format;void 0===k&&(k=g);var A=t.removeFormatting;void 0===A&&(A=m);var M=t.defaultValue,x=t.valueIsNumericString,R=t.onValueChange,j=t.
1isAllowed,B=t.onChange;void 0===B&&(B=i);var F=t.onKeyDown;void 0===F&&(F=i);var D=t.onMouseUp;void 0===D&&(D=i);var N=t.onFocus;void 0===N&&(N=i);var P=t.onBlur;void 0===P&&(P=i);var I=t.value,K=t.getCaretBoundary;void 0===K&&(K=v);var U=u(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary"]),_=(e=Boolean(x),r=k,n=A,void 0===(s=R)&&(s=i),d=(0,a.useRef)(),p=function(t){var o,a;return null==t||"number"==typeof t&&isNaN(t)?(a="",o=""):"number"==typeof t||e?o=r(a="number"==typeof t?function(t){var e=t+"",r="-"===e[0]?"-":"";r&&(e=e.substring(1));var n=e.split(/[eE]/g),o=n[0],a=n[1];if(!(a=Number(a)))return r+o;o=o.replace(".","");var u=1+a,i=o.length;return u<0?o="0."+c("0",Math.abs(u))+o:u>=i?o+=c("0",u-i):o=(o.substring(0,u)||"0")+"."+o.substring(u),r+o}(t):t):(a=n(t,void 0),o=t),{formattedValue:o,numAsString:a}},(h=(0,a.useRef)(p)).current=p,y=(0,a.useRef)(function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return h.current.apply(h,t)}).current,w=(b=(0,a.useState)(function(){return y(M)}))[0],C=b[1],(0,a.useMemo)(function(){null==I?d.current=void 0:(d.current=y(I),C(d.current))},[I,y]),[w,function(t,e){C({formattedValue:t.formattedValue,numAsString:t.value}),s(t,e)}]),L=_[0],H=L.formattedValue,q=L.numAsString,z=_[1],G=(0,a.useRef)(),J=function(t,e){G.current=t.formattedValue,z(t,e)};(0,a.useEffect)(function(){var t=k(q);(void 0===G.current||t!==G.current)&&to({formattedValue:t,numAsString:q,input:Y.current,setCaretPosition:!0,source:o.props,event:void 0})});var Q=(0,a.useState)(!1),W=Q[0],X=Q[1],Y=(0,a.useRef)(null),Z=(0,a.useRef)({setCaretTimeout:null,focusTimeout:null});(0,a.useEffect)(function(){return X(!0),function(){clearTimeout(Z.current.setCaretTimeout),clearTimeout(Z.current.focusTimeout)}},[]);var $=k,tt=function(t,e){var r=parseFloat(e);return{formattedValue:t,value:e,floatValue:isNaN(r)?void 0:r}},te=function(t,e,r){l(t,e),Z.current.setCaretTimeout=setTimeout(function(){t.value===r&&l(t,e)},0)},tr=function(t,e,r){var n=t.length;e=Math.min(Math.max(e,0),n);var o=K(t);if("left"===r){for(;e>=0&&!o[e];)e--;-1===e&&(e=o.indexOf(!0))}else{for(;e<=n&&!o[e];)e++;e>n&&(e=o.lastIndexOf(!0))}return -1===e&&(e=n),e},tn=function(t,e,r){var n=function(t,e,r){for(var n=e.length,o=t.length,a={},u=Array(n),i=0;i<n;i++){u[i]=-1;for(var c=0;c<o;c++)if(e[i]===t[c]&&!0!==a[c]){u[i]=c,a[c]=!0;break}}for(var l=r;l<n&&(-1===u[l]||!f(e[l]));)l++;var s=l===n||-1===u[l]?o:u[l];for(l=r-1;l>0&&(-1===u[l]||!f(e[l]));)l--;var v=-1===l||-1===u[l]?0:u[l]+1;return v>s?s:r-v<s-r?v:s}(e,t,r);return tr(e,n)},to=function(t){var e=t.formattedValue;void 0===e&&(e="");var r=t.input,n=t.setCaretPosition;void 0===n&&(n=!0);var o=t.source,a=t.event,u=t.numAsString,i=t.caretPos;if(r){if(void 0===i&&n){var f=t.inputValue||r.value,c=Math.max(r.selectionStart,r.selectionEnd);r.value=e,i=tn(f,e,c)}r.value=e,n&&void 0!==i&&te(r,i,e)}e!==H&&J(tt(e,u),{event:a,source:o})},ta=function(t,e,r){var n=Object.assign(Object.assign({},function(t,e){for(var r=0,n=0,o=t.length,a=e.length;t[r]===e[r]&&r<o;)r++;for(;t[o-1-n]===e[a-1-n]&&a-n>r&&o-n>r;)n++;return{from:{start:r,end:o-n},to:{start:r,end:a-n}}}(H,t)),{lastValue:H}),o=A(t,n),a=$(o);return(!j||!!j(tt(a,o)))&&(to({formattedValue:a,numAsString:o,inputValue:t,event:e,source:r,setCaretPosition:!0,input:e.target}),!0)},tu=Object.assign({inputMode:W&&"undefined"!=typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))?"numeric":void 0},U,{type:S,value:H,onChange:function(t){ta(t.target.value,t,o.event)&&B(t)},onKeyDown:function(t){var e,r=t.target,n=t.key,o=r.selectionStart,a=r.selectionEnd,u=r.value;if(void 0===u&&(u=""),"ArrowLeft"===n||"Backspace"===n?e=Math.max(o-1,0):"ArrowRight"===n?e=Math.min(o+1,u.length):"Delete"===n&&(e=o),void 0===e||o!==a){F(t);return}var i=e;"ArrowLeft"===n||"ArrowRight"===n?i=tr(u,e,"ArrowLeft"===n?"left":"right"):"Delete"!==n||f(u[e])?"Backspace"!==n||f(u[e])||(i=tr(u,e,"left")):i=tr(u,e,"right"),i!==e&&te(r,i,u),t.isUnitTestRun&&te(r,i,u),F(t)},onMouseUp:function(t){var e=t.target,r=e.selectionStart,n=e.selectionEnd,o=e.value;if(void 0===o&&(o=""),r===n){var a=tr(o,r);a!==r&&te(e,a,o)}D(t)},onFocus:function(t){t.persist();var e=t.target;Y.current=e,Z.current.focusTimeout=setTimeout(function(){var r=e.selectionStart,n=e.selectionEnd,o=e.value;void 0===o&&(o="");var a=tr(o,r);a===r||0===r&&n===o.length||te(e,a,o),N(t)},0)},onBlur:function(t){Y.current=null,clearTimeout(Z.current.focusTimeout),clearTimeout(Z.current.setCaretTimeout),P(t)}});return"text"===T?O?a.createElement(a.Fragment,null,O(H,U)||null):a.createElement("span",Object.assign({},U,{ref:V}),H):E?a.createElement(E,Object.assign({},tu,{ref:V})):a.createElement("input",Object.assign({},tu,{ref:V}))}function p(t){t.mask,t.allowEmptyFormatting,t.format,t.inputMode,t.onKeyDown,t.patternChar;var e,r,n,o,f=u(t,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar"]),c=(e=t.format,void 0===(r=t.inputMode)&&(r="numeric"),void 0===(n=t.onKeyDown)&&(n=i),void 0===(o=t.patternChar)&&(o="#"),!function(t){var e=t.mask;if(e&&("string"===e?e:e.toString()).match(/\d/g))throw Error("Mask "+e+" should not contain numeric character;")}(t),{inputMode:r,format:function(e){return function(t,e){var r=e.format,n=e.allowEmptyFormatting,o=e.mask,a=e.patternChar;if(void 0===a&&(a="#"),""===t&&!n)return"";for(var u=0,i=r.split(""),f=0,c=r.length;f<c;f++)r[f]===a&&(i[f]=t[u]||s(o,u),u+=1);return i.join("")}(e,t)},removeFormatting:function(e,r){return function(t,e,r){void 0===e&&(e={from:{start:0,end:0},to:{start:0,end:t.length},lastValue:""});var n=r.format,o=r.patternChar;void 0===o&&(o="#");var a=e.from,u=e.to,i=e.lastValue;void 0===i&&(i="");var f=function(t){return n[t]===o},c=function(t,e){for(var r="",n=0;n<t.length;n++)f(e+n)&&(r+=t[n]);return r},l=function(t){return t.replace(/[^0-9]/g,"")};if(!n.match(/\d/))return l(t);if(""===i&&t.length===n.length){for(var s="",v=0;v<t.length;v++)if(f(v))s+=t[v];else if(t[v]!==n[v])return l(t);return s}
1var m=i.substring(0,a.start),g=t.substring(u.start,u.end),d=i.substring(a.end);return""+c(m,0)+l(g)+c(d,a.end)}(e,r,t)},getCaretBoundary:function(e){return function(t,e){var r=e.format,n=e.mask,o=e.patternChar;void 0===o&&(o="#");for(var a=Array.from({length:t.length+1}).map(function(){return!0}),u=0,i=r.split("").map(function(t){if(t===o)return s(n,++u-1)}),f=function(e){return r[e]===o&&t[e]!==i[e]},c=0,l=a.length;c<l;c++)a[c]=f(c)||f(c-1);return a[r.indexOf(o)]=!0,a}(e,t)},onKeyDown:function(t){var r=t.key,a=t.target,u=a.selectionStart;if(u!==a.selectionEnd||!u){n(t);return}if("Backspace"===r||"Delete"===r){var i=u;if("Backspace"===r)for(;i>0&&e[i-1]!==o;)i--;else for(var f=e.length;i<f&&e[i]!==o;)i++;i!==u&&l(a,i)}n(t)}});return a.createElement(d,Object.assign({},f,c))}(n=o||(o={})).event="event",n.props="prop"}}]);

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.