PageSourceSearch

https://owp.klarna.com/static/57899-a0f1529b.js

js klarna.com collected 2026-09-24 08:26:05 UTC 17,895 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[57899],{7814(t,e,n){n.d(e,{A:()=>O});var r=n(96540);function i(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function o(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let r=t[n],u=e[n];return"function"==typeof r?`${r}`==`${u}`:i(r)&&i(u)?o(r,u):r===u})}function u(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function c(t){return"number"==typeof t}function a(t){return"string"==typeof t}function s(t){return"boolean"==typeof t}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return Math.abs(t)}function d(t){return Math.sign(t)}function p(t){return y(t).map(Number)}function m(t){return t[g(t)]}function g(t){return Math.max(0,t.length-1)}function h(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function y(t){return Object.keys(t)}function b(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function v(){let t=[],e={add:function(n,r,i,o={passive:!0}){let u;return"addEventListener"in n?(n.addEventListener(r,i,o),u=()=>n.removeEventListener(r,i,o)):(n.addListener(i),u=()=>n.removeListener(i)),t.push(u),e},clear:function(){t=t.filter(t=>t())}};return e}function x(t=0,e=0){let n=f(t-e);function r(n){return n<t||n>e}return{length:n,max:e,min:t,constrain:function(n){return r(n)?n<t?t:e:n},reachedAny:r,reachedMax:function(t){return t>e},reachedMin:function(e){return e<t},removeOffset:function(t){return n?t-n*Math.ceil((t-e)/n):t}}}function w(t){let e=t;function n(t){return c(t)?t:t.get()}return{get:function(){return e},set:function(t){e=n(t)},add:function(t){e+=n(t)},subtract:function(t){e-=n(t)}}}function S(t,e){let n="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},r=e.style,i=null,o=!1;return{clear:function(){!o&&(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(o)return;let u=Math.round(100*t.direction(e))/100;u!==i&&(r.transform=n(u),i=u)},toggleActive:function(t){o=!t}}}let D={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function E(t,e,n){let r,i,o,u,O,L,A,I,k=t.ownerDocument,M=k.defaultView,F=function(t){function e(t,e){return function t(e,n){return[e,n].reduce((e,n)=>
1(y(n).forEach(r=>{let i=e[r],o=n[r],u=l(i)&&l(o);e[r]=u?t(i,o):o}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let r=n.breakpoints||{},i=y(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,n)=>e(t,n),{});return e(n,i)},optionsMediaQueries:function(e){return e.map(t=>y(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(M),j=(I=[],{init:function(t,e){return(I=e.filter(({options:t})=>!1!==F.optionsAtMedia(t).active)).forEach(e=>e.init(t,F)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){I=I.filter(t=>t.destroy())}}),N=v(),P=(i={},o={init:function(t){r=t},emit:function(t){return(i[t]||[]).forEach(e=>e(r,t)),o},off:function(t,e){return i[t]=(i[t]||[]).filter(t=>t!==e),o},on:function(t,e){return i[t]=(i[t]||[]).concat([e]),o},clear:function(){i={}}}),{mergeOptions:T,optionsAtMedia:H,optionsMediaQueries:_}=F,{on:V,off:z,emit:B}=P,C=!1,R=T(D,E.globalOptions),U=T(R),$=[];function q(e,n){C||(U=H(R=T(R,e)),$=n||$,function(){let{container:e,slides:n}=U;L=(a(e)?t.querySelector(e):e)||t.children[0];let r=a(n)?L.querySelectorAll(n):n;A=[].slice.call(r||L.children)}(),u=function e(n){let r=function(t,e,n,r,i,o,u){var l,D;let E,O,L,A,I,k,M,F,j,N,P,T,H,_,{align:V,axis:z,direction:B,startIndex:C,loop:R,duration:U,dragFree:$,dragThreshold:q,inViewThreshold:J,slidesToScroll:K,skipSnaps:X,containScroll:Q,watchResize:Y,watchSlides:G,watchDrag:W,watchFocus:Z}=o,tt={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:i}=t;return{top:e,right:n+r,bottom:e+i,left:n,width:r,height:i}}},te=tt.measure(e),tn=n.map(tt.measure),tr=(O="rtl"===B,A=(L="y"===z)||!O?1:-1,I=L?"top":O?"right":"left",k=L?"bottom":O?"left":"right",{scroll:L?"y":"x",cross:L?"x":"y",startEdge:I,endEdge:k,measureSize:function(t){let{height:e,width:n}=t;return L?e:n},direction:function(t){return t*A}}),ti=tr.measureSize(te),to={measure:function(t){return t/100*ti}},tu=(l=V,D=ti,E={start:function(){return 0},center:function(t){return(D-t)/2},end:function(t){return D-t}},{measure:function(t,e){return a(l)?E[l](t):l(D,t,e)}}),tc=!R&&!!Q,{slideSizes:ta,slideSizesWithGaps:ts,startGap:tl,endGap:tf}=function(t,e,n,r,i,o){let{measureSize:u,startEdge:c,endEdge:a}=t,s=n[0]&&i,l=function(){if(!s)return 0;let t=n[0];return f(e[c]-t[c])}(),d=s?parseFloat(o.getComputedStyle(m(r)).getPropertyValue(`margin-${a}`)):0,p=n.map(u),h=n.map((t,e,n)=>{let r=e===g(n);return e?r?p[e]+d:n[e+1][c]-t[c]:p[e]+l}).map(f);return{slideSizes:p,slideSizesWithGaps:h,startGap:l,endGap:d}}(tr,te,tn,n,R||!!Q,i),td=function(t,e,n,r,i,o,u,a){let{startEdge:s,endEdge:l,direction:d}=t,h=c(n);return{groupSlides:function(t){return h?p(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?p(t).reduce((n,c,p)=>{let h=m(n)||0,y=c===g(t),b=i[s]-o[h][s],v=i[s]-o[c][l],x=r||0!==h?0:d(u),w=f(v-(!r&&y?d(a):0)-(b+x));return p&&w>e+2&&n.push(c),y&&n.push(t.length),n},[]).map((e,n,r)=>{let i=Math.max(r[n-1]||0);return t.slice(i,e)}):[]}}}(tr,ti,K,R,te,tn,tl,tf),{snaps:tp,snapsAligned:tm}=function(t,e,n,r,i){let{startEdge:o,endEdge:u}=t,{groupSlides:c}=i,a=c(r).map(t=>m(t)[u]-t[0][o]).map(f).map(e.measure),s=r.map(t=>n[o]-t[o]).map(t=>-f(t)),l=c(s).map(t=>t[0]).map((t,e)=>t+a[e]);return{snaps:s,snapsAligned:l}}(tr,tu,te,tn,td),tg=-m(tp)+m(ts),{snapsContained:th,scrollContainLimit:ty}=function(t,e,n,r){let i,o,u=x(-e+t,0),c=n.map((t,e)=>{let{min:r,max:i}=u,o=u.constrain(t),c=e===g(n);return e?c||function(t,e){return 1>=f(t-e)}(r,o)?r:function(t,e){return 1>=f(t-e)}(i,o)?i:o:i}).map(t=>parseFloat(t.toFixed(3))),a=(i=c[0],o=m(c),x(c.lastIndexOf(i),c.indexOf(o)+1));return{snapsContained:function(){if(e<=t+2)return[u.max];if("keepSnaps"===r)return c;let{min:n,max:i}=a;return c.slice(n,i)}(),scrollContainLimit:a}}
1(ti,tg,tm,Q),tb=tc?th:tm,{limit:tv}=(M=tb[0],{limit:x(R?M-tg:m(tb),M)}),tx=function t(e,n,r){let{constrain:i}=x(0,e),o=e+1,u=c(n);function c(t){return r?f((o+t)%o):i(t)}function a(){return t(e,u,r)}let s={get:function(){return u},set:function(t){return u=c(t),s},add:function(t){return a().set(u+t)},clone:a};return s}(g(tb),C,R),tw=tx.clone(),tS=p(n),tD=function(t,e,n,r){let i=v(),o=1e3/60,u=null,c=0,a=0;function s(t){if(!a)return;u||(u=t,n(),n());let i=t-u;for(u=t,c+=i;c>=o;)n(),c-=o;r(c/o),a&&(a=e.requestAnimationFrame(s))}function l(){e.cancelAnimationFrame(a),u=null,c=0,a=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(u=null,c=0)})},destroy:function(){l(),i.clear()},start:function(){a||(a=e.requestAnimationFrame(s))},stop:l,update:n,render:r}}(r,i,()=>(({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(t.pointerDown()),e.seek()})(t_),t=>(({scrollBody:t,translate:e,location:n,offsetLocation:r,previousLocation:i,scrollLooper:o,slideLooper:u,dragHandler:c,animation:a,eventHandler:s,scrollBounds:l,options:{loop:f}},d)=>{let p=t.settled(),m=!l.shouldConstrain(),g=f?p:p&&m,h=g&&!c.pointerDown();h&&a.stop();let y=n.get()*d+i.get()*(1-d);r.set(y),f&&(o.loop(t.direction()),u.loop()),e.to(r.get()),h&&s.emit("settle"),g||s.emit("scroll")})(t_,t)),tE=tb[tx.get()],tO=w(tE),tL=w(tE),tA=w(tE),tI=w(tE),tk=function(t,e,n,r,i){let o=0,u=0,c=i,a=.68,s=t.get(),l=0;function p(t){return c=t,g}function m(t){return a=t,g}let g={direction:function(){return u},duration:function(){return c},velocity:function(){return o},seek:function(){let e=r.get()-t.get(),i=0;return c?(n.set(t),o+=e/c,o*=a,s+=o,t.add(o),i=s-l):(o=0,n.set(r),t.set(r),i=e),u=d(i),l=s,g},settled:function(){return .001>f(r.get()-e.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return g}(tO,tA,tL,tI,U),tM=function(t,e,n,r,i){let{reachedAny:o,removeOffset:u,constrain:c}=r;function a(t){return t.concat().sort((t,e)=>f(t)-f(e))[0]}function s(e,r){let i=[e,e+n,e-n];if(!t)return e;if(!r)return a(i);let o=i.filter(t=>d(t)===r);return o.length?a(o):m(i)-n}return{byDistance:function(n,r){let a=i.get()+n,{index:l,distance:d}=function(n){let r=t?u(n):c(n),{index:i}=e.map((t,e)=>({diff:s(t-r,0),index:e})).sort((t,e)=>f(t.diff)-f(e.diff))[0];return{index:i,distance:r}}(a),p=!t&&o(a);if(!r||p)return{index:l,distance:n};let m=n+s(e[l]-d,0);return{index:l,distance:m}},byIndex:function(t,n){let r=s(e[t]-i.get(),n);return{index:t,distance:r}},shortcut:s}}(R,tb,tg,tv,tI),tF=function(t,e,n,r,i,o,u){function c(i){let c=i.distance,a=i.index!==e.get();o.add(c),c&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),a&&(n.set(e.get()),e.set(i.index),u.emit("select"))}return{distance:function(t,e){c(i.byDistance(t,e))},index:function(t,n){let r=e.clone().set(t);c(i.byIndex(r.get(),n))}}}(tD,tx,tw,tk,tM,tI,u),tj=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(tv),tN=v(),tP=(j={},N=null,P=null,T=!1,{init:function(){F=new IntersectionObserver(t=>{T||(t.forEach(t=>{j[n.indexOf(t.target)]=t}),N=null,P=null,u.emit("slidesInView"))},{root:e.parentElement,threshold:J}),n.forEach(t=>F.observe(t))},destroy:function(){F&&F.disconnect(),T=!0},get:function(t=!0){if(t&&N)return N;if(!t&&P)return P;let e=y(j).reduce((e,n)=>{let r=parseInt(n),{isIntersecting:i}=j[r];return(t&&i||!t&&!i)&&e.push(r),e},[]);return t&&(N=e),t||(P=e),e}}),{slideRegistry:tT}=function(t,e,n,r,i,o){let u,{groupSlides:c}=i,{min:a,max:s}=r;return{slideRegistry:(u=c(o),1===n.length?[o]:t&&"keepSnaps"!==e?u.slice(a,s).map((t,e,n)=>{let r=e===g(n);return e?r?h(g(o)-m(n)[0]+1,m(n)[0]):t:h(m(n[0])+1)}):u)}}(tc,Q,tb,ty,td,tS),tH=function(t,e,n,r,i,o,u,a){let l={passive:!0,capture:!0},f=0;function d(t){"Tab"===t.code&&(f=new Date().getTime())}return{init:function(p){a&&(o.add(document,"keydown",d,!1),e.forEach((e,d)=>{o.add(e,"focus",e=>{(s(a)||a(p,e))&&function(e){if(new Date().getTime()-f>10)return;u.emit("slideFocusStart"),t.scrollLeft=0;let o=n.findIndex(t=>t.includes(e));c(o)&&(i.useDuration(0),r.index(o,0),u.emit("slideFocus"))}(d)},l)}))}}}(t,n,tT,tF,tk,tN,u,Z),t_={ownerDocument:r,ownerWindow:i,eventHandler:u,containerRect:te,slideRects:tn,animation:tD,axis:tr,dragHandler:function(t,e,n,r,i,o,u,c,a,l,p,m,g,h,y,w,S,D){let{cross:E,direction:O}
1=t,L=["INPUT","SELECT","TEXTAREA"],A={passive:!1},I=v(),k=v(),M=x(50,225).constrain(h.measure(20)),F={mouse:300,touch:400},j={mouse:500,touch:600},N=y?43:25,P=!1,T=0,H=0,_=!1,V=!1,z=!1,B=!1;function C(t){if(!b(t,r)&&t.touches.length>=2)return R(t);let e=o.readPoint(t),n=o.readPoint(t,E),u=f(e-T),a=f(n-H);if(!V&&!B&&(!t.cancelable||!(V=u>a)))return R(t);let s=o.pointerMove(t);u>w&&(z=!0),l.useFriction(.3).useDuration(.75),c.start(),i.add(O(s)),t.preventDefault()}function R(t){var e;let n,r,i=p.byDistance(0,!1).index!==m.get(),u=o.pointerUp(t)*(y?j:F)[B?"mouse":"touch"],c=(e=O(u),n=m.add(-1*d(e)),r=p.byDistance(e,!y).distance,y||f(e)<M?r:S&&i?.5*r:p.byIndex(n.get(),0).distance),s=function(t,e){var n,r;if(0===t||0===e||f(t)<=f(e))return 0;let i=(n=f(t),r=f(e),f(n-r));return f(i/t)}(u,c);V=!1,_=!1,k.clear(),l.useDuration(N-10*s).useFriction(.68+s/50),a.distance(c,!y),B=!1,g.emit("pointerUp")}function U(t){z&&(t.stopPropagation(),t.preventDefault(),z=!1)}return{init:function(t){D&&I.add(e,"dragstart",t=>t.preventDefault(),A).add(e,"touchmove",()=>void 0,A).add(e,"touchend",()=>void 0).add(e,"touchstart",c).add(e,"mousedown",c).add(e,"touchcancel",R).add(e,"contextmenu",R).add(e,"click",U,!0);function c(c){(s(D)||D(t,c))&&function(t){let c,a=b(t,r);if((B=a,z=y&&a&&!t.buttons&&P,P=f(i.get()-u.get())>=2,!a||0===t.button)&&(c=t.target.nodeName||"",!L.includes(c))){let r;_=!0,o.pointerDown(t),l.useFriction(0).useDuration(0),i.set(u),r=B?n:e,k.add(r,"touchmove",C,A).add(r,"touchend",R).add(r,"mousemove",C,A).add(r,"mouseup",R),T=o.readPoint(t),H=o.readPoint(t,E),g.emit("pointerDown")}}(c)}},destroy:function(){I.clear(),k.clear()},pointerDown:function(){return _}}}(tr,t,r,i,tI,function(t,e){let n,r;function i(t){return t.timeStamp}function o(n,r){let i=r||t.scroll,o=`client${"x"===i?"X":"Y"}`;return(b(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,r=t,o(t)},pointerMove:function(t){let e=o(t)-o(r),u=i(t)-i(n)>170;return r=t,u&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;let e=o(r)-o(n),u=i(t)-i(n),c=i(t)-i(r)>170,a=e/u;return u&&!c&&f(a)>.1?a:0},readPoint:o}}(tr,i),tO,tD,tF,tk,tM,tx,u,to,$,q,X,W),eventStore:tN,percentOfView:to,index:tx,indexPrevious:tw,limit:tv,location:tO,offsetLocation:tA,previousLocation:tL,options:o,resizeHandler:function(t,e,n,r,i,o,u){let c,a,l=[t].concat(r),d=[],p=!1;function m(t){return i.measureSize(u.measure(t))}return{init:function(i){o&&(a=m(t),d=r.map(m),c=new ResizeObserver(n=>{(s(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===t,u=r.indexOf(o.target),c=n?a:d[u];if(f(m(n?t:r[u])-c)>=.5){i.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{l.forEach(t=>c.observe(t))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(e,u,i,n,tr,Y,tt),scrollBody:tk,scrollBounds:function(t,e,n,r,i){let o=i.measure(10),u=i.measure(50),c=x(.1,.99),a=!1;function s(){return!a&&!!t.reachedAny(n.get())&&!!t.reachedAny(e.get())}return{shouldConstrain:s,constrain:function(i){if(!s())return;let a=t.reachedMin(e.get())?"min":"max",l=f(t[a]-e.get()),d=n.get()-e.get(),p=c.constrain(l/u);n.subtract(d*p),!i&&f(d)<o&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(t){a=!t}}}(tv,tA,tI,tk,to),scrollLooper:function(t,e,n,r){let{reachedMin:i,reachedMax:o}=x(e.min+.1,e.max+.1);return{loop:function(e){if(!(1===e?o(n.get()):-1===e&&i(n.get())))return;let u=-1*e*t;r.forEach(t=>t.add(u))}}}(tg,tv,tA,[tO,tA,tL,tI]),scrollProgress:tj,scrollSnapList:tb.map(tj.get),scrollSnaps:tb,scrollTarget:tM,scrollTo:tF,slideLooper:function(t,e,n,r,i,o,u,c,a){let s=p(i),l=p(i).reverse(),f=g(m(l,u[0]),n,!1).concat(g(m(s,e-u[0]-1),-n,!0));function d(t,e){return t.reduce((t,e)=>t-i[e],e)}function m(t,e){return t.reduce((t,n)=>d(t,e)>0?t.concat([n]):t,[])}function g(i,u,s){let l=o.map((t,n)=>({start:t-r[n]+.5+u,end:t+e-.5+u}));return i.map(e=>{let r=s?0:-n,i=s?n:0,o=l[e][s?"end":"start"];return{index:e,loopPoint:o,slideLocation:w(-1),translate:S(t,a[e]),target:()=>c.get()>o?r:i}})}return{canLoop:function(){return f.every(({index:t})=>.1>=d(s.filter(e=>e!==t),e))},clear:function(){f.forEach(t=>t.translate.clear())},loop:function(){f.forEach(t=>{let{target:e,translate:n,slideLocation:r}=t,i=e();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:f}}
1(tr,ti,tg,ta,ts,tp,tb,tA,n),slideFocus:tH,slidesHandler:(_=!1,{init:function(t){G&&(H=new MutationObserver(e=>{!_&&(s(G)||G(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),u.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){H&&H.disconnect(),_=!0}}),slidesInView:tP,slideIndexes:tS,slideRegistry:tT,slidesToScroll:td,target:tI,translate:S(tr,e)};return t_}(t,L,A,k,M,n,P);return n.loop&&!r.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):r}(U),_([R,...$.map(({options:t})=>t)]).forEach(t=>N.add(t,"change",J)),U.active&&(u.translate.to(u.location.get()),u.animation.init(),u.slidesInView.init(),u.slideFocus.init(Y),u.eventHandler.init(Y),u.resizeHandler.init(Y),u.slidesHandler.init(Y),u.options.loop&&u.slideLooper.loop(),L.offsetParent&&A.length&&u.dragHandler.init(Y),O=j.init(Y,$)))}function J(t,e){let n=Q();K(),q(T({startIndex:n},t),e),P.emit("reInit")}function K(){u.dragHandler.destroy(),u.eventStore.clear(),u.translate.clear(),u.slideLooper.clear(),u.resizeHandler.destroy(),u.slidesHandler.destroy(),u.slidesInView.destroy(),u.animation.destroy(),j.destroy(),N.clear()}function X(t,e,n){U.active&&!C&&(u.scrollBody.useBaseFriction().useDuration(!0===e?0:U.duration),u.scrollTo.index(t,n||0))}function Q(){return u.index.get()}let Y={canScrollNext:function(){return u.index.add(1).get()!==Q()},canScrollPrev:function(){return u.index.add(-1).get()!==Q()},containerNode:function(){return L},internalEngine:function(){return u},destroy:function(){C||(C=!0,N.clear(),K(),P.emit("destroy"),P.clear())},off:z,on:V,emit:B,plugins:function(){return O},previousScrollSnap:function(){return u.indexPrevious.get()},reInit:J,rootNode:function(){return t},scrollNext:function(t){X(u.index.add(1).get(),t,-1)},scrollPrev:function(t){X(u.index.add(-1).get(),t,1)},scrollProgress:function(){return u.scrollProgress.get(u.offsetLocation.get())},scrollSnapList:function(){return u.scrollSnapList}
1,scrollTo:X,selectedScrollSnap:Q,slideNodes:function(){return A},slidesInView:function(){return u.slidesInView.get()},slidesNotInView:function(){return u.slidesInView.get(!1)}};return q(e,n),setTimeout(()=>P.emit("init"),0),Y}function O(t={},e=[]){let n=(0,r.useRef)(t),i=(0,r.useRef)(e),[c,a]=(0,r.useState)(),[s,l]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,i.current)},[c]);return(0,r.useEffect)(()=>{o(n.current,t)||(n.current=t,f())},[t,f]),(0,r.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=u(t),r=u(e);return n.every((t,e)=>o(t,r[e]))}(i.current,e)&&(i.current=e,f())},[e,f]),(0,r.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&s){E.globalOptions=O.globalOptions;let t=E(s,n.current,i.current);return a(t),()=>t.destroy()}a(void 0)},[s,a]),[l,c]}E.globalOptions=void 0,O.globalOptions=void 0}}]);

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.