1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2636],{97506:function(t,n,e){e.d(n,{f:function(){return l}});var r=e(65680),i=e(36957),o=e(78907),u=e(51432),a=e(26318),c=e(63779),f="AHOOKS_SYNC_STORAGE_EVENT_NAME";function l(t){return function(n,e){void 0===e&&(e={});var l,v=e.listenStorageChange,s=void 0!==v&&v,d=e.onError,p=void 0===d?function(t){console.error(t)}:d;try{l=t()}catch(t){p(t)}function b(){try{var t=null==l?void 0:l.getItem(n);if(t)return e.deserializer?e.deserializer(t):JSON.parse(t)}catch(t){p(t)}return(0,c.mf)(e.defaultValue)?e.defaultValue():e.defaultValue}var g=(0,r.CR)((0,i.useState)(b),2),y=g[0],Z=g[1];(0,a.Z)(function(){Z(b())},[n]);var m=function(t){t.key===n&&t.storageArea===l&&Z(b())};return(0,o.Z)("storage",m,{enable:s}),(0,o.Z)(f,function(t){m(t.detail)},{enable:s}),[y,(0,u.Z)(function(t){var r=(0,c.mf)(t)?t(y):t;s||Z(r);try{var i=void 0,o=null==l?void 0:l.getItem(n);(0,c.G7)(r)?(i=null,null==l||l.removeItem(n)):(i=e.serializer?e.serializer(r):JSON.stringify(r),null==l||l.setItem(n,i)),dispatchEvent(new CustomEvent(f,{detail:{key:n,newValue:i,oldValue:o,storageArea:l}}))}catch(t){p(t)}})]}}},78907:function(t,n,e){var r=e(8990),i=e(52413),o=e(78071);n.Z=function(t,n,e){void 0===e&&(e={});var u=e.enable,a=void 0===u||u,c=(0,r.Z)(n);(0,o.Z)(function(){if(a){var n=(0,i.n)(e.target,window);if(null==n?void 0:n.addEventListener){var r=function(t){return c.current(t)};return n.addEventListener(t,r,{capture:e.capture,once:e.once,passive:e.passive}),function(){n.removeEventListener(t,r,{capture:e.capture})}}}},[t,e.capture,e.once,e.passive,a],e.target)}},25359:function(t,n,e){var r=e(97506),i=e(65916),o=(0,r.f)(function(){return i.Z?localStorage:void 0});n.Z=o},26318:function(t,n,e){e.d(n,{Z:function(){return o}});var r,i=e(36957),o=(r=i.useEffect,function(t,n){var e=(0,i.useRef)(!1);r(function(){return function(){e.current=!1}},[]),r(function(){if(e.current)return t();e.current=!0},n)})},54555:function(t,n,e){e.d(n,{Z:function(){return v}});var r=e(85814).Z.Symbol,i=Object.prototype,o=i.hasOwnProperty,u=i.toString,a=r?r.toStringTag:void 0,c=function(t){var n=o.call(t,a),e=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=u.call(t);return r&&(n?t[a]=e:delete t[a]),i},f=Object.prototype.toString,l=r?r.toStringTag:void 0,v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?c(t):f.call(t)}},33776:function(t,n){var e="object"==typeof global&&global&&global.Object===Object&&global;n.Z=e},85814:function(t,n,e){var r=e(33776),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.Z||i||Function("return this")();n.Z=o},89624:function(t,n,e){e.d(n,{Z:function(){return m}});var r=e(20025),i=e(85814),o=function(){return i.Z.Date.now()},u=/\s/,a=function(t){for(var n=t.length;n--&&u.test(t.charAt(n)););return n},c=/^\s+/,f=e(54555),l=e(87243),v=0/0,s=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,b=parseInt,g=function(t){if("number"==typeof t)return t;if("symbol"==typeof(n=t)||(0,l.Z)(n)&&"[object Symbol]"==(0,f.Z)(n))return v;if((0,r.Z)(t)){var n,e,i="function"==typeof t.valueOf?t.valueOf():t;t=(0,r.Z)(i)?i+"":i}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,a(e)+1).replace(c,""):e;var o=d.test(t);return o||p.test(t)?b(t.slice(2),o?2:8):s.test(t)?v:+t},y=Math.max,Z=Math.min,m=function(t,n,e){var i,u,a,c,f,l,v=0,s=!1,d=!1,p=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(n){var e=i,r=u;return i=u=void 0,v=n,c=t.apply(r,e)}function m(t){var e=t-l,r=t-v;return void 0===l||e>=n||e<0||d&&r>=a}function h(){var t,e,r,i=o();if(m(i))return E(i);f=setTimeout(h,(t=i-l,e=i-v,r=n-t,d?Z(r,a-e):r))}function E(t){return(f=void 0,p&&i)?b(t):(i=u=void 0,c)}function O(){var t,e=o(),r=m(e);if(i=arguments,u=this,l=e,r){if(void 0===f)return v=t=l,f=setTimeout(h,n),s?b(t):c;if(d)return clearTimeout(f),f=setTimeout(h,n),b(l)}return void 0===f&&(f=setTimeout(h,n)),c}return n=g(n)||0,(0,r.Z)(e)&&(s=!!e.leading,a=(d="maxWait"in e)?y(g(e.maxWait)||0,n):a,p="trailing"in e?!!e.trailing:p),O.cancel=function(){void 0!==f&&clearTimeout(f),v=0,i=l=u=f=void 0},O.flush=function(){return void 0===f?c:E(o())},O}},20025:function(t,n){n.Z=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},87243:function(t,n){n.Z=function(t){return null!=t&&"object"==typeof t}}}]);
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.