PageSourceSearch

https://www.imagic.co.nz/_next/static/chunks/1336-f761813bbb303801.js

js imagic.co.nz collected 2026-10-08 19:33:03 UTC 5,646 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1336,4615],{21190:function(e,t,n){n.d(t,{M:function(){return N}});var r=n(97582),i=n(67294),u=n(49304),a=n(54735),l=n(58868);function o(){var e=(0,i.useRef)(!1);return(0,l.L)(function(){return e.current=!0,function(){e.current=!1}},[]),e}var c=n(240),f=n(96681),s=n(76316),d=function(e){var t=e.children,n=e.initial,u=e.isPresent,a=e.onExitComplete,l=e.custom,o=e.presenceAffectsLayout,d=(0,f.h)(m),p=(0,s.M)(),v=(0,i.useMemo)(function(){return{id:p,initial:n,isPresent:u,custom:l,onExitComplete:function(e){var t,n;d.set(e,!0);try{for(var i=(0,r.XA)(d.values()),u=i.next();!u.done;u=i.next())if(!u.value)return}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return d.set(e,!1),function(){return d.delete(e)}}}},o?void 0:[u]);return(0,i.useMemo)(function(){d.forEach(function(e,t){return d.set(t,!1)})},[u]),i.useEffect(function(){u||d.size||null==a||a()},[u]),i.createElement(c.O.Provider,{value:v},t)};function m(){return new Map}var p=n(25364),v=n(65411),h=function(e){return e.key||""},N=function(e){var t,n,c,f,s,m,N=e.children,g=e.custom,D=e.initial,C=void 0===D||D,E=e.onExitComplete,w=e.exitBeforeEnter,y=e.presenceAffectsLayout,T=void 0===y||y,x=(0,r.CR)((t=o(),c=(n=(0,r.CR)((0,i.useState)(0),2))[0],f=n[1],s=(0,i.useCallback)(function(){t.current&&f(c+1)},[c]),[(0,i.useCallback)(function(){return a.ZP.postRender(s)},[s]),c]),1)[0],k=(0,i.useContext)(p.p).forceRender;k&&(x=k);var U=o(),z=(m=[],i.Children.forEach(N,function(e){(0,i.isValidElement)(e)&&m.push(e)}),m),M=z,R=new Set,b=(0,i.useRef)(M),P=(0,i.useRef)(new Map).current,A=(0,i.useRef)(!0);if((0,l.L)(function(){A.current=!1,function(e,t){e.forEach(function(e){var n=h(e);t.set(n,e)})}(z,P),b.current=M}),(0,v.z)(function(){A.current=!0,P.clear(),R.clear()}),A.current)return i.createElement(i.Fragment,null,M.map(function(e){return i.createElement(d,{key:h(e),isPresent:!0,initial:!!C&&void 0,presenceAffectsLayout:T},e)}));M=(0,r.ev)([],(0,r.CR)(M),!1);for(var F=b.current.map(h),L=z.map(h),Z=F.length,I=0;I<Z;I++){var S=F[I];-1===L.indexOf(S)&&R.add(S)}return w&&R.size&&(M=[]),R.forEach(function(e){if(-1===L.indexOf(e)){var t=P.get(e);if(t){var n=F.indexOf(e);M.splice(n,0,i.createElement(d,{key:h(t),isPresent:!1,onExitComplete:function(){P.delete(e),R.delete(e);var t=b.current.findIndex(function(t){return t.key===e});if(b.current.splice(t,1),!R.size){if(b.current=z,!1===U.current)return;x(),E&&E()}},custom:g,presenceAffectsLayout:T},t))}}}),M=M.map(function(e){var t=e.key;return R.has(t)?e:i.createElement(d,{key:h(e),isPresent:!0,presenceAffectsLayout:T},e)}),"production"!==u.O&&w&&M.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),i.createElement(i.Fragment,null,R.size?M:M.map(function(e){return(0,i.cloneElement)(e)}))}},21609:function(e,t,n){n.d(t,{K:function(){return i}});var r=n(35219);function i(e,t){return+(0,r.b)(e)==+(0,r.b)(t)}},13798:function(e,t,n){n.d(t,{D:function(){return i}});var r=n(22672);function i(e,t){var n;let i,m;let p=null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2,v=function(e){let t;let n={},r=e.split(u.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],u.timeZoneDelimiter.test(n.date)&&(n.date=e.split(u.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){let e=u.timezone.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(v.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,u=r[2]?parseInt(r[2]):null;return{year:null===u?i:100*u,restDateString:e.slice((r[1]||r[2]).length)}}(v.date,p);i=function(e,t){if(null===t)return new Date(NaN);let n=e.match(a);if(!n)return new Date(NaN);let r=!!n[4],i=c(n[1]),u=c(n[2])-1,l=c(n[3]),o=c(n[4]),f=c(n[5])-1;if(r)return o>=1&&o<=53&&f>=0&&f<=6?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,o,f):new Date(NaN);{let e=new Date(0);return u>=0&&u<=11&&l>=1&&l<=(s[u]||(d(t)?29:28))&&i>=1&&i<=(d(t)?366:365)?(e.setUTCFullYear(t,u,Math.max(i,l)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);let h=i.getTime(),N=0;if(v.time&&isNaN(N=function(e){let t=e.match(l);if(!t)return NaN;let n=f(t[1]),i=f(t[2]),u=f(t[3]);return(24===n?0===i&&0===u:u>=0&&u<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*u:NaN}
1(v.time)))return new Date(NaN);if(v.timezone){if(isNaN(m=function(e){if("Z"===e)return 0;let t=e.match(o);if(!t)return 0;let n="+"===t[1]?-1:1,i=parseInt(t[2]),u=t[3]&&parseInt(t[3])||0;return u>=0&&u<=59?n*(i*r.vh+u*r.yJ):NaN}(v.timezone)))return new Date(NaN)}else{let e=new Date(h+N),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(h+N+m)}let u={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,o=/^([+-])(\d{2})(?::?(\d{2}))?$/;function c(e){return e?parseInt(e):1}function f(e){return e&&parseFloat(e.replace(",","."))||0}let s=[31,null,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400==0||e%4==0&&e%100!=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.