1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9456],{28396(e,t,r){function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>u});const s=class{constructor(){o(this,"storage",new Map)}get length(){return this.storage.size}key(e){return this.storage.keys()[e]||null}getItem(e){return this.storage.has(e)?this.storage.get(e):null}setItem(e,t){this.storage.set(e,t)}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}};var i=r(41715);function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const n=["NS_ERROR_FAILURE","NS_ERROR_FILE_CORRUPTED","NS_ERROR_FILE_NO_DEVICE_SPACE"];class l{constructor(){a(this,"memoryLocalStorage",void 0),a(this,"memorySessionStorage",void 0),a(this,"corruptedAlertWasShowed",!1),l.isSupported(()=>localStorage)||(this.memoryLocalStorage=new s),l.isSupported(()=>sessionStorage)||(this.memorySessionStorage=new s)}static isSupported(e){try{const t="__some_random_key_you_are_not_going_to_use__";return e().setItem(t,t),e().removeItem(t),!0}catch(t){return!1}}getLocalStorage(){return this.memoryLocalStorage||localStorage}getSessionStorage(){return this.memorySessionStorage||sessionStorage}get(e,t){try{return JSON.parse(t.getItem(e))}catch(r){return n.includes(r.name)?(this.clear(t),null):(i.A.warn(r,{extra:{name:e}}),this.remove(e,t),null)}}set(e,t,r){try{r.setItem(e,JSON.stringify(t))}catch(o){i.A.warn(o,{extra:{name:e,value:t}}),n.includes(o.name)&&this.clear(r)}}remove(e,t){try{t.removeItem(e)}catch(r){i.A.warn(r,{extra:{name:e}})}}clear(e){try{i.A.info("clean up storage"),e.clear()}catch(t){n.includes(t.name)&&!this.corruptedAlertWasShowed&&(alert("Sorry, it looks like your browser storage has been corrupted. Please clear your storage by going to Tools -> Clear Recent History -> Cookies and set time range to 'Everything'. This will remove the corrupted browser storage across all sites."),this.corruptedAlertWasShowed=!0),i.A.info(t)}}keys(e){const t=e.length,r=[];for(let o=0;o<t;o++)r.push(e.key(o));return r}getItem(e){return this.get(e,this.getLocalStorage())}setItem(e,t){this.set(e,t,this.getLocalStorage())}removeItem(e){this.remove(e,this.getLocalStorage())}getKeys(){return this.keys(this.getLocalStorage())}getSessionItem(e){return this.get(e,this.getSessionStorage())}setSessionItem(e,t){this.set(e,t,this.getSessionStorage())}removeSessionItem(e){this.remove(e,this.getSessionStorage())}getSessionKeys(){return this.keys(this.getSessionStorage())}}const u=new l}}]); 2//# sourceMappingURL=loc.local-storage.c9e829c7.js.map
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.